Tuesday, 19 April 2016

A4988 Stepper Motor Driver



Helping out a friend with a new laser engraver led to me having to debug the circuit containing the A4988 Stepper motor driver.

Whilst doing that I used the following circuit and code on a Arduino UNO to test the various components.


The circuit use the following baseline from the Pololu website



Things to note:

It is important that VMOT be in the 8-35V range (I use 12V)

The Circuit used:


And the code:


Loading Gist: https://gist.github.com/madmouser1/dc271f3ed70175d9bd8c0b6b4edb50b7
I copied the gems to my box and installed them with the below command.. (it did take a while to install). Thus, please give it sometime before you think it might hang for ever.
mohnish@mohnish-laptop:~/xxxx/latest/prj_name/vendor/cache$ gem install ruby-debug19-0.11.6.gem -l
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Successfully installed linecache19-0.5.12
Successfully installed ruby-debug-base19-0.11.25
Successfully installed ruby-debug19-0.11.6
3 gems installed
Installing ri documentation for linecache19-0.5.12...
Installing ri documentation for ruby-debug-base19-0.11.25...
Installing ri documentation for ruby-debug19-0.11.6...
Installing RDoc documentation for linecache19-0.5.12...
Installing RDoc documentation for ruby-debug-base19-0.11.25...
Installing RDoc documentation for ruby-debug19-0.11.6...

No comments:

Post a Comment