
Dunning-Kruger

So I got my Kangaroo x2 board and I am trying to test it using basic serial command... I have been using this sample code (below)... I think I have the dip switches right (maybe not), but all the motor does is spin at about half speed... and nothing sent from the EZb does anything... See the picture to see if I have everything hooked up right... not sure what I am doing wrong... Can't even stop the motor from spinning... As soon as I plug in the Kangaroo and add power, the motors begin to move? I haven't read the entire Kangaroo manual yet, so maybe I am missing something... The sabertooth 2 x 12 is ver 1 that I bought 2 years ago... Maybe I need a newer one?
Dip switchs on the Kangaroo is 1=on the rest off... The Sabertooth has 1,3,5,6 on and 2,4 off
SendSerial(D0, 9600, "D,p2450 s800", 0x0d, 0x0a)
SendSerial(D0, 9600, "D,p3675 s800", 0x0d, 0x0a)
SendSerial(D0, 9600, "D,p1225 s800", 0x0d, 0x0a)
D0=EZ Robot Port
9600=Baud
D=both Motor Channel
Pxxxx=Position
sxxx=Speed
0x0d=Return Key *
0x0a=New Line*
Richard
Still have little time till later but without looking this over closer I think you may still have the dips set wrong. If you have it set up as a closed loop system you need to have a feedback device like a pot hooked up to a motor and jangaroo and ready. If not you may have a runaway issue. Did you do the training mode yet?
Cheers
Richard
I found that you need to have everything hooked up and ready to go first before you can get this to work. At the very least you need your motor, Control signal and a feedback device like a pot or encoder attached before you power up. The first time I powered up I had a runaway also. This is from the manual:
Code:
Once you have all that set and all your dips set properly on both the Kangaroo and the Sabertooth only then can you try a Autotune. The directions in the manual to start a tune are confusing also. There are several tuning modes,
1. Teach Tune - Move the mechanism to define the tuning range (one LED Blink)
2 - Limit Switch Tune, Normally closed limit switches define the tuning and operating range (2 LED Blinks)
3. Crash Limit Tune - Physical stops define the tuning and operating range (3 LED Blinks)
4. Input Calibrate Mode - This mode calibrates the R/C or analog inputs. (4 LED Blinks)
Hold the small button down for a couple seconds until the LED starts to blink slowly one blink at a time. The number of blinks correspond to what mode you want. To get to the next tune mode hold the button down again for a couple seconds. then it will start to blink slowly two blinks, exc, exc,
Now when you get to the Autotune you want push the button once quickly and it will start to blink quickly corresponding to the tune your in. like 2 fast blinks, 2 fast blinks, 2 fact blinks.........
To start the tune push the button quickly again and the led will light steady for a second then start blinking quicker like a count down. Get out of the way because the Autotune will start moving the motor back and forth for a few minutes. Kinda fun to watch really.
If the tune is successful the motor will stop and the led will be lit steady. Power cycle the unit before you start to try to use it.
Hope that is clear. good luck and let me know how it works.
This evening I also found that in velocity mode the Kangaroo wont accept servo commands from EZB. Don't know if it's my set up or the way EZB sends out the servo pulse. *confused*
Dave
Again, thanks for your help...
Richard
I am surprised that as long as they have been out there is not more about them
Keep up the work on getting your Roo to work. It's a cool device and well worth figuring out.