My servos are not doing what i want(I am new to the ssc-32)

I am not at all experienced with an ssc-32, I have eights servos, and I only want one to move on pin 7, three or four are moving as fast as they can. Here is my program, I have an atom pro and bb2[code]aa var byte

main
for aa=0 to 9
serout p0,i38400,"#7", DEC2 aa\1, “P”, DEC 1500, 13]
next
serout p0,i38400,"#7 P2100 T1000",13]
pause 6000
goto main[/code]

I think your problem is in your first serout, since you have a number between the pin number and the “P”, the SSC-32 would read that as pins 70-79, which don’t exist. We’re not quite at the SSC-96 yet. :laughing:

If you’re trying to use the aa variable to pan the servo, then you could try something like this:

[code]aa var byte

main
for aa=9 to 0 step -1
serout p0,i38400,"#7 P", DEC ((aa*100)+1100), 13]
pause 20
next
serout p0,i38400,"#7 P2100 T1000",13]
pause 6000
goto main[/code]

but it would help if we knew what you actually wanted it to do…

I just want the servo to move to position 2100 in one second. I don’t really know the significance of the first serout, but i saw it in a sample program, and it said that its purpose was to turn on the servos, so I assumed that it would work. :confused:

Fish I think the first loop is supposedly initializing the 1st 10 servos to 1500mS, but I don’t think it’s coded quite right. What is the “#7” part of the string for? I would have thought it would just be “#”, DEC aa\1, “P”, DEC 1500, 13], which will send them there at max rate like doing an “ALL 1500” in lynxterm. Then add a short delay of maybe 250mS to allow them to arrive at 1500mS, followed by the “#7 P2100 T1000”,13] line.

…and the light switches on :bulb:
not really sure how I missed that :laughing:

Ah, I see. But you can’t begin with a timed move, since the servo could be in any position. So, what you have to do is initialize the servo in a known position, such as 1500ms, or wherever else you would want. Then you can move from there.

Is something like this what you had in mind?

[code]
aa var byte
for aa = 0 to 7 'activates and centers servos 0-7(you said you had 8, right?)
serout p0,i38400,"#", dec aa, “P1500”,13]
next
pause 200
serout p0,i38400,"#7 P2100 T1000",13]
pause 1000

end[/code]

yes! thank you! :slight_smile:

SSC-96… Imagine the possibilities! Three of those can make you a 3DOF/leg centipede!