Friday, August 17, 2018

Motor Shield - Stepper Motor

Using the Motor Shield for controlling a stepper motor is about the same amount of effort as it would be to run it if you had a ULN2003, however, the wiring is a more tedious in this case since you have to run all 5 wires directly into the shield, rather than plug it into an adapter board.


Wiring

The shield needs external 5V power which can be supplied via a Power Supply Module (as shown above).  The Stepper Motors wires are connected directly to the blue output screw clips.  The wiring mapping is shown in the table below.

 See the image below to better identify what the shield pins are:

Code

Utilizing the Motor Shield library, run the following code example:



  • Examples > Adafruit Motor Shield V2 Library > StepperTest
  • No comments:

    Post a Comment