Shop OBEX P1 Docs P2 Docs Learn Events
PWM measurement and output from an RC Receiver — Parallax Forums

PWM measurement and output from an RC Receiver

muneebmansoormuneebmansoor Posts: 2
edited 2011-07-04 08:46 in Propeller 1
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.

Comments

  • ypapelisypapelis Posts: 99
    edited 2011-07-04 04:41
    Muneeb,

    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.
  • PublisonPublison Posts: 12,366
    edited 2011-07-04 04:50
    There are a few in the OBEX. Here is one I like:

    http://obex.parallax.com/objects/482/

    Do a search for "Servo" in the Object Exchange, and you will come up with a few others.
  • muneebmansoormuneebmansoor Posts: 2
    edited 2011-07-04 08:46
    Thank you. Is there any way of displaying PWM pulses on an LCD or Parallax Serial Terminal?
Sign In or Register to comment.