Asked — Edited

2 H-Bridges?

Hello all,

I am trying to connect 2 H-bridges to my EZ-B. I followed the online tutorial and successfully connected 1. However, when attempting to connect the 2nd one I ran into some trouble.

The second H-bridge would only move one servo, in the up, down, and "stop" positions ... odd. The other servo showed no movement

I want 1 bridge to control forward and backward movement, b/c these two servos will be dedicated to only F and R

The other bridge is to control left and right movement.

Please advise me,

Thank you


ARC Pro

Upgrade to ARC Pro

Elevate your robot's capabilities to the next level with Synthiam ARC Pro, unlocking a world of possibilities in robot programming.

#17  

Awesome, gonna get on this tonight! Thanks DJ!

#18  

DJ: I read over your script and see what you have done, but I have a question along the same lines, except I want to control two small motors in the wrists on my robots arms to rotate the hands. But instead of using the arrow keys, how do I go about using the voice command to do it. I know how to do it using servos, but I can not get servos small enough for this porpose , so I have to use Small gear motors which requires a 2nd H-Bridge.

I already have the Sabretooth Clone H-Bridge controlling the drive wheels. I need the second one to control the motors in the wrists.

Dan S.

#19  

Its been awhile since I enquired about using 2 H bridges. Has anything changed since then to make it easier to program, or is the scripting DJ talked about still needed?

Thanks,

Frank

#21  

You can just use a second sabertooth or Syren (if you only need to drive one motor)... Sabertooth/Syrens are dead easy to use and only require one port to operate...

United Kingdom
#22  

It's pretty simple to script a H-Bridge to move one motor forward and reverse.

Just hook up the one side as normal (Signal to In1 and In2)

Then have 3 scripts, one for forwards, one for reverse and one for stop.

Assumed In1 on D8 and In2 on D9 with the jumper providing 5v to EnA


# Forward
Set(D8, Off)
Set(D9, On)


# Reverse
Set(D8, On)
Set(D9, Off)


# Stop
Set(D8, Off)
Set(D9, Off)

Then ControlCommand to set the script going for movement or stopping.

Or, you could use 2 TIP transistor circuits, one for each direction, however the setup is likely to me more complex than a simple L298n H-Bridge set up described above.

#24  

Thanks. Ah, but it's not so simple for the feeble minded folks like myself:). I should have studied harder in high school!

I already have a Sabertooth for my wheels-- if I get another one for the other part of my robot, can I simply add a 2nd sabertooth control in the software? I have a 2x12 Sabertooth for the wheels but I'm guessing the other motor (a car antenna) could get by with a weaker version of the Sabertooth.

The other option I'm considering is using 2 relays to move the antenna motor back and forth. I don't need speed control and I think I have a 4 channel relay lying around somewhere. More simplistic control over how far the antenna extends, however would be desirable-- would an H bridge make that any easier for me?

Thanks again,

Frank