How to use Arduino as a PPM encoder?

Hi all,

I am working on collision avoidance system for my drone. I am using a 8 channel R2008SB Futaba radio receiver and a Pixhawk as the flight controller. I thought of having an Arduino to perform similar function as a PPM encoder module, that is, to convert PWM signals to PPM signal.

The channel PWM signal terminals of the radio receiver are connected to the digital pins of the Arduino as inputs, the Arduino stores each channel PWM signal information as a number. The Arduino outputs PPM signal to the flight controller.

An infrared red sensor is at the front of the drone to sense if there is any obstacle, if there is, the Arduino modifies the pitch channel PWM information, causing the drone to pitch up and move backwards.

However, I do not know how to code out the system. I am looking for Arduino code that converts PWM signals to PPM signal. Please kindly help me. I appreciate your time. Thanks.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity