Skip to content

Cross-platform interrupt-based C++ library for Spektrum DSM receivers

License

Notifications You must be signed in to change notification settings

simondlevy/DSMRX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This header-only libary allows you to access the signals on a Spektrum DSM serial receiver using an Arduino or other microcontroller. It uses interrupts or timer tasks rather than polling. The library provides two C++ classes: DSMRX1024, for older receivers using seven channels and 10-bit precision; and DSMRX2048, for modern receivers (like the Lemon RX) using eight channels and 11-bit precision. There is also a standalone sketch allowing you to bind your receiver to your transmitter using an Arduino Uno, Mega, or other five-volt Arduino board.

For maximum flexibility, the DSMRX class does not contain any Arduino-specific code. Instead, as shown in this example, you write your own interrupt handler or timer task, which calls the DSMRX::parse() method.

I have tested this library only on the DSMRX2048 class.

This library borrows heavily from David McGriffy's Drone Control System.

About

Cross-platform interrupt-based C++ library for Spektrum DSM receivers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages