Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

b . A Sensor Based Paper Towel Dispenser control system will be designed with the STM 3 2 F 4 0 1 processor. There are

b. A Sensor Based Paper Towel Dispenser control system will be designed with the STM32F401 processor. There are 2 inputs and 2 outputs. Inputs are sensor input nad Towel paper run out input and Outputs are Motor drive output and Towel paper run out warning LED.System will work as follows. When 1 is detected from the sensor input, the paper feeding motor will be started and stopped after 3 seconds. If there is no paper, 1 will come from the Towel paper run out input. In this case, the engine will not be started and the warning light will be set on and the warning light will remain on until the towel paper is renewed.Suggest that all the settings regarding the input and output of the ports have been made previosly. Write the required software in C language within the Superloop (while (1)).You can use the Delay(int Delay_ms) function for creating delays. (SLO2)20p)STM32F401Sensor InputPCQGPIOCPAOMotor Drive Out 1: Start, 0: StopTowel paper run out input PC1GPIOAPA1 Towel paper run out warning LEDAnswer:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions