27
Lab 8. Speed Control of a D.C. motor The Motor Drive

Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Embed Size (px)

Citation preview

Page 1: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Lab 8. Speed Control of a D.C. motor

The Motor Drive

Page 2: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Motor Speed Control Project1. Generate PWM waveform2. Amplify the waveform to drive the motor3. Measure motor speed4. Measure motor parameters5. Control speed with a computer algorithm

microcontroller

12 v dcMotor

acTachometer

Amplifier9 v

PowerSupply

SignalConditioning(Frequency

or Amplitude)

Page 3: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Buehler 12 volt permanent-magnet dc motor with tachometer output

Electrical Connections

yellow/green -- tachometer output

blue/red -- motor winding

Note: Tachometer wires may not have two colors on some units.

Presenter
Presentation Notes
Tachometer output signal is ac. Amplitude and frequency are proportional to motor speed.
Page 4: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Exploded view

Presenter
Presentation Notes
Top: steel stator shell. Second row: stator permanent magnet. Third row (left-to-right): brush assembly in the cast end bell, wound rotor with commutator on left end, cast end bell with sleeve bearing, pulley. Bottom row: brush on a spring (removed from the brush assembly), tachometer winding.
Page 5: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Motor electro-mechanical modelsRa – armature winding resistanceLa – armature winding inductanceia – armature currentVt – terminal voltageea – back emf

Tm – developed torqueTL – torque needed for loadω – rotational speedB – friction coefficientJ – moment of inertia

Page 6: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Motor Electrical Dynamics

ma

aa

aat

Ke

edtdiLiRv

ω=

++⋅=

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

Note: back emf = 0 at standstilland increases linearly with motor speed

Page 7: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Mechanical Dynamics Analogous to Electrical Circuits!

Equations for these systemshave similar form.

Presenter
Presentation Notes
Torques are analogous to voltage sources. Speed is analogous to current. Inertia is analogous to inductance. Friction is analogous to resistance.
Page 8: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Motor Mechanical Dynamics

am

Lm

iKT

TBdtdJT

⋅=

+⋅+⋅= ωω

Tm = developed torque increases with currentJ = motor moment of inertiaB = motor friction coeffientω = angular velocity of the motorTL = torque required to drive the load

Page 9: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Laplace Transformed Equations

Electrical

Mechanical

)()()()( sKssILsIRsV aaaat Ω⋅+⋅+⋅=

)()()()( sTsBssJsIK La +Ω⋅+Ω⋅=⋅

Presenter
Presentation Notes
Electrical engineers avoid calculus by transforming linear ODEs to algebraic equations! (Linear Systems class).
Page 10: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Steady state analysis (s=0)

Electrical steady state

Mechanical steady state

Solve for speed

Ω⋅+⋅= KIRV aat

La TBIK +⋅=⋅ Ω

tma

Lma

a VKBR

KTKBR

R⋅

++⋅

+−= 22Ω

Page 11: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Motor speed vs. load torque Speed is related to load torque and terminal voltage

Ω

LT

tV increasingspeed 1

operating points

load 1 load 2

speed 2

Page 12: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Transient response experiment

Measure Vmotor, VR, and Vtach

Imotor = VR (because R = 1)

Page 13: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Experimental results

Current reaches 1 amp during startup!

Page 14: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

What we now know: For a given load, motor speed is proportional to voltage applied to

its terminals Use of a PWM signal allows the average voltage of the signal to

be varied by varying duty cycle

We have a 12v dc motor (max. terminal voltage is 12v) A 3 volt signal will be insufficient to produce full speed, PLUS … Motor may draw amps of current, whereas digital chip outputs can

typically supply only milliamperesIdea: Use a single transistor switch to

amplify the digital PWM signalto drive the motor

+=

211TT

TVV digitalavgT1 = “ON” timeT2 = “OFF” time

Page 15: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Basic Transistor Switch

(ideal models)

Page 16: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Switching an Inductive Load(motor winding) Inductor voltage-current law:

When current iC is switched off, diC/dt is large and negative Inductor voltage is large and

negative Collector voltage > Vcc

Q may be destroyed!

Page 17: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Switching an Inductive Load(need to protect switch Q) Use anti-parallel diode D!!!

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

switches OFF (when inductor voltage becomes negative)

protects Q Collector voltage is clamped to Vcc+Vdiode

a.k.a. freewheeling diode

Page 18: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Drive design model

Page 19: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Drive Design parameters

Maximum load current, ILOAD

Transistor current gain, hFE

Transistor voltage VBE(sat) in saturation mode

Microcontroller output voltage, Vhigh

Page 20: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Design Equations

Requirement for base current in the ON state

Calculate base series resistance, R

FE

LOADB h

II >>

Page 21: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

EE Board variable power supplyPositive SupplyVP+ output voltage & current limit

VP+ ON

Waveforms Power Supply Window

ActualVP+ Current

Page 22: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Connect grounds of multiple power supplies

Page 23: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Lab Procedure Verify proper PWM signal generation Measure ac tachometer output (yellow/green

leads) at multiple non-zero speeds Plot motor speed vs. PWM signal duty cycle Repeat for several PWM signal frequencies,

over a range of values Find the “best” frequency (produces most linear

plot)

Page 24: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

Choice of devices

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

Diode (D) 1N4001 is a rectifier diode: a bit slow, has large

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

but has low current rating (but is not expensive)

Page 25: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

2N2222 NPN transistor dataAbsolute Maximum RatingsSymbol Parameter Value Unit

VCEO Collector-emitter voltage (base open) 40 VVCBO Collector-base voltage (emitter open) 75 VVEBO Emitter-base voltage (collector open) 6 V

IC Collector current 1 A

Electrical CharacteristicsSymbol Parameter Conditions min max Unit

hFE Dc current gain IC = 150 mA, VCE = 1 V 50VCE(sat) Collector-emitter

saturation voltageIC = 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

Page 26: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

2N3904 NPN transistor dataAbsolute Maximum RatingsSymbol Parameter Value Unit

VCEO Collector-emitter voltage (base open) 40 VVCBO Collector-base voltage (emitter open) 60 VVEBO Emitter-base voltage (collector open) 6 V

IC Collector current 200 mA

Electrical CharacteristicsSymbol Parameter Conditions min max Unit

hFE Dc current gain IC = 100 mA, VCE = 1 V 30VCE(sat) Collector-emitter

saturation voltageIC = 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

Page 27: Lab 8. Speed Control of a D.C. motor - Auburn Universitynelson/courses/elec3040_3050/LabLectures... · Speed Control of a D.C. motor The Motor Drive. Motor Speed Control Project 1

1N4148 switching diode dataAbsolute Maximum RatingsSymbol Parameter Value Unit

VRRM Maximum repetitive reverse voltage 100 VIO Average rectified forward current 200 mAIF Dc forward current 300 mAIC Collector current 200 mA

Electrical CharacteristicsSymbol Parameter Conditions min max Unit

VF Forward voltage IF = 100 mA 1 VIR Reverse leakage VR = 20 V 0.025 µAtrr Reverse recovery time IF = 10 mA, VR = 6 V, Irr

= 1 mA, RL = 100 ohm4 ns

Source: Fairchild Semiconductor