[Need help] newbie building BH3 Walking Robot (Hexapods)

Please post your Atom Pro code here as an attachment. Please make sure it is the correct program for serial communications. Laurent will look at it for you. Do this ASAP.

just a quick check as I made this mistake yesterday. Make sure pins 12-15 are configured for +5v and not VS. Yesterday when I had VS (6V), the sender and receiver would not sync up with each other. Once I had the right voltage it worked… :blush: (Most of the time I have XBee on P14 and P15 which I send VS…)

Kurt

sorry for late reply becasue this few days can’t online
here is my program.
aa.bas (25.1 KB)

Robot Dude
i have send my attachment for u
is there any problem?

Hello deathsnake,

You told me the offset procedure worked. If it did then your code would have values in this section of the code.

;-------------Init SSC-32 with pulse offsets serout SSC32,i38400,"#", | RRHH,RRHH2,"po0 #",RRHV,RRHV2,"po0 #",RRK,RRK2,"po0 #", | MRHH,MRHH2,"po0 #",MRHV,MRHV2,"po0 #",MRK,MRK2,"po0 #", | FRHH,FRHH2,"po0 #",FRHV,FRHV2,"po0 #",FRK,FRK2,"po0 #", | RLHH,RLHH2,"po0 #",RLHV,RLHV2,"po0 #",RLK,RLK2,"po0 #", | MLHH,MLHH2,"po0 #",MLHV,MLHV2,"po0 #",MLK,MLK2,"po0 #", | FLHH,FLHH2,"po0 #",FLHV,FLHV2,"po0 #",FLK,FLK2,"po0",13]

But your example clearly does not.

Do you have the SSC-32 connected to the Bot Board II’s pin 15?

Do the leg servos hold position, and are you able to move them when doing the offset procedure?

I must insist that you send me a real photo of your wiring. You can post it here. It’s easy…

Do you have a volt meter? If so please put it on the VS terminals when the robot is turned on so I can know the voltage.

Waiting…

I’m looking at the beginning of the main loop…

The program sends data to the PC letting it know it’s ready to receive data (serout). It then listens for data (serin). If it receives data it will check the checksum to validate the data received. If there is a problem with the data or checksum the micro will beep. If your micro is not beeping then I would assume it’s communicating with the PC ok. So now we are still faced with the no servo movement. Correct?

[code]main

;SerialQuery
serout S_OUT,i9600,“Rd”] ; ‘Ready’ to recieve data now
serin S_OUT,i9600,200000,NoData,[str DualShock(0)\7]

CheckSum = DualShock(1) ^ DualShock(2) ^ DualShock(3) ^ |
	DualShock(4) ^ DualShock(5) ^ DualShock(6)

;serout S_OUT,i9600,[CheckSum]

if CheckSum <> DualShock(0) then
Sound 9,[50\2000]
NoData
DualShock(1) = $FF
DualShock(2) = $FF
for Index = 3 to 6
DualShock(Index) = $80
next
endif[/code]

finally there is no problem for my robot already
it should be work nicely but i need to test for few more times.
sometimes the robot will suddenly can’t move, it is the 6v battery or 9v battery gone off?

about sensors
i am using this sensor from parallax
parallax.com/StoreSearchResu … nic+sensor
can teach me how to wiring this my robot?
it should be wiring to ssc-32 or bot board?

any1 can help pls?

used this program for my ping))) ultrasonic sensor :

wdist var word

main:
low p4
pulsout p4, 5
input p4
pulsin p4, 0, toolong, 40000, wdist
wdist = wdist / 148 ;convert for inches
serout s_out, i9600, "Distance: ", sdec wdist, 13] ;display result in terminal
;debug "Distance: ", dec wdist, 13, 10]
goto main

toolong: ; if the program gets here the sensor is not functioning, or wired wrong
serout s_out, i9600, “Timeout, sensor is not working”, 13]
;debug “Timeout, sensor is not working”, 13]
goto main

click on terminal 1, then choose 9600, then click connect.
“Timeout, sensor is not working” this show in the output.

i have attach a picture below to show my connection bot board and ping))).
For (1), is pin 4, top is connect to signal in ping))), middle is connect to 5v in ping))), bottom is connect to ground in ping))). And for (2), i just put in jumper. Am i right?

Question : I used multi-meter to measure the middle pin and bottom pin in pin 4, it give me 3.8V~4.1V, its not giving me 5V, does my ping))) still work?

Yes it sounds like you have the right idea for wiring in the ping sensor (other than maybe your 1 and 2 are reversed…). Also make sure you have the servo extension cable plugged in correctly at the ping sensor…

Your voltage value does not sound correct.

It appears like you are using Robot Dude’s test code which looks correct, so not sure what else to tell you. I don’t think I have one so can not help much.

Kurt