Speed and Direction Control of DC Motor using Micro-Controller

Introduction:
The idea was to construct a motor drive which could interface a DC motor with a micro controller, the main objective was to vary the speed of the motor via PWM (pulse width modulation) in response to a varying input to the microcontroller. Besides to be able to reverse the direction of the motor in response to single bit digital signal.

Schematic:

becomes necessary. which generates duty cycle according to the values set by the user by varying the resistances connected across the pin 6 and 7 of the 555 timer. The ontime of the signal can be varied by using the formulas: Ton = 0. Diodes Resistors. Several capacitors and diodes have been connected in the circuit whose purpose mainly is the immunity from noise and protection from over-voltages. L293D. Capacitors DC Motor    Procedural Description: The 555 timer is connected in Astable Mode. Thus the use of current driver. 555 timer provides around 40mA of current. From the 555 timer. the output is forwarded to the current driver. which the 555 timer doesn’t provide.Components Used:   555 Timer: Used for generating Pulse Width Modulated Signal by varying the values of Resistors. and the output of the current driver is connected to the two ends of the motor. L293D Current Driver: Used for increasing the current.693C(RA + RB ) Toff = 0. whereas the speed of DC motor can be easily varied by changing the duty cycle of the PWM signal. hence the PWM signal. as the DC Motor requires current around 200mA.693C(RA) So if we vary the values of the resistances accordingly. the speed and direction of the DC motor can be controlled. In this way. L293D increases the current delivering ability of the circuit for the dc motor. L293D. The direction of the dc motor can be varied by using the switches connected in the circuit. . we can vary the duty cycle.

Appendix Pin Configurations of ICs: Pin Configuration of L293D .

Sign up to vote on this title
UsefulNot useful