A4983 and Arduino Uno

So I don’t seem to be having any luck getting the my motor to move using the unregulated A4983 and an Arduino Uno.

Motor: https://www.sparkfun.com/products/9238

Wiring Photo: http://dumpon.us/492.jpg

Arduino Sketch:

void setup(){
  pinMode(11, OUTPUT);    // direction pin
  pinMode(12, OUTPUT);    // step pin
  pinMode(13, OUTPUT);    // enable pin
  digitalWrite(13, HIGH); // set enable high

void loop(){
  digitalWrite(12, LOW);
  digitalWrite(12, HIGH);

Stepper power: +12v @ 16.5A

Arduino power: +5v @ 1A

Any ideas what I am doing wrong?


At a glance, I see two things wrong with your setup:

  • The enable input is inverted (it is actually [o]ENABLE[/o]), meaning that the motor outputs are disabled when that pin is driven high, so it should be set to logic low for normal operation. It has an internal pull-down resistor, so you can leave it disconnected if you do not need to change the pin’s state.

  • The [o]RESET[/o] pin needs to be high for the outputs to work. You can connect it to the adjacent [o]SLEEP[/o] pin, which has an internal pull-up, to pull it high.

We have a minimal wiring diagram on the product page for the A4983 driver carrier that you can use to check your connections. Please let us know if you get the driver working.

- Kevin

Yep! That did it and it is now working as expected :slight_smile: