Connecting Parallax Boe Bot with Wireless
Just wanna the confirmation from all the expert, if possible for us as the new beginner to set up the wireless connection to control the parallax boe-bot?
Thank You..>^.^<
Thank You..>^.^<
Comments
http://forums.parallax.com/showthread.php?p=524063
Note that the project described there uses an accelerometer through the wireless connection to control the BoeBot. If you want to use some kind of manual control (for example, typing numbers on a keyboard using DEBUGIN), you'll need to learn a little about how to get that control into the handheld Stamp, but that's a fairly simple process that you can easily learn if you work your way through the "What's a Microcontroller?" book.
'Produced by SRLM Productions. out PIN 0 in PIN 1 letter VAR Byte done VAR Byte DEBUG "Commands: ", CR, "8 - Forward", "2 - Backward", CR, "4 - Turn Left", CR, "6 - Turn Right", CR, "q - Play song (use 1-9 above)", CR, "w - beep", CR, "e - countdown", CR 'Send one char at a time done = 0 DEBUG CR, "You >> " DO WHILE done = 0 DEBUGIN STR letter \1 SEROUT out, 84, [noparse][[/noparse]letter, CR] LOOP
That was the console (the part to run on you PC and connected stamp). The following is the program that was on the BOE bot. The tilt functions refer to a third servo that I added to tilt a camera.
'App to run the BOE-Bot via remote control witht he 912 mhz reciver 'use keypad nums for the dirrection control. 4 and 6 turn. motor PIN 12 right PIN 13 in PIN 0 piezo PIN 2 ledA PIN 3 ledB PIN 4 ledC PIN 5 camera PIN 14 counter VAR Byte letter VAR Byte frequency VAR Word tilt VAR Word tilt = 750 DO GOSUB _GetData IF(letter = "8") THEN GOSUB _Forward ELSEIF(letter = "4") THEN GOSUB _TurnLeft ELSEIF(letter = "2") THEN GOSUB _Backward ELSEIF(letter = "6") THEN GOSUB _TurnRight ELSEIF(letter = "5") THEN GOSUB _Stop ELSEIF(letter = "q") THEN GOSUB _PlaySong ELSEIF(letter = "w") THEN GOSUB _Beep ELSEIF(letter = "e") THEN GOSUB _CountDown ELSEIF(letter = "9") THEN GOSUB _TiltUp ELSEIF(letter = "3") THEN GOSUB _TiltDown ELSE DEBUG "Not valid dirrection.", CR ENDIF LOOP _GetData: SERIN in, 84, [noparse][[/noparse]letter] RETURN _Beep: FREQOUT piezo, 750, 3136 RETURN _Countdown: FOR counter = 0 TO 10 FREQOUT piezo, 150, 3136 PAUSE 150 NEXT FOR counter = 50 TO 0 FREQOUT piezo, 100 + counter, 3136 PAUSE counter*3 NEXT FOR counter = 100 TO 0 FREQOUT piezo, 20, 40*counter NEXT RETURN _PlaySong: counter = 0 DO WHILE counter = 0 GOSUB _GetData IF(letter = CR OR letter > 57 OR letter < 48) THEN counter = 1 ELSE LOOKUP letter - 48, [noparse][[/noparse]1174, 1318, 1568, 1760, 1975, 2093, 2349, 2637, 3136, 3520, 3951], frequency FREQOUT piezo, 250, frequency ENDIF LOOP RETURN _TurnLeft: FOR counter = 0 TO 4 PULSOUT motor, 790 PULSOUT right, 530 PAUSE 20 NEXT RETURN _TurnRight: FOR counter = 0 TO 4 PULSOUT motor, 790 PULSOUT right, 790 PAUSE 20 NEXT RETURN _Forward: FOR counter = 0 TO 20 PULSOUT motor, 790 PULSOUT right, 680 PAUSE 20 NEXT RETURN _Backward: FOR counter = 0 TO 20 PULSOUT motor, 710 PULSOUT right, 680 PAUSE 20 NEXT RETURN _Stop: FOR counter = 0 TO 4 PULSOUT motor, 750 PULSOUT right, 680 NEXT RETURN _TiltUp: IF(tilt <= 1000 AND tilt >=500) THEN tilt = tilt + 5 ELSE tilt = 1000 ENDIF FOR counter = 0 TO 4 PULSOUT camera, tilt PAUSE 20 NEXT RETURN _TiltDown: IF(tilt <= 1000 AND tilt >=500) THEN tilt = tilt - 5 ELSE tilt = 500 ENDIF FOR counter = 0 TO 4 PULSOUT camera, tilt PAUSE 20 NEXT RETURN
Did this involve additional hardware to install in the Parallax Boe-bot?
If possible for us to use the laptop or desktop to control the movement of the Boe-Bot using the wireless?
did this required any extra hardware?
Thank you..
Can i use this 433 RF transmitter/receiver with boe bot? [noparse][[/noparse]http://cytron.com.my/listProductCategory.asp?cid=282]
This is the C code for the above said RF. Is it mean anything to you. Looks like it can be use with BS2. How to serout/serin 1200 baud
with BS?
You'll need a transmitter on the control unit and a receiver on the Boe-Bot, of course. If the transmitter is on a BS2 connected to a laptop or desktop, you can use Debugin to send commands to that BS2, which then transmits them to the Boe-Bot, which acts on them. You program that just the same way that you do the accelerometer-based controller described in the link I posted.
No need to look at the C code. It appears as if you just SEROUT within the specified baud range, and SERIN at the same value at the other side. For the programmer, it appears like a wire (no commands for the module).
Regarding the above statement, i quiet confuss with what u trying to deliver..
can u be more specify..
Thanks you
Got any new expansion for Parallax Boe-Bot beside the normal use..
Thank You..
List of Hardware Involve...?
Thank You..
Thank You
Regards
David Tan