Hi,
On Sunday, May 26, 2013 04:00:02 AM Duane Bishop wrote:
> Ah HA! I found the culprit.
>
> In AccelStepper.cpp lines 547 & 548 just needed to be swapped.
>
> Calling pinMode resets the pin state to low. Not good if you need it to be
> HIGH. (Otherwise it goes un-noticed, or could this be a Due specific
> problem?)
Looks like thats a Due specific thing.
I dont see that behaviour on other Arduino boards.
Change has been made in new version 1.32 uploaded now.
Thanks for the report and diagnosis.
Cheers.
>
> On Sunday, May 26, 2013 5:35:41 AM UTC-5, Duane Bishop wrote:
> > Ok, here's what I scratch out so far...
> >
> > stepper1.setEnablePin(36); // stepper A
> > stepper2.setEnablePin(37); // stepper Z
> > stepper3.setEnablePin(38); // stepper Y
> > stepper4.setEnablePin(39); // stepper X
> > stepper1.setPinsInverted(false, false, false);
> > stepper2.setPinsInverted(false, false, true);
> > stepper3.setPinsInverted(false, false, true);
> > stepper4.setPinsInverted(false, false, false);
> > stepper1.disableOutputs(); // stepper runs. (should be disabled.)
> > stepper2.disableOutputs(); // works correctly. (is disabled.)
> > stepper3.enableOutputs(); // no motion
> > stepper4.enableOutputs(); // no motion either.
> >
> > Ok, from this I can deduce that:
> > - setEnablePin() works correctly.
> > - setPinsInverted() works correctly.
> > - disableOutputs() works correctly. (Self-correction, my driver needs
> > +v on enable pin to go active.)
> > - enableOutputs() *not *behaving as expected.
> >> > > > >
accelstepper...@googlegroups.com.
> >> > > en .
> >> > > To unsubscribe from this group and all its topics, send an email to
> >> > >
accelstepper...@googlegroups.com.
> >>
accelstepper...@googlegroups.com.