This is software for a USB dongle to use a FrSky Taranis wirelessly with PC simulators like FPVFreerider or RC-Airsim. On the USB side there is a Teensy 2.0 with an eight bit atmega32u4 CPU. And the receiver is a FrSky XM with sbus output. The Teensy reads the sbus signal of the receiver via UART and then presents that data as a USB HID gamepad to the computer. To read the sbus signal the Teensy needs an inverter in form of a simple transistor. Please see the docs directory for more details.
- Teensy 2.0
- available here: PJRC
- FrSky XM Receiver
- available here: FrSky
- A transistor & resistor to invert the sbus signal for the Teensy
- available here: Reichelt
- AVR 8-bit gcc tool chain
- available here: Microchip
- HalfKey Loader teensy_loader_cli
- available here: PJRC
- Dean Camera's excellent Lightweight USB Framework for AVRs (LUFA)
- available here: Four Walled Cubicle
- Clone or download the firmware
- Edit the Makefile and change the LUFA_PATH to where ever you installed LUFA
- Make sure the avr-gcc and teensy_loader_cli are in your path
- Execute "make" to build the HEX file
- Execute "make program" to download the HEX file to the attached Teensy 2.0
If you don't want to build the software yourself just download the Gamepad.hex.save file and load it to the Teensy 2.0 using teensy_loader_cli (see Makefile for parameters).
Create a new model for the SBus Gamepad on your transmitter. Make sure that you enable ailerons, elevator, throttle and rudder for the receiver at minimum. Bind the receiver like you normally would. Use software like HTML5 Gamepad Tester to test the sbus gamepad. Once you have confirmed operation start your favorite simulator and see if it recognizes the sbus gamepad.
All testing was done using a Teensy 2.0 and the 16 channel FrSky XM receiver (no other hardware was tested). Shoud you need to adjust the range of the sbus values sent by your transmitter please edit the X1, X2 macros in the SBus.h file and rebuild. The Teensy needs to run with 5 volts to be a full speed USB device. Also the FrSky XM receiver needs the 5 volts to operate (output of the sbus signal is 3.3 volts though). Total power consumption should be around 50 ma at 5 volts (30 ma for the Teensy and 20 ma for the XM receiver).
Date: 2018-09-21