A stepper motor is a motor which rotates by making
angular steps. Here a unipolar motor is given. It can be used in various applications.
The different parameters of the Stepper motor
Current through coil
Current for exciting coil
The different components used in this circuit
1. 8051 Microcontroller
2. ULN2001A – Darlington Array
3. Stepper Motor
4. DC Voltage Source
A clock generator signal is fed to the XTAL pin of
the microcontroller. Here a repeatable pattern with low 50n and high 50n is
The source code for 8051 – microcontroller
is as given below
#include<8051.h> // This header file is included
for all 8051 projects.
#define DELAY 10
void Delay(int Time);
repeat: // This loop is given to repeat the sequence outputting
into the stepper motor.
P2= 1; // Port2 outputting the sequence 0001
P2= 2; // Port2 outputting the sequence 0010
P2= 4; // Port2 outputting the sequence 0100
P2= 8; // Port2 outputting the sequence 1000
goto repeat; // Repeat the sequence
// Delay function is to provide delay between two steps.
void Delay(int Time)