Home /
Expert Answers /
Advanced Physics /
a-conveyor-system-is-a-mechanical-handling-equipment-that-moves-materials-from-one-location-to-ano-pa381
(Solved):
A conveyor system is a mechanical handling equipment that moves materials from one location to ano ...
A conveyor system is a mechanical handling equipment that moves materials from one location to another as shown in Figure. Suppose that the rotor of the conveyor system in Figure is connected to a DC motor where the L293D motor driver is used to control the speed of the motors by using the pulse-width modulation (PWM) signal. The PWM signals with different duty cycles is generated by the LPC1768 microcontroller. Four speed levels are determined by three switches as shown in Table i) Draw a flowchart to devise a program for the conveyor system based on the specifications above. ii) Write a program in \( \mathrm{C} \) using the Common Microcontroller Software Interface Standard (CMSIS) to implement the conveyor system based on your flowchart in i). Given the PWM's frequency is \( 10 \mathrm{KHz} \). iii) If an analog light sensor is connected to the conveyor such that the system is now able to detect the light intensity of the environment. Suppose that the system will immediately stop working when the light level is less than 100 lux. Write a sequence of codes to initialize the \( \mathrm{ADC} \) and stop the conveyor as stated above. Assume that 100 lux is approximately \( 2.3 \)-volt analog.
Table