I’m using an Arduino UNO and an SSC-32 to control 13 servos. As of now I’m going through each servo one at a time to document position (forgot to center a few of them when building the robot).
At first I was simply using the Arduino connected to one servo at a time, moving the servo with with the standard servo lib (ex. (myServo.write(90);)), documenting it’s position, then move to the next servo.
After doing this for a few servos I decided to use the SSC-32 to test the servos one at a time. I connected a jumper from RX on the SSC-32 to TX on the Arduino, and a jumper from ground on SSC-32 to ground on the Arduino. Baud rate is set for 9600 on the SSC32, I am using a 9V battery for VL and a 6V battery pack connected to VS1 (both power sources are fully charged).
First I tried using an SSC-32 Library that I found here: blog.martinperis.com/2011/05/lib … ssc32.html, but the servo goes to the position and shakes so bad I thought it was going to break.
I thought it might be the library I was using so I tried it w/o any libraries:
void move(int servo, int position, int time) {
Serial.print("#");
Serial.print(servo);
Serial.print(" P");
Serial.print(position);
Serial.print(" T");
Serial.println(time);
delay(time);
}
My serial output looks good: #0 P2100 T100 #0 P2100 T100 #0 P2100 T100 #0 P2100 T100
It was just as shaky as it was using the libraries. So I went back to hooking the servo directly to the Arduino and it worked fine. I’m stumped. Any suggestions would be greatly appreciated.
Thanks
Hard to tell from what you have said. Things I would check include, you say you have a 9v battery and 6v battery connected, but you did not say if you removed the VS=VL jumper. If not it would connect to two batteries to each other…
[attachment=0]20120521_133622.jpg[/attachment]
Thanks for replying. Sorry I forgot to mention that I did remove the VS=VL jumper. Here is a picture of the wiring. I thought I would have all the grounds connected by using the jumper from the ground on the SSC-32 to the arduino (beside the yellow jumper RX–>TX) . Thanks again for the help.
LOL Yup that is the one, but I’m not actually planning on using it for all of the servos, I actually just using it to test them one at a time. I’ve got a 7.2V 2000mAh battery I was planning on using when I get them all hooked up, I’ve just got to order another wiring harness from Lynxmotion which I will do today. I’ll give it a shot with the another battery; after I sent the last reply I started looking at the little black box and there is some corrosion on the springs, but I’m measuring approximately 6Vs with my multimeter. Regardless I’ll give the other battery a shot, I can steal the tracks wiring harness to test it. Thanks a bunch.
Ok… borrowed the wiring harness from the tracks, tried a 7.2V battery pack and a 9.6V battery pack, same results. For kicks I also disconnected the 9V battery from VL and added the VS=VL jumper using the battery pack as a shared power source; tests the same. I then removed the battery pack and added the 9V back to VL with the VS=VL jumper still in place using the 9V as a shared power source; tests the same.
Ok now this is really strange. I tested it on another servo and it worked fine, so I thought bad servo, but then I hooked the servo directly to the arduino and it worked fine… I’m beginning to think it’s possessed.
Corrosion on the springs will only make it worse. Do you have a 6.0vdc battery that you know is good? 7.2vdc is not good for servos unless you have the ones specifically designed for lipo. With the weird problems you are having you really need a good new freshly charged battery.
I do, I’ll try it when I get home. It seems all the servos are testing ok except that one, but it works ok with the Arduino. I’ll give it +6V when I get home and let you know.
Thanks