Problem with SSC working with Bot Board

I followed the tutorial here:
lynxmotion.com/images/html/proj51a.htm
and I used lynx motion ssc-32 terminal and checked that the servos works.
I connected the 2 boards in the following format:

taking off the RX jumper to connect the RX and GND on the SSC to the TX and GND on the Botboard.
baud set to 38.4k
However, when I try running this code:

[code]serout 15,6,"#0 P1500 #1 P1500 #2 P1500 #16 P1500 #17 P1500 #18 P1500",13]

start:
goto start 'loop[/code]
nothing happens, even if I move the servo off center-
I am using a biped
Am I doing something wrong?
i’m still using the BS2 btw.

From your picture I do not see any wire connected between IO Pin 15 on the Mini ABB board to the RX pin of the SSC-32

Kurt

well, I do have IO 15 connected to RX and GND on the SSC-32, I just borrowed this image from the forum.

Which processor are you using?

intel pentium D on XP
the bot board works fine by itself and can move the servos.

roflmao! :smiley:

I meant which processor are you using on the Bot Board. It’s ok I missed above where you stated you’re using the BS2.

So you are saying you can control the servos with the SSC-32 with a PC using Lynxterm, but you can’t control the SSC-32 from a BS2?

Nothing else has changed? Same power supply etc.?

The LED on the SSC-32 ever go out?

yep, lynx-term works fine with a pc and BS2 works fine by itself with the pc. Its just that the BS2 can’t control the SSC-32, I can still tell the the bot board is working fine because I can control servo motors connected to it(while both boards are together).

So is the connection the problem here?
I have the yellow wire from BB2 connected to RX and GND to GND. And I left the jumper on TX for SSC-32

As for the power supply,
When the boards are used separatedly they only have one power source. The BB2 has a 9 volt and the SSC-32 has a 6 volt on VS1.
When I connect the 2 boards, those power source remain.
The LED on SSC-32 is out, it doesn’t even flash when I run the above code

Not likely the connections. They’re just too simple.

The LED on the SSC-32 is not a power indicator, but a status indicator. It should light up initially, and stay lit until it has received serial data. Then it will blink when it’s receiving data. I think you have a power issue. Because you are using a 9vdc battery to power the Bot Board, I would route it to the SSC-32’s VL terminal. Remove the VS1=VL shorting bar, but I suspect it is removed already.

Let’s get the SSC-32’s LED to light up first. That’s the main goal right now.

ah its working! At least the led was on for a while and then shut off. I test some more
EDIT:
It works now, thanks alot!

You’re welcome! 8)

The servos are moving right and there is a noticeable oscillation-which is due to my having the 422’s. However the problem becomes noticeable if i have multiple commands:

SEROUT 15,6,"#0 P1500 #1 P1500 #2 P1500 #16 P1500 #17 P1500 #18 P1500",13] SEROUT 15,6,"#0 P1600 #1 P1300 #2 P1300 #16 P1500 #17 P1500 #18 P1500",13] SEROUT 15,6,"#0 P1700 #1 P1200 #2 P1200 #16 P1500 #17 P1500 #18 P1500",13]
This is supposed to move the right leg forward. #0 is for the ankle, #1 is the knee, and #2 is for the hip

When i run the code, the leg does move, however, it moves as if in a loop. It stretches out its legs forward quickly and then retracts quickly again and again. Sometimes it seems stuck in a midway position and when I lift the bot up, it continues again with the loop.

Is this because of the servos? Or because of my microcontroller(BS2)? Or the powersupply?

Dude! It’s doing exactly what you are telling it to do. It’s telling the servos to move, then to move, then to move, without the benefit of waiting for the servos to actually well, um, move… :open_mouth:

Try this instead…

SEROUT 15,6,"#0 P1500 #1 P1500 #2 P1500 #16 P1500 #17 P1500 #18 P1500 T1000",13] pause 1000 SEROUT 15,6,"#0 P1600 #1 P1300 #2 P1300 #16 P1500 #17 P1500 #18 P1500 T1000",13] pause 1000 SEROUT 15,6,"#0 P1700 #1 P1200 #2 P1200 #16 P1500 #17 P1500 #18 P1500 T1000",13] pause 1000

I’ve tried that too and it loops still, is it supposed to keep looping even without a loop? Also, I’m noticing that once I run the code through the Basic stamp editor, I can’t run a new code unless I turn off the power to the boards or somehow stop the bot’s movements-I guess because the BS2 is still busy.

Is that the entire program you are using? You’re not adding any other lines?

[code]’ {$STAMP BS2}
’ {$PBASIC 2.5}

SEROUT 15,6,"#0 P1500 #1 P1500 #2 P1500 #16 P1500 #17 P1500 #18 P1500",13]
PAUSE 2000
SEROUT 15,6,"#0 P1600 #1 P1300 #2 P1300 #16 P1500 #17 P1500 #18 P1500",13]
PAUSE 2000[/code]

thats all there is, not to mention sometimes the servos move with sporadic movements that I did not tell it to do.

You are still not putting the TIME in the commands. The T value will make the move slower… I think you have some other problem as well.

[code]’ {$STAMP BS2}
’ {$PBASIC 2.5}

SEROUT 15,6,"#0 P1500 #1 P1500 #2 P1500 #16 P1500 #17 P1500 #18 P1500 T2000",13]
PAUSE 2000
SEROUT 15,6,"#0 P1600 #1 P1300 #2 P1300 #16 P1500 #17 P1500 #18 P1500 T2000",13]
PAUSE 2000
END[/code]

Try it with the end command and the T values. Do you have the SSC-32 set for 38.4k baud?

yes its set to 38.4k baud. I tested your code and it is moving the legs slowly without any sporadic movements! However it still loops, is this supposed to happen?
If I do this:

SEROUT 15,6,"#0 P1500 #1 P1500 #2 P1500 #16 P1500 #17 P1500 #18 P1500 T2000",13] PAUSE 2000 SEROUT 15,6,"#0 P1600 #1 P1300 #2 P1300 #16 P1500 #17 P1500 #18 P1500 T2000",13] PAUSE 2000 SEROUT 15,6,"#0 P1800 #1 P1100 #2 P1100 #16 P1500 #17 P1500 #18 P1500 T2000",13] PAUSE 2000 END
The code above is supposed to move the leg further, but it does not carry out the third serout.

The stamp must be resetting. It should not be looping. End means end. I dunno what would be causing it.

I’m going to need to see your wiring in order to help you any more.

well there isn’t much to my wiring, heres a sketch(excuse the roughness):
note that the red boxes means the servos are connected there
img68.imageshack.us/img68/7237/90108121qy6.th.png
More troubleshooting info:
If I use:

PULSOUT 0, 850

on a servo connected to the BB2 instead of the SSC-32, the servos only moves once. So does this show that the problem with the loop is not from the bot board?