Need Help. Can I convert PPM to 0-5 volts with Arduino?

First post on the Arduino forum so be kind :D. Im new to Arduino and trying to learn. Ive spent some time searching for an answer, but with my experience Im not sure how to make it happen.

I need to convert a PPM signal to 0-5 volts. This is to convert an RSSI signal for an OSD(on screen display) from EzUHF to MinimOSD. Ez sends PPM and Minim reads voltage. I understand the PPM signal is the same as an Radio Control servo signal.

I believe it can be done and what I would love to do is to get the code right and pass it along to others looking for the same solution. (many exist)

This is my first Arduino project but want to keep learning...

Any help would be greatly appreciated!

David

I need to convert a PPM signal to 0-5 volts.

First, you need to post your code to prove that are getting a PPM signal. Whatever that means.

Then, you need to determine the range of values that you will get. What value corresponds to 0 volts? What value corresponds to 5 volts?

Then, you can map() your actual value using the from range of values that you determine to be the minimum and maximum value and a to range of 0 to 255.

Finally, you analogWrite() that mapped value to a PWM pin to which you attach a low pass filter to get a 0 to 5V output.

The Arduino does NOT output varying voltage. It outputs 0 or 5V, with a duty cycle that, combined with a low pass filter, produces a varying output from 0 to 5V.

https://arduino-info.wikispaces.com/Analog-Output

Try this link.
The reason for the 11.5V supply or higher on the LM358 circuit is because the LM358 cannot output close to it positive supply, so you need higher supply to get near 5V output.
Depending on where you are inputing the 5Vdc too, you may be able to get away with just the cap and resistor circuit, the input impedance of the circuit to are feeding the 5Vdc to will have some effect on output smoothness.

Tom.. :slight_smile:

Thanks for the suggestions.

PaulS, thats part of the challenge, I havent been able to get code that I have found to compile. From m what I have found, most of the stuff requires library files which I believe I have imported properly, but I keep getting errors. Not sure if its incompatibilities with the current arduino version or what.

For example, this one: Arduino Playground - ReadReceiver

.. or this one from Mem I found in the archives: http://forum.arduino.cc/index.php/topic,22140.0.html

I may be missing something simple, but Ive spent a couple hours just trying to compile it and keep getting errors.

Can anyone tell me if either of the links Ive posted above will at least get me decoding a ppm stream I can see if I am receiving the signal? Once I confirm that we can work towards turning it into a PWM/voltage signal.?

Any help would be greatly appreciated.

David

I'm new here too,

I'm trying to follow the thread but i need to know what "PPM" is...
Is that "Portable Pixel Map", "Parts Per Million" or "Pulses Per Minute"...???
I'm interested in your project and I'd like to see the code for that as well...

Thanks,
Robert