PDA

View Full Version : RX input / RC Receiver Input - Re-Updated



W9GFO
07-17-2009, 02:49 AM
I've uploaded my first object to the object exchange. It is called RX Input / RC Receiver Input. (http://obex.parallax.com/objects/482/)

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

Ole Man Earl
07-17-2009, 05:13 AM
Great Rich,
I have been using BS2 pulsein which without a signal hangs.
Earl

W9GFO
07-19-2009, 01:18 PM
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

W9GFO
07-20-2009, 04:16 AM
For some reason Servo32v6 isn't working as expected so I've gone back to a very slightly modified Servo32v5.

Rich H

hover1
07-20-2009, 04:22 AM
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

W9GFO
07-20-2009, 04:52 AM
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 Schwabe
07-20-2009, 07:22 AM
Rich H,

OBEX updated to version Servo32v6 ...

obex.parallax.com/objects/51/ (http://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 (mailto:bschwabe@parallax.com)

IC Layout Engineer
Parallax, Inc.

Post Edited (Beau Schwabe (Parallax)) : 7/19/2009 11:34:19 PM GMT

W9GFO
07-20-2009, 10:51 PM
Ok, it's been updated again to use the new Servo32v6 object AND an improved LCD driver.

Rich H