Stepper Motor

How to wire up the larger stepper motor from SparkFun using an H-Bridge (SN754410):

bipolar_stepper

 

bipolar_stepper_dd

(Images adapted from https://www.arduino.cc/en/Reference/StepperBipolarCircuit)

Note where pin 1 of chip is (marked with dot or U cut-out).

This motor requires 12V and up to 330mA of current. Red and Green wires are one coil, and Yellow and Blue the other coil. Motor datasheet showing wiring color codes: http://www.sparkfun.com/datasheets/Robotics/SM-42BYG011-25.pdf

Code samples – use the Arduino stepper library for easiest control:
http://arduino.cc/en/Reference/Stepper

Visual animation showing how they work inside:
https://ericjformanteaching.wordpress.com/2013/03/31/stepper-motor-animation-and-half-stepping/

More information from Tom Igoe’s excellent explanation:
http://www.tigoe.net/pcomp/code/circuits/motors/stepper-motors

NOTE on above: we are using a bipolar stepper, you can ignore the two-wire setups, and Arduino library now has easier Stepper functions built in.

Connecting wires to breadboard: the motor has stranded wire which does not fit well into breadboards. Solder to header pins, either

  • individually to connect directly to the h-bridge, or
  • to a header pin block, with additional wires on the breadboard connected to the h-bridge
    • This needs more wires but allows for easy plugging and unplugging of the motor
Optional: solder to block instead of individual header pins
Use mounting hub (with tiny set screw) to attach motor shaft to objects

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: