Good Afternoon,
I recently put together the CH3-R hexapod. As the title suggests, I have not been able to get a response from the A,B, and C LEDs on the Bot Board II with the Traffic Light example program. I have tried both with and without the A,B, and C jumpers, and I’ve tried with the baud rate on the SSC-32 at both 38.4k and 115.2k. I have the serial cable plugged into the BBII, and the program seems to compile and download without error. The BotBoard II just doesn’t do anything. Has anyone run into this before? I’d appreciate a nudge in the right direction. Thanks in advance.
Which traffic light program? If you are talking about the traffic light program that is part of the Basic Micro Manual?
If so there are two issues with the program. The first was it assumed IO pins 0-2 were the LEDS, where on the Bot Board 2, these LEDS are on pins P12-P14 (or older Atom Bot Boards on pins P4-P6). Also the LEDS are wired differently on the BB2 then they are in the program. That is a level of HIGH turns them off and a level of LOW turns them on. It should look something like:
main
counter var word ;must define variables
BB2 con 1 ; default for Bot Board 2
#ifdef BB2
red con P12 ;red LED on P0
yelhigh con P14 ;yelhigh LED on P1
green con P13 ;green LED on P2
#else ; old atom bot board
red con P4 ;red LED on P0
yelhigh con P6 ;yelhigh LED on P1
green con P5 ;green LED on P2
#endif
high red ;turn all the LEDs off
high yelhigh
high green
loop ;main program loop
low red ;turn on red LED
pause 10000 ;wait 10 seconds
high red ;turn off red LED
low green ;turn on green LED
pause 10000 ;wait 10 seconds
high green ;turn off green LED
for counter=1 to 10 ;This loop flashes the
low green ;green LED 10 times
pause 300
high green
pause 300
next
low yelhigh ;turn on yelhigh LED
pause 3000 ;wait 3 second
high yelhigh ;turn off yelhigh LED
goto loop ;start over again
end
P.S - Sorry about my editing of low to high in yellow