SlideShare a Scribd company logo
4
Most read
7
Most read
9
Most read
Stepper Motor Interfacing
With AVR
Title and Content Layout with List
• Introduction
• Add your second bullet point here
• Video
Introduction
A stepper motor is a widely used device that translates
electrical pulses into mechanical movement.
In application such as disk drives, dot matrix printers, and
robotics, the stepper motor is used for position control.
Stepper motor commonly have a permanent magnet rotor (Shaft)
surrounded by a stator.
There are also steppers called variable reluctance stepper
motors that do not have a permanent magnet rotor.
Stepper motor interfacing
STEP Winding A Winding B Winding C Winding D
1 1 0 0 1
2 1 1 0 0
3 0 1 1 0
4 0 0 1 1
Clockwise Anti-Clockwise
Step Angle Steps per Revolution
0.72 500
1.8 200
2.0 180
2.5 144
5.0 72
7.5 48
15 24
The step angle is the minimum degree of rotation associated with
a single step. Various motors have different step angles. Table
14-4 shows some step angles for various motors. In Table 14-4,
notice the term steps per revolution. This is the total number
of steps needed to rotate one complete rotation or 360 degrees
(e.g., 180 steps x 2 degrees = 360).
It must be noted that perhaps contrary to one's initial
impression, a stepper motor does not need more terminal leads
for the stator to achieve sma11er steps.
Step Angle
The step angle is the minimum degree of rotation associated with
a single step.
Various motors have different step angles.
Above Table shows some step angles for various motors.
In Above Table, notice the term steps per revolution.
This is the total number of steps needed to rotate one complete
rotation or 360 degrees (e.g., 180 steps x 2 degrees = 360).
It must be noted that perhaps contrary to one's initial
impression, a stepper motor does not need more terminal leads
for the stator to achieve sma11er steps.
Steps per second and RPM relation
The relation between RPM (revolutions per minute), steps per
revolution, and steps per second is as follows.
Steps per second =
RPM x Steps per revolution
60
The 4-step sequence and number of teeth on rotor
The switching sequence shown earlier in Table 14-3 is called the
4-step switching sequence because after four steps the same two
windings will be "ON". How much movement is associated with
these four steps? After completing every four steps, the rotor
moves only one tooth pitch. Therefore, in a stepper motor with
200 steps per revolution, the rotor has 50 teeth because 4x 50 =
200 steps are needed to complete one revolution. This leads to
the conclusion that the minimum step angle is always a function
of the number of teeth on the rotor. In other words, the smaller
the step angle, the more teeth the rotor has.
Types of Stepper Motor
1. Universal:
2. Unipolar:
3. Bipolar:
That types of stepper motor are identified by the number of
connections to the motor in winding.
The universal stepper motor can be configured for all three
modes, while the unipolar can be either unipolar or bipolar.
Obviously the bipolar cannot be configured for universal nor
unipolar mode.
Programme
INCLUDE "M32DEF.INC“
LDI R20, HIGH (RAMEND) ; initialize stack pointer
OUT SPH, R20
LDI R20, LOW(RAMEND)
OUT SPL, R20
LDI R20, OxFF ; Port B as output
OUT DDRB, R20
LDI R20, 0x06 ; Load step sequence
L1:OUT PORTB, R20 ; PortB = R20
LSR R20 ; Shift Right
BRCC L2 ; If not carry skip next
ORI R20,0x8
L2:RCALL DELAY ; wait
RJMP L1
DELAY:LDI R16, 0x50
D_L1:NOP
NOP
DEC R16
BRNE D_L1
RET
Change the value of delay to set this speed of rotation.
step Winding A Winding B Winding C Winding D
1 1 0 0 1
2 1 0 0 0
3 1 1 0 0
4 0 1 0 0
5 0 1 1 0
6 0 0 1 0
7 0 0 1 1
8 0 0 0 1
AVR lacks sufficient current to drive the stepper motor
windings, we must use a driver such as the ULN2003 (or ULN2803)
to energize the stator.
Instead of the ULN2003, we could have used transistors as
drivers. One reason that using the ULN2003 is preferable to the
use of transistors as drivers is that the ULN2003 has an
internal diode to take care of back EMF.
Stepper motor interfacing

More Related Content

PPTX
Pin diagram 8085
PPTX
MICROCONTROLLER 8051- Architecture & Pin Configuration
PDF
Voice control Wheelchair
PPTX
8051 Microcontroller PPT's By Er. Swapnil Kaware
PPTX
program status word
PPT
Interrupt programming with 8051 microcontroller
DOCX
Gesture control robot
PDF
Keypad Interfacing with 8051 Microcontroller
Pin diagram 8085
MICROCONTROLLER 8051- Architecture & Pin Configuration
Voice control Wheelchair
8051 Microcontroller PPT's By Er. Swapnil Kaware
program status word
Interrupt programming with 8051 microcontroller
Gesture control robot
Keypad Interfacing with 8051 Microcontroller

What's hot (20)

PPTX
Watch-dog Timer in LPC1768
PPT
Adc interfacing
PPTX
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
PPTX
Presentation on 8086 Microprocessor
PPT
pin-diagram-details-of-8086-microprocessor
PPT
Microcontroller 8051
PPTX
8051 memory
DOCX
8259 programmable interrupt controller
PDF
8051 interfacing
PPTX
Nand and nor as a universal gates
PPTX
Interfacing Stepper motor with 8051
PPTX
Register Organisation of 8086 Microprocessor
PPTX
Decoder Full Presentation
PPTX
ATM BLock Diagram and its design uses development.pptx
PDF
Microcontroller pic 16f877 addressing modes instructions and programming
PPTX
Presentation on home automation system
PPTX
water level controller using 8051 microcontroller
PDF
Data types in verilog
PPT
Addressing modes of 8051
Watch-dog Timer in LPC1768
Adc interfacing
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
Presentation on 8086 Microprocessor
pin-diagram-details-of-8086-microprocessor
Microcontroller 8051
8051 memory
8259 programmable interrupt controller
8051 interfacing
Nand and nor as a universal gates
Interfacing Stepper motor with 8051
Register Organisation of 8086 Microprocessor
Decoder Full Presentation
ATM BLock Diagram and its design uses development.pptx
Microcontroller pic 16f877 addressing modes instructions and programming
Presentation on home automation system
water level controller using 8051 microcontroller
Data types in verilog
Addressing modes of 8051
Ad

Viewers also liked (20)

PPT
Power blackouts with special reference to july 2013 copy
PPT
Gas Insulated Transformer (2)
PPTX
Stepper motor control
PDF
SMART LOAD SHEDDING
PPTX
auto matic load shedding control for substation
PPT
gas insulated transformer
PDF
المحركات الخطوية والتحكم بها
PPTX
Setpper Motor
PPTX
PPTX
Stepper motors
PPT
Motor Fundamental
PPTX
stepper motor
DOCX
Short courses
PDF
Eskom load shedding update
PPTX
prepaid energy meter using smartcard
PPT
Star delta trsformation
PPTX
Two port networks (y parameters)
PPT
Gasoline electronic fuel injection systems
Power blackouts with special reference to july 2013 copy
Gas Insulated Transformer (2)
Stepper motor control
SMART LOAD SHEDDING
auto matic load shedding control for substation
gas insulated transformer
المحركات الخطوية والتحكم بها
Setpper Motor
Stepper motors
Motor Fundamental
stepper motor
Short courses
Eskom load shedding update
prepaid energy meter using smartcard
Star delta trsformation
Two port networks (y parameters)
Gasoline electronic fuel injection systems
Ad

Similar to Stepper motor interfacing (20)

PPTX
Stepper Motor Interfacing with 8051.pptx
PPTX
STEPPER MOTOR .pptx
PPTX
Stepper motor
PDF
UNIT 1 FINAL NOTES.pdf
DOCX
It 5170 stepper motor
PPTX
unit1semsteppermotor ppt.pptx
PPTX
UNIT1 SEM Stepper motors ym.pptx
PPTX
Stepper Motor
PPT
Stepper Motor.ppt
PPT
Stepper Motor.ppt
PDF
Module 2-Electric Actuators electrical engineering robotics
PPTX
Working Principle of a Stepper Motor.pptx
PPTX
Stepper motor
PPTX
Stepper motor Presentation
PPT
Electricmotors
PPT
Stepper motor
PPT
stepper motor electrical machines - 2 ppt
PPT
Lecture6 - microprocessors two -Motors.ppt
PDF
Stepper motor in industrial applications
PPTX
Stepper Motor .pptx
Stepper Motor Interfacing with 8051.pptx
STEPPER MOTOR .pptx
Stepper motor
UNIT 1 FINAL NOTES.pdf
It 5170 stepper motor
unit1semsteppermotor ppt.pptx
UNIT1 SEM Stepper motors ym.pptx
Stepper Motor
Stepper Motor.ppt
Stepper Motor.ppt
Module 2-Electric Actuators electrical engineering robotics
Working Principle of a Stepper Motor.pptx
Stepper motor
Stepper motor Presentation
Electricmotors
Stepper motor
stepper motor electrical machines - 2 ppt
Lecture6 - microprocessors two -Motors.ppt
Stepper motor in industrial applications
Stepper Motor .pptx

More from BIRLA VISHVAKARMA MAHAVIDYALAY (14)

PDF
VLAN ON PACKET TRACER
PDF
VLAN ON PACKET TRACER
PDF
VLAN on packet Tracer
PPTX
DOCX
Gujarat technological universit1
PPTX
Arithmetic and logical instructions
PPTX
PPTX
DOCX
Automatic room light controller with bidirectional visitor counter
PPT
Automaticroomlightcontroller[1]
VLAN ON PACKET TRACER
VLAN ON PACKET TRACER
VLAN on packet Tracer
Gujarat technological universit1
Arithmetic and logical instructions
Automatic room light controller with bidirectional visitor counter
Automaticroomlightcontroller[1]

Recently uploaded (20)

PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
composite construction of structures.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
web development for engineering and engineering
PPTX
Welding lecture in detail for understanding
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Geodesy 1.pptx...............................................
PDF
PPT on Performance Review to get promotions
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Sustainable Sites - Green Building Construction
PPTX
Construction Project Organization Group 2.pptx
PPTX
UNIT 4 Total Quality Management .pptx
DOCX
573137875-Attendance-Management-System-original
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Digital Logic Computer Design lecture notes
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
CH1 Production IntroductoryConcepts.pptx
composite construction of structures.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
web development for engineering and engineering
Welding lecture in detail for understanding
Model Code of Practice - Construction Work - 21102022 .pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Internet of Things (IOT) - A guide to understanding
Geodesy 1.pptx...............................................
PPT on Performance Review to get promotions
Foundation to blockchain - A guide to Blockchain Tech
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Sustainable Sites - Green Building Construction
Construction Project Organization Group 2.pptx
UNIT 4 Total Quality Management .pptx
573137875-Attendance-Management-System-original
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
CYBER-CRIMES AND SECURITY A guide to understanding
Digital Logic Computer Design lecture notes

Stepper motor interfacing

  • 2. Title and Content Layout with List • Introduction • Add your second bullet point here • Video
  • 3. Introduction A stepper motor is a widely used device that translates electrical pulses into mechanical movement. In application such as disk drives, dot matrix printers, and robotics, the stepper motor is used for position control. Stepper motor commonly have a permanent magnet rotor (Shaft) surrounded by a stator. There are also steppers called variable reluctance stepper motors that do not have a permanent magnet rotor.
  • 5. STEP Winding A Winding B Winding C Winding D 1 1 0 0 1 2 1 1 0 0 3 0 1 1 0 4 0 0 1 1 Clockwise Anti-Clockwise
  • 6. Step Angle Steps per Revolution 0.72 500 1.8 200 2.0 180 2.5 144 5.0 72 7.5 48 15 24
  • 7. The step angle is the minimum degree of rotation associated with a single step. Various motors have different step angles. Table 14-4 shows some step angles for various motors. In Table 14-4, notice the term steps per revolution. This is the total number of steps needed to rotate one complete rotation or 360 degrees (e.g., 180 steps x 2 degrees = 360). It must be noted that perhaps contrary to one's initial impression, a stepper motor does not need more terminal leads for the stator to achieve sma11er steps.
  • 8. Step Angle The step angle is the minimum degree of rotation associated with a single step. Various motors have different step angles. Above Table shows some step angles for various motors. In Above Table, notice the term steps per revolution. This is the total number of steps needed to rotate one complete rotation or 360 degrees (e.g., 180 steps x 2 degrees = 360). It must be noted that perhaps contrary to one's initial impression, a stepper motor does not need more terminal leads for the stator to achieve sma11er steps.
  • 9. Steps per second and RPM relation The relation between RPM (revolutions per minute), steps per revolution, and steps per second is as follows. Steps per second = RPM x Steps per revolution 60 The 4-step sequence and number of teeth on rotor The switching sequence shown earlier in Table 14-3 is called the 4-step switching sequence because after four steps the same two windings will be "ON". How much movement is associated with these four steps? After completing every four steps, the rotor moves only one tooth pitch. Therefore, in a stepper motor with 200 steps per revolution, the rotor has 50 teeth because 4x 50 = 200 steps are needed to complete one revolution. This leads to the conclusion that the minimum step angle is always a function of the number of teeth on the rotor. In other words, the smaller the step angle, the more teeth the rotor has.
  • 10. Types of Stepper Motor 1. Universal: 2. Unipolar: 3. Bipolar:
  • 11. That types of stepper motor are identified by the number of connections to the motor in winding. The universal stepper motor can be configured for all three modes, while the unipolar can be either unipolar or bipolar. Obviously the bipolar cannot be configured for universal nor unipolar mode.
  • 12. Programme INCLUDE "M32DEF.INC“ LDI R20, HIGH (RAMEND) ; initialize stack pointer OUT SPH, R20 LDI R20, LOW(RAMEND) OUT SPL, R20 LDI R20, OxFF ; Port B as output OUT DDRB, R20 LDI R20, 0x06 ; Load step sequence L1:OUT PORTB, R20 ; PortB = R20 LSR R20 ; Shift Right BRCC L2 ; If not carry skip next ORI R20,0x8 L2:RCALL DELAY ; wait RJMP L1 DELAY:LDI R16, 0x50 D_L1:NOP NOP DEC R16 BRNE D_L1 RET Change the value of delay to set this speed of rotation.
  • 13. step Winding A Winding B Winding C Winding D 1 1 0 0 1 2 1 0 0 0 3 1 1 0 0 4 0 1 0 0 5 0 1 1 0 6 0 0 1 0 7 0 0 1 1 8 0 0 0 1
  • 14. AVR lacks sufficient current to drive the stepper motor windings, we must use a driver such as the ULN2003 (or ULN2803) to energize the stator. Instead of the ULN2003, we could have used transistors as drivers. One reason that using the ULN2003 is preferable to the use of transistors as drivers is that the ULN2003 has an internal diode to take care of back EMF.