Hi my name is Ron. This blog is about projects related to microcontroller, and computers. Also about some of my experiments.
I am little bit of a hobbyist for photography and writings.
www.rakeshmondal.info
Showing posts with label DC motor control. Show all posts
Showing posts with label DC motor control. Show all posts
This video is a demonstration of a LOW RPM High Torque DC motor interfaced with a PIC18F4550 microcontroller through aL293D Motor Driver circuit for a small tutorial robot. The pulses generated on the microcontroller pins are interfaced to the L293D which is guiding the Motor to run in Clockwise, Anti clockwise or Halt.
The low rpm and high torque of this dc motor makes it perfect for robotic applications. To increase the torque at the wheels, sometimes additional gears are necessary, but this specific high torque dc motor comes with an in built gear mechanism, providing necessary torque. This video shows a demonstration of the DC motors working before the entire circuitry was installed on a 4 wheel differential drive robot.
The motor is operating on 12 Volts which is managed by the L293D, however the power to the microcontroller is being provided by same power source with a IC 7805voltage regulator to keep input voltage to microcontroller strictly at 5 Volts.
The microcontroller is coded with Mplab X IDE and XC8 Compiler.
To read the basics of Motor Driver Follow my Motor Driver Link
A small application is controlling my pic18f4550 USB interface board with my computer, enabling me to control my board with keyboard. The output the microcontroller is given to the input of a l293d motor controller , hence enabling me to control my DC motor in ( forward / reverse ) that is Clockwise and Counter Clockwise | anti-clock (cw/ccw) direction. For more info please watch my previous post on L293d motor controller. It must give you some idea if you a complete beginner.
Please watch both the video below for its demonstration.
If you really interested in robotics and controlling (electronics) stuffs then one of the most basic thing is to control devices like DC Motors, Stepper Motors , Servo (with pwm) etc. which one of the important topic in robotics.
Today I am going to show you some basics of L293D DC motor controller, Its a integrated circuit that enables you to control motor rotation ( forward / reverse ) that is Clockwise and Counter Clockwise | anti-clock (cw / ccw). I will provide the basics in this post and in my next posts I will show you working and application of this L293D motor Driver interface with a microcontroller ( PIC18F4550 microcontroller )
You can find the pin diagram of l293d motor drive with a short Google, the chip is kind of self explanatory when you see the pin diagram. With one single chip you can drive two DC motors to rotate in forward/ reverse direction on your command.
This chip understands only logic 0 and logic 1 signals as input control signal , we are going to generate the logic 0 and 1 with the help of a pic18f4550 microcontroller, (in my next post), the logic 0 and 1 will be fed to the input of the l293d and motor will be connected to the out pins of l293d.
There are two inputs and two outputs on either sides of the chip, both sides of the chip can control one motor each. so a single chip can operate two DC motors.
Each operational unit has to be activated or enabled before you can use it. So connect the pin1 (chip enable) to VCC if you wish to use to activate one side, and so as another "chip enable" pin in you want to use second operational unit.
NOTE: Connect all GND to common ground , and DO NOT FORGET to connect the GND of microcontroller with l293d GND.
In my next post I will show its demonstration with a pic18f4550 USB interface board , computer USB and keyboard controlled DC motor with L293D.