Shop OBEX P1 Docs P2 Docs Learn Events
Vex Transmitter Decoder Object — Parallax Forums

Vex Transmitter Decoder Object

John AbshierJohn Abshier Posts: 1,116
edited 2008-11-06 21:14 in Propeller 1
The attached Spin object decodes the pulses from a Vex Transmitter.· Outputs for analog, joystick, channels are uSeconds or scaled values.· The buttons return high, low or off.· This version runs in the cog that calls it and can lock the cog if there is no signal (transmitter off)· and will lock the cog 100 percent of the· time if the receiver is not conntected to the Prop.· I am working on a second version that runs in a separate cog with the ability to detect that the cog is locked so one can stop and restart the cog.

Thanks to Jon Williams for the SX/B inspiration and to Martin Hebel for the Pulsin routine.

John Abshier

Comments

  • BergamotBergamot Posts: 185
    edited 2008-11-06 20:13
    John Abshier said...
    The attached Spin object decodes the pulses from a Vex Transmitter. Outputs for analog, joystick, channels are uSeconds or scaled values. The buttons return high, low or off. This version runs in the cog that calls it and can lock the cog if there is no signal (transmitter off) and will lock the cog 100 percent of the time if the receiver is not conntected to the Prop. I am working on a second version that runs in a separate cog with the ability to detect that the cog is locked so one can stop and restart the cog.


    Thanks to Jon Williams for the SX/B inspiration and to Martin Hebel for the Pulsin routine.



    John Abshier

    Cool, I picked up one of these for $30 a few months ago, but never got around to writing a decoder object.

    Much appreciated! smilewinkgrin.gif

    EDIT: They still have some in stock.

    Post Edited (Bergamot) : 11/6/2008 9:44:09 PM GMT
  • John AbshierJohn Abshier Posts: 1,116
    edited 2008-11-06 21:14
    I tried it at 3.3 volts and it worked. Don't know if that reduces the useful range.

    John Abshier
Sign In or Register to comment.