How can the Propeller read PWM from a 2.4 RC receiver?
Franny
Posts: 127
in Propeller 1
How would one go about reading PWM from a Hobby King HK6S 2.4GHz receiver?
Comments
Generally speaking.
You would have to know what it is driving... most likely a servo signal?
Figure out the frequency of the PWM. Drive the receiver with a know source based on your measurements...With your signal as a source, measure the high or low signal coming out of the receiver...over a known period and divide by the number of cycles. Do this across the interesting range and you have what you need.
Not perfect but it should work.
I'm sure there will be better answers coming along shortly:)
Rich
Go to https://github.com/parallaxinc/Flight-Controller
Look in the Firmware folder for Spin, or Firmware-C for C++. (Both versions use a PASM driver for accuracy, but you talk to it from Spin or C).
The PASM code works exactly in the manner Jon describes, and the Spin / C part of the code scales the result back to 1/2 microsecond units.