Go Down

Topic: controlling via RC receiver (Read 1 time) previous topic - next topic


How would one go about turning on and off a program, i.e. "blink sketch" via a pulse signal from a radio controlled receiver?


Grab some code to decode the received PWM pulse to provide the proportional control value. I don't know of a library that does that, but perhaps there is one. I've seen people doing it using interrupt based and polling approaches and if you Google 'Arduino servo receiver' there are tons of hits showing how to do it.

Apply whatever criteria you want to the received signal to decide whether the blinking function should be 'on' or 'off'.

Modify the blink code to only blink when the blinking function is 'on'. You aren't literally 'turning on and off a program' - you are just enabling / disabling features within that program.

Go Up