Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

doomsquadairsoft/d3vice-controlpoint-xbee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d3vice-controlpoint-xbee

Arduino Fio / XBee based D3VICE control point for Airsoft games

Feedback

If you have used and enjoy this code base, I'd love to hear from you!

Say Thanks!

Development setup process

  • Download, Install Atom editor
  • Download, Install Platformio Atom package
  • Restart atom. Open Atom & PlatformIO then import this repo.

??? @TODO once I figure out the process after this

  • Install contributed libraries Sketch > Include Libraries > Manage Libraries
    • Adafruit NeoPixel library
    • XBee-Arduino library
  • Add your user account to tty and dialout groups (May or may not be required for your OS)
    • sudo usermod -aG tty,dialout <YOUR_USERNAME_HERE>

Enclosure Ideas

XBee

Setup

To connect to the XBee, a SparkFun FTDI Basic Breakout 3.3v is used along with an Adafruit XBee Adapter kit v1.1. As my Adafruit XBee adapter kit v1.1 is discontinued, the replacment seems to be Adafruit's USB XBee Adapter which I haven't tested but should do the trick. A separate FTDI chip isn't necessary with that new model.

XCTU is the program for configuring XBee modules. It is cross-platform.

57600 baudrate

Set the controlpoint as an ZB Router API NOT a ZB Endpoint API! Endpoint will work, but has complications with sleep mode.

XCTU Troubleshootinghttps://www.youtube.com/watch?v=ChCHfJoo9CQ

Make sure if using it on linux, you add yourself to the dialout group. Example: sudo usermod -a -G dialout chris

Make sure Arduino IDE is closed when working with XCTU. Radio discovery can be finnicky, but it works when it works.

XCTU's download links on Digi's website are usually broken. Find the filename from the download page, then manually browse their ftp server for the correct version of XCTU.

If you can't get XCTU to communicate with your XBee, the rule of thumb is keep trying. It doesn't always work the first or second time. Try the different connection methods as well, from discovery to manually entering XBee serial/USB configuration.

Power

The XBee is very sensitive when it comes to power. It needs as close to 3.3V as possible. When using USB, the Fio gives it a clean 3.285V. 3.296 was acheived using the buck converter regulator and that seemed to do the trick. If you are attempting to remotely program the XBee using X-CTU, and the read process seems slow, it may be that the XBee is crashing when it tries to pull power. Check voltages and try again.

IDs

PAN ID

0x73706F6B616E6561 (ASCII spokanea)

switzerland-robust

SH 0013A200 SL 40B51A26

borders-portals

SH 0013A200 SL 40B774EC

Special Thanks

The following people have helped this project in some way, and deserve a mention. Thank you all for helping this project become a reality!

Todo list

  • Fix phase 3 issue where ttw is ???
  • Implement XBee
  • Implement debugging via XBee wireless link
  • Fix button debounce issue
  • Fix endless beep on phase >=1
  • Add button hold logic
  • Implement ButtonManager
  • Try LoRa radio Moteino looks nice.

Parts list