Award
Congratulations merne, for answering the question and has received an EZ-Credit award! Share what you have learned and create a tutorial to help others by clicking here.

Assistance Requested

Help spurgco with their question and receive $10 of EZ-Credit to get more robots and parts from our store. The following information was provided about their previous efforts searching tutorials for a resolution.

Product: (click to view product details)

EZ-Builder Controls: (click to view manual page)

spurgco claims to have checked these sources:
 
#1

OK, so I have reached a bit of an impasse and need to reach out to the community.
I am building a full size K-9. I have got him down to movement now.
I am using an EZBv4wifi Sabertooth 2x25, Razor 100w 24v 9tooth Chain drive scooter motors and wheels. The system is running on 12v.
I have setup the Sabertooth Serial Movement Panel, have it tied to the correct port and using 9600 (though I have also tried 38400). I have verified the jumper settings for 9600 (1-U, D, U, D, D, U). I have even obtained a Logitech controller to better test the issue (the 710). I reviewed a few Sabertooth related posts, not the least of which was https://www.ez-robot.com/Community/Forum/Thread?threadId=8899.

I was troubleshooting erratic behavior, but that seems to be tech induced as I had wired the Sabertooth Signal, 5v, and 0v back through the EZB using one of the inline regulator cables (the 5v servo cables). Then i noticed the 5v POS isn't hooked up to this controller and removed it from the circuit.

At that point the motors started working more like what i want, but not quite right.
While it may be more of a Controller thing, the D-Pad is the only thing that engages the motors. That I can live with, though I though it was weird.
The problem I have right now (and it persists on mobile AND desktop) is both motors fire in the same direction regardless of the D-Pad arrow I press. Also, when I press LEFT Arrow, it clicks one motor but neither fire.

So I can only go forward at this point, and use 3 of the 4 D-Pad arrows.

Can anyone suggest where I am going wrong?
Do I need to build a custom Movement Panel?
Is the Sabertooth Serial Movement Panel just set the port, set the speed, and thats it?

Sidenote, I cant figure out the bounty system. There doesn't appear to be a flag.

User-inserted image

User-inserted image

User-inserted image



K-9TESTINGBED.EZB

I have found a few conversations, tutorials and activities that may help with your question. Take a look at these links. I've sorted them by what I believe to be most relevant but that is not always the case as I'm still learning.


Also, consider reviewing the Learn section for informative lessons and activities. Check it out!


#2

Nice looking K-9, I'm not the smartest on this forum, but I will try to help you.

Quote:


Do I need to build a custom Movement Panel?
Is the Sabertooth Serial Movement Panel just set the port, set the speed, and thats it?



Do I need to build a custom Movement Panel?
= YES
Is the Sabertooth Serial Movement Panel just set the port, set the speed, and thats it?= NO

you also say you have the 2x25 set to 9600 but the dip switches are not set for 9600.
Steve' G's post says....
Simplified Serial at 9600 Baud Rate.

Switch 1 Up,
Switch 2 Down,
Switch 3 Up,
Switch 4 Down,
Switch 5 Up,
Switch 6 Up.

In the custom Movement Panel config :
Stop command= sendserial(d0, 9600,0) #both motors stop
Forward connamd=
sendserial(do,9600,127) #left motor forward
sendserial(d0,9600,255) #right motor forward
Reverse command=
sendserial(do,9600,1) #left motor reverse
Sendserial(do,9600,128) #right motor reverse
Right command= sendserial(do,9600,127)
sendserial(do,9600,128)
left command= just reverse the 127 and 128 on the right command

I found using 9600 worked the best for me.

I am not sure what you mean when you ask...

Quote:


Sidenote, I cant figure out the bounty system. There doesn't appear to be a flag.




I hope this helps and maybe Richard r and the others might jump in to help.

Cheers,

#3

I just noticed the motors are 24V and you said you are using a 12 V battery, not sure if they will run on 12V? Someone with knowledge should know.

#4

@Merne the 24v motors can run @12v. I have the same ones (belt drive) running in my R2.
Trying the custom panel with you notes now.

#5

You don't need the custom panel. You do need to set the port settings to match the Sabertooth panel (nothing wrong with doing a custom panel if it meets your needs, but the Sabertooth panel has speed adjustment and speed ramping when used with a joystick, so is better once you get it running).

Alan

#6

OK, almost got it! My motors are turning the right way except I seemed to have messed up the left serial.

I went over the other forum post and added:

SendSerial (d23, 9600, 255)
SendSerial (d23, 9600, 1)

and that did it.

If I may, while I have your ear, Is there a way to slow the motors down?
I trimmed the "speed" setting on the Custom Movement Panel, but it doesnt seem to have an effect (or at least not a demonstrable one). Perhaps I am not trimming it down enough. I went from 255 (the default) to 60.


User-inserted image

Also, thanks for the compliment. Let me say in kind, THANK YOU VERY MUCH! I have been fighting this for a couple days. I was preparred to head to Frys in the morning, grab an Arduino Mega and flash it with an Astromech sketch to validate the Sabertooth. You have saved me time and money! I appreciate it.

#7

@Alan I will try the Sabertooth Panel again now that I have a verified operational config. Thank you all for your help , on a weekend no less =)

#8

Cool glad it's working.

Hum, this I am not sure. You could use the getspeed command to see what the speed says in the variable

Www.ez-robot.com/Tutorials/Help.aspx?id=182 or click on the ? On the upper right hand side of the custom Movement Panel.

In the variable viewer when you will see get speed command and it will show you what speed it has but I'm thinking it might show what you have in your picture but you might try it. By the way I just looked at your pictures again and see your R2 very nice also maybe a video of R2?

Maybe @ thetechguru might know but I have never tried this before my motors are slow to begin with, sorry I can't help you on this.

Cheers

#9

The reason the speed control isn't working on the customer panel is because it doesn't control the values of the serial commands which is how the Sabertooth controls speed, so again, using the Sabertooth panel will be better for your needs. Good that you got the settings straight with the custom panel though, sometimes being able to see what the actual commands being sent are can assist in troubleshooting, and the Sabertooth, being so configurable, can lead to a lot of confusion.

Alan

#10

@Alan, so if a user does use the saberthooh Movement Panel without a joystick, a person would have to use scripting to control the speed/ ramping?

Thanks