Page 201 - Making things move_ DIY mechanisms for inventors, hobbyists, and artists
P. 201

Chapter 6    Options for Creating and Controlling Motion          179




               FIGURE 6-38 Stepper motor circuit all wired up











































                 8. Connect a 12V power supply to the M+ and GND pins on the EasyDriver. The
                     example uses a benchtop supply set to 12V. (Refer to the appendix for other
                     ways to get power to your breadboard.) Your circuit should now resemble
                     Figure 6-38.


                 9. Type the following code, verify it, and upload it to your Arduino.
                     /*
                     This code is to get one stepper motor moving through
                     SparkFun’s EasyDriver board.
   196   197   198   199   200   201   202   203   204   205   206