Tuesday, January 8, 2008

[oopic] Re: Program Resetting Upon Completion of Stepper Motor Script

--- In oopic@yahoogroups.com, "turgrid" <turgrid@...> wrote:
>


Besides what Dennis said, you should also be using a large value
reservoir cap to compensate for the inductance of the battery leads.

http://www.4qdtec.com/pwm-01.html#cap


- dan michaels
www.oricomtech.com
--- OOBOT40 Boards ---
=========================


> Yes, both the motor and oopic are on same power supply. Thanks for
> your reply.
>
> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@>
wrote:
> >
> > It sounds like as soon as you turn things on your power bus tanks
and
> > the ooPIC resets, which turns the power off allowing the ooPIC to
turn
> > back on. Are you running the motor on the same power supply as
the
> > ooPIC logic?
> >
> > DLC
> >
> > turgrid wrote:
> > > Hello,
> > >
> > > I am working with oopic-r c1.x+ and compiler 6.1.1. The h-
bridge
> > > we're using is the L298 and is wired correctly as per the data
sheet
> > > with ground and +5v for the oopic and the L298 both coming from
the
> > > same battery source. The following snippet of code is
> > > looping--resetting the oopic upon execution of the last line.
The
> > > behavior happens during similar scripts as well.
> > >
> > > code:
> > >
> > > oStepper stepper = New oStepper;
> > >
> > > Void Main(Void) {
> > > ooPIC.Delay = 500;
> > > stepper.IOPack = 3;
> > > stepper.Phasing = 1;
> > > stepper.Mode = 0;
> > > stepper.Rate = 124;
> > > stepper.Value = 800;
> > >
> > > stepper.Operate = 1
> > > }
> > >
> > > In this sample case, the stepper travels 800 steps and restarts
and
> > > travels another 800 steps and restarts, etc.
> > >
> > > Why is it doing this and how can I stop it from resetting?
Thanks in
> > > advance.
> > >
> > >
> > >
> > >
> > >
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
> > --
> > ------------------------------------------------------
> > Dennis Clark ooPIC Tech Support
> > www.oopic.com
> > ------------------------------------------------------
> >
>



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:

Post a Comment