SparkFun ProDriver Hookup Guide

Pages
Favorited Favorite 3

Arduino Examples

Note: Most of the examples in the Arduino library will use a standard setup for the ProDriver (shown below), with the exception of the Example8_SerialMultiMotor demo code.

standard setup
The SparkFun RedBoard connected to a ProDriver and stepper motor. (Click to enlarge)

Example 1: Basic Motor Control

The first example in the Arduino library is perfect for demonstrating the basic functionality of the ProDriver. In the Arduino IDE, the example file can be found in the File > Examples > SparkFun ProDriver TC78H670FTG Arduino Library > Example1_Basic drop down menu. The example, utilizes the default configuration of the Arduino library and steps the motor utilizing clock-in control.

example 1 demo
Operation of the ProDriver utilizing the Example1_Basic example code.

Example 8: Serial Control - Multiple Motors

Example 8 demonstrates the operation of multiple ProDrivers through a parallel connection. In the Arduino IDE, the example file can be found in the File > Examples > SparkFun ProDriver TC78H670FTG Arduino Library > Example8_SerialMultiMotor drop down menu. The example, configures the microcontroller to sequentially operate multiple ProDrivers.

example 8 demo
Operation of the ProDriver utilizing the Example8_SerialMultiMotor example code.