Go Down

Topic: newbie and puzzled by A4988  (Read 116 times) previous topic - next topic

elz064

This is a newbie question:

I need to drive a stepper moter (14HS11-1004S here: https://www.gotronic.fr/art-moteur-14hs11-1004s-18351.htm)

the vendor advise to use the Polulu A4988 driver module.

Then begin the fog for me.
Polulu web site list this library :https://github.com/laurb9/StepperDriver
That is obviously very unclear. poor documentation.

And I found  this one as an alternative:
http://www.airspayce.com/mikem/arduino/AccelStepper/
 looking more friendly.

Any suggestions please ?


My need is to make the stepper turning constantly a speed defined by a potentiometer position (the potentiometer will be read on a A pin or the UNO, then a value must be sent to the driver to set the rotation speed.
 a Stop/Go button (one impulsion we change the state rotate or stop it) must be added too.

How can I do this please.

Thank you

Robin2

These links may help to provide some background knowledge
Stepper Motor Basics
Simple Stepper Code


The AccelStepper library is widely used.

However, as can be seen from my examples, an A4988 is easy to drive without any library if you don't need the acceleration features of AccelStepper.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

MarkT

#2
Jul 20, 2018, 03:17 pm Last Edit: Jul 20, 2018, 03:17 pm by MarkT
Start with the AccelStepper examples, configure for DRIVER mode (step+direction pins).
Code: [Select]

AccelStepper stepper (AccelStepper::DRIVER, step_pin, direction_pin) ;


Follow the current setting proceedure for your motor.

You always need acceleration feature when using anything but a tiny tiny stepper, otherwise you'll
fail to reach full performance. (the motor will skip rather than accelerate instantly).
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

elz064

thank you for those informations. I'll probably be back soon once I'll actually work on the project

Go Up