Hello all.
My project involves controlling servos; half the time I want to have the Arduino controlling them using the #servo library but I also want to be able to switch control over to a radio control plane transmitter/receiver setup (IE having the servos controlled from the signal coming out of the receiver).
What's the best way to conceivably go about this?
I've tried sending the receiver signal into the Arduino through the digital input pins, decoding it using the pulseIn function then mapping the result to the servos. This kind of worked but the Arduino seems to get overwhelmed if it receives a large range of signal all at once (IE if I waggle the control sticks on my transmitter a lot, the Arduino just kind of freezes for a few seconds and so do the servos).
I would prefer to do this through the Arduino if I can but I think I will end up hard wiring the output of the Arduinos servo signal pin and the output of the receiver into a switching relay, I'll then use one of the other digital pins to switch the relay between receiver and Arduino control.
If there is a simpler solution to this I would appreciate the advice, I did find that the receiver signal will pass through the Arduino quite nicely in that if you set up the Arduino to send the servo signal pin high every time the receiver input pin goes high then the servo behaves fine but this involves designating the servo pin as a digital pin preventing you from using the servo library, I have tried attaching and detaching the servo in the program but it didn't seem to work.
Thanks for any suggestion
All the best
Bottle