
Herr Ball
Hey all
I am attempting to hook up my Sabertooth 2x25 but am a little confused here.
Have read two different places here how to connect?
http://www.ez-robot.com/Tutorials/Help.aspx?id=173
Says to hookup as "Simplified Serial Mode at 38400 baud rate"
While
http://www.ez-robot.com/Tutorials/Hardware.aspx?id=26
Says "EZ-Robot suggests connect Sabertooth Motor Controllers in R/C mode. This allows the user to control the motor speed and direction with the Modified servo Movement Panel. "
I believe that the second link is what is needed as speed control is a must.
I don't want to use a joystick just the EZ-board.
Any thoughts here?
Herr
Alan
I have been messing with it for most of the night and can't figure a way to get speed control using the serial mode.
It's getting late here, 1:30 am lol, so tomorrow is another day.
Maybe I'll crack it in my sleep ... lol
Herr
Alan
edit... I may have mis-read. It may support speed control, it just isn't as clear as it is with packetized serial. They give values for full reverse, stop, and full on, but don't say one way or another for values between them. They could be speed values.
Still hoping DJ or someone else can confirm.
Alan
One time the motor would go forward and one time it would go backwards, never could zero it in!
Hopefully someone that has gotten it to work will see this and clear up some things.
Herr
Jim
I hope some others can be helped out from your post but for me I'm not wanting to use any joystick or game pad.
I'm sure there is a way to do this but just can't find it.
Herr
I'm using the HBridge/Sabertooth Serial Movement Panel. A screen shot of its config is attached. These values as far as left/right and fwd/rev could be different on your Sabertooth controller depending on how you connected the motor wires.
Left Motor = 1 to 127 (Full Rev = 1, Stop = 64, Full Fwd = 127)
Right Motor = 128 to 255 (Full Rev = 128, Stop = 192, Full Fwd = 255)
Sabertooth Dip Switches, 1, 3 & 6 set ON (Mode 3, 38,400 Baud Simple Serial)
EZ-B D8 signal wire to Sabertooth S1 input
Also see this thread about how I get it to switch between EZ-B control and R/C control
Dip Switch Configurator Circuit
The values you set allow different speed settings, but not active speed control, or are those the max settings, and the Movement Panel adjusts the speed between those values as needed?
@Herr Ball and I are both looking for how to adjust the speed when using the 2x25.
Alan
Alan
I have not tried using script to control these values but I would definitely want to learn if someone could give an example or point me to one. I am at the point now where I am needing to learn how to write custom scripts.
I also wanted to be able to take over remote control of the robot with my Spektrum DX6 handheld transmitter or swap back to EZ control on the fly. See the thread I mentioned earlier for info on that.
I really like your idea of being able to switch between robot and RC control. I plan to use my Android phone as a remote, through ARC, but it has limited battery life, so having an alternative would be good (I am also going to have a wired joystick, foot pegs, and handholds, so I can ride the robot if I want, so I don't NEED 2 remote options, but still, like the idea a lot).
Alan
I followed your example/diagram on page 1 and things are looking good so far
Not finished yet but I now have a good idea what needs to be done.
Forward/reverse are working great and now trying to get the right/left turn down, a little tricky.
Of course the robot is sitting up off the floor as it would not be pretty if this thing gets loose
I figure once the weight of the robot gets put on the wheels more tweaking will be needed.
I am using electric scooter motors and they can really do some moving in top speed ... lol
I'll let you know how things turn out when done.
Thanks to you and thetechguru for the help, GREATLY grateful
Herr
Good idea to have some kind of Panic switch or Kill switch when you do set him on the floor.
Yeah I had to experiment with the the FWD and REV values to get the robot to move in a straight line. I also came up with different values for example:
1. full speed FWD, slow REV, and full speed turns.
2. full speed FWD, slow REV, and slow turns.
3. medium speed FWD, slow REV, and medium speed turns.
yada...yada...yada.... you get the idea.
Anyway, I face the same problem you guys do. I want the robot to be able to vary its speed as needed depending on its current environment and/or obstacle encounters. I am wanting to start learning how to use script and hope that there is a way to do this. I will be needing this soon when I start experimenting with my battery charger docking project.
Battery Charger Docking Project
Forward( [speed], [milliSeconds] )
Using a Movement Panel Control, this will start your robot in the Forward direction.
Optionally, you can provide the speed and/or number of milliseconds to move.
You will require at least one Movement Panel to be configured within the project. This function will control that movement panel.
Speed is a number between 0 and 255
Example: Forward()
Example: Forward(200)
Example: Forward(255, 5000)
Reverse( [speed], [milliSeconds] )
Using a Movement Panel Control, this will start your robot in the Reverse direction.
Optionally, you can provide the speed and/or number of milliseconds to move.
You will require at least one Movement Panel to be configured within the project. This function will control that movement panel.
Speed is a number between 0 and 255
Example: Reverse()
Example: Reverse(200)
Example: Reverse(255, 5000)
Stop()
Using Movement Panel Control, this will stop your robot.
You will require at least one Movement Panel to be configured within the project. This function will control a movement panel.
Example: Stop()
Left( [speed], [milliSeconds] )
Using a Movement Panel Control, this will turn your robot left.
You will require at least one Movement Panel to be configured within the project. This function will control that movement panel.
Optionally, you can specify the speed and/or number of milliseconds to turn.
Speed is a number between 0 and 255
Example #1: Left()
Example #2: Left(200)
Example #2: Left(200, 5000)
Right( [speed], [milliSeconds] )
Using a Movement Panel Control, this will turn your robot right.
You will require at least one Movement Panel to be configured within the project. This function will control that movement panel.
Optionally, you can specify the speed and/or number of milliseconds to turn.
Speed is a number between 0 and 255
Example #1: Right()
Example #2: Right(200)
Example #2: Right(200, 5000)
That would do for adjustable speed, right?
ex. Robot move fast, change the values to increase/decrease numbers to preset values or robot move slow to decrease/increase the values to preset values.
Do you think that would work?
Wonder if DJ could do that and how hard/time consuming that would be?