Shop OBEX P1 Docs P2 Docs Learn Events
RX input / RC Receiver Input - Re-Updated — Parallax Forums

RX input / RC Receiver Input - Re-Updated

W9GFOW9GFO Posts: 4,010
edited 2009-07-20 14:51 in Propeller 1
I've uploaded my first object to the object exchange. It is called RX Input / RC Receiver Input.

It uses counters to read the servo signal inputs on six pins, up to 14 if you launch more cogs. There are at least a couple other objects that do something similar but this one does not require the signals to arrive in any certain order nor does it require that all pins be connected.

There is a simple check in the beginning which listens for 1/4 second to see if a signal is present. If not, that counter is never checked - so no hanging.

Feedback encouraged.

Rich H

Post Edited (W9GFO) : 7/20/2009 2:47:35 PM GMT

Comments

  • Ole Man EarlOle Man Earl Posts: 262
    edited 2009-07-16 21:13
    Great Rich,
    I have been using BS2 pulsein which without a signal hangs.
    Earl
  • W9GFOW9GFO Posts: 4,010
    edited 2009-07-19 05:18
    This object has been updated to improve accuracy. Previously all measurements were off by 3 microseconds.
    It also uses the new Servo32v6 object for servo control.

    Rich H
  • W9GFOW9GFO Posts: 4,010
    edited 2009-07-19 20:16
    For some reason Servo32v6 isn't working as expected so I've gone back to a very slightly modified Servo32v5.

    Rich H
  • hover1hover1 Posts: 1,929
    edited 2009-07-19 20:22
    Rich,

    I noticed Beau has not posted v6 to OBEX yet, maybe he's still cleaning it up?

    Pulse width problems or zone problems?

    Jim
    W9GFO said...
    For some reason Servo32v6 isn't working as expected so I've gone back to a very slightly modified Servo32v5.

    Rich H
  • W9GFOW9GFO Posts: 4,010
    edited 2009-07-19 20:52
    hover1 said...
    Rich,

    I noticed Beau has not posted v6 to OBEX yet, maybe he's still cleaning it up?

    Pulse width problems or zone problems?

    I think those problems are dealt with however, something different is happening. When I updated with his new Servo32v6 I didn't notice that the ramping feature had been integrated with the object.

    For now I simply added the one line of code which is noted in the object which I have saved as Servo32v5b. That takes care of the pulse width problems as far as I can tell. I think it's fine for my RX Input object because the servo control isn't the point of it - just a way to pass through the signals.

    I'm sure that Servo32v6 will be along shortly.

    Rich H
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2009-07-19 23:22
    Rich H,

    OBEX updated to version Servo32v6 ...

    obex.parallax.com/objects/51/

    ... I was in the middle of testing the object and inadvertently tacked on an older version of the ramp routines.
    The correct ramp routines to use are "Servo32_Ramp_v1.spin" in correlation with "servo32v6" as you should find them in the OBEX.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 7/19/2009 11:34:19 PM GMT
  • W9GFOW9GFO Posts: 4,010
    edited 2009-07-20 14:51
    Ok, it's been updated again to use the new Servo32v6 object AND an improved LCD driver.

    Rich H
Sign In or Register to comment.