SlideShare ist ein Scribd-Unternehmen logo
1 von 51
1 
The 8051 Microcontroller and 
Embedded Systems 
CHAPTER 16 
Motor Control: Relay, 
PWM, DC and Stepper 
Motors
RELAYS AND OPTOISOLATORS 
 A relay is an electrically controllable switch 
widely used in industrial controls, 
automobiles, and appliances 
 It allows the isolation of two separate 
sections of a system with two different 
voltage sources 
 For example, a +5V system can be isolated 
from a 120V system by placing a relay 
between them 
2
 One such relay is called an electromechanical 
(or electromagnetic) relay 
 The EMRs have three components: the coil, 
spring, and contacts 
 When current flows through the coil, a magnetic 
field is created around the coil (the coil is 
energized), which causes the armature to be 
attracted to the coil 
3 
RELAYS AND OPTOISOLATORS
Electromechanical Relay Symbols 
4
Criteria for Choosing a Relay 
 The contacts can be normally open (NO) or normally 
closed (NC). 
 There can one or more contacts. For example, we 
can have SPST (single pole,single throw), SPDT 
(single pole, double throw), and DPDT (double pole, 
double throw) relays 
 The voltage and current needed to energize the coil 
 The maximum DC/AC voltage and current that can 
be handled by the contacts 
5
Driving a relay 
 Digital systems and microcontroller pins lack 
sufficient current to drive the relay 
 While the relay’s coil needs around 10 mA to 
be energized, the microcontroller’s pin can 
provide a maximum of 1-2 mA current 
 For this reason, a driver is placed, such as 
the ULN2803, or a power transistor between 
the microcontroller and the relay 
6
7 
Driving a relay
Solid-state relay 
 In this relay, there is no coil, spring, or 
mechanical contact switch 
 The entire relay is made out of semiconductor 
materials 
 These relays have switching response time 
much faster than that of electromechanical 
relays 
 The life cycle for the electromechanical relay 
can vary from a few hundred thousands to few 
million operations 
8
 Wear and tear on the contact points can 
cause the relay to malfunction after a while 
 Solid-state relays have no such limitations 
 Extremely low input current and small 
packaging make solid-state relays ideal for 
microprocessor and logic control switching 
 They are widely used in controlling pumps, 
solenoids, alarms, and other power 
applications 
9 
Solid-state relay
10 
Solid-state relay
Reed switch 
 When the reed switch is placed in a magnetic 
field, the contact is closed 
 When the magnetic field is removed, the 
contact is forced open by its spring 
 The reed switch is ideal for moist and marine 
environments where it can be submerged in 
fuel or water 
 They are also widely used in dirty and dusty 
atmospheres since they are tightly sealed 
11
Reed switch 
12
Optoisolator 
 Optoisolator (also called optocoupler) are 
used to isolate two parts of a system 
 An optoisolator has an LED (light-emitting 
diode) transmitter and a photosensor 
receiver, separated from each other by a gap 
 When current flows through the diode, it 
transmits a signal light across the gap and 
the receiver produces the same signal with 
the same phase but a different current and 
13 amplitude
14 
Optoisolator
Interfacing an optoisolator 
 The optoisolator comes in a small IC 
package with four or more pins 
 When placing an optoisolator between two 
circuits, we must use two separate voltage 
sources, one for each side 
 Unlike relays, no drivers need to be placed 
between the microcontroller/digital output 
and the optoisolators 
15
16 
Interfacing an optoisolator
Introduction to Stepper Motor 
17 
 Stepper motor is a widely used device that 
translates electrical pulses into mechanical 
movement 
 Stepper motor is used in applications such 
as 
 disk drives 
 dot matrix printer 
 robotics etc. 
 Stepper motors commonly have a permanent 
magnet rotor (shaft) surrounded by a stator
Stepper Motor Diagram
Construction of Stepper Motor
Construction of Stepper Motor 
 Commonly used stepper motors have four stator 
windings that are paired with a center – tapped 
common. Such motors are called as four-phase 
or unipolar stepper motor. 
 It has a permanent magnet rotor which is 
surrounded by a stator. 
 A practical PM stepper motor will have 1.8 
degrees step angle and 50 tooth on its rotor. 
 There are 8 main poles on the stator, each 
having 5 tooth in the pole face
21 
Construction of Stepper Motor
Unipolar Stepper motors
Stepper Motor Selection 
 Permanent Magnet / Variable Reluctance 
 Unipolar vs. Bipolar 
 Number of Stacks 
 Number of Phases 
 Degrees Per Step 
 Microstepping 
 Pull-In/Pull-Out Torque 
 Detent Torque
Stepper Motor Selection 
 Most common stepper motors have 4 stator 
windings that are paired with a center-tapped 
common as shown in the fig 
 This type of stepper motor is commonly referred to 
as a four phase or unipolar stepper motor 
 The center tap allows a change of current direction 
in each of two coils when a winding is grounded, 
there by resulting in a polarity change of the stator
Working of Stepper Motor 
 The stator is a magnet over which the electric 
coil is wound 
 One end of the coil is connected commonly 
either to ground or +5V 
 The other end is provided with a fixed 
sequence such that the motor rotates in a 
particular direction 
 Stepper motor shaft moves in a fixed 
repeatable increment, which allows one to 
move it to a precise position
Working of Stepper Motor 
 Direction of the rotation is dictated by the 
stator poles 
 Stator poles are determined by the current 
sent through the wire coils 
30
Step Angle 
 Step angle is defined as the minimum degree 
of rotation with a single step. 
 No of steps per revolution = 360° / step angle 
 Steps per second = (rpm x steps per 
revolution) / 60 
 Example: step angle = 2° 
 No of steps per revolution = 180
One Phase on 
(Wave drive four step sequence) 
(Normal four step sequence)
8051 connection to stepper motor
Program: 
 Write an ALP to rotate the stepper motor clockwise / anticlockwise continuously with 
full step sequence. 
 MOV A,#66H 
 BACK: MOV P1,A 
 RR A 
 ACALL DELAY 
 SJMP BACK 
 DELAY: MOV R1,#100 
 UP1: MOV R2,#50 
 UP: DJNZ R2,UP 
 DJNZ R1,UP1 
 RET 
 Note: motor to rotate in anticlockwise use instruction RL A instead of RR A
Program: 
 : A switch is connected to pin P2.7. Write an ALP to monitor the status of the 
SW. If SW = 0, motor moves clockwise and if SW = 1, motor moves 
anticlockwise. 
 ORG 0000H 
 SETB P2.7 
 MOV A, #66H 
 MOV P1,A 
 TURN: JNB P2.7, CW 
 RL A 
 ACALL DELAY 
 MOV P1,A 
 SJMP TURN 
 CW: RR A 
 ACALL DELAY 
 MOV P1,A 
 SJMP TURN
Program: 
 Write an ALP to rotate a motor 90° clockwise. Step angle of motor is 2°. 
 Step angle = 2° 
 Steps per revolution = 180 
 For 90° rotation the no of steps is 45 
 ORG 0000H 
 MOV A, #66H 
 MOV R0, #45 
 BACK: RR A 
 MOV P1, A 
 ACALL DELAY 
 DJNZ R0, BACK 
 END
Programming stepper motor in ‘c’ 
 #include <reg51.h> 
 void main () 
 { while (1) 
 { 
 P1=0x66; 
 MSDELAY (200); 
 P1=0x33; 
 MSDELAY (200); 
 P1=0x99; 
 MSDELAY (200); 
 P1=0xCC; 
 MSDELAY (200); 
 } 
 }
Programming stepper motor in ‘c’ 
 #include <REG51xD2.H> 
 void delay(unsigned int x) /* Delay Routine */ 
 { for(;x>0;x--);} 
 main(){ 
 unsigned char Val,i; 
 while(1) { 
 Val = 0x88; 
 for(i=0;i<4;i++) { 
 P0 = Val; 
 Val = Val>>1; 
 delay(575); }}}
DC MOTOR INTERFACING AND 
PWM 
 A direct current (DC) motor is another widely 
used device that translates electrical pulses 
into mechanical movement 
 The DC motor has only + and – leads 
 Connecting them to a DC voltage source 
moves the motor in one direction 
 By reversing the polarity, the DC motor will 
move in the opposite direction 
39
 Small fans used in many motherboards to 
cool the CPU are run by DC motors 
 While a stepper motor moves in steps of 1 to 
15 degrees, the DC motor moves 
continuously 
 The DC motor has two rpms: no-load and 
loaded 
 The manufacturer’s data sheet gives the no-load 
rpm 
40 
DC MOTOR INTERFACING AND 
PWM
41
 The DC motor has rotation for clockwise 
(CW) and counterclockwise (CCW) rotations 
42 
Unidirection Control
43 
Bidirectional control 
 All the 
switches 
are 
open, 
which 
does not 
allow the 
motor to 
turn.
44 
Bidirectional control 
 When 
switches 1 
and 4 are 
closed, 
current is 
allowed to 
pass 
through 
the motor.
45 
Bidirectional control
46 
Bidirectional control 
 An invalid 
configuration 
 Current 
flows directly 
to ground, 
creating a 
short circuit
 H-Bridge control can be created using relays, 
transistors, or a single IC solution such as the L293 
 When using relays and transistors, it must be 
ensured that invalid configurations do not occur 
47 
Bidirectional control
 The speed of the motor depends on three 
factors: 
– (a) load 
– (b) voltage 
– (c) current 
 For a given fixed load we can maintain a 
steady speed by using a method called pulse 
width modulation (PWM) 
48 
Pulse width modulation (PWM)
 By changing (modulating) the width of the 
pulse applied to the DC motor we can 
increase or decrease the amount of power 
provided to the motor, thereby increasing or 
decreasing the motor speed 
 PWM is so widely used in DC motor control 
that some microcontrollers come with the 
PWM circuitry embedded in the chip 
49 
Pulse width modulation (PWM)
50 
Pulse width modulation (PWM) 
 Although the voltage has a fixed amplitude, it 
has a variable duty cycle 
 That means the wider the pulse, the higher 
the speed
51 
DC Motor Connection using a 
Darlington Transistor

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Tunnel diode
Tunnel diodeTunnel diode
Tunnel diode
 
Pulse width modulated inverter
Pulse width modulated inverterPulse width modulated inverter
Pulse width modulated inverter
 
stepper motor
stepper motorstepper motor
stepper motor
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
Universal motor/sanjeet-1308143
Universal motor/sanjeet-1308143Universal motor/sanjeet-1308143
Universal motor/sanjeet-1308143
 
POWER SWITCHING DEVICES
POWER SWITCHING DEVICESPOWER SWITCHING DEVICES
POWER SWITCHING DEVICES
 
Braking methods of induction motor
Braking methods of induction motorBraking methods of induction motor
Braking methods of induction motor
 
Automatic night lamp
Automatic night lampAutomatic night lamp
Automatic night lamp
 
Unit-2 Three Phase controlled converter
Unit-2 Three Phase controlled converter Unit-2 Three Phase controlled converter
Unit-2 Three Phase controlled converter
 
Solar based wireless charging of electric vehicle
Solar based wireless charging of electric vehicleSolar based wireless charging of electric vehicle
Solar based wireless charging of electric vehicle
 
anti sleep alarm for students
anti sleep alarm for studentsanti sleep alarm for students
anti sleep alarm for students
 
Stepper motor Presentation
Stepper motor Presentation Stepper motor Presentation
Stepper motor Presentation
 
Buck-Boost Converter
Buck-Boost ConverterBuck-Boost Converter
Buck-Boost Converter
 
Silicon control rectifier
Silicon control rectifierSilicon control rectifier
Silicon control rectifier
 
Dc servo motor
Dc servo motorDc servo motor
Dc servo motor
 
Mosfet
MosfetMosfet
Mosfet
 
Paper battery
Paper batteryPaper battery
Paper battery
 
Presentation On Dc Motors
Presentation On Dc MotorsPresentation On Dc Motors
Presentation On Dc Motors
 
Dc motor ppt
Dc motor pptDc motor ppt
Dc motor ppt
 
Dark sensor
Dark sensorDark sensor
Dark sensor
 

Andere mochten auch

Stepper Motor Control System
Stepper Motor Control SystemStepper Motor Control System
Stepper Motor Control SystemWanita Long
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and ProgrammingDevashish Raval
 
Stepper motor control
Stepper motor controlStepper motor control
Stepper motor controlJatin Arora
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingAnkur Mahajan
 
Dc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontrollerDc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontrollerUmar Shuaib
 
BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLERBIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLERShanmukha S. Potti
 
Speed Control of DC Motor using Microcontroller
Speed Control of DC Motor using MicrocontrollerSpeed Control of DC Motor using Microcontroller
Speed Control of DC Motor using MicrocontrollerSudip Mondal
 
ALCOHOL DETECTION SYSTEM USING GSM TECHNOLOGY
ALCOHOL DETECTION SYSTEM USING GSM TECHNOLOGYALCOHOL DETECTION SYSTEM USING GSM TECHNOLOGY
ALCOHOL DETECTION SYSTEM USING GSM TECHNOLOGYOodit Jethwa
 
Microcontroller based automatic engine locking system for drunken drivers
Microcontroller based automatic engine locking system for drunken driversMicrocontroller based automatic engine locking system for drunken drivers
Microcontroller based automatic engine locking system for drunken driversVinny Chweety
 
Drink and Drive Alcohol Detection
Drink and Drive Alcohol DetectionDrink and Drive Alcohol Detection
Drink and Drive Alcohol DetectionNandha_Gopal
 
Audio devices and applications
Audio devices and applicationsAudio devices and applications
Audio devices and applicationsDevashish Raval
 
Microcontroller based automatic engine locking system for drunken drivers
Microcontroller based automatic engine locking system for drunken driversMicrocontroller based automatic engine locking system for drunken drivers
Microcontroller based automatic engine locking system for drunken driversVinny Chweety
 
Speed control of dc motor using pulse width modulation
Speed control of dc motor using pulse width modulationSpeed control of dc motor using pulse width modulation
Speed control of dc motor using pulse width modulationviveksinghdew
 
TO control the speed of DC Motor Simple Project
TO control the speed of DC Motor Simple ProjectTO control the speed of DC Motor Simple Project
TO control the speed of DC Motor Simple ProjectZunAib Ali
 

Andere mochten auch (20)

Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
Stepper Motor Control System
Stepper Motor Control SystemStepper Motor Control System
Stepper Motor Control System
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and Programming
 
Stepper motor control
Stepper motor controlStepper motor control
Stepper motor control
 
stepper motor
stepper motorstepper motor
stepper motor
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 
Mini Project- Stepper Motor Control
Mini Project- Stepper Motor ControlMini Project- Stepper Motor Control
Mini Project- Stepper Motor Control
 
Dc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontrollerDc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontroller
 
Relay driver
Relay  driverRelay  driver
Relay driver
 
BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLERBIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
 
Speed Control of DC Motor using Microcontroller
Speed Control of DC Motor using MicrocontrollerSpeed Control of DC Motor using Microcontroller
Speed Control of DC Motor using Microcontroller
 
ALCOHOL DETECTION SYSTEM USING GSM TECHNOLOGY
ALCOHOL DETECTION SYSTEM USING GSM TECHNOLOGYALCOHOL DETECTION SYSTEM USING GSM TECHNOLOGY
ALCOHOL DETECTION SYSTEM USING GSM TECHNOLOGY
 
Microcontroller based automatic engine locking system for drunken drivers
Microcontroller based automatic engine locking system for drunken driversMicrocontroller based automatic engine locking system for drunken drivers
Microcontroller based automatic engine locking system for drunken drivers
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 
Drink and Drive Alcohol Detection
Drink and Drive Alcohol DetectionDrink and Drive Alcohol Detection
Drink and Drive Alcohol Detection
 
Audio devices and applications
Audio devices and applicationsAudio devices and applications
Audio devices and applications
 
Microcontroller based automatic engine locking system for drunken drivers
Microcontroller based automatic engine locking system for drunken driversMicrocontroller based automatic engine locking system for drunken drivers
Microcontroller based automatic engine locking system for drunken drivers
 
Speed control of dc motor using pulse width modulation
Speed control of dc motor using pulse width modulationSpeed control of dc motor using pulse width modulation
Speed control of dc motor using pulse width modulation
 
TO control the speed of DC Motor Simple Project
TO control the speed of DC Motor Simple ProjectTO control the speed of DC Motor Simple Project
TO control the speed of DC Motor Simple Project
 

Ähnlich wie Motor Control Relay, Pwm, DC and Stepper Motors

Speed Control Of Single Phase Induction Motor
Speed Control Of Single Phase Induction MotorSpeed Control Of Single Phase Induction Motor
Speed Control Of Single Phase Induction MotorBhuban Chandra Mohanta
 
Controlling of DC Motor using IC 555 Timer
Controlling of DC Motor using IC 555 TimerControlling of DC Motor using IC 555 Timer
Controlling of DC Motor using IC 555 TimerUpendra Chokka
 
Third Freshers\' Workshop 2011
Third Freshers\'  Workshop 2011Third Freshers\'  Workshop 2011
Third Freshers\' Workshop 2011Aditya Agarwal
 
Design and Implementation of a Microcontroller Based DC/AC Inverter
Design and Implementation of a Microcontroller Based DC/AC InverterDesign and Implementation of a Microcontroller Based DC/AC Inverter
Design and Implementation of a Microcontroller Based DC/AC InverterFiras Mohammed Ali Al-Raie
 
To control the pwm dc motor using ic555 timer
To control the pwm dc motor using ic555 timerTo control the pwm dc motor using ic555 timer
To control the pwm dc motor using ic555 timerVINAY KUMAR GUDELA
 
SOLID STATE TRANSFORMER - USING FLYBACK CONVERTER
SOLID STATE TRANSFORMER - USING FLYBACK CONVERTERSOLID STATE TRANSFORMER - USING FLYBACK CONVERTER
SOLID STATE TRANSFORMER - USING FLYBACK CONVERTERAbhin Mohan
 
Electric-Traction-Railways.ppt
Electric-Traction-Railways.pptElectric-Traction-Railways.ppt
Electric-Traction-Railways.pptssuserf805c8
 
Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...
Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...
Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...IRJET Journal
 
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLERDC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLERTridib Bose
 
ENERGY EFFICIENT VARIABLE SPEED HIGH POWER FACTOR THREE PHASE INDUCTION MOTOR...
ENERGY EFFICIENT VARIABLE SPEED HIGH POWER FACTOR THREE PHASE INDUCTION MOTOR...ENERGY EFFICIENT VARIABLE SPEED HIGH POWER FACTOR THREE PHASE INDUCTION MOTOR...
ENERGY EFFICIENT VARIABLE SPEED HIGH POWER FACTOR THREE PHASE INDUCTION MOTOR...Journal For Research
 

Ähnlich wie Motor Control Relay, Pwm, DC and Stepper Motors (20)

Stepper Motor
Stepper MotorStepper Motor
Stepper Motor
 
Speed Control Of Single Phase Induction Motor
Speed Control Of Single Phase Induction MotorSpeed Control Of Single Phase Induction Motor
Speed Control Of Single Phase Induction Motor
 
Controlling of DC Motor using IC 555 Timer
Controlling of DC Motor using IC 555 TimerControlling of DC Motor using IC 555 Timer
Controlling of DC Motor using IC 555 Timer
 
Third Freshers\' Workshop 2011
Third Freshers\'  Workshop 2011Third Freshers\'  Workshop 2011
Third Freshers\' Workshop 2011
 
Ac motor closedloo[p
Ac motor closedloo[pAc motor closedloo[p
Ac motor closedloo[p
 
SST
SSTSST
SST
 
Project paper
Project paperProject paper
Project paper
 
Design and Implementation of a Microcontroller Based DC/AC Inverter
Design and Implementation of a Microcontroller Based DC/AC InverterDesign and Implementation of a Microcontroller Based DC/AC Inverter
Design and Implementation of a Microcontroller Based DC/AC Inverter
 
Two Quadrant chopper
Two Quadrant chopperTwo Quadrant chopper
Two Quadrant chopper
 
Ac closed loop
Ac closed loopAc closed loop
Ac closed loop
 
To control the pwm dc motor using ic555 timer
To control the pwm dc motor using ic555 timerTo control the pwm dc motor using ic555 timer
To control the pwm dc motor using ic555 timer
 
Presentation200 (1).ppt
Presentation200 (1).pptPresentation200 (1).ppt
Presentation200 (1).ppt
 
SOLID STATE TRANSFORMER - USING FLYBACK CONVERTER
SOLID STATE TRANSFORMER - USING FLYBACK CONVERTERSOLID STATE TRANSFORMER - USING FLYBACK CONVERTER
SOLID STATE TRANSFORMER - USING FLYBACK CONVERTER
 
Electric-Traction-Railways.ppt
Electric-Traction-Railways.pptElectric-Traction-Railways.ppt
Electric-Traction-Railways.ppt
 
Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...
Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...
Review on Speed and Direction Control of DC Motor By using Single MOSFET and ...
 
pwm for speed control
pwm for speed controlpwm for speed control
pwm for speed control
 
About Sine Pulse Width Modulation
About Sine Pulse Width Modulation About Sine Pulse Width Modulation
About Sine Pulse Width Modulation
 
SSEMD PPT1.pdf
SSEMD PPT1.pdfSSEMD PPT1.pdf
SSEMD PPT1.pdf
 
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLERDC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
 
ENERGY EFFICIENT VARIABLE SPEED HIGH POWER FACTOR THREE PHASE INDUCTION MOTOR...
ENERGY EFFICIENT VARIABLE SPEED HIGH POWER FACTOR THREE PHASE INDUCTION MOTOR...ENERGY EFFICIENT VARIABLE SPEED HIGH POWER FACTOR THREE PHASE INDUCTION MOTOR...
ENERGY EFFICIENT VARIABLE SPEED HIGH POWER FACTOR THREE PHASE INDUCTION MOTOR...
 

Mehr von Devashish Raval

Mehr von Devashish Raval (6)

Television Receiver
Television ReceiverTelevision Receiver
Television Receiver
 
Digital audio
Digital audioDigital audio
Digital audio
 
Sound amplification
Sound amplificationSound amplification
Sound amplification
 
Sound fundamentals
Sound fundamentalsSound fundamentals
Sound fundamentals
 
Television Signal Transmission & Propagation
Television Signal Transmission & PropagationTelevision Signal Transmission & Propagation
Television Signal Transmission & Propagation
 
Introduction to Video Signals
Introduction to Video SignalsIntroduction to Video Signals
Introduction to Video Signals
 

Kürzlich hochgeladen

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 

Kürzlich hochgeladen (20)

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 

Motor Control Relay, Pwm, DC and Stepper Motors

  • 1. 1 The 8051 Microcontroller and Embedded Systems CHAPTER 16 Motor Control: Relay, PWM, DC and Stepper Motors
  • 2. RELAYS AND OPTOISOLATORS  A relay is an electrically controllable switch widely used in industrial controls, automobiles, and appliances  It allows the isolation of two separate sections of a system with two different voltage sources  For example, a +5V system can be isolated from a 120V system by placing a relay between them 2
  • 3.  One such relay is called an electromechanical (or electromagnetic) relay  The EMRs have three components: the coil, spring, and contacts  When current flows through the coil, a magnetic field is created around the coil (the coil is energized), which causes the armature to be attracted to the coil 3 RELAYS AND OPTOISOLATORS
  • 5. Criteria for Choosing a Relay  The contacts can be normally open (NO) or normally closed (NC).  There can one or more contacts. For example, we can have SPST (single pole,single throw), SPDT (single pole, double throw), and DPDT (double pole, double throw) relays  The voltage and current needed to energize the coil  The maximum DC/AC voltage and current that can be handled by the contacts 5
  • 6. Driving a relay  Digital systems and microcontroller pins lack sufficient current to drive the relay  While the relay’s coil needs around 10 mA to be energized, the microcontroller’s pin can provide a maximum of 1-2 mA current  For this reason, a driver is placed, such as the ULN2803, or a power transistor between the microcontroller and the relay 6
  • 7. 7 Driving a relay
  • 8. Solid-state relay  In this relay, there is no coil, spring, or mechanical contact switch  The entire relay is made out of semiconductor materials  These relays have switching response time much faster than that of electromechanical relays  The life cycle for the electromechanical relay can vary from a few hundred thousands to few million operations 8
  • 9.  Wear and tear on the contact points can cause the relay to malfunction after a while  Solid-state relays have no such limitations  Extremely low input current and small packaging make solid-state relays ideal for microprocessor and logic control switching  They are widely used in controlling pumps, solenoids, alarms, and other power applications 9 Solid-state relay
  • 11. Reed switch  When the reed switch is placed in a magnetic field, the contact is closed  When the magnetic field is removed, the contact is forced open by its spring  The reed switch is ideal for moist and marine environments where it can be submerged in fuel or water  They are also widely used in dirty and dusty atmospheres since they are tightly sealed 11
  • 13. Optoisolator  Optoisolator (also called optocoupler) are used to isolate two parts of a system  An optoisolator has an LED (light-emitting diode) transmitter and a photosensor receiver, separated from each other by a gap  When current flows through the diode, it transmits a signal light across the gap and the receiver produces the same signal with the same phase but a different current and 13 amplitude
  • 15. Interfacing an optoisolator  The optoisolator comes in a small IC package with four or more pins  When placing an optoisolator between two circuits, we must use two separate voltage sources, one for each side  Unlike relays, no drivers need to be placed between the microcontroller/digital output and the optoisolators 15
  • 16. 16 Interfacing an optoisolator
  • 17. Introduction to Stepper Motor 17  Stepper motor is a widely used device that translates electrical pulses into mechanical movement  Stepper motor is used in applications such as  disk drives  dot matrix printer  robotics etc.  Stepper motors commonly have a permanent magnet rotor (shaft) surrounded by a stator
  • 20. Construction of Stepper Motor  Commonly used stepper motors have four stator windings that are paired with a center – tapped common. Such motors are called as four-phase or unipolar stepper motor.  It has a permanent magnet rotor which is surrounded by a stator.  A practical PM stepper motor will have 1.8 degrees step angle and 50 tooth on its rotor.  There are 8 main poles on the stator, each having 5 tooth in the pole face
  • 21. 21 Construction of Stepper Motor
  • 23.
  • 24.
  • 25.
  • 26.
  • 27. Stepper Motor Selection  Permanent Magnet / Variable Reluctance  Unipolar vs. Bipolar  Number of Stacks  Number of Phases  Degrees Per Step  Microstepping  Pull-In/Pull-Out Torque  Detent Torque
  • 28. Stepper Motor Selection  Most common stepper motors have 4 stator windings that are paired with a center-tapped common as shown in the fig  This type of stepper motor is commonly referred to as a four phase or unipolar stepper motor  The center tap allows a change of current direction in each of two coils when a winding is grounded, there by resulting in a polarity change of the stator
  • 29. Working of Stepper Motor  The stator is a magnet over which the electric coil is wound  One end of the coil is connected commonly either to ground or +5V  The other end is provided with a fixed sequence such that the motor rotates in a particular direction  Stepper motor shaft moves in a fixed repeatable increment, which allows one to move it to a precise position
  • 30. Working of Stepper Motor  Direction of the rotation is dictated by the stator poles  Stator poles are determined by the current sent through the wire coils 30
  • 31. Step Angle  Step angle is defined as the minimum degree of rotation with a single step.  No of steps per revolution = 360° / step angle  Steps per second = (rpm x steps per revolution) / 60  Example: step angle = 2°  No of steps per revolution = 180
  • 32. One Phase on (Wave drive four step sequence) (Normal four step sequence)
  • 33. 8051 connection to stepper motor
  • 34. Program:  Write an ALP to rotate the stepper motor clockwise / anticlockwise continuously with full step sequence.  MOV A,#66H  BACK: MOV P1,A  RR A  ACALL DELAY  SJMP BACK  DELAY: MOV R1,#100  UP1: MOV R2,#50  UP: DJNZ R2,UP  DJNZ R1,UP1  RET  Note: motor to rotate in anticlockwise use instruction RL A instead of RR A
  • 35. Program:  : A switch is connected to pin P2.7. Write an ALP to monitor the status of the SW. If SW = 0, motor moves clockwise and if SW = 1, motor moves anticlockwise.  ORG 0000H  SETB P2.7  MOV A, #66H  MOV P1,A  TURN: JNB P2.7, CW  RL A  ACALL DELAY  MOV P1,A  SJMP TURN  CW: RR A  ACALL DELAY  MOV P1,A  SJMP TURN
  • 36. Program:  Write an ALP to rotate a motor 90° clockwise. Step angle of motor is 2°.  Step angle = 2°  Steps per revolution = 180  For 90° rotation the no of steps is 45  ORG 0000H  MOV A, #66H  MOV R0, #45  BACK: RR A  MOV P1, A  ACALL DELAY  DJNZ R0, BACK  END
  • 37. Programming stepper motor in ‘c’  #include <reg51.h>  void main ()  { while (1)  {  P1=0x66;  MSDELAY (200);  P1=0x33;  MSDELAY (200);  P1=0x99;  MSDELAY (200);  P1=0xCC;  MSDELAY (200);  }  }
  • 38. Programming stepper motor in ‘c’  #include <REG51xD2.H>  void delay(unsigned int x) /* Delay Routine */  { for(;x>0;x--);}  main(){  unsigned char Val,i;  while(1) {  Val = 0x88;  for(i=0;i<4;i++) {  P0 = Val;  Val = Val>>1;  delay(575); }}}
  • 39. DC MOTOR INTERFACING AND PWM  A direct current (DC) motor is another widely used device that translates electrical pulses into mechanical movement  The DC motor has only + and – leads  Connecting them to a DC voltage source moves the motor in one direction  By reversing the polarity, the DC motor will move in the opposite direction 39
  • 40.  Small fans used in many motherboards to cool the CPU are run by DC motors  While a stepper motor moves in steps of 1 to 15 degrees, the DC motor moves continuously  The DC motor has two rpms: no-load and loaded  The manufacturer’s data sheet gives the no-load rpm 40 DC MOTOR INTERFACING AND PWM
  • 41. 41
  • 42.  The DC motor has rotation for clockwise (CW) and counterclockwise (CCW) rotations 42 Unidirection Control
  • 43. 43 Bidirectional control  All the switches are open, which does not allow the motor to turn.
  • 44. 44 Bidirectional control  When switches 1 and 4 are closed, current is allowed to pass through the motor.
  • 46. 46 Bidirectional control  An invalid configuration  Current flows directly to ground, creating a short circuit
  • 47.  H-Bridge control can be created using relays, transistors, or a single IC solution such as the L293  When using relays and transistors, it must be ensured that invalid configurations do not occur 47 Bidirectional control
  • 48.  The speed of the motor depends on three factors: – (a) load – (b) voltage – (c) current  For a given fixed load we can maintain a steady speed by using a method called pulse width modulation (PWM) 48 Pulse width modulation (PWM)
  • 49.  By changing (modulating) the width of the pulse applied to the DC motor we can increase or decrease the amount of power provided to the motor, thereby increasing or decreasing the motor speed  PWM is so widely used in DC motor control that some microcontrollers come with the PWM circuitry embedded in the chip 49 Pulse width modulation (PWM)
  • 50. 50 Pulse width modulation (PWM)  Although the voltage has a fixed amplitude, it has a variable duty cycle  That means the wider the pulse, the higher the speed
  • 51. 51 DC Motor Connection using a Darlington Transistor