Radio Control Receiver Interface
Rich Mays
Posts: 4
I would like to read servo positions from a radio control receiver.· Looking through the Javelin docs, my guess is that I would need to make a VP that reads the state of a pin (with CPU.readPIN) and measure the time between pulse rise and fall.· Does this seem to be a realistic approach?· Has anyone done this before?
Also, the receiver and javelin will be on the same power source, so should have a common ground.· Can I just wire the receiver servo output straight to the javelin pin?· Is there a schematic for feeding a digital signal into a pin that I should use?
Thanks,
Rich
Also, the receiver and javelin will be on the same power source, so should have a common ground.· Can I just wire the receiver servo output straight to the javelin pin?· Is there a schematic for feeding a digital signal into a pin that I should use?
Thanks,
Rich
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Thanks for the info.· I looked at pulseIn and was worried that it may have problems with reading a pulse that repeats.· I was worried that if I set the timeout too long, it may measure two (or more) pulses, and if I set it too low, I might not get the entire pulse.· Even if I did set the timeout right, it may not be in synch with the receiver signal.·
Is my understanding of how pulseIn works accurate?· If not, how does it work?· What does the function return if more than one pulse occurs during the timeout?
Thanks,
Rich