Stepper lib Unipolar Stepping sequence IN1-IN3-IN2-IN4

Hi, I'm writing a lib to drive steppers and with Unipolar case I'm using Arduino Stepper for inspiration.

I got the sequence "right" but following some tutorial it only goes clockwise:

Arduino and Stepper Motor Configurations

This one works fine, when flipping middle pins, but why (and why there is no mention of this in prev blogPost)?

// Pins entered in sequence IN1-IN3-IN2-IN4 for proper step sequence
Stepper myStepper = Stepper(stepsPerRevolution, 8, 10, 9, 11);

Cheers,
Juan

Yes, we frequently help people with flipping pins and reducing speed to the 15RPM max of those motors. There is also no need to drive two coils at the same time. It only gives slightly more torque at the cost of twice the current. I think half-step (8-sequence) is also silly for a motor with a plastic gear train.
See this thread where I derive a single coil 4-sequency from the two LSB of a changing variable.
On this site you can also find code to drive, in theory, about 150 of those steppers at full speed from a single classic Nano.
Leo..

Thanks,

Interesting algo. I'm writing a python, for RPi, Will continue with some questions in your thread.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.