Skip to content

mcjy99/StepperMotor_ArduinoMotorShield_NEMA17

Repository files navigation

StepperMotor_ArduinoMotorShield_NEMA17

Programming of Arduino 2A Motor Shield with NEMA17 Stepper Motor

Hardware Used

  1. Arduino Uno
  2. Arduino 2A Motor Shield : User Manual
  3. NEMA 17 Stepper Motor

Wiring Configuration

The NEMA 17 stepper motor has two coils. The two ends of each coil are connected to one motor output on the shield. The centre tap wires (black and white) can be ignored.

NEMA Stepper Motor Coil

Motor Shield NEMA 17 Motor
Motor 1A green
Motor 2A yellow
Motor 1B red
Motor 2B blue/purple

Software

The Arduino Stepper library is used. The programs are based off its inbuilt examples stepper_oneRevolution and stepper_oneStepAtATime.

  1. One Step at a Time: motor moves one step at a time, used to test motor wiring
  2. Constant revolution: motor constantly revolves at selected speed in selected direction, used to test motor wiring
  3. One Revolution: motor moves one revolution clockwise, then one revolution counter clockwise, and repeats

Application

Reliability Test for Flexible Electronics

Note:

  1. For the NEMA 17 Stepper Motor tested, the datasheet states that for one coil black is the coil end and yellow is the centre tap wire, but it was found that the opposite is true.
  2. Select the number of revolutions per step based on the motor used
  3. These examples use Signed Magnitude mode on the shield.

About

Programming of Arduino 2A Motor Shield with NEMA17 Stepper Motor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages