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.

Monday, November 26, 2007

[oopic] Re: H-Bridge issue...maybe.

--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> --- In oopic@yahoogroups.com, Shaggy <charrington@> wrote:
> >
> >
> > Does the oDCMotor2 pulse work differently at 127 (full forward) than
> it does
> > at EVERY other value?
>
> Not really! At 126, the output is on all except the slightest little
> sliver of off time. At 127, the output is on constantly.
>
> Similarly at -127 there is the slightest sliver of off time and at
> -128 the output is on constantly.
>
> I do get steady ramping when using the sample program where the output
> varies from -128 to 0 to +127 and back again.
>
> I changed the sample code:
>
> do A = -128 to 127
> ...
> do A = 127 to -128 step -1
>
> There is nothing different about 127 except that it doesn't have a
> pulse at all. Just a constant DC level.
>
> It's too bad RogueRobotics doesn't post their schematics. I would
> like to see how the thing wires up to the OOPic.
>
> Richard
>

Whether the motor rotates or not, the voltage across the motor should
ramp with the OOPic. I really believe there is a ground connection
missing between the OOPic and the controller.

Disconnect the motor and try measuring the motor voltage while the
OOPic is ramping.

As I mentioned earlier, dump the oDCMotor2 object and put the IOLineP
at '1', IOLine1 at '1', IOLine2 at '0' and the motor should run full
speed in one direction. Swap the states of IOLine1 and IOLine2 to get
the other direction. With no pulsing at IOLineP you are getting all
the controller can deliver. Substitute the real IOLine numbers as
required.

Any chance of installing the cable backwards? There should be a mark
at pin 1 on both boards (sometimes just a square pad where the pin is
soldered in) and there is often a red stripe on the cable at pin 1.
Or there is a small embossed triangle at pin 1 on the cable connector.

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: