Example program of decoding the DF Robotics xbee joystick serial output
Weapons and Systems Engineering mbed DFRobotJoystick Interface
This page provides an example of reading an ASCII comma separated variable string from the DR Robot Wireless Gamepad using the mbed micro-controller. The DF Robbot Wireless Gamepad is an Arduino programmable game controller with an on-board xbee wireless transceiver module. The gamepads used in the Weapons and Systems Engineering Department have been reprogrammed with the arduino sketch listed below.
/media/uploads/jebradshaw/joes_dfrobot_gamepad_example_20141021_mode.ino
The output of the joystick follows the GPS NMEA 0183 protocol as an ASCII string preceded by an "$JOYSTK", and terminated with an asterisk and a two character checksum (hex representation).
Below is a screen shot of the data streaming in TeraTerminal when the gamepad is connected directly to the PC (through a virtual COM port).
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
1:bc6098f1dd1a | 2015-02-09 | jebradshaw | mbed WSE TSD xbee DF Robotics Joystick parse example |
0:ce988e55f00d | 2015-02-06 | jebradshaw | Example program for using the mbed to decode the DFRobotics Joystick serial output from the xbee |