Project 1 - Controlling a DC motor using PWM and monitoring its Running status
Implement a system on the simulator for controlling a DC motor using L293 motor driver, monitor its status and print the running status of motor on the LCD Display.
ANSWER.
PROGRAM C CODE ATTACHED.
TCCR0: Timer Counter Control Register 0
bit-7 as 0
bit-6 WGM00-1 PWM,PHASE CORRECT METHOD
bit-3 WGM01-0
bit-5 COM01-1 NON INVERTED MODE
bit-4 COM00-0
bit-2 CS02-0
bit-1 CS01-0
bit-0 CS00-1
TCCRO-01100001-0X61 value loaded in program for wave generation.
OCRO value for 25% formula= 2XOCRO/510 X100
25% OCRO value = 510x50/200=63.5=64
50% OCRO value = 510x50/200=127.5=128
75% OCRO value = 510x75/200=191.25=191
100% OCRO value = 510x100/200=255=255
This speed of duty cycle increased by interrupt concept.Initally we load the value of 25% 64 and every time press the push butten increase the OCRO value and increase the speed of the motor.
Goals:
- Implement a system on simulator for Controlling the DC motor using L293 motor driver.
- Displaying the running status of DC motor on the LCD display.
DESIGN: Power Switch: OFF, Direction Switch: OFF, Speed Switch: OFF :: Motor is TURN OFF Condition

Expected Outcomes:
- Implement a system on simulator to control a DC motor using PMW
- Monitoring the running status of the DC motor using L293 motor driver which allows the DC motor to drive on any direction.
- Running status i.e. on which direction the DC motor is running is to be displayed on the LCD screen.
Power Switch: OFF, Direction Switch: OFF, Speed Switch: OFF :: Motor is TURN OFF Condition

25% SPEED Power Switch: ON, Direction Switch: CL, Speed Switch: OFF :: Motor is TURN ON Condition

25% SPEED Power Switch: ON, Direction Switch: ACL, Speed Switch: OFF :: Motor is TURN ON Condition

50% SPEED Power Switch: ON, Direction Switch: CL, Speed Switch: ON :: Motor is TURN ON Condition

50% SPEED Power Switch: ON, Direction Switch: ACL, Speed Switch: ON :: Motor is TURN ON Condition

75% SPEED Power Switch: ON, Direction Switch: CL, Speed Switch: ON :: Motor is TURN ON Condition

75% SPEED Power Switch: ON, Direction Switch: ACL, Speed Switch: ON :: Motor is TURN ON Condition
