2

I want to WRITE a Pulse Position Modulation (PPM) to an arduino from a raspberrypi. Is the board capable to do this and if so, from which port/pin?

A pulse position modulation is a signal that consists of a priod of silence (sync reset) and alternating pulses separated by periods of constant silence.

Here's an example

EDIT:

As per the suggestions down below in the comments:
- Channel max pulse width: 2000us - Channel min pulse width: 1000us - A constant number of 8 channels - Frame rate: One frame every 10 milliseconds

The information is read from a server via C sockets (in a client-server application)

I receive the message from the server and after being decoded we are left with:

1000:1520:1200:1000:1000:2000:2000:1300

This will be broken up into chunks and assigned to variables. A function uses these variables to create the signal and send it via GPIO.

sendPPM(args[]);

Could you point me to what C library I could use to do this or point me to further reading on this subject?

EDIT 2:
Apparently @joan has a library on this. I read the specification on this site, but unfortunately I don't know python and I don't know where to start with C. I see the C examples on PPM are missing. I am happy to share my code with the owner of the site if someone could guide me on it afterwards.

bem22
  • 121
  • 4

0 Answers0