Pages: [1]   Go Down
Author Topic: controlling via RC receiver  (Read 142 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

UK
Offline Offline
Shannon Member
****
Karma: 184
Posts: 11158
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

SG
Offline Offline
Sr. Member
****
Karma: 7
Posts: 419
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://rcarduino.blogspot.sg/2012/01/how-to-read-rc-receiver-with.html
http://rcarduino.blogspot.sg/2012/01/how-to-read-rc-receiver-with_20.html
Logged

Pages: [1]   Go Up
Jump to: