Using an H-bridge motor controller
bulkhead
Posts: 405
I plan to drive a few motors with a few L293D motor drivers (from www.solarbotics.com). Are there any VP's or predefined classes that deal with using H-bridges?
Also, it says for this H-bridge that it has "back-emf diode protection." Does this mean that my Javelin is safe from interferance? Do I need to take any other measures to protect my Javelin incase the H-bridge overheats (and melts)? Right now I have 220 ohm resistors on each of my Javelins pins, so that should be sufficient protection in case of a short if the L293D goes out?
Thanks.
Edit: Ok, I did some research, and if I am correct, I can simply wire the L293 for single wire control (1 per motor)? It says it can be wired so that setting the pin to Vcc and Gnd make the motor rotate in its respective directions (cw and ccw) and nothing at all is "brake". Then, to "pulse" the h-bridge, I can use the PWM class?
Does it matter how often I pulse it? For example, I can have a high time of 100 and a low time of 100, or a high time of 10 and a low of 10. Each should result in the same overall time that the motors are turned on, but the second has a 10x faster "pulse rate."
Post Edited (bulkhead) : 2/26/2006 7:37:26 AM GMT
Also, it says for this H-bridge that it has "back-emf diode protection." Does this mean that my Javelin is safe from interferance? Do I need to take any other measures to protect my Javelin incase the H-bridge overheats (and melts)? Right now I have 220 ohm resistors on each of my Javelins pins, so that should be sufficient protection in case of a short if the L293D goes out?
Thanks.
Edit: Ok, I did some research, and if I am correct, I can simply wire the L293 for single wire control (1 per motor)? It says it can be wired so that setting the pin to Vcc and Gnd make the motor rotate in its respective directions (cw and ccw) and nothing at all is "brake". Then, to "pulse" the h-bridge, I can use the PWM class?
Does it matter how often I pulse it? For example, I can have a high time of 100 and a low time of 100, or a high time of 10 and a low of 10. Each should result in the same overall time that the motors are turned on, but the second has a 10x faster "pulse rate."
Post Edited (bulkhead) : 2/26/2006 7:37:26 AM GMT
Comments
http://downloads.solarbotics.com/PDF/kit10.pdf
As you find out:
The last schematic on page 10 shows a single line interface for
a manual switch. I think you can replace that switch by a javelin I/O pin:
high output for rotation one way, low output for rotation the other way,
input (high impedance) for brake.
You can protect the javelin I/O pin with a 100 ohm resistor.
I think 220 ohm may be too large compared to the 1kOhm in the schematic.
I don't think you can use PWM with the single line interface.
PWM toggles between low and high outputs which means the motor direction
switches twice every pwm period, probably resulting in no rotation at all.
regards peter
http://www.eckhard-gosch.de/download/driverapp.pdf
regards peter
·
regards peter
Looking at the L293D, I found the L298. It can handle more current, but requires "back-EMF protection diodes for chip protection". Is this done with 2 diodes, both connecting from D1 to D2 (the motor's 2 wires), but each in opposite directions? Would an LED work for this, or is there some other "diode" that I should use?
Thanks.
You might also want to look at "http://www.oopic.com/odcmotor2.htm". It explains how to use active motor braking.
Have Fun, botguy
go troy?