NEMA17 + A4988 reference circuit and code

Someone bought NEMA17 motors from us and asked for a test, so we obliged and thought it may be better to post it here in case someone else needs it. The requirements was to use the following parts from our stock:

  • Saleng/Arduino Uno
  • NEMA17 Bipolar Stepper Motor
  • A4988 driver module

We then needed to rotate the motor clockwise and counter clockwise to demonstrate its basic usage. Here is our wiring diagram:

This is our test code:

After uploading and correctly wiring, you should expect the motor to move one full revolution in both directions. Happy hacking!






Leave a Reply

Your email address will not be published. Required fields are marked *