Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: wany on November 29, 2010, 12:20:53 AM
-
So i am just wondering i seen circuit where people use LM293 as an H-Bridge to drive motor.
I am just wondering how to Hook up the L293 to do this. I have an idea but i am a bit uncertain and i just want to verify.
http://www.robotshop.ca/content/PDF/dfrobotshop-rover-schematic.pdf (http://www.robotshop.ca/content/PDF/dfrobotshop-rover-schematic.pdf)
This is a link to a Ardurio board hooked up with a L293. Where do you apply the PWM to which PIN.
Yes as you can tell i am bit confused I see it has two inputs i am guessing on inverting input and one is not.
So where do i apply the PWM pin D8 and D7 right. and I just drive pin D5 and D6 high. But then how do i get it to do the reverse. Yes i am pretty sure i have the idea behind this wrong since doesn't make much sense.
So please explain.
-
(http://arduino.cc/en/uploads/Hacking/Atmega168PinMap2.png)
To apply the PWM from PIN D5 and D6 to ENA and ENB of L293, these two pins are for Enable H-Bridge.
The pin D7 and D8 are for direction change.
-
Hi,
To apply the PWM from PIN D5 and D6 to ENA and ENB of L293, these two pins are for Enable H-Bridge.
Enable inputs shouldn't be used for PWM, since they're slower shifting - the drive signals should be the PWM signals.