
PRO
Herr Ball
USA
Asked
— Edited
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?
https://synthiam.com/Tutorials/Help.aspx?id=173
Says to hookup as "Simplified Serial Mode at 38400 baud rate"
While
https://synthiam.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
@rgordon
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
Jim, it is good to know that the intermediate values between stopped and max do allow for speed adjustment. May need to do my navigation through scripting instead of Movement Panel if the H-bridge panel doesn't allow for speed control, but at least it is doable.
Alan
You can adjust the values to control speed but only when you bring up the config screen and type them in. Say for instance to change the speed of the left motor (forward) choose any value between 64 and 127. ......64 being full stop and 127 is full speed.
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.
Thanks @rgordon. I saw your other thread, so I knew you have had some success with the Sabertooth. I think I need to install ARC on my work computer just so I can play with scripts and stuff when I have free time - although today, I seem to just be wasting time talking to you guys instead of getting work done, so maybe that isn't such a good plan
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
@rgordon
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
@Herr Ball,
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:
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
I have been looking at more of the controls in EZ-B and it looks like the Custom Movement Panel may do exactly what we need. I will be testing it soon.
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)
It would be nice to be able to change the values, in the Sabertooth Serial Movement Panel with a script. 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?