PWM measurement and output from an RC Receiver
muneebmansoor
Posts: 2
Hi, I wanted to ask if there is any SPIN/Assembly code that could measure incoming PWM pulses and then output them to other pins. I know it sounds silly but I am asking this in context of UAVs and this is the manual part of the operation. That is, in manual mode, the Propeller should be able to output the incoming PWM signals, without any processing, to the servos. I'[ve been stuck in this for a week now. Any help would be really appreciated.
Thank you
Muneeb.
Thank you
Muneeb.
Comments
I just finished a remote control app for a stingray by using a 7 channel RC receiver; the prop measures the pulse width and then controls the robot with a different pwm output. In your case, if you want to simply feed the incoming pwm to the local electronics without any processing, that would be simpler, I believe you should be able to configure the propeller counter to echo an input pin to the output pin (pins A and B in the counter control register). Depending on how many signals you need to control, you may run out of cogs and/or IO pins, in which case you can also use a simple AND gate circuit and just have the propeller enable the gate using just one pin.
http://obex.parallax.com/objects/482/
Do a search for "Servo" in the Object Exchange, and you will come up with a few others.