05-05-2017, 10:08 AM
Principle of the circuit:
The maximum output current of the microcontroller pin is 15mA to 5V. But the power requirements of most DC motors are out of range of the microcontroller and even the electromotive force that is produced by the motor can damage the microcontroller. Therefore it is not good to connect the DC motor directly to the controller. So use the motor driver circuit between the DC motor and the controller.
Circuit diagram:
Circuit Components:
• microcontroller at89c51
• PCB Board
• programming cable
• Battery or 12V DC adapter
• L293D motor controller
• DC motor
• Electrolytic capacitor - 10uF
• 2 ceramic capacitors - 33pF
• Resistors 10k (1/4 watt) - 3
• Push buttons - 2
• Connect the bulls.
Circuit design:
The main components in the above circuit diagram are at89c51 microcontroller and motor controller. Here the input pins of the motor controller IN1, IN2 are connected to the P3.0 and P3.1 respectively to control the motor directions. The DC motor is connected to the output terminals of L293D. The EN1 pin is connected to the 5V DC to drive the motor. The switches are connected to P2.0 and P2.1 in pull down configuration. The first switch turns the motor clockwise and the second switch rotates the motor counterclockwise. The eighth pin of the motor controller is connected directly to the battery.
L293D Motor Driver:
L293D is a quadruple H bridge motor driver, as its name suggests that it is used to drive DC motors. This IC works based on the H-Bridge concept. The H-bridge is a circuit that allows the voltage in any direction to control the direction of the motor.
There are 4 input pins for L293D. The motor addresses depend on the logic inputs applied to these pins. EN1 and EN2 must be high to operate the 2 DC motors.
The maximum output current of the microcontroller pin is 15mA to 5V. But the power requirements of most DC motors are out of range of the microcontroller and even the electromotive force that is produced by the motor can damage the microcontroller. Therefore it is not good to connect the DC motor directly to the controller. So use the motor driver circuit between the DC motor and the controller.
Circuit diagram:
Circuit Components:
• microcontroller at89c51
• PCB Board
• programming cable
• Battery or 12V DC adapter
• L293D motor controller
• DC motor
• Electrolytic capacitor - 10uF
• 2 ceramic capacitors - 33pF
• Resistors 10k (1/4 watt) - 3
• Push buttons - 2
• Connect the bulls.
Circuit design:
The main components in the above circuit diagram are at89c51 microcontroller and motor controller. Here the input pins of the motor controller IN1, IN2 are connected to the P3.0 and P3.1 respectively to control the motor directions. The DC motor is connected to the output terminals of L293D. The EN1 pin is connected to the 5V DC to drive the motor. The switches are connected to P2.0 and P2.1 in pull down configuration. The first switch turns the motor clockwise and the second switch rotates the motor counterclockwise. The eighth pin of the motor controller is connected directly to the battery.
L293D Motor Driver:
L293D is a quadruple H bridge motor driver, as its name suggests that it is used to drive DC motors. This IC works based on the H-Bridge concept. The H-bridge is a circuit that allows the voltage in any direction to control the direction of the motor.
There are 4 input pins for L293D. The motor addresses depend on the logic inputs applied to these pins. EN1 and EN2 must be high to operate the 2 DC motors.