I 'm building the computer for my UAV and I want to implement some failsafe.
As many of you know, the receiver of RC models outputs a PWM signal that drives the servos. I have an extra channel and I want to use it as a digital ON-OFF, in order to operate a MUX that will insert/isolate the uC from the control loop.
Thus I can choose whether I want to fly on manual or aided. I don't want to let this duty to the same uC, as I fear software bugs and crashes.
So the question is: how can a PWM control a digital IC input?
At first I thought about simple rectification, but unfortunately, the range of the PWM signal isn't full. It goes at about as high as 10%.
Thanks in advance.
As many of you know, the receiver of RC models outputs a PWM signal that drives the servos. I have an extra channel and I want to use it as a digital ON-OFF, in order to operate a MUX that will insert/isolate the uC from the control loop.
Thus I can choose whether I want to fly on manual or aided. I don't want to let this duty to the same uC, as I fear software bugs and crashes.
So the question is: how can a PWM control a digital IC input?
At first I thought about simple rectification, but unfortunately, the range of the PWM signal isn't full. It goes at about as high as 10%.
Thanks in advance.