SlideShare a Scribd company logo
1 of 5
Download to read offline
Interfacing of Stepper Motor with 8051 T.Srikrishna, M.Sc, M.Tech, GVP
Stepper Motor Interfacing with 8051
What is a stepper motor?
 A motor, in general, is a device that converts electrical energy into
mechanical energy.
 A stepper motor is a device that does the same task as above but, in steps.
 It can divide a complete rotation into a number of steps.
 A stepper motor rotates at small angles to complete 360 degrees rotation,
these small angles are called steps, hence the name Stepper Motor.
Typically, a stepper motor consists of 200 steps.
200 Steps = 360 degrees
1 Step = ‘x’ degrees
x = 360 / 200 = 1.8 degree
 Therefore, every step is 1.8 degrees.
 In the case of an 8-steps rotor, the step angle is 360 / 8 = 45 degrees.
Type of Stepper Motor
Stepper motors are broadly divided into two types
 Unipolar stepper motor
 Bipolar stepper motor
Unipolar stepper motor
The connections at the center of the coils are joined together and are connected
to the 12V supply. They are called unipolar steppers because power always comes
in on this one pole.
Interfacing of Stepper Motor with 8051 T.Srikrishna, M.Sc, M.Tech, GVP
What are the components of a stepper motor
Stator: The stator is made up of four coils, that are energized by the pulses
Rotor: The number of steps of the rotor and its alignment with the stator
determines the step angle and steps per revolution.
Permanent magnets: The rotor is mounted on a permanent magnet that attracts
or repels the stator coils and hence the propulsion occurs.
Working of a stepper motor
 A stepper motor works on the principle of magnetic attraction and
repulsion.
 The coils of stators are energized and de-energized by the pulses of the
microcontroller which creates magnetic north and south on the stator
poles.
 The rotor is mounted on a permanent magnet having a permanent N and S
marked.
 The sequence in which the coils are excited to form the poles causes
attraction and repulsion causing motion in the shaft and the load
connected to it.
Interfacing of Stepper Motor with 8051 T.Srikrishna, M.Sc, M.Tech, GVP
Steps A B C D HEX
1 1 0 0 0 08
2 0 1 0 0 04
3 0 0 1 0 02
4 0 0 0 1 01
Components required for interfacing a Stepper motor with 8051
Microcontroller
 8051 Microcontroller
 Stepper Motor
 Current Driver IC
Interfacing stepper motor to 8051 Microcontroller
Here we are using Port 2 of 8051 to generate pulses and using a current
amplifier IC (ULN2003a) to amplify the current to drive the stepper motor
using the pulse of the microcontroller.
Interfacing of Stepper Motor with 8051 T.Srikrishna, M.Sc, M.Tech, GVP
o Connect the 4 pins of Port 2 to the input side of ULN2003a IC as
follows,
o Connect the outputs of the ULN2003a to the 4 wires of the stepper
motor
o Connect the two common wires of the stepper motor and Pin 9 of
the IC to a 12V DC supply.
Interfacing of Stepper Motor with 8051 T.Srikrishna, M.Sc, M.Tech, GVP
Assembly language program to interface stepper motor with 8051
ORG 00H
MOV TMOD, #01H
MAIN: MOV P2, #08H
ACALL DELAY
MOV P2, #04H
ACALL DELAY
MOV P2, #02H
ACALL DELAY
MOV P2, #01H
ACALL DELAY
SJMP MAIN
Delay Program:
DELAY: MOV R0, #200
BACK: MOV TH0, #0FCH
MOV TL0, #018H
SETB TR0
WAIT: JNB TF0, WAIT
CLR TR0
CLR TF0
DJNZ R0,BACK
RET
END

More Related Content

Similar to Stepper Motor Interfacing with 8051.pdf

Introduction to Motors - Understanding the CEENBot Muscles
Introduction to Motors - Understanding the CEENBot MusclesIntroduction to Motors - Understanding the CEENBot Muscles
Introduction to Motors - Understanding the CEENBot Muscleskippcam
 
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 MotorsDevashish Raval
 
Stepper with 8051.docx
Stepper with 8051.docxStepper with 8051.docx
Stepper with 8051.docxbhattparthiv23
 
Special motors
Special motorsSpecial motors
Special motorsmadhu1729
 
Stepper Motor Types, Advantages And Applications
 Stepper Motor Types, Advantages And Applications Stepper Motor Types, Advantages And Applications
Stepper Motor Types, Advantages And Applicationselprocus
 
Stepper motor(encrypted)
Stepper motor(encrypted)Stepper motor(encrypted)
Stepper motor(encrypted)Rohini Haridas
 
PROJECT REPORT anti theft and auto braking car
PROJECT REPORT anti theft and auto braking carPROJECT REPORT anti theft and auto braking car
PROJECT REPORT anti theft and auto braking carMehul kumar
 
Halderman ch054 lecture
Halderman ch054 lectureHalderman ch054 lecture
Halderman ch054 lecturemcfalltj
 
Speed control of four quadrant d nav
Speed control of four quadrant d navSpeed control of four quadrant d nav
Speed control of four quadrant d navNavjyoti Sharma
 
Speed torque characteristics of brushless dc motor in either direction on loa...
Speed torque characteristics of brushless dc motor in either direction on loa...Speed torque characteristics of brushless dc motor in either direction on loa...
Speed torque characteristics of brushless dc motor in either direction on loa...Alexander Decker
 
Rotary and linear switched reluctance motors
Rotary and linear switched reluctance motorsRotary and linear switched reluctance motors
Rotary and linear switched reluctance motorskarthi1017
 
Automatic Star Delta Starter Using Relays And Adjustable Electronic Timer For...
Automatic Star Delta Starter Using Relays And Adjustable Electronic Timer For...Automatic Star Delta Starter Using Relays And Adjustable Electronic Timer For...
Automatic Star Delta Starter Using Relays And Adjustable Electronic Timer For...Edgefxkits & Solutions
 

Similar to Stepper Motor Interfacing with 8051.pdf (20)

Introduction to Motors - Understanding the CEENBot Muscles
Introduction to Motors - Understanding the CEENBot MusclesIntroduction to Motors - Understanding the CEENBot Muscles
Introduction to Motors - Understanding the CEENBot Muscles
 
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
 
Stepper with 8051.docx
Stepper with 8051.docxStepper with 8051.docx
Stepper with 8051.docx
 
Electric Drive Systems
Electric Drive SystemsElectric Drive Systems
Electric Drive Systems
 
Stepper motor Presentation
Stepper motor Presentation Stepper motor Presentation
Stepper motor Presentation
 
Special motors
Special motorsSpecial motors
Special 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
 
E010213442
E010213442E010213442
E010213442
 
Stepper motor(encrypted)
Stepper motor(encrypted)Stepper motor(encrypted)
Stepper motor(encrypted)
 
PROJECT REPORT anti theft and auto braking car
PROJECT REPORT anti theft and auto braking carPROJECT REPORT anti theft and auto braking car
PROJECT REPORT anti theft and auto braking car
 
Halderman ch054 lecture
Halderman ch054 lectureHalderman ch054 lecture
Halderman ch054 lecture
 
Speed control of four quadrant d nav
Speed control of four quadrant d navSpeed control of four quadrant d nav
Speed control of four quadrant d nav
 
Speed torque characteristics of brushless dc motor in either direction on loa...
Speed torque characteristics of brushless dc motor in either direction on loa...Speed torque characteristics of brushless dc motor in either direction on loa...
Speed torque characteristics of brushless dc motor in either direction on loa...
 
Dc servo motor
Dc servo motorDc servo motor
Dc servo motor
 
Stepper motors
Stepper motorsStepper motors
Stepper motors
 
Actuators.pptx
Actuators.pptxActuators.pptx
Actuators.pptx
 
Rotary and linear switched reluctance motors
Rotary and linear switched reluctance motorsRotary and linear switched reluctance motors
Rotary and linear switched reluctance motors
 
Automatic Star Delta Starter Using Relays And Adjustable Electronic Timer For...
Automatic Star Delta Starter Using Relays And Adjustable Electronic Timer For...Automatic Star Delta Starter Using Relays And Adjustable Electronic Timer For...
Automatic Star Delta Starter Using Relays And Adjustable Electronic Timer For...
 
Project paper
Project paperProject paper
Project paper
 

More from Srikrishna Thota

solar energy introduction.pdf
 solar energy introduction.pdf solar energy introduction.pdf
solar energy introduction.pdfSrikrishna Thota
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdfSrikrishna Thota
 
Types of Microcontrollers.pdf
Types of Microcontrollers.pdfTypes of Microcontrollers.pdf
Types of Microcontrollers.pdfSrikrishna Thota
 
Addressing modes of 8051.pdf
Addressing modes of 8051.pdfAddressing modes of 8051.pdf
Addressing modes of 8051.pdfSrikrishna Thota
 
Port Organization of 8051 .pdf
Port Organization of 8051 .pdfPort Organization of 8051 .pdf
Port Organization of 8051 .pdfSrikrishna Thota
 
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdfDEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdfSrikrishna Thota
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfSrikrishna Thota
 
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdfInterfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdfSrikrishna Thota
 
Seven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSeven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSrikrishna Thota
 
interfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfinterfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfSrikrishna Thota
 
BInary Number Representation
 BInary Number Representation BInary Number Representation
BInary Number RepresentationSrikrishna Thota
 
Number Base Conversion Digital Electronics
Number Base Conversion Digital ElectronicsNumber Base Conversion Digital Electronics
Number Base Conversion Digital ElectronicsSrikrishna Thota
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes Srikrishna Thota
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesSrikrishna Thota
 
Analog to Digital Conversion Basics
Analog to Digital Conversion BasicsAnalog to Digital Conversion Basics
Analog to Digital Conversion BasicsSrikrishna Thota
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controllerSrikrishna Thota
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chipsSrikrishna Thota
 

More from Srikrishna Thota (20)

solar energy introduction.pdf
 solar energy introduction.pdf solar energy introduction.pdf
solar energy introduction.pdf
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf
 
Types of Microcontrollers.pdf
Types of Microcontrollers.pdfTypes of Microcontrollers.pdf
Types of Microcontrollers.pdf
 
Addressing modes of 8051.pdf
Addressing modes of 8051.pdfAddressing modes of 8051.pdf
Addressing modes of 8051.pdf
 
interrupts of 8051.pdf
interrupts of 8051.pdfinterrupts of 8051.pdf
interrupts of 8051.pdf
 
Port Organization of 8051 .pdf
Port Organization of 8051 .pdfPort Organization of 8051 .pdf
Port Organization of 8051 .pdf
 
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdfDEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
 
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdfInterfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
 
Seven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSeven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdf
 
interfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfinterfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdf
 
BInary Number Representation
 BInary Number Representation BInary Number Representation
BInary Number Representation
 
Number Base Conversion Digital Electronics
Number Base Conversion Digital ElectronicsNumber Base Conversion Digital Electronics
Number Base Conversion Digital Electronics
 
Operational amplifiers
Operational amplifiers Operational amplifiers
Operational amplifiers
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes
 
The 8255 PPI
The 8255 PPIThe 8255 PPI
The 8255 PPI
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
Analog to Digital Conversion Basics
Analog to Digital Conversion BasicsAnalog to Digital Conversion Basics
Analog to Digital Conversion Basics
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controller
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
 

Recently uploaded

Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 

Recently uploaded (20)

Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 

Stepper Motor Interfacing with 8051.pdf

  • 1. Interfacing of Stepper Motor with 8051 T.Srikrishna, M.Sc, M.Tech, GVP Stepper Motor Interfacing with 8051 What is a stepper motor?  A motor, in general, is a device that converts electrical energy into mechanical energy.  A stepper motor is a device that does the same task as above but, in steps.  It can divide a complete rotation into a number of steps.  A stepper motor rotates at small angles to complete 360 degrees rotation, these small angles are called steps, hence the name Stepper Motor. Typically, a stepper motor consists of 200 steps. 200 Steps = 360 degrees 1 Step = ‘x’ degrees x = 360 / 200 = 1.8 degree  Therefore, every step is 1.8 degrees.  In the case of an 8-steps rotor, the step angle is 360 / 8 = 45 degrees. Type of Stepper Motor Stepper motors are broadly divided into two types  Unipolar stepper motor  Bipolar stepper motor Unipolar stepper motor The connections at the center of the coils are joined together and are connected to the 12V supply. They are called unipolar steppers because power always comes in on this one pole.
  • 2. Interfacing of Stepper Motor with 8051 T.Srikrishna, M.Sc, M.Tech, GVP What are the components of a stepper motor Stator: The stator is made up of four coils, that are energized by the pulses Rotor: The number of steps of the rotor and its alignment with the stator determines the step angle and steps per revolution. Permanent magnets: The rotor is mounted on a permanent magnet that attracts or repels the stator coils and hence the propulsion occurs. Working of a stepper motor  A stepper motor works on the principle of magnetic attraction and repulsion.  The coils of stators are energized and de-energized by the pulses of the microcontroller which creates magnetic north and south on the stator poles.  The rotor is mounted on a permanent magnet having a permanent N and S marked.  The sequence in which the coils are excited to form the poles causes attraction and repulsion causing motion in the shaft and the load connected to it.
  • 3. Interfacing of Stepper Motor with 8051 T.Srikrishna, M.Sc, M.Tech, GVP Steps A B C D HEX 1 1 0 0 0 08 2 0 1 0 0 04 3 0 0 1 0 02 4 0 0 0 1 01 Components required for interfacing a Stepper motor with 8051 Microcontroller  8051 Microcontroller  Stepper Motor  Current Driver IC Interfacing stepper motor to 8051 Microcontroller Here we are using Port 2 of 8051 to generate pulses and using a current amplifier IC (ULN2003a) to amplify the current to drive the stepper motor using the pulse of the microcontroller.
  • 4. Interfacing of Stepper Motor with 8051 T.Srikrishna, M.Sc, M.Tech, GVP o Connect the 4 pins of Port 2 to the input side of ULN2003a IC as follows, o Connect the outputs of the ULN2003a to the 4 wires of the stepper motor o Connect the two common wires of the stepper motor and Pin 9 of the IC to a 12V DC supply.
  • 5. Interfacing of Stepper Motor with 8051 T.Srikrishna, M.Sc, M.Tech, GVP Assembly language program to interface stepper motor with 8051 ORG 00H MOV TMOD, #01H MAIN: MOV P2, #08H ACALL DELAY MOV P2, #04H ACALL DELAY MOV P2, #02H ACALL DELAY MOV P2, #01H ACALL DELAY SJMP MAIN Delay Program: DELAY: MOV R0, #200 BACK: MOV TH0, #0FCH MOV TL0, #018H SETB TR0 WAIT: JNB TF0, WAIT CLR TR0 CLR TF0 DJNZ R0,BACK RET END