A Stepper Motor Driver is a circuit or device that provides the necessary current and voltage to a Stepper Motor so that it has a smooth operation. A Stepper Motor is a type of DC Motor that rotates in steps.
The main difference between a simple DC Motor and a Stepper Motor is that through a Stepper Motor, we can achieve precise positioning with the help of digital control.
Outline
ToggleStepper Motor Driver Circuit
A Stepper Motor rotates precisely by synchronising the pulse signals from a controller, which are given through a Driver. A Stepper Motor Driver is a circuit that takes the pulse signals from a controller and converts them in to Stepper Motor Motion.
In this project, we have designed a simple 12V Stepper Motor Driver Circuit using 555 Timer IC (acting as a controller), a CD4017 Decade Counter (acting as the driver) along with few other components.
Circuit Diagram
Components Required
- 555 Timer IC
- CD4017 Johnson Decade Counter (10 Decoded Outputs)
- 4 x 2N2222 NPN Transistors
- 4 x 1N4007 PN Junction Diodes
- 4 x 1 KΩ Resistors (1/4 Watt)
- 2.2 KΩ Resistor (1/4 Watt)
- 470 Ω Resistor (1/4 Watt)
- 100 KΩ Potentiometer (Knob type)
- 100 pF Ceramic Disc Capacitor (Code – 101) (Also read as 0.1 nF)
- 1µF 16V Polarized Capacitor
- 12V Stepper Motor (Unipolar – 5 Wire)
- Connecting Wires
- Breadboard (Prototyping Board)
- 12V Power supply
Component Description
555 Timer IC
IC 555 is a very famous timer IC that is often used for time delays, pulse generation and many oscillator applications. IC 555 has three modes of operations namely Astable Multivibrator (Pulse Generator), Monostable Multivibrator (Time Delays) and Bistable Multivibrator (Flip – Flop). In this project, we have used this 555 IC for generating a pulse i.e. in Astable Mode of operation.
CD4017 Decade Counter IC
CD4017 is a Counter IC that produces 10 Decoded outputs and hence a Decade Counter. These counters are often used in displays, frequency division operations, binary counters, etc.
But in this project, we are using the CD4017 Counter IC as a Stepper Motor Driver. And hence, this Stepper Motor Driver Circuit is essentially a Binary Counter Circuit.
Stepper Motor
A 12V Stepper Motor is used in this project. It is a Unipolar type Stepper Motor with 5 – wire configuration. Basically, Stepper Motors are classified in to Unipolar Stepper Motors and Bipolar Stepper Motors, based on the windings of the stator. The following image shows a Bipolar Stepper Motor with its winding.
The Driver circuit for a Unipolar Stepper Motor can be constructed with the help of few transistors or a Darlington Transistor IC like ULN2003.
But, the driver circuit for a Bipolar Stepper Motor requires an H – bridge type connection. Hence, we use H – bridge ICs like L293D to drive Bipolar Stepper Motors.
Circuit Design
We will start with the Square wave Generator i.e. 555 IC in Astable Mode. A 2.2 KΩ Resistor is connected between the VCC and Discharge Pin of 555 (Pin 7).
A 100 KΩ Potentiometer is connected between the Discharge Pin (Pin 7) and the Threshold pin (Pin 6), which is in turn shorted with the Trigger Pin (Pin 2).
A 1 µF Capacitor is connected between the Trigger pin (Pin 2) and GND. A Bypass Capacitor of 100 pF is connected at the Control Voltage Pin (Pin 5). The other pins i.e. VCC (Pin 8) is connected to 12V supply, Reset Pin (Pin 4) to 12V supply and Ground Pin (Pin 1) to GND.
The Output of 555 Timer IC i.e. the Pin 3 is given as Clock Input to the CD4017 Counter IC i.e. to its 14th Pin. The VDD and VSS pins of CD4017 i.e. Pin 16 and 8 are connected to 12V Supply and GND respectively. Enable Pin (Pin 13) is connected to ground.
We need to control the 4 coil terminals of two coils in the stepper motor. Hence, we need only 4 outputs from the driver. These outputs are Q0 to Q3 i.e. Pins 3, 2, 4 and 7 respectively. The outputs of the Counter are connected to base terminals of 4 transistors through separate 1 KΩ Resistors.
The counter must reset on the fifth pulse and hence the Q4 (Pin 10) which in nothing but the fifth output, is connected to the reset pin of CD4017 i.e. pin 15 and this pin is connected to GND through a 470 Ω Resistor.
The Stepper Motor is a Unipolar Type in 5 wire configuration. The center pin is shorted internally and is connected to the supply (12V here).
The other 4 terminals of the stepper motor are the ends of two coils. They must be connected to the collector terminals of the four transistors.
It important that they are connected in the sequence of firing of the outputs. Finally, four diodes are connected between the collector terminals and supply. Diodes are very important as they will protect the transistors from inductive spiking.
Working of the Stepper Motor Driver Circuit
The working of this Stepper Motor Driver circuit is very simple. We will see a step – by – step working explanation.First, the 555 Timer IC is configured as an Astable Multivibrator i.e. it acts as a square wave generator.
Based on the position of the Potentiometer, the frequency of the square wave will vary anywhere between 7 Hz to 340 Hz.
This square wave is given to the CD4017 Counter IC as its Clock Input. For every positive transition of the clock signal i.e. a low to high transition, the counter output advances by one count.
For first positive transition on clock, Q0 will be high, for second positive transition, Q1 will be high and so on.
Since we need only 4 outputs, the fifth output i.e. Q4 is connected to the Reset pin so that the counter will reset and the counting starts once again.
The outputs of the Counter IC CD4017 are given to 4 different transistor, which are in turn connected to the 4 coil terminals of the Stepper Motor. We can understand better from the following diagram.
Assume the points A, B, C and D are the contacts of the coils connected to the transistors. The common wire in the stepper motor is given to 12V supply.
When the first clock signal is applied to the CD4017, Q0 becomes HIGH. This will turn ON the corresponding Transistor.
As a result, the supply from the common wire goes through point A to ground. This will energize the coil and acts as an electromagnet. The rotor will get attracted and turns to that position.
During the second clock pulse, output Q1 become HIGH and as a result, the transistor associated with it is turned ON. Now, the current flows from common wire to GND through point B.
Hence, this coil will be energized and turns in to an electromagnet. This will further rotate the rotor. This process continues and depending on the frequency of the clock signal, the speed of rotation of the stepper motor varies.
Advantages
- A DIY type Stepper Motor Driver is designed here that can drive Unipolar Stepper Motors.
- By using this stepper motor driver, we can avoid costly dedicated Stepper Motor Driver boards.
Disadvantages
- This design is not an efficient one.
- Requires a lot of complex wiring for a small application.
Construction and Output Video
3 Responses
Hello from Venezuela. Can I use a six-wire unipolar motor? how? thanks!
Yes, by locating the two common wires and connecting them both to 12V.
Is stepper motor is permanent magnet or variable reluctance?