SlideShare a Scribd company logo
DRIVING STEPPER MOTOR USING 8051
Objectives of the Lab
 The Applications of Stepper Motor
 Learning how to find the wiring combination of stepper motor
 Learning how to run stepper motor CW or CCW
 About ULN2003 chip
 Interfacing stepper motor with 8051
Deciding Pins or Ports to use
Use with
caution
If EA high
*Only 4 pins of
controller are
required. As this
is an output process
we may use any
port. We will use P2.
Applications of Stepper Motor
 Motors are majorly used for
driving mechanical assemblies
using electronic signals.
 Due to the working
mechanism of stepper motor, it
has many applications utilizing
position control, angle control,
precise movement and open
loop control.
 It is used in robotic limbs,
conveyer belts, hard disk
drives e.t.c.
Theory of Operation
 This is best explained using figures.
Wiring of Stepper Motor
 We can find stepper motor configuration
by first finding the common pins.
 See the entities where R is there, the pin
that is common will be ‘common’.
 Now, we give 12V to the common pins,
and give one by one ground on other pins.
12 13 14 15 16 23 24 25 26
R 2R OL OL OL R OL OL OL
34 35 36 45 46 56
OL OL OL R 2R R
Wiring of Stepper Motor (contd.)
 When we give ground on one-pin, the
stepper motor makes a step to either CW
or CCW.
 We need to give ground one-by-one to the
pins and adjust them in the sequence such
as when ground one-by-one is given to the
pins, the motor should move CW or CCW.
 Remember this combination and mark the
pins as ABCD.
 Now, we see that when we give ABCD
0111, 1011, 1101 & 1110, the motor
moves CW or CCW.
Stepper Motor combinations
A B C D
0 1 1 1
1 0 1 1
1 1 0 1
1 1 1 0
Alternate Combination
1 1 0 0
0 1 1 0
0 0 1 1
1 0 0 1
If motor is running in CW using above combination just reverse the combination to run in CCW.
Need of ULN2003A
 The ‘current’ requirement for stepper
motor can not be provided by µC pins.
 Thus a current amplifier is required.
 One problem arises, i.e. we need ‘0’ to
turn on the coil without current amplifier.
 But when we insert an amplifier, we need
to give ‘1’ to turn on coil.
 Thus the combination given on previous
slide will be reversed. i.e. ‘0’ to ‘1’ and ‘1’
to ‘0’.
ULN2003A configuration
Free-wheeling diodes
Step angle and speed of motor
 Step angle when in control can give
position and precision control in
applications.
 For a 360 degree, the steps that motor
takes are mentioned on the motor.
 e.g. If a stepper motor takes 200 steps for
360 degree, then 1 step will move
360/200=1.8 degrees. Thus to move let’s
say 30 degrees we need 30/1.8=16.67
steps.
 Speed of motor is controlled by the delay
given between the change of combination.
Phase(Coil) Current Waveforms
Less Torque than
full step drive
1 step angle=360/200
1/2 step angle=360/(2*200)
Full Step with ULN2003A
A B C D
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
Alternate Combination
0 0 1 1
1 0 0 1
1 1 0 0
0 1 1 0
If motor is running in CW using above combination just reverse the combination to run in CCW.
Half Step with ULN2003A
A B C D
0 0 0 1
1 0 0 1
1 0 0 0
1 1 0 0
0 1 0 0
0 1 1 0
0 0 1 0
0 0 1 1
If motor is running in CW using above combination just reverse the combination to run in CCW.
Algorithm for Full Step
Start
Send seq to
output
Store in A
Next Sequence
Call Delay
mov a,#66h;01100110b
mov p2,a
rr a
call delay
Proteus Devices needed in this Lab
1. AT89c51
2. ULN2003A
3. Stepper Motor
Lab Tasks
 Run Stepper Motor using 8051.

More Related Content

What's hot

Stepper motor
Stepper motorStepper motor
Stepper motor
Ayushi Bhardwaj
 
Stepper Motor
Stepper MotorStepper Motor
Stepper Motor
Ramasubbu .P
 
stepper motor
stepper motorstepper motor
stepper motor
Ayush Srivastava
 
Stepper motor
Stepper motorStepper motor
Stepper motor
Ankit Basera
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
Pantech ProLabs India Pvt Ltd
 
Stepper motor
Stepper motorStepper motor
Stepper motor
Anurag Chaudhary
 
STEPPER MOTOR
STEPPER MOTORSTEPPER MOTOR
STEPPER MOTOR
Ganesh Guguloth
 
STEPPER MOTOR
STEPPER MOTORSTEPPER MOTOR
STEPPER MOTOR
arunkumar6836
 
Stepper motor
Stepper motorStepper motor
Stepper motor
SurajUdoshi
 
Unit 3 steppermotors
Unit 3 steppermotorsUnit 3 steppermotors
Unit 3 steppermotors
Er.Meraj Akhtar
 
Stepper motor Presentation
Stepper motor Presentation Stepper motor Presentation
Stepper motor Presentation
Engineering Garage V=ir
 
Setpper Motor
 Setpper Motor Setpper Motor
Setpper Motor
jams006
 
Stepper motor
Stepper motorStepper motor
Stepper motor
ABHIMANYUJHA8
 
Stepper motor
Stepper motorStepper motor
Stepper motor
abhishek srivastava
 
Stepper motors
Stepper motorsStepper motors
Stepper motors
Amr Seif
 
Stepper Motor Types, Advantages And Applications
 Stepper Motor Types, Advantages And Applications Stepper Motor Types, Advantages And Applications
Stepper Motor Types, Advantages And Applications
elprocus
 
Stepper motor(encrypted)
Stepper motor(encrypted)Stepper motor(encrypted)
Stepper motor(encrypted)
Rohini Haridas
 
Stepper motor
Stepper motorStepper motor
Stepper motor
afsana_jihan
 

What's hot (20)

Stepper motor
Stepper motorStepper motor
Stepper motor
 
Stepper Motor
Stepper MotorStepper Motor
Stepper Motor
 
stepper motor
stepper motorstepper motor
stepper motor
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 
STEPPER MOTOR
STEPPER MOTORSTEPPER MOTOR
STEPPER MOTOR
 
STEPPER MOTOR
STEPPER MOTORSTEPPER MOTOR
STEPPER MOTOR
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 
Unit 3 steppermotors
Unit 3 steppermotorsUnit 3 steppermotors
Unit 3 steppermotors
 
Stepper motor Presentation
Stepper motor Presentation Stepper motor Presentation
Stepper motor Presentation
 
Setpper Motor
 Setpper Motor Setpper Motor
Setpper Motor
 
Stepper motor site
Stepper motor siteStepper motor site
Stepper motor site
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 
Stepper motors
Stepper motorsStepper motors
Stepper motors
 
Stepper Motor Types, Advantages And Applications
 Stepper Motor Types, Advantages And Applications Stepper Motor Types, Advantages And Applications
Stepper Motor Types, Advantages And Applications
 
Stepper motor(encrypted)
Stepper motor(encrypted)Stepper motor(encrypted)
Stepper motor(encrypted)
 
stepper motor
stepper motorstepper motor
stepper motor
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 

Viewers also liked

Interfacing 8051 with Real World
Interfacing 8051 with Real WorldInterfacing 8051 with Real World
Interfacing 8051 with Real World
Dr. Ritula Thakur
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
Ankur Mahajan
 
Switches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontrollerSwitches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontroller
University of Technology - Iraq
 
pic 18
pic 18pic 18
Pic 18 microcontroller
Pic 18 microcontrollerPic 18 microcontroller
Pic 18 microcontroller
Ashish Ranjan
 
7 segment led interfacing with 8051
7 segment led interfacing with 80517 segment led interfacing with 8051
7 segment led interfacing with 8051
Sam Patel
 
Class5
Class5Class5
8051 io interface
8051 io interface8051 io interface
8051 io interface
Abhinav Shubham
 
Obstacle Detctor Robot report
Obstacle Detctor Robot reportObstacle Detctor Robot report
Obstacle Detctor Robot report
Nikita Kaushal
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontrollerVandna Sambyal
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
Dr. Ritula Thakur
 
Stepper motor control
Stepper motor controlStepper motor control
Stepper motor control
Jatin Arora
 
robotics and embedded system ppt
robotics and embedded system pptrobotics and embedded system ppt
robotics and embedded system ppt
Nilgiri publicity
 
Robotics and automation
Robotics and automationRobotics and automation
Robotics and automation
Robo India
 
Solar Powered Auto Irrigation System
Solar Powered Auto Irrigation SystemSolar Powered Auto Irrigation System
Solar Powered Auto Irrigation System
Edgefxkits & Solutions
 
75600403 automatic-plant-irrigation-system
75600403 automatic-plant-irrigation-system75600403 automatic-plant-irrigation-system
75600403 automatic-plant-irrigation-systemstk25
 
water level controller using 8051 microcontroller
water level controller using 8051 microcontrollerwater level controller using 8051 microcontroller
water level controller using 8051 microcontroller
Prachi Pandey
 
Boimetric using 8051
Boimetric  using 8051 Boimetric  using 8051
Boimetric using 8051
Shilpa Nayak
 

Viewers also liked (19)

Interfacing 8051 with Real World
Interfacing 8051 with Real WorldInterfacing 8051 with Real World
Interfacing 8051 with Real World
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
 
Switches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontrollerSwitches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontroller
 
pic 18
pic 18pic 18
pic 18
 
Pic 18 microcontroller
Pic 18 microcontrollerPic 18 microcontroller
Pic 18 microcontroller
 
7 segment led interfacing with 8051
7 segment led interfacing with 80517 segment led interfacing with 8051
7 segment led interfacing with 8051
 
Class5
Class5Class5
Class5
 
8051 io interface
8051 io interface8051 io interface
8051 io interface
 
Obstacle Detctor Robot report
Obstacle Detctor Robot reportObstacle Detctor Robot report
Obstacle Detctor Robot report
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontroller
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
Stepper motor control
Stepper motor controlStepper motor control
Stepper motor control
 
robotics and embedded system ppt
robotics and embedded system pptrobotics and embedded system ppt
robotics and embedded system ppt
 
Robotics and automation
Robotics and automationRobotics and automation
Robotics and automation
 
Solar Powered Auto Irrigation System
Solar Powered Auto Irrigation SystemSolar Powered Auto Irrigation System
Solar Powered Auto Irrigation System
 
75600403 automatic-plant-irrigation-system
75600403 automatic-plant-irrigation-system75600403 automatic-plant-irrigation-system
75600403 automatic-plant-irrigation-system
 
water level controller using 8051 microcontroller
water level controller using 8051 microcontrollerwater level controller using 8051 microcontroller
water level controller using 8051 microcontroller
 
Boimetric using 8051
Boimetric  using 8051 Boimetric  using 8051
Boimetric using 8051
 

Similar to Micro c lab5(stepper-motor)

Motor Control Relay, Pwm, DC and Stepper Motors
Motor Control Relay, Pwm, DC and Stepper MotorsMotor Control Relay, Pwm, DC and Stepper Motors
Motor Control Relay, Pwm, DC and Stepper Motors
Devashish Raval
 
Stepper Motor
Stepper MotorStepper Motor
Stepper Motor
RohitPatil461
 
Rotation control of separately excited Dc Motor
Rotation control of separately excited Dc MotorRotation control of separately excited Dc Motor
Rotation control of separately excited Dc Motor
Hasnain Yaseen
 
Stepper with 8051.docx
Stepper with 8051.docxStepper with 8051.docx
Stepper with 8051.docx
bhattparthiv23
 
It 5170 stepper motor
It 5170 stepper motorIt 5170 stepper motor
It 5170 stepper motor
Ishfaqah
 
Implementation of PWM Control of DC Split Converter Fed Switched Reluctance M...
Implementation of PWM Control of DC Split Converter Fed Switched Reluctance M...Implementation of PWM Control of DC Split Converter Fed Switched Reluctance M...
Implementation of PWM Control of DC Split Converter Fed Switched Reluctance M...
IJECEIAES
 
Speed control of dc motor using chopper
Speed control of dc motor using chopperSpeed control of dc motor using chopper
Speed control of dc motor using chopper
Ajeeta Srivastava
 
Dc motor
Dc motorDc motor
Dc motor
ashok singh
 
STEPPER MOTORS notes.pdf
STEPPER MOTORS notes.pdfSTEPPER MOTORS notes.pdf
STEPPER MOTORS notes.pdf
RanganayakiRamkumar1
 
Control_System_Lab.pdf
Control_System_Lab.pdfControl_System_Lab.pdf
Control_System_Lab.pdf
SolotheEngineer
 
inductionmotor mod4threephaseinductionmotorsquirrelcagemotor.pptx
inductionmotor mod4threephaseinductionmotorsquirrelcagemotor.pptxinductionmotor mod4threephaseinductionmotorsquirrelcagemotor.pptx
inductionmotor mod4threephaseinductionmotorsquirrelcagemotor.pptx
divyababu56
 
Machines dc motors
Machines   dc motorsMachines   dc motors
Machines dc motorssld1950
 
chapter13.pdf
chapter13.pdfchapter13.pdf
chapter13.pdf
LucasMogaka
 
09 vat300 e_c3-4-4_rev_a
09 vat300 e_c3-4-4_rev_a09 vat300 e_c3-4-4_rev_a
09 vat300 e_c3-4-4_rev_a
Dien Ha The
 
Ac servomotor
Ac servomotorAc servomotor
Ac servomotor
Ravi Kansagara
 
Ac servomotor
Ac servomotorAc servomotor
Ac servomotor
Ravi Kansagara
 
Unit-2..pdf
Unit-2..pdfUnit-2..pdf
Unit-2..pdf
LucasMogaka
 
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...Enhmandah Hemeelee
 
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...Enhmandah Hemeelee
 

Similar to Micro c lab5(stepper-motor) (20)

Motor Control Relay, Pwm, DC and Stepper Motors
Motor Control Relay, Pwm, DC and Stepper MotorsMotor Control Relay, Pwm, DC and Stepper Motors
Motor Control Relay, Pwm, DC and Stepper Motors
 
Stepper Motor
Stepper MotorStepper Motor
Stepper Motor
 
Rotation control of separately excited Dc Motor
Rotation control of separately excited Dc MotorRotation control of separately excited Dc Motor
Rotation control of separately excited Dc Motor
 
Stepper with 8051.docx
Stepper with 8051.docxStepper with 8051.docx
Stepper with 8051.docx
 
It 5170 stepper motor
It 5170 stepper motorIt 5170 stepper motor
It 5170 stepper motor
 
Implementation of PWM Control of DC Split Converter Fed Switched Reluctance M...
Implementation of PWM Control of DC Split Converter Fed Switched Reluctance M...Implementation of PWM Control of DC Split Converter Fed Switched Reluctance M...
Implementation of PWM Control of DC Split Converter Fed Switched Reluctance M...
 
Ch11
Ch11Ch11
Ch11
 
Speed control of dc motor using chopper
Speed control of dc motor using chopperSpeed control of dc motor using chopper
Speed control of dc motor using chopper
 
Dc motor
Dc motorDc motor
Dc motor
 
STEPPER MOTORS notes.pdf
STEPPER MOTORS notes.pdfSTEPPER MOTORS notes.pdf
STEPPER MOTORS notes.pdf
 
Control_System_Lab.pdf
Control_System_Lab.pdfControl_System_Lab.pdf
Control_System_Lab.pdf
 
inductionmotor mod4threephaseinductionmotorsquirrelcagemotor.pptx
inductionmotor mod4threephaseinductionmotorsquirrelcagemotor.pptxinductionmotor mod4threephaseinductionmotorsquirrelcagemotor.pptx
inductionmotor mod4threephaseinductionmotorsquirrelcagemotor.pptx
 
Machines dc motors
Machines   dc motorsMachines   dc motors
Machines dc motors
 
chapter13.pdf
chapter13.pdfchapter13.pdf
chapter13.pdf
 
09 vat300 e_c3-4-4_rev_a
09 vat300 e_c3-4-4_rev_a09 vat300 e_c3-4-4_rev_a
09 vat300 e_c3-4-4_rev_a
 
Ac servomotor
Ac servomotorAc servomotor
Ac servomotor
 
Ac servomotor
Ac servomotorAc servomotor
Ac servomotor
 
Unit-2..pdf
Unit-2..pdfUnit-2..pdf
Unit-2..pdf
 
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
 
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
 

More from Mashood

Patience (1).pptx
Patience (1).pptxPatience (1).pptx
Patience (1).pptx
Mashood
 
Micro c lab8(serial communication)
Micro c lab8(serial communication)Micro c lab8(serial communication)
Micro c lab8(serial communication)
Mashood
 
Micro c lab7(timers)
Micro c lab7(timers)Micro c lab7(timers)
Micro c lab7(timers)
Mashood
 
Micro c lab6(lcd)
Micro c lab6(lcd)Micro c lab6(lcd)
Micro c lab6(lcd)
Mashood
 
Micro c lab4(keypad)
Micro c lab4(keypad)Micro c lab4(keypad)
Micro c lab4(keypad)
Mashood
 
Micro c lab3(ssd)
Micro c lab3(ssd)Micro c lab3(ssd)
Micro c lab3(ssd)
Mashood
 
Micro c lab2(led patterns)
Micro c lab2(led patterns)Micro c lab2(led patterns)
Micro c lab2(led patterns)
Mashood
 
Micro c lab1(intro to 8051)
Micro c lab1(intro to 8051)Micro c lab1(intro to 8051)
Micro c lab1(intro to 8051)
Mashood
 
Amplifiers (analog electronics ii lab)
Amplifiers (analog electronics ii lab)Amplifiers (analog electronics ii lab)
Amplifiers (analog electronics ii lab)
Mashood
 
Pcb design using proteus
Pcb design using proteusPcb design using proteus
Pcb design using proteus
Mashood
 
Function Generator
Function GeneratorFunction Generator
Function Generator
Mashood
 
Speed Measuring Circuit
Speed Measuring CircuitSpeed Measuring Circuit
Speed Measuring Circuit
Mashood
 

More from Mashood (12)

Patience (1).pptx
Patience (1).pptxPatience (1).pptx
Patience (1).pptx
 
Micro c lab8(serial communication)
Micro c lab8(serial communication)Micro c lab8(serial communication)
Micro c lab8(serial communication)
 
Micro c lab7(timers)
Micro c lab7(timers)Micro c lab7(timers)
Micro c lab7(timers)
 
Micro c lab6(lcd)
Micro c lab6(lcd)Micro c lab6(lcd)
Micro c lab6(lcd)
 
Micro c lab4(keypad)
Micro c lab4(keypad)Micro c lab4(keypad)
Micro c lab4(keypad)
 
Micro c lab3(ssd)
Micro c lab3(ssd)Micro c lab3(ssd)
Micro c lab3(ssd)
 
Micro c lab2(led patterns)
Micro c lab2(led patterns)Micro c lab2(led patterns)
Micro c lab2(led patterns)
 
Micro c lab1(intro to 8051)
Micro c lab1(intro to 8051)Micro c lab1(intro to 8051)
Micro c lab1(intro to 8051)
 
Amplifiers (analog electronics ii lab)
Amplifiers (analog electronics ii lab)Amplifiers (analog electronics ii lab)
Amplifiers (analog electronics ii lab)
 
Pcb design using proteus
Pcb design using proteusPcb design using proteus
Pcb design using proteus
 
Function Generator
Function GeneratorFunction Generator
Function Generator
 
Speed Measuring Circuit
Speed Measuring CircuitSpeed Measuring Circuit
Speed Measuring Circuit
 

Recently uploaded

Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 

Recently uploaded (20)

Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 

Micro c lab5(stepper-motor)

  • 2. Objectives of the Lab  The Applications of Stepper Motor  Learning how to find the wiring combination of stepper motor  Learning how to run stepper motor CW or CCW  About ULN2003 chip  Interfacing stepper motor with 8051
  • 3. Deciding Pins or Ports to use Use with caution If EA high *Only 4 pins of controller are required. As this is an output process we may use any port. We will use P2.
  • 4. Applications of Stepper Motor  Motors are majorly used for driving mechanical assemblies using electronic signals.  Due to the working mechanism of stepper motor, it has many applications utilizing position control, angle control, precise movement and open loop control.  It is used in robotic limbs, conveyer belts, hard disk drives e.t.c.
  • 5. Theory of Operation  This is best explained using figures.
  • 6. Wiring of Stepper Motor  We can find stepper motor configuration by first finding the common pins.  See the entities where R is there, the pin that is common will be ‘common’.  Now, we give 12V to the common pins, and give one by one ground on other pins. 12 13 14 15 16 23 24 25 26 R 2R OL OL OL R OL OL OL 34 35 36 45 46 56 OL OL OL R 2R R
  • 7. Wiring of Stepper Motor (contd.)  When we give ground on one-pin, the stepper motor makes a step to either CW or CCW.  We need to give ground one-by-one to the pins and adjust them in the sequence such as when ground one-by-one is given to the pins, the motor should move CW or CCW.  Remember this combination and mark the pins as ABCD.  Now, we see that when we give ABCD 0111, 1011, 1101 & 1110, the motor moves CW or CCW.
  • 8. Stepper Motor combinations A B C D 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 Alternate Combination 1 1 0 0 0 1 1 0 0 0 1 1 1 0 0 1 If motor is running in CW using above combination just reverse the combination to run in CCW.
  • 9. Need of ULN2003A  The ‘current’ requirement for stepper motor can not be provided by µC pins.  Thus a current amplifier is required.  One problem arises, i.e. we need ‘0’ to turn on the coil without current amplifier.  But when we insert an amplifier, we need to give ‘1’ to turn on coil.  Thus the combination given on previous slide will be reversed. i.e. ‘0’ to ‘1’ and ‘1’ to ‘0’.
  • 11. Step angle and speed of motor  Step angle when in control can give position and precision control in applications.  For a 360 degree, the steps that motor takes are mentioned on the motor.  e.g. If a stepper motor takes 200 steps for 360 degree, then 1 step will move 360/200=1.8 degrees. Thus to move let’s say 30 degrees we need 30/1.8=16.67 steps.  Speed of motor is controlled by the delay given between the change of combination.
  • 12. Phase(Coil) Current Waveforms Less Torque than full step drive 1 step angle=360/200 1/2 step angle=360/(2*200)
  • 13. Full Step with ULN2003A A B C D 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 Alternate Combination 0 0 1 1 1 0 0 1 1 1 0 0 0 1 1 0 If motor is running in CW using above combination just reverse the combination to run in CCW.
  • 14. Half Step with ULN2003A A B C D 0 0 0 1 1 0 0 1 1 0 0 0 1 1 0 0 0 1 0 0 0 1 1 0 0 0 1 0 0 0 1 1 If motor is running in CW using above combination just reverse the combination to run in CCW.
  • 15. Algorithm for Full Step Start Send seq to output Store in A Next Sequence Call Delay mov a,#66h;01100110b mov p2,a rr a call delay
  • 16. Proteus Devices needed in this Lab 1. AT89c51 2. ULN2003A 3. Stepper Motor
  • 17. Lab Tasks  Run Stepper Motor using 8051.