Drive a stepper motor with acceleration and deceleration using an Allegro driver on ATmega8

Posted on Tuesday, March 3rd, 2015 in AVR, hacks, library by DP


Davide Gironi writes:

This library drive a stepper motor using the Allegro A3967 (EasyDriver) on ATmega8. It will also work on the Allegro a4988, and other type of motor driver controlled by the number of pulse received.
It features:

  • direction changing
  • speed changing
  • acceleration and deceleration
  • multiple motor driving
  • stop spinning after number of step, or continuos spinning mode

It would be easly portable on other microprocessor.

Check out the video after the break.

More information on Davide Gironi’s blog page.

This entry was posted on Tuesday, March 3rd, 2015 at 11:43 am and is filed under AVR, hacks, library. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Cody: Yes please
  • Edward Mallon: I've been oversampling those thermistors with the ADC and some pin-toggle noise for a while now, and that method is good. But lately I've been...
  • Marko: armature -> amateur
  • Crawford: Dibs,
  • bill: a sunny Sunday here