Digistump Forums

The Digispark => Digispark Libraries => Topic started by: RC Navy on February 02, 2015, 01:30:44 pm

Title: An interrupt driven RC PPM frame reader for Digispark, Digispark pro and UNO
Post by: RC Navy on February 02, 2015, 01:30:44 pm
Hi,

in complement of the interrupt-driven RC PPM frame generator for Digispark, Digispark pro and UNO described in this topic: http://digistump.com/board/index.php/topic,1682.msg7801/topicseen.html#msg7801 (http://digistump.com/board/index.php/topic,1682.msg7801/topicseen.html#msg7801), here is an interrupt-driven RC PPM frame reader for Digispark, Digispark pro and UNO.

Features:

Use case examples:

Blocking fonctions such as delay() can be used in the loop() since PPM reader and PPM generator libraries are interrupt driven.

Supported devices:

Available in my Github repository:
https://github.com/RC-Navy/DigisparkArduinoIntegration/tree/master/libraries/DigisparkTinyPpmReader

RcPpmChSubst example demonstrates how to substitute a custom pulse width for a specific RC channel:
https://github.com/RC-Navy/DigisparkArduinoIntegration/blob/master/libraries/DigisparkTinyPpmReader/examples/RcPpmChSubst/RcPpmChSubst.ino (https://github.com/RC-Navy/DigisparkArduinoIntegration/blob/master/libraries/DigisparkTinyPpmReader/examples/RcPpmChSubst/RcPpmChSubst.ino)

Feel free to test/use it, feedback appreciated.