Skip to content

3. XBee

Ian Goh edited this page Sep 7, 2021 · 1 revision

3.1 Preparing your computer

Learn more about XBee by reading through this tutorial.

  1. Download and install X-CTU. Detailed instructions for each platform can be found here.

    On Ubuntu, user needs to be part of dialout group.

    sudo usermod -a -G dialout <user>

    To install .run files, add executable permission before executing file.

     chmod +x <filename>.run
     ./<filename>.run
    
  2. Follow the tutorial (Quick and Easy Test onwards) to define your unique network (CH, ID, DH, DL and MY).

  3. Done! You can proceed to connect one XBee to your master computer and the other XBee to the Teensy.

3.2 Connecting XBee to Teensy

Connect XBee to Teensy Serial 5.

XBee connections

3.3 Enabling/Disabling XBee (optional)

Configuration of XBee can be done in .../Doggo/src/config.h.

3.3.1 Enable

Ensure that line 28 (#define USE_XBEE) is not commented out.

- // #define USE_XBEE
+ #define USE_XBEE

3.3.2 Disable

Comment out line 28 (#define USE_XBEE).

- #define USE_XBEE
+ // #define USE_XBEE

This can be done to test the motors through USB when the XBee is not configured/connected yet.

3.4 Additional notes

When using XCTU console to send commands to the teensy, use ; to simulate a line break to send commands.