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

176        Making Things Move




                   • Stepper motor (SparkFun ROB-09238)

                   • EasyDriver (SparkFun ROB-09402)
                   • Male header pins (SparkFun PRT-00116)
                   • Diagonal cutters (like SparkFun TOL-08794)


               Recipe:

                 1. Break or cut off one set of four, one set of three, and one set of two male
                     headers.

                 2. Solder male headers onto the EasyDriver (see Figure 6-36). The set of four lines
                     up with the four motor holes, the set of three lines up with the GND/STEP/DIR
                     holes, and the set of two lines up with the GND/M+ holes.

                 NOTE     It’s easiest to solder if you stick the long ends of the headers into
                 the breadboard, slide the EasyDriver on the short ends, and then heat up the
                 little solder pads around the holes while you add solder. Be careful not to
                 add so much solder that the pins connect to each other!

                 3. Break or cut off another set of four male headers and solder them onto the
                     end of the stepper motor wires (see Figure 6-37). Make sure red and green are
                     next to each other on one side, and blue and yellow on the other.

                 4. Plug the stepper motor header into the breadboard in line with the motor pins
                     on the EasyDriver. The red and green wires should be next to A on the
                     EasyDriver, and the blue and yellow wires next to B.

                 5. Jump a ground pin from the Arduino to the GND pin on the EasyDriver.

                 6. Connect Arduino pin 8 to DIR.


                 7. Connect Arduino pin 9 to STEP.
   193   194   195   196   197   198   199   200   201   202   203