A Radio Control decoder for ppm frame.

Sometimes it is handy to decode an R/C ppm frame in order to steer a robot or a boat for instance.

With this purpose in mind I did a small sketch with an ARDUINO MEGA 2560 and a R/C receiver with DSM2 protocol. Each channel of the ppm frame as a duration between 1ms and 2ms, being 1.5ms the central position of a hobby servo. The servo is handled by a PWM pulse of this duration.

The next step will be to drive several servos and Arduino has an internal library for that purpose.

 

.