a quick question
i have been trying to modify the beo bot code to work with a duel h bridge with no success
the code i was had used to base off of is below
the code i was had used to base off of is below
Comments
Servos don't work with H bridges, motors do.
Could you use the attachment manager to attach the actual code that does not work.
The code you included is not designed for an H bridge.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
www.solarbotics.com/products/gm4/
link to something like the motor
i know the code is not ment for an H bridge
i was asking how to modify the code to work with an H bridge
that was the base code that i had started from
H bridges are simply circuits that provide voltage across a motor or other load.
Servos require pulses of different widths to set their positions (see all of those "PULSOUT" commands in the servo control code that you attached). An H bridge doesn't output pulses.
What are you trying to accomplish? Are you simply wanting to learn about H bridges? Or are you replacing the continuous rotation servos with a pair of DC motors? If the latter, you should be able to drive them by connecting the H bridge outputs across the motor terminals, then setting the H bridge's enable pin high, and setting one of the inputs high should turn the motor one way, and setting the other one high should turn it the other way. Remember to set the bridge inputs low again after using them: if they're both high, nothing happens.
Post Edited (sylvie369) : 5/27/2009 11:16:07 AM GMT
i would be replacing the servos with dc motors
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
i had made the h-brige
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen