Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

S.BUS Gamepad

NotificationsYou must be signed in to change notification settings

macsleep/gamepad

Repository files navigation

Description

Ever wanted to use a FrSky Taranis wirelessly with PC simulators likeFPVFreerider orRC-AirSim? This project will help you do so. The idea was to use a Teensy 2.0 USB controller and pair it with a FrSky XM receiver. The Teensy on one side will provide a USB HID gamepad to the host computer while on the other it will read the S.BUS protocol off the receiver using theUniversalAsynchronousReceiverTransmitter (UART). To read the S.BUS signal an inverter in form of a simple transistor will be needed between the Teensy and the receiver. For more details please see thedocs directory.

Update: If you would like to use an ExpressLRS receiver instead of the FrSky XM receiver then please check out theseinstructions.

Hardware

Software

Build

  • clone or download the firmware
  • edit the Makefile and change the LUFA_PATH to wherever you installed LUFA
  • make sure the avr-gcc and teensy_loader_cli are in your path
  • executemake to build the hex file
  • press and release the tiny Teensy pushbutton to activate the HalfKey bootloader
  • executemake teensy to download the hex file to the attached Teensy

If you don't want to build the software yourself just download the Gamepad.hex.teensy file and load it onto the Teensy using:teensy_loader_cli --mcu=atmega32u4 -w -v Gamepad.hex.teensy

Alternative Build

Here are a few tips for adjusting the build to anArduino Micro (original or clone). You will needavrdude to program the Micro.

  • edit the Makefile and change the BOARD variable from TEENSY to MICRO
  • executemake avrdude AVRDUDE_PROGRAMMER=avr109 AVRDUDE_PORT=<serial port> to download the hex file to the attached Micro

Replace<serial port> with the device name the Micro is connected to on your computer after resetting. Depending on the bootloader installed on your Micro you might have to change AVRDUDE_PROGRAMMER value from avr109 to arduino. If you don't want to build the software yourself just download the Gamepad.hex.micro file and load it onto the Micro using:avrdude -p atmega32u4 -P <serial port> -c avr109 -U flash:w:Gamepad.hex.micro

Usage

Create a new model for the S.BUS gamepad on your transmitter. Make sure that you enable at least 4 channels (e.g. ailerons, elevator, throttle and rudder) for the receiver. Bind the receiver like you normally would. Use software likeHTML5 Gamepad Tester to test the S.BUS gamepad. Once you have confirmed operation start your favorite simulator and enjoy.

Date: 2024-05-20


[8]ページ先頭

©2009-2025 Movatter.jp