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:
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.
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.
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…
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.
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.
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?