80
Motor Drive and PWM Techniques Eng:Mohamed Loay Ali 1

AVR_Course_Day8 motor drive and pwm techniques

Embed Size (px)

Citation preview

Page 1: AVR_Course_Day8 motor drive and pwm techniques

Motor Drive and PWM Techniques

Eng:Mohamed Loay Ali

1

Page 2: AVR_Course_Day8 motor drive and pwm techniques

Contents DC Motor

1. Introduction to DC motor and its parameters. 2. PWM 8 bits modes (Fast PWM &Phase Correct).3. PWM 16 bits modes (Fast PWM & Phase Correct).4. Speed Control of DC motor.

Stepper motor.1. Stepper motor basics.2. Main Components of Stepper motor.3. Types of Stepping Motors4. Unipolar and Bipolar Stepper Motors5. Driving Stepper motor.

Eng:Mohamed Loay Ali

2

Page 3: AVR_Course_Day8 motor drive and pwm techniques

DC motor1. Introduction to DC motor and its parameters.

A direct current motor one of the most widely used motors. By connecting the motor terminal to dc source it rotates in one direction,

and by reversing the polarity it rotates to the opposite direction. The maximum speed of a dc motor is indicated with the rpm and is

given in the data sheet. The dc motor control can be unidirectional or bidirectional as shown in

the following figure

Eng:Mohamed Loay Ali

3

Page 4: AVR_Course_Day8 motor drive and pwm techniques

DC motor1. Introduction to DC motor and its parameters.

The speed of the motor depends on three factors1) Load.2) Voltage.3) Current. The rpm of the motor can be controlled by varying the voltage

terminals. For a given fixed load a steady speed can be maintained by using

Pulse width modulation (PWM) to change the voltage across the DC terminals.

Although the PWM has a fixed amplitude, it has a variable duty cycle. That means the wider pulse the wider the higher the speed.

By varying the duty cycle the power fed to the motor speed is changing as shown in the following

Eng:Mohamed Loay Ali

4

Page 5: AVR_Course_Day8 motor drive and pwm techniques

DC motor1. Introduction to DC motor and its parameters.

Eng:Mohamed Loay Ali

5

Page 6: AVR_Course_Day8 motor drive and pwm techniques

DC motor1. Introduction to DC motor and its parameters.

Eng:Mohamed Loay Ali

6

Page 7: AVR_Course_Day8 motor drive and pwm techniques

DC motor1. Introduction to DC motor and its parameters.

Eng:Mohamed Loay Ali

7

Page 8: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Fast PWM

Eng:Mohamed Loay Ali

8

Page 9: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Fast PWM

Eng:Mohamed Loay Ali

9

Page 10: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Fast PWM

Eng:Mohamed Loay Ali

10

Page 11: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Fast PWM

Eng:Mohamed Loay Ali

11

Page 12: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Fast PWM

Eng:Mohamed Loay Ali

12

Page 13: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Fast PWM

Eng:Mohamed Loay Ali

13

Page 14: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Fast PWM

Eng:Mohamed Loay Ali

14

Page 15: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Fast PWM

Eng:Mohamed Loay Ali

15

Page 16: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Fast PWM The counter counts up like it does in the normal mode. It counts up until it reaches its maximum value 0xFF. Then it rolls over to from 0xFF to 0x00 ,it set the TOV The fast PWM differs from the other PWM option by its single-slope operation. In non-inverting Compare Output mode, the Output Compare (OC0x) is cleared

on the compare match between TCNT0 and OCR0x, and set at BOTTOM. In inverting Compare Output mode, the output is set on compare match and

cleared at BOTTOM.

Eng:Mohamed Loay Ali

16

Page 17: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes :PWM 8 bits modes : Fast PWM

Eng:Mohamed Loay Ali

17

Page 18: AVR_Course_Day8 motor drive and pwm techniques

DC motor

For non-Inverted mode

For Inverted mode

PWM 8 bits modes : Fast PWM

Eng:Mohamed Loay Ali

18

Page 19: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Fast PWM

Eng:Mohamed Loay Ali

19

Page 20: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Phase Correct The phase correct PWM mode (WGM02:0 = 1 or 5) provides a high resolution. The counter counts repeatedly from BOTTOM to TOP and then from TOP to

BOTTOM. TOP is defined as 0xFF when WGM2:0 = 1and OCR0A when WGM2:0 = 5

In non-inverting Compare Output mode, the Output Compare (OC0x) is cleared on the com-pare match between TCNT0 and OCR0x while up counting, and set on the compare match while down counting.

In inverting Output Compare mode, the operation is inverted. The dual-slope operation has lower maximum operation frequency than single slope operation

Eng:Mohamed Loay Ali

20

Page 21: AVR_Course_Day8 motor drive and pwm techniques

DC motorDC motorPWM 8 bits modes : Phase Correct

Eng:Mohamed Loay Ali

21

Page 22: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Phase Correct

For non-Inverted mode

For Inverted mode

Eng:Mohamed Loay Ali

22

Page 23: AVR_Course_Day8 motor drive and pwm techniques

DC motorPWM 8 bits modes : Phase Correct

Eng:Mohamed Loay Ali

23

Page 24: AVR_Course_Day8 motor drive and pwm techniques

DC motor PWM 16 bits modes (Fast PWM & Phase Correct). Speed Control of DC motor.

DO IT Yourself

Eng:Mohamed Loay Ali

24

Page 25: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor1. Stepper motor basics.

Stepper Motor are motors that moves one step at a time. A digital version of an electric motor Each step is defined by a Step Angle

Eng:Mohamed Loay Ali

25

Page 26: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor1. Stepper motor basics.

Relatively inexpensive Ideal for open loop positioning control Can be implemented without feedback Minimizes sensing devices Just count the steps!

Torque Holds its position firmly when not turning Eliminates mechanical brakes Produces better torque than DC motors at lower speeds

Positioning applications

Eng:Mohamed Loay Ali

26

Page 27: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor2.Main Components of Stepper motor.

Consists of 1.Stator:Holds multiplewindings/phases

Eng:Mohamed Loay Ali

27

Page 28: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor2.Main Components of Stepper motor.

Consists of 2.Rotor:Magnetizedor non-magntized

Eng:Mohamed Loay Ali

28

Page 29: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor2.Main Components of Stepper motor.

Voltage applied to winding initiates current flow Magnetic flux begins to flow

Eng:Mohamed Loay Ali

29

Page 30: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor2.Main Components of Stepper motor.

Rotor rotates to minimize flux path (or reluctance)

Eng:Mohamed Loay Ali

30

Page 31: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor3.Types of Stepping Motors

Permanent MagnetMagnetic rotor

Variable ReluctanceNon-magnetic, geared rotor

HybridCombines characteristics from PM and VRMagnetic, geared rotor

Eng:Mohamed Loay Ali

31

Page 32: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor3.Types of Stepping Motors

Permanent Magnet

Eng:Mohamed Loay Ali

32

Page 33: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor3.Types of Stepping Motors

Variable ReluctanceNon-magnetic, geared rotor

Eng:Mohamed Loay Ali

33

Page 34: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor3.Types of Stepping Motors

HybridCombines characteristics from PM and VR Magnetic, geared rotor

Eng:Mohamed Loay Ali

34

Page 35: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor3.Types of Stepping Motors

Eng:Mohamed Loay Ali

35

Page 36: AVR_Course_Day8 motor drive and pwm techniques

4.Unipolar and Bipolar Stepper Motors

Stepper Motor

Leads on each coil can be brought out in two ways:−Each lead taken separately−Bi-directional current flow through entire winding

Eng:Mohamed Loay Ali

36

Page 37: AVR_Course_Day8 motor drive and pwm techniques

4.Unipolar and Bipolar Stepper Motors

Stepper Motor

A center tap added between the two leads−Unidirectional current flow in each ½ of windingUnipolar

Eng:Mohamed Loay Ali

37

Page 38: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step).

Stepper Motor

Eng:Mohamed Loay Ali

38

Page 39: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step).

Stepper Motor

Eng:Mohamed Loay Ali

39

Page 40: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step).

Stepper Motor

Eng:Mohamed Loay Ali

40

Page 41: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step).

Stepper Motor

Eng:Mohamed Loay Ali

41

Page 42: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step).

Stepper Motor

Eng:Mohamed Loay Ali

42

Page 43: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step).

Stepper Motor

Eng:Mohamed Loay Ali

43

Page 44: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step).

Stepper Motor

Eng:Mohamed Loay Ali

44

Page 45: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step).

Stepper Motor

Eng:Mohamed Loay Ali

45

Page 46: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step two phase on).

Stepper Motor

Eng:Mohamed Loay Ali

46

Page 47: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step two phase on).

Stepper Motor

Eng:Mohamed Loay Ali

47

Page 48: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step two phase on).

Stepper Motor

Eng:Mohamed Loay Ali

48

Page 49: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step two phase on).

Stepper Motor

Eng:Mohamed Loay Ali

49

Page 50: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step two phase on).

Stepper Motor

Eng:Mohamed Loay Ali

50

Page 51: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step two phase on).

Stepper Motor

Eng:Mohamed Loay Ali

51

Page 52: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step two phase on).

Stepper Motor

Eng:Mohamed Loay Ali

52

Page 53: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step two phase on).

Stepper Motor

Eng:Mohamed Loay Ali

53

Page 54: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar Full Step two phase on).

Stepper Motor

Eng:Mohamed Loay Ali

54

Page 55: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar half Step).

Stepper Motor

Combines “One Phase On” and “Two Phase On” algorithms

Improves rotational resolution Minimizes anti-resonance

Eng:Mohamed Loay Ali

55

Page 56: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar half Step).

Stepper Motor

Eng:Mohamed Loay Ali

56

Page 57: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar half Step).

Stepper Motor

Eng:Mohamed Loay Ali

57

Page 58: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar half Step).

Stepper Motor

Eng:Mohamed Loay Ali

58

Page 59: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar half Step).

Stepper Motor

Eng:Mohamed Loay Ali

59

Page 60: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar half Step).

Stepper Motor

Eng:Mohamed Loay Ali

60

Page 61: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar half Step).

Stepper Motor

Eng:Mohamed Loay Ali

61

Page 62: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar half Step).

Stepper Motor

Eng:Mohamed Loay Ali

62

Page 63: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar half Step).

Stepper Motor

Eng:Mohamed Loay Ali

63

Page 64: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar half Step).

Stepper Motor

Eng:Mohamed Loay Ali

64

Page 65: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar half Step).

Stepper Motor

Eng:Mohamed Loay Ali

65

Page 66: AVR_Course_Day8 motor drive and pwm techniques

5.Driving Stepper motor(Bipolar half Step).

Stepper Motor

Eng:Mohamed Loay Ali

66

Page 67: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Unipolar half Step).

Center Tap connected to Ground or Voltage Source. Current flows in ½winding at a time.

Eng:Mohamed Loay Ali

67

Page 68: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Unipolar).

Eng:Mohamed Loay Ali

68

Page 69: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Unipolar).

Eng:Mohamed Loay Ali

69

Page 70: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Unipolar).

Eng:Mohamed Loay Ali

70

Page 71: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Unipolar).

Eng:Mohamed Loay Ali

71

Page 72: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Unipolar half Step).

Eng:Mohamed Loay Ali

72

Page 73: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Unipolar half Step).

Eng:Mohamed Loay Ali

73

Page 74: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Bipolar Drive Circuit).

Eng:Mohamed Loay Ali

74

Page 75: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Bipolar Drive Circuit).

Eng:Mohamed Loay Ali

75

Page 76: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Bipolar Drive Circuit).

Eng:Mohamed Loay Ali

76

Page 77: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Bipolar Drive Circuit).

Eng:Mohamed Loay Ali

77

Page 78: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Bipolar Drive Circuit).

Eng:Mohamed Loay Ali

78

Page 79: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Bipolar Drive Circuit).

Eng:Mohamed Loay Ali

79

Page 80: AVR_Course_Day8 motor drive and pwm techniques

Stepper Motor5.Driving Stepper motor(Uni-polar Drive Circuit).

Eng:Mohamed Loay Ali

80