DanPBP
- 10th March 2009, 18:42
Hello Guys,
I've been driving R/C cars for more than two years now. I love this hobby and I made a few circuits to turn on/off brake lights, fog lights, etc with some 12F675 PICs.
Now, I'm trying to understand how a failsafe works. I know that a servo receives a PWM signal from the receiver, and that signal is between 100 and 200, being 150 the center (read with PulsIn).
Anything outside that range is not good and the failsafe circuit must work at that time braking the car or whatever you programmed it to do.
But, I was reading the PWM signal from the receiver when the transmitter is OFF, and the PWM signal jumps between 0 to 255. I mean, the PWM signal can be valid or not, when the transmitter is OFF.....
So, how do you know that the transmitter is OFF? I mean, is there some kind of algorithm to find out that the PWM signal is actually coming from the transmitter when it's ON and is not a random PWM signal when the transmitter is OFF.
Thanks!
Daniel.
I've been driving R/C cars for more than two years now. I love this hobby and I made a few circuits to turn on/off brake lights, fog lights, etc with some 12F675 PICs.
Now, I'm trying to understand how a failsafe works. I know that a servo receives a PWM signal from the receiver, and that signal is between 100 and 200, being 150 the center (read with PulsIn).
Anything outside that range is not good and the failsafe circuit must work at that time braking the car or whatever you programmed it to do.
But, I was reading the PWM signal from the receiver when the transmitter is OFF, and the PWM signal jumps between 0 to 255. I mean, the PWM signal can be valid or not, when the transmitter is OFF.....
So, how do you know that the transmitter is OFF? I mean, is there some kind of algorithm to find out that the PWM signal is actually coming from the transmitter when it's ON and is not a random PWM signal when the transmitter is OFF.
Thanks!
Daniel.