Lab 8. Speed Control of a Dc motor The Motor Drive Motor Speed - - PowerPoint PPT Presentation

lab 8 speed control of a dc motor
SMART_READER_LITE
LIVE PREVIEW

Lab 8. Speed Control of a Dc motor The Motor Drive Motor Speed - - PowerPoint PPT Presentation

Lab 8. Speed Control of a Dc motor The Motor Drive Motor Speed Control Project 1. Generate PWM waveform 2. Amplify the waveform to drive the motor 3. Measure tachometer signal (motor speed) 4. Find parameters of a motor model 5. Control motor


slide-1
SLIDE 1

Lab 8. Speed Control of a Dc motor

The Motor Drive

slide-2
SLIDE 2

Motor Speed Control Project

  • 1. Generate PWM waveform
  • 2. Amplify the waveform to drive the motor
  • 3. Measure tachometer signal (motor speed)
  • 4. Find parameters of a motor model
  • 5. Control motor speed with a computer algorithm

microcontroller 12 Vdc Motor ac Tachometer Amplifier 9 Vdc Power Supply

Signal Conditioning (Frequency

  • r Amplitude)
slide-3
SLIDE 3

Buehler 12 volt permanent-magnet dc motor with tachometer output

Electrical Connections yellow/green -- tachometer

  • utput

blue/red -- motor winding Note: Tachometer wires may not have two colors on some units.

slide-4
SLIDE 4

Exploded view

slide-5
SLIDE 5

Some questions

n Required power? n Ac tachometer signal behavior?

Dc motor + – Vmotor Ac tachometer Imotor

P =Vmotor ×Imotor

Vtach

slide-6
SLIDE 6

Set up an experiment

n Measure Vmotor, VR, and Vtach n Imotor = VR (because R = 1 Ω)

dc motor 1 Ω t = 0 ac tachometer Vmotor Vtach V+ 9 V VR Imotor

slide-7
SLIDE 7

Experimental results

  • 20

20 40 60 80 100 120 140 160 180

Amperes

  • 0.5

0.5 1

Motor current

  • 20

20 40 60 80 100 120 140 160 180

Volts

  • 20
  • 10

10 20

Tachometer voltage Time (ms)

  • 20

20 40 60 80 100 120 140 160 180

Volts

  • 5

5 10

Motor voltage

Current reaches 1 amp during startup!

zero speed increasing speed steady-state speed

slide-8
SLIDE 8

Some observations

n Vtach amplitude grows with motor speed n Vtach frequency also grows with speed n Initial current Imotor peaks around 1 A n Steady state Imotor is approx. 250 mA

Why does the process behave this way? Some analytical modeling…

slide-9
SLIDE 9

Motor electro-mechanical models

Ra – armature winding resistance La – armature winding inductance ia – armature current Vt – motor terminal voltage ea – back emf Tm – developed torque TL – torque needed for load ω – rotational speed B – friction coefficient J – moment of inertia

slide-10
SLIDE 10

Motor electrical dynamics

m a a a a a t

K e e dt di L i R v ω = + + ⋅ =

ea = “back emf” (electromotive force) generated within armature windings

Note: Emf ea= 0 at standstill, and increases linearly with motor speed. Current ia is high at low speed.

slide-11
SLIDE 11

Mechanical dynamics analogous to electrical circuits!

Equations for these systems have similar form.

slide-12
SLIDE 12

Motor mechanical dynamics

a m L m

i K T T B dt d J T ⋅ = + ⋅ + ⋅ = ω ω

Tm = developed torque increases with current J = motor moment of inertia B = motor friction coefficient ω = angular velocity of the motor TL = torque required to drive the load

slide-13
SLIDE 13

Laplace transformed equations

n Electrical n Mechanical

) ( ) ( ) ( ) ( s K s sI L s I R s V

a a a a t

Ω ⋅ + ⋅ + ⋅ = ) ( ) ( ) ( ) ( s T s B s s J s I K

L a

+ Ω ⋅ + Ω ⋅ = ⋅

slide-14
SLIDE 14

Steady state analysis (s=0)

n Electrical steady state n Mechanical steady state n Solve for speed

Ω ⋅ + ⋅ = K I R V

a a t L a

T B I K + ⋅ = ⋅ Ω

t m a L m a a

V K B R K T K B R R ⋅ + + ⋅ + − =

2 2

Ω

slide-15
SLIDE 15

Motor speed vs. load torque

n Speed is related to load torque and terminal voltage

Ω

Ω= − Ra RaBm +K 2 −c1 ! " # $ # ⋅TL + K RaBm +K 2 c2 ! " # $ # ⋅Vt

L

T

t

V increasing

speed 1

  • perating points

load 1 load 2 speed 2

slide-16
SLIDE 16

What we now know:

n For a given load, motor speed is proportional to voltage applied to

its terminals

n Use of a PWM signal allows the average voltage of the signal to

be varied by varying duty cycle

n We have a 12 Vdc motor (max. terminal voltage is 12 Vdc)

q A 3 volt signal will be insufficient to produce full speed, PLUS … q Motor may draw 1 A of current, whereas microcontroller output pins

can typically supply only milliamperes

Idea: Use a single transistor switch to amplify the digital PWM signal to drive the motor

⎟ ⎠ ⎞ ⎜ ⎝ ⎛ + = 2 1 1 T T T V V

digital avg

T1 = “ON” time T2 = “OFF” time

slide-17
SLIDE 17

Basic transistor switch

(ideal models)

slide-18
SLIDE 18

Switching an inductive load

(motor winding)

n Inductor voltage-current law: n As current iC is switching off,

q diC/dt is large and negative q Inductor voltage VL is large and

negative

q Collector voltage > Vcc

n Q may be destroyed!

VL t

( ) =LdiC

dt

slide-19
SLIDE 19

Switching an inductive load

(need to protect switch Q)

n Use anti-parallel diode D!!!

q reverse biased when Q is ON q gives alternate current path when Q

switches OFF (when inductor voltage becomes negative)

q protects Q

n

Collector voltage is clamped to Vcc+Vdiode

q a.k.a. freewheeling diode

slide-20
SLIDE 20

Drive design practical model

slide-21
SLIDE 21

Drive design considerations

n Maximum load current, ILOAD n Transistor characteristics

q current gain, hFE q voltage VBE(sat) in saturation mode

n Microcontroller limitations

q digital pin output voltage (high), VOH q digital pin output current, IIO ≈ 20 mA (max)

slide-22
SLIDE 22

Design equations

n Constraints for base current in the ON state n Calculate base series resistance, R

IIO > IB >> ILOAD hFE R = VOH −VBE(sat) IB

slide-23
SLIDE 23

EE Board variable power supply

Positive Supply VP+ output voltage & current limit VP+ ON Waveforms Power Supply Window Actual VP+ Current

slide-24
SLIDE 24

Connect grounds of multiple power supplies

slide-25
SLIDE 25

Lab procedure

n Verify proper PWM signal generation n Study amplifier behavior

q Measure Vin, VBE, VCE q Compare to theoretical assumptions

n Study motor behavior

q Measure tachometer output (yellow/green leads) q Plot motor speed vs. PWM signal duty cycle q Repeat for several PWM signal frequencies q Analyze data and discuss results

slide-26
SLIDE 26

Choice of devices

n Transistor (Q)

q 2N3904 is cheap but under-rated for current q 2N2222 has higher current rating q Both may be destroyed if motor is stalled

n Diode (D)

q 1N4001 is a rectifier diode: a bit slow, has large

diameter leads

q 1N4148 (or 1N914) is a switching diode: faster,

but has low current rating (but is not expensive)

slide-27
SLIDE 27

2N2222 NPN transistor data

Absolute Maximum Ratings Symbol Parameter Value Unit VCEO Collector-emitter voltage (base open) 40 V VCBO Collector-base voltage (emitter open) 75 V VEBO Emitter-base voltage (collector open) 6 V IC Collector current 1 A Electrical Characteristics Symbol Parameter Conditions min max Unit hFE Dc current gain IC = 150 mA, VCE = 1 V 50 VCE(sat) Collector-emitter saturation voltage IC = 150 mA, IB = 15 mA 0.3 V VBE(sat) Base-emitter saturation voltage IC = 150 mA, IB = 15 mA 0.6 1.2 V

Source: Fairchild Semiconductor

slide-28
SLIDE 28

2N3904 NPN transistor data

Absolute Maximum Ratings Symbol Parameter Value Unit VCEO Collector-emitter voltage (base open) 40 V VCBO Collector-base voltage (emitter open) 60 V VEBO Emitter-base voltage (collector open) 6 V IC Collector current 200 mA Electrical Characteristics Symbol Parameter Conditions min max Unit hFE Dc current gain IC = 100 mA, VCE = 1 V 30 VCE(sat) Collector-emitter saturation voltage IC = 50 mA, IB = 5 mA 0.3 V VBE(sat) Base-emitter saturation voltage IC = 150 mA, IB = 5 mA 0.95 V

Source: Fairchild Semiconductor

slide-29
SLIDE 29

1N4148 switching diode data

Absolute Maximum Ratings Symbol Parameter Value Unit VRRM Maximum repetitive reverse voltage 100 V IO Average rectified forward current 200 mA IF Dc forward current 300 mA IC Collector current 200 mA Electrical Characteristics Symbol Parameter Conditions min max Unit VF Forward voltage IF = 100 mA 1 V IR Reverse leakage VR = 20 V 0.025 µA trr Reverse recovery time IF = 10 mA, VR = 6 V, Irr = 1 mA, RL = 100 ohm 4 ns

Source: Fairchild Semiconductor