Shop OBEX P1 Docs P2 Docs Learn Events
Xbee + Parallax Propeller + VB.Net — Parallax Forums

Xbee + Parallax Propeller + VB.Net

DiablodeMorteDiablodeMorte Posts: 238
edited 2008-06-18 20:59 in Robotics
This isn't exactly a "complete" project.. But considering how "complete" my projects get. This is about as close as it gets:

He's what I've rigged up:

Very Simple Schematic:
Propeller Pin 7 - Xbee DOUT
Propeller Pin 7 - Xbee DIN
Propeller VDD - Xbee VCC
Propeller GND - Xbee GND

Visual Basic Program:
[noparse][[/noparse]Screen shots Attached]
I originally designed this program to test my ability to send and receive via the COM port. When I finally got it working I thought: "Dang, I wonder if I can actually work w/ the xbees now?"
So, that's exactly what the program does: it communicates and excepts communication from Xbee's. It sends messages, receives messages, identifies packets, and as a unique feature: Allows me to command an propeller on the other end of a xbee to turn on/off each of 8 leds.

Xbee:
The xbees are set up in API mode which is the reason I'm proud of what I've done. In transparent mode I could have done the LED ON/OFF thing in about 1 hour. In API mode I had to figure out how to calculated checksums, send bytes via VB.net, and use the bits of a byte individually to determine which LED's are supposed to be on/off.

Propeller:
The propeller's code is fairly simple(It's attached). It needs to be "slimmed down" a little since it was originally designed to test "Sending" via the Xbee and to decode Xbee API packets. What it does is send a test packet to the "Coordinator," wait for a response packet(ie, a confirmation of reception) and then wait for an control packets. The control packets are simple: 1 byte($64) and then the control byte. The control byte's 8 bits are used to turn the onboard LED's on and off. (if Bit 1 is "true" then Pin 16 is high, if not ping 16 is low, etc)

I don't have any actual pictures now(other than the screenshot) but I'll try to post some later.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Current Projects:
Robot Control Via Skype API - Dev Stage(50% Complete) - Total(25%)
Robot Localization Via Xbee's - Research Stage
IR Tracking with Propeller - Research Stage
579 x 338 - 13K

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-06-18 14:00
    You've included the SPIN code...will you be including the VB source as well?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • DiablodeMorteDiablodeMorte Posts: 238
    edited 2008-06-18 16:12
    And now the VB.net project is attached:

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Current Projects:
    Robot Control Via Skype API - Dev Stage(50% Complete) - Total(25%)
    Robot Localization Via Xbee's - Research Stage
    IR Tracking with Propeller - Research Stage
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-06-18 20:59
    Lately the VB code seems to seal the deal on such projects. =)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.