This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Thursday, July 24, 2008

[oopic] Re: OOPIC C1+ Firmware

Well...I just had an opportunity to try out the below suggestion and
here's what I did:

- Hooked a single wire from Line 8 to Line 17.
- Dim-ed oRCIN1, set up it's Adjust property, and turned it on
- Created an oServo on Line 8 and commanded it to go to the neutral
position (32)
- Created another oServo on Line 9 and had the following line in the
code:

Servo2.Position = Vex.Ch1

- Servo2 was setup on Line 9 and and Vex is the name of oRCIN1

Here's the interesting thing: when I hooked up an actual servo on Line
9, I didn't get a response AT ALL from the servo. I unplugged the
Line 8 - Line 17 connection and reset the ooPIC, plugging in the
actual servo to Line 8 this time and saw it go to the neutral
position. To me, this meant that oServo on Line 8 was working (though
not a big surprise) but that Ch1 wasn't even being defined by oRCIN1,
as Servo2.Position didn't even register when a Servo was plugged into
Line 9.

The next part was probably the most interesting: when I changed oRCIN1
to oRCIN6 (and that's all I changed, though I put the setup back to
it's original state, making the Line 8 - Line 17 physical connection),
I got a response out of the servo hooked up on Line 9. Unfortunately,
the servo thought Ch1 was 0, as it moved to that position. I have
previously verified that the value here is, in fact, 0 by using the
Object Watcher program. In the past, moving the transmitter's CH1,
and thereby ideally changing this value from 0 to something else, does
nothing.

oRCIN1 to oRCIN6 made a difference with SOMETHING, though I'm still
not really sure what. Thoughts...comments?

Jonathan


--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> --- In oopic@yahoogroups.com, "esaero" <esaero@> wrote:
> >
> > Richard --
> >
> > Good suggestion about scoping it, and I guess I should have mentioned
> > it before, but I have scoped it and seen the six distinct signals that
> > look properly set up for the the RCIN object says it needs.
> >
> > Just so I understand correctly what you're saying, are you saying to
> > have a oServo object producing a PWM out of Pin 8, for example, and
> > feed Pin 8 straight into Pin 17 and Run the oRCIN1 object? Makes
> > sense and a good idea for troubleshooting. That would at least tell
> > us if the oRCIN object is "working". I'll report back in a few
hours...
> >
> > Regards,
> >
> > Jonathan
>
> Yup! That's how I would start...
>
> BTW, I assume you saw 6 pulses of various widths between 1.0 and 2.0
> mS in a 20 mS frame. I'm not sure what the pulse separation should be
> but I know I have seen it on one of the servo manufacturer's sites.
>
> I would imagine the pulses should be positive going. I have never
> used an RC controller so I'm not sure what to expect. But I do know
> what the pulses look like when they get to the servo and that the 1.0
> - 2.0 mS thing. Some servos will accept a wider range - perhaps 0.5 to
> 2.5 mS.
>
> Richard
>

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

No comments: