Stepper motor control board
by Ranjith | November 17th, 2008.This project is actually an educational kit. One can study the full operation of unipolar type stepper motor using this board. As it is micro controller based it can be programmable also and one can learn micro controller interfacing with LEDs, key board and stepper motor. Thus single board serves the purpose of learning stepper motor control as well as learning micro controller programming.
General description and system block diagram:-
The complete board consists of transformer, control circuit, keypad and stepper motor as shown in snap. The given figure shows the block diagram of project.

System block diagram
The circuit has inbuilt 5 V power supply so when it is connected with transformer it will give the supply to circuit and motor both. The 8 Key keypad is connected with circuit through which user can give the command to control stepper motor. The control circuit includes micro controller 89C51, indicating LEDs, and current driver chip ULN2003A. One can program the controller to control the operation of stepper motor. He can give different commands through keypad like, run clockwise, run anticlockwise, increase/decrease RPM, increase/decrease revolutions, stop motor, change the mode, etc. before we start with project it is must that we first understood the operation of unipolar stepper motor.
Unipolar stepper motor:-
In the construction of unipolar stepper motor there are four coils. One end of each coil is tide together and it gives common terminal which is always connected with positive terminal of supply. The other ends of each coil are given for interface. Specific color code may also be given. Like in my motor orange is first coil (L1), brown is second (L2), yellow is third (L3), black is fourth (L4) and red for common terminal.
By means of controlling a stepper motor operation we can
- Increase or decrease the RPM (speed) of it
- Increase or decrease number of revolutions of it
- Change its direction means rotate it clockwise or anticlockwise
To vary the RPM of motor we have to vary the PRF (Pulse Repetition Frequency). Number of applied pulses will vary number of rotations and last to change direction we have to change pulse sequence.
So all these three things just depends on applied pulses. Now there are three different modes to rotate this motor
- Single coil excitation
- Double coil excitation
- Half step excitation
The table given below will give you the complete idea that how to give pulses in each mode

Pulses for stepper motor module
Note:- In half step excitation mode motor will rotate at half the specified given step resolution. Means if step resolution is 1.8 degree then in this mode it will be 0.9 degree. Step resolution means on receiving on 1 pulse motor will rotate that much degree. If step resolution is 1.8 degree then it will take 200 pulses for motor to compete 1 revolution (360 degree).
Now let me give you the specification of the stepper motor that I have used.
Max rated voltage: - 5 V
Max rated current per coil: – 0.5 Amp
Step resolution: - 1.8 degree / pulse
Max RPM: - 20 in single/double coil excitation mode and 60 in half step mode
Torque: – 1.5 Kg/cm2
RPM calculation:-
One can calculate the exact RPM at which motor will run. We know that motor needs 200 pulses to complete 1 revolution. Means if 200 pulses applied in 1 second motor will complete 1 revolution in 1 second. Now 1 rev. in 1 sec means 60 rev. in 1 minute. That will give us 60 RPM. Now 200 pulses in 1 sec means the PRF is 200 Hz. And delay will be 5 millisecond (ms). Now lets see it reverse.
* If delay is 10 ms then PRF will be 100 Hz.
* So 100 pulses will be given in 1 sec
* Motor will complete 1 revolution in 2 second
* So the RPM will be 30.
In same manner as you change delay the PRF will be changed and it will change RPM
Stepper motor control board circuit:-

Stepper motor control board circuit
The circuit consists of very few components. The major components are 7805, 89C51 and ULN2003A.
Connections:-
- The transformer terminals are given to bridge rectifier to generate rectified DC.
- It is filtered and given to regulator IC 7805 to generate 5 V pure DC. LED indicates supply is ON.
- All the push button micro switches J1 to J8 are connected with port P1 as shown to form serial keyboard.
- 12 MHz crystal is connected to oscillator terminals of 89C51 with two biasing capacitors.
- All the LEDs are connected to port P0 as shown
- Port P2 drives stepper motor through current driver chip ULN2003A.
- The common terminal of motor is connected to Vcc and rest all four terminals are connected to port P2 pins in sequence through ULN chip.
Now by downloading different programs in to 89C51 we can control the operation of stepper motor. Let us see all different kind of program.




















December 18th, 2008 at 9:05 pm
da program gives syntax error when it is build in keil software.
its give error for cjne a,#0ffh,jmp. n
jmp clr p0.0……..
December 19th, 2008 at 9:39 am
Hi, here jmp is used as a label. Please change jmp to some other name. for example
cjne a,#0ffh,keypress
keypress: clr p0.0
December 20th, 2008 at 9:01 pm
it also gives error here
lop2:mov r6,#FAh ; give 1 ms delay :the error is undefined symbol(pass 2).
lop2: mov r6,#0FAh ; for 200ms delay : attempt to define already defined label.
lop1: nop attempt to define already defined label.
December 21st, 2008 at 11:44 pm
hi plz tell me abt these error in program
n i m using of Seiko epson EM-198.
will it operate with 7805.
December 26th, 2008 at 4:07 pm
Hi replace “dely” function as given below.
———————-
dely:
mov r5,#0C8h ; load count 200
lop22: mov r6,#0FAh ; for 200ms delay
lop11:nop
nop
djnz r6,lop11
djnz r5,lop22
ret
———————–
January 22nd, 2009 at 8:34 am
Nothing seems to be easier than seeing someone whom you can help but not helping.
I suggest we start giving it a try. Give love to the ones that need it.
God will appreciate it.
June 14th, 2009 at 4:33 am
I’m new here on the forum, found it by searching google. I look forward to chatting about various topics with all of you.
August 7th, 2009 at 1:05 pm
It is interesting. Can you mail me the full details of the circuits
February 11th, 2010 at 7:30 pm
Good stuff. I like this blog. I will subscribe to it.
March 3rd, 2010 at 5:14 pm
very good circuit … can you mail the full details and explainations of the circuit.
March 7th, 2010 at 1:32 am
can u tell me how to control pitman motor using at89s51 through h bridge give ,jut move the motor in forward and reverse direction ,and also give me a small cobe to drive the motor through h bridge using at89s51
March 25th, 2010 at 3:37 pm
sperb thank u
April 5th, 2010 at 10:20 pm
А телефон свой не оставите? Хотелось бы кое-что обсудить по теме.
May 21st, 2010 at 10:45 am
hey the project is nice but is there any problem in the programs is they give error
June 3rd, 2010 at 10:11 am
hi, please give the full information about the stepper motor
June 14th, 2010 at 9:29 pm
72]Free Ringtones!
http://fastloannow.ru/ringtones/ringtones-19.jpg
72]Download Ringtones!
sprint lg ringtone
i730 free nextel ringtone
ring tone file type
free ringtones for v3a
gob ringtones
christian cellphone ringtones
club jet music ringtone
lotr ringtones
indianna jones ringtone
u s cellular fart ringtones
Fine Young Cannibals Ringtone
Razr V3a How To Unlock Ringtones
7100i Midi Ringtones
Ringtones Nokia 5140i Eagle
Pantech Duo Ringtone Mp3 Help
Free Polish National Ringtone
Styx Ringtones
Lg Incite Ringtones
Pass Alarm Ringtone
Listening Ringtone
Find Downloadable Ring Tones
Ringtones On
Record Your Own Ringtone
King Dedede Midi Free Ringtone
Hey Ya Ringtone
Free Polyphonic Ringtones Sony Erricson
Ringtone Tv Themes Free Download
8500 Audiovox Free Polyphonic Ringtone
Hifi Motorola V600 Mp3 Ringtones
Russian Christmas Ringtones
Happy Together Ringtones
Cheer Cincinnati Ringtone
Into Mp Ringtone Samsung Turn
Ringtones For Your Prepaid Cell Phone
Ringtone Lg-vx9900
Make Iphone Ringtone
2312333232i Free Nokia Phone Ringtone
Free Phone Ringtone Verizon Samsung
Listen To Ringtones From Disney
Woman Orgasm Ringtone
Chrstian Ringtones
Polyphonic Ringtones Online
Lg Vx3200 Wireless Ringtones
Ringtones College Sprint
College Fight Song Ring Tones
Kyocera Kx414 Game Ringtone
Download Ringtone Canada
Wwe The Rock Ringtones
Iphone Ringtones E
Add Ringtone To Palm Centro
Magix Ringtone Magix Ringtone
Free Comtempory Ringtones
Motorola V180 Cellular One Ringtones
Free Ringtones For Samsung M610
Embarq Ringtones
Uninsured Making Mp3 Ringtones
Iphone Ringtones Uk
837101222143 Music As A Ringtone
Hindi Mp3 Ringtones
Electric Avenue Ringtone Velvet
Free Motorola Ringtones To Download
Best Ringtones For Motorola Bc50
Download Nagging Ringtone Free
Free Michael Myers Ringtone
Motorola V233230233 Ringtone
Motorola Razr Ringtone Mp3
ringtones real one nokia
how to add ringtones
t500 ringtones
ringtones and graphics
i730 wav ringtone
droppin loads ringtone
free tie me down ringtone
remove ringtones came cell phone
motorola ringtone makers
sanyo 3100 ringtones
free ringtones boomer sooner
free pirates of the caribbean ringtones
ringtone toploader
silverstein ringtones
download free ringtone cricket
ringtones for adults
houston ringtones
free nextel ringtone software i
free verizon polyphonic ringtones sms
cingular downloads free ringtone
June 30th, 2010 at 5:42 pm
Nice project for learners. Is it available in kit form at a reasonable price?
Are the problems solved or still existing?
July 12th, 2010 at 10:30 am
Cheers, superb post.
July 29th, 2010 at 3:03 pm
Hi . . .can you mail me the full detail of the circuit diagram and the
program.
August 2nd, 2010 at 9:40 pm
AS THIS IS IN ASSEMBLY AND NOT IN ‘C’ DONT USE KEIL USE “ASEM” OR “RAISONANCE” INSTEAD.
August 26th, 2010 at 12:43 am
in new ustzz