Shop OBEX P1 Docs P2 Docs Learn Events
boe-bot control via Xbees — Parallax Forums

boe-bot control via Xbees

waleedfakhrwaleedfakhr Posts: 9
edited 2013-03-29 13:09 in BASIC Stamp
Dear all

We have a pair of Xbees (Xbee wireless pack), and a Boe-bot. We tested the Xbees and they both transmit and receive fine from each others (using the test
scenarios in the parallax tutorial) where one is connected to the PC and the other to the boe-bot.

We tried the program that was used by HackWar and found at: http://forums.parallax.com/showthread.php/129153-Boe-Bot-remote-controlled-with-XBee
and is attached here. The boe-bot is not moving with this program, even though it moves when we use other programs with direct moving commands
without the Xbee.

Is there a detailed steps to ensure that we are doing the right thing?

Many thanks

Waleed

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2013-03-28 09:20
    When you type commands from the PC are you seeing, "Received Data: " in the DEBUG window? If so, note which codes you're receiving as they may not match the ones in the SELECT...CASE section. It seems like I helped someone else out with the same problem. You can tell the HEX code by putting HEX before rx_data in the DEBUG line just before the SELECT...CASE section.
  • waleedfakhrwaleedfakhr Posts: 9
    edited 2013-03-29 11:27
    Many thanks Chris, I'll do that.
    Also, in the boe-bot book there is no mention of using PIN 14, while in this program there is:

    L_MOTOR PIN 13
    R_MOTOR PIN 12
    servoPin PIN 14


    would you kindly explain what PIN 14 does and what should it be connected to in this case?

    best regards
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2013-03-29 13:09
    Looking at the code (by searching through the code for references to that constant) it appears that pin controls the standard servo for the PING))) mounting bracket.
Sign In or Register to comment.