Creative Commons images are CC BY-NC-SA 3.0

Description: The SparkFun AutoDriver board is based on the STMicro L6470 dSPIN stepper motor driver. This powerful chip allows you to control a stepper motor with a voltage from 8 to 45V at 3Arms over an SPI connection. The AutoDriver board has been designed to be easily integrated into a project, even with multiple boards. Just connect your motors and your SPI-capable microcontroller and get steppin'!

STMicro’s L6470 is a 3A, 8–45V bipolar stepper motor driver. It has built-in overcurrent detection, undervoltage detection, overtemperature detection, stall detection, a 5-bit ADC, and a switch input that can be used for either user jog control or as a hard stop function. As if that weren’t enough, it also features microstepping support (up to 128 microsteps per full step) and PWM drive voltage limiting. Please keep in mind that the L6470 requires a great deal more configuration and adds software complexity to your system.

Unlike most stepper motor drivers, the dSPIN is controlled over an SPI link. It has an onboard 16MHz oscillator, which allows it to autonomously execute movement commands. That means no more counting steps in your code! It also supports customized acceleration and deceleration profiles to prevent jerky starts and stops. Onboard registers track current speed and location.

This new version of the SparkFun AutoDriver’s hardware is slightly different from the previous revision. It has been modified to make it easier to daisy-chain multiple boards together with simple 10-conductor ribbon cables for data and 6-conductor ribbon cables for control. The library has been updated as well, with more information found in the Hookup Guide below.

The logic supply voltage supports both 3.3V and 5V I/O levels.

Get Started with the SparkFun AutoDriver Guide

Features:

  • Supports up to 128 Microsteps per Full Step
  • Daisy-Chain Capable
  • Over-Temperature Detect
  • Over-Current Detect
  • Under-Voltage Detect
  • PWM Drive-Voltage Limiting
  • SPI Controlled
  • Onboard Oscillator and Speed/Location Registers
  • Stall Detection
  • 5-bit ADC

Documents:

Recommended Products

Customer Comments

  • I’ll preface this by saying that I don’t own the AutoDriver, but I’m a physics graduate student that just finished building something that required precise, reproducible, automated control of some stepper motors so I have some perspective on the topic. I originally bought an Arduino stepper motor shield from another company because it was cheaper and looked easier to use, but if I had to do things over I would without a doubt go with the AutoDriver.

    The AutoDriver can only control a single motor, which makes it much more expensive at $37 each, but you get a lot for your money. This board keeps track of your current position, allows you to set a “home” position, tells you when the motor is moving (via the “busy” pin), and lots of other advanced features. A lot of these things I had to implement in my own C++ library for the Arduino using the shield I bought. Did I mention it has stall detection? When you’re using a beefy stepper motor with a ton of torque, you don’t want to worry that a bug in your hastily thrown together code will let the motor blow through it’s home position and destroy the delicate insides of your scientific equipment that’s “ask for a quote first” level expensive.

    Another benefit of this guy is that it can handle 3A continuous, whereas the motor shield can handle 3A for ~20ms before you’re visited by the blue smoke monster. Even if you don’t need 3A continuous, it buys you some security if you screw up.

    It sounds like I’m a shill for SparkFun here, but I really think the AutoDriver is a cool product. The motor shield you can buy from another company is probably quicker and easier to use, but if you’re doing something that requires precision or a current-hungry motor just buy this instead. The motor shield is probably better for hobbyists who just want to get up and running, but the AutoDriver is the better product for someone who knows what they want and knows what they’re doing.

  • I would not buy this again. The library files provided for it won’t install correctly. All I get whenever I try to include it in any of the sketches written for this board is a fatal error stating that the sketch folders can not be created and the none of the folders created by the zip loader file contain any valid library files ….. even though I can look and see that they are there! And the instructions for this board are horrible! Even the examples are difficult to decipher, and of course, don’t work because they can’t find any valid library files.

    • Hi there - please reach out to techsupport@sparkfun dot com and send them a copy of the errors you are seeing. They should be able to help you debug the issue, and will help us improve the documentation to make it clearer for users.

  • Hi there,

    I’ve got a problem when using a 12V Lipo to power my Arduino Mega2560. A move command gets executed, when the Arduino Mega is connected via USB and the Lipo is hooked up to the AutoDriver and Vin of the Arduino.

    The move command doesn’t get executed however, if I power up the project only via the Lipo (connected to Vin and the stepper Driver). When that is the case, the Arduino 5V reads 5V, also on the Stepper Driver.

    And now the weird thing. When powering up while USB and Lipo connected, my example code waits 3 seconds for the stepper command. In that time I quickly unplug the USB and the move command works.

    I am using a buzzer tone before and after the move command which means that the code doesn’t get stuck anywhere I guess.

    Any ideas?

    • Arduino boards take a noteable amount of time to boot before executing a command. Is it possible that somehow in that time, your board is rebooting? Disconnecting the USB, or connecting it, causes the board to reboot.

      • Hi,

        I’m using a buzzer to indicate before and after the command. If I plug in the battery first and then the USB (before the command), the Arduino doesn’t reboot, as the first buzz doesn’t repeat. The motors then turn.

        • Hi,

          solved the problem, but don’t understand the cause. I used digital pins for the autodrivers 5V and GND. Once I use the mega’s 5V pin however, the autodriver works properly.

          Even though the pins are pulled first thing in the software, followed by a 3 second delay.

          Any idea why this happens?

  • Both the AutoDriver library and GitHub links above are 404

  • Minor errata: 3Arms => 3A or 3 amps

    • The formatting on that is a bit weird, but it is 3.0 A r.m.s. according to the datasheet (2nd bullet point on the first page).

Customer Reviews

1 out of 5

Based on 1 ratings:

5 star
0
4 star
0
3 star
0
2 star
0
1 star
1

0 of 2 found this helpful:

Don't waste your time

The provided library zip file won’t install properly. All I get is errors stating that the intended folders do not contain any valid library files. I’ve messed with this thing for days and can not get any of the example sketches to work. None of the sketches provided by others work either. I bought this for a project I needed to finish quickly, and now that project is way behind due to trying to get this thing to work.

Sorry you’re having problems with the library. If you’re going to the above Github link, and downloading that ZIP file, the Arduino IDE won’t be able to add it as a ZIP library. You need to follow the AutoDriver Library link, and download that one. I just tested it on two different machines running two different versions of the IDE, and both worked fine. If you’re still having issues getting the library to load, I would recommend contacting our tech support team. They should be able to help you get up and running.


Related Tutorials

Getting Started with the AutoDriver - v13

September 15, 2016

SparkFun's AutoDriver is a powerful tool for controlling stepper motors. Here's how to use it.