Git Product home page Git Product logo

sbuscontroller's Introduction

Arduino SBUS Controller

This Arduino-Sketch lets you connect your SBUS compatible radio wirelessly as controller to your pc.

You just need a SBUS receiver and connect it to your Arduino and you're ready.

Hardware Setup

  1. Uninvert the SBUS Signal (FrSky only)

    To uninvert your SBUS Signal have a look at this post from Oscar Liang where he shows an wich pads you can get an uninderted Signal, so you dont have to use an inverter.

  2. Connect your receiver to your arduino according to this table

    Receiver Arduino
    Uninverted SBUS RX
    5V RAW / 5V
    GND GND

Software Setup

Prerequisites

Befor you can compile this sketch you need to download the following libraries and place them in Arduino libraries folder.

On Linux this folder is by deafult $HOME/Arduino/libraries

On Windows this folder is by default %userprofile%\Documents\Arduino\libraries

Installation

Just upload the sbuscontroller.ino file to your Arduino and your good to go.

Compatibility

Only ATmega32U4 based arduinos (like the arduino micro) are supported, since they can be recognized as HID.

This should work on any OS with USB-Support and with any (uninverted) SBUS receiver but this is what it's tested with.

Arduino Receiver Operating System
Pro Micro X4R-SB Linux
Windows 10

If you use this on any other platform please report back, so I can add it to this list.

Limitations

Currently there are only the first 7 channels that get mapped as controller. Channel 1-6 get mapped as analog and channel 7 as digital button.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

sbuscontroller's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

end18 jonttu0

sbuscontroller's Issues

ATmega16U2

How about use Arduino UNO usb chip ATmega16U2 do it?

not really an issue

Hey mate not really an issue. ive got a genuine arduino uno and trying to get this to work. What board settings do i need to upload this i keep getting the following error when i go to compile.

Arduino: 1.8.5 (Windows 10), TD: 1.41, Board: "Arduino/Genuino Uno"

Build options changed, rebuilding all
In file included from C:\Users\Justin\Desktop\sbuscontroller-master\sbuscontroller\sbuscontroller.ino:8:0:

C:\Program Files (x86)\Arduino\libraries\Joystick\src/Joystick.h:32:2: error: #error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).

#error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).

^

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

IBUS

Nice work,

Stumbled upon your work today.

I just created on a sketch for IBUS to do the same thing with a different protocol.

Number of channels

Is it not possible to have more than 7 channels mapped?
Is it a limit of Arduino Leonardo?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.