Skip to content

AlexBeem/SoftIBus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoftIBus

Arduino library for reading Ibus values through SoftwareSerial pins

The project is still in development, but seeks to be able to receive IBus values without "disabling" the hardware port on small boards which do not have multiple Tx and Rx pins. My case is with the Pro Mini and Nano, both of which have one one serial port. As the Nano, for example, has the USB connected (in a certain way) to these pins, using IBus libraries that needed real Tx and Rx pins left the USB useless. If, on the other hand, a virtual port were used, the USB could still function for debugging. In the case of the Pro Mini, my FTDI adapter is designed to atach directly to the 6-pin header in the front, meaning I wouldn´t be able to use it for debugging, unless I used a virtual port for that (which would be a mess, considering all the extra cables and the unecessary complications that might arise).

Furthermore, I wished to use the Arduino to receive Ibus values but also write sensor ones. Since the sensor port requires not one pin (the "servo" pin of IBus receivers connects directly to the Arduino Rx, in this case a virtual one) but both the Tx and Rx pins at the same time (using a diode connected between them, as I´ll show you in the attachments), it would be possible for the Arduino to receive (virtual Rx) and transmit values (hardware Tx+Rx, for now. Still in process!). I stumbled on a library for using only 1 pin to do the latter (using SoftwareSerial, obviously), but the result was that values sent apeared on the FlySky transmitter as integers only and not up to the two decimal places allowed on the screen. On the other hand, the Tx+Rx setup with the diode gave a resolution of 0.01. As soon as possible I´ll try not only to make the IBus sensor use only 1 virtual pin and have the best precision, but also integrate it with this library.

Any comments are welcome, especially ideas for improvements and such.

About

Arduino library for reading Ibus values through SoftwareSerial pins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 100.0%