I. Summary The Main Principle of The Project and Its Circuits Is To Rotate The Stepper Motor Step Wise at A
I. Summary The Main Principle of The Project and Its Circuits Is To Rotate The Stepper Motor Step Wise at A
I. Summary
The main principle of the project and its circuits is to rotate the stepper motor step wise at a
particular step angle. The project will be using a ULN2003 IC and the L293D Motor Driver to
drive the stepper motor as the controller cannot provide current required by the motor.
II. Objectives
We will see what the stepper motors are and how they work.
A stepper motor can be applied to many projects. Stepper motors are used in automotive
gauges and machine tooling automated production equipment. A stepper motor is used inside
medical scanners, samplers, and also found inside digital dental photography, fluid pumps,
respirators, and blood analysis machinery. The stepper motors can also be used in disk drives,
matrix printers, etc. The circuit can be used in robotic applications and also used in mechatronics
applications.
Project Methodology
A stepper motor is brushless DC motor, which can be rotated in small angles, the angles
are called steps. Generally, stepper motors use 200 steps to complete 360-degree rotation, meaning
it rotates 1.8 degree per step. Stepper motor used in many devices which needs precise rotational
movement like robots, antennas, hard drives etc. We can rotate the stepper motor to any particular
generally has five or six wires, in which four wires are one end of four stator coils, and the other
end of the four coils is tied together that makes the fifth wire, this is called common wire. Bipolar
stepper motor there is just four wires coming out from two sets of coils, meaning there are no
common wires.
The working of this circuit is very simple. A method called Half-Stepping is implemented
in the program to rotate the Stepper Motor. When the forward button is pushed, the stepper motor
Similarly, when the backward button is pushed, it starts rotating in an anti-clockwise direction.
To stop the rotation completely, you can press the stop button.
Project procedure:
10KΩ Resistors X 2
10KΩ POT
10μF/16V Capacitor
Push Buttons X 4
330Ω Resistor
5V Power Supply
Circuit Design
First, the data pins of the LCD are connected to the PORT0 Pins of 8051. Since PORT0
doesn’t have any internal pull-up, a resistor pack is used to pull the PORT0 up. The RS and E
The RST Pin is pulled down using a 10KΩ resistor. The combination of a Push Button and a
10μF Capacitor will be used to reset the microcontroller. Also, the EA Pin is pulled-up using
a 10KΩ resistor.
Next, the oscillator. It consists of two 33pF Capacitors and an 11.0592 MHz Crystal
Coming to the Motor Driver, the two enable pins and two supply pins are connected to +5V
supply. The four inputs are connected to PORT1 pins of 8051: P1.0, P1.1, P1.2 and P1.3. The
four pins of the Bipolar Stepper Motor are connected to the four out pins of L293D.
Three buttons are connected to PORT3 pins i.e. P3.0, P3.1 and P3.2. To control the direction
AT89C51 Microcontroller
ULN2003A
Stepper Motor
Crystal
Resistor
Capacitor
Circuit Design
programmable I/O lines. It has 4K bytes of Flash programmable and erasable memory. An
external crystal oscillator is connected to the 18 and 19 pins of the microcontroller. The
requires more than 60mA of current. It is an array of Darlington pairs. It consists of seven
The IC consists of 16 pins in which 7 are input pins, 7 are output pins and remaining are
VCC and Ground. The first four input pins are connected to the microcontroller. In the same
In these six pins, 2 pins are connected to the supply of 12V and the remaining are connected
to the output of the stepper motor. Stepper rotates at a given step angle. Each step-in rotation
is a fraction of full cycle. This depends on the mechanical parts and the driving method.
Similar to all the motors, stepper motors will have a stator and rotor. Rotor has a permanent
magnet and the stator has a coil. The basic stepper motor has 4 coils with 90 degrees rotation
step. These four coils are activated in the cyclic order. The below figure shows you the
direction of rotation of the shaft. There are different methods to drive a stepper motor. Some
Full Step Drive: In this method two coils are energized at a time.
Half Step Drive: In this method the coils are energized alternatively. Thus, it rotates with a half
step angle. For this method, two coils can be energized at a time or a single coil can be
● The stepper motor has four wires. They are yellow, blue, red and white. These are
● To drive the motor in half step angle, use the following sequence
https://www.youtube.com/watch?v=LlpQuaQEQ8A&feature=youtu.be
IV. References
https://www.electronicshub.org/stepper-motor-control-using-8051-microcontroller/
https://circuitdigest.com/microcontroller-projects/stepper-motor-interfacing-with-
8051
V. Appendix
Code
stepper motor.txt