
CRich
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
Upgrade to ARC Pro
Get access to the latest features and updates with ARC Early Access edition. You'll have everything that's needed to unleash your robot's potential!
I've got a Sabertooth as my main H-bridge, which works, but I need to be able to start / stop/ reverse another motor in the robot for a given duration (to be specific, I'm controlling a semi-automatic car antenna).
Using relays seems to be an option, but it seems like it'd be easier with an H bridge.
Can someone explain how to write a script to do this? or post an example?
Many thanks,
Frank
Yeah, use this file: EZScript-Examples-TwoHBridges.EZB
It uses a Script Manager to control the second HBridge. I used a Key Control to show how to turn on and off the second HBridge.
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.
Thanks,
Frank
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
Code:
Code:
Code:
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.
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
Scripting probably meets 99% of the needs though.
Alan
How many serial devices can I use with the EZ-B?
For example how many Sabertooth drives could it handle?
Rex
Every digital port can send serial, so lots... If you need to receive serial, than D0 plus the other two UARTS.
Alan
***Edit*** Rich is correct 25 ports for sending....
20 on the V3 however it is send only on all ports.
Looks like three of us posted at around the same time
Throw in a PIC or Arduino and you can use the I2C port for serial communication too, which would increase the number to a lot
Alan