Reading an RC reciever

Radio control and switches.

Hi I am new to this and my head is aching right now. What I want to do is plug a couple of channels from my RC reciever, 36 MGZ, into my arduino so that I can set up 8 switches to run off it. Four from each channel. I have been trying code from the RC pages with no luck. Once I have this working then I can set up some sub routines, but I am not there yet by a long way. Is there any code out there I can simply use? I have downloaded about four libraries so far.

John

As i understand your post you want to connect the output from your rc receiver to inputs on the arduino instead of a servo. In that case have a look at the pulseIn() function http://arduino.cc/en/Reference/PulseIn. The output from the receiver are short pulses with their width corresponding to the signal (1-2ms) described here: Servo control - Wikipedia

Your code will have to measure the pulse length with the pulseIn() function, check the pulse length against certain intevalls and activate the corresponding output. (if i have understood your post correctly)

Hi

Yes I just want to read the input from the receiver and set parameters to trigger switches. Do you have any code that can do this?

John

Hi

I guess the link is meant to answer my question?

I have tried to modify the 8x service sketch so it will work with me but eveything now throws up errors. Once again, I want to read two channels of my radio, and fix parameters so that each channel will trigger 4 outputs that I can then link to relays.

Surely someone has done this somewhere. I have googled the problem and had no luck at all with this, and the above link is way beyond me to understand.

John

I guess the link is meant to answer my question?

Only you can answer that, but Duane's blog and its links are an amazing resource.

the above link is way beyond me to understand.

I really doubt that, the concept and the approach described in the link is actually rather straightforward. But if you are a beginner it will take some study to understand the code.

It shouldn't be that difficult if you stop trying to avoid writing code by using someone else's code. The suggestion to use PulseIn() is really all you need, regardless of how many inputs you want to use. Look at PulseIn() and use
IF or CASE statements to process the result. If you have any questions ask us. Stop trying to cut corners.