Dc motor direction control with 8051 microcontroller
One another method is to use an h-bridge circuit that can provide much greater amount of current and can be used to control the direction of motors(Dc, stepper, servo).One more advantage of using H-bridge is, we can change the polarity of the current by changing the input logic, this property of the h-bridge make’s our motor to run in both forward(clockwise) as well as backward(anti clockwise) direction.
I am going to power, rotate and change the direction of motor by utilizing the second method. H-bridge circuit can be made by using four transistors or mosfets. Making an H-bridge circuit makes a lots of mess on bread board. Its better to purchase one. They are cheap and affordable.
L293D motor driver IC is a replacement of H-bridge circuit and i am going to use it in the project. L293d contains an H-bridge circuit in it. Its small in size, no extra components are required with it. Only a single chip can perform an H-bridge functionality.
L293d motor driver driving dc motor by 8051 microcontroller
Project Circuit Diagram
L293d with 8051 microcontroller interfacing/wiring circuit
8051 microcontroller dc motor direction control – Project code
- When Pin#0 is high and Pin#1 is low, motor rotates in clock wise direction.
- When Pin#1 is high and Pin#0 is low, motor rotates in anti-clock wise direction.
- When both Pin#1 and Pin#0 are low or high motor halts.