RX input / RC Receiver Input - Re-Updated
W9GFO
Posts: 4,010
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
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
I have been using BS2 pulsein which without a signal hangs.
Earl
It also uses the new Servo32v6 object for servo control.
Rich H
Rich H
I noticed Beau has not posted v6 to OBEX yet, maybe he's still cleaning it up?
Pulse width problems or zone problems?
Jim
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
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
Rich H