• No results found

Lecture 14 Speed and Position Control of DC Motors

N/A
N/A
Protected

Academic year: 2021

Share "Lecture 14 Speed and Position Control of DC Motors"

Copied!
40
0
0

Loading.... (view fulltext now)

Full text

(1)

METE 3100U

Actuators and Power Electronics

Lecture 14

Speed and Position Control

of DC Motors

(2)

2/40

Outline of Lecture 14

By the end of today’s lecture, you should be able to • Implement a closed-loop speed control of a DC motor • Implement a closed-loop position control of a DC motor

(3)

Applications

Robot surgeon can slice eyes finely enough to remove cataracts. How are the motors controlled to achieve micrometer precision?

(4)

4/40

Applications

How can the robotic hand actuated by a DC motor be controlled to grasp objects without damaging them?

(5)

DC motor model - From lecture 13

V (s) = (R + Ls)I(s) + ω(s)km→ I(s) = V (s) − ω(s)km Ls + R T (s) = (Js + b)ω(s) + Td(s) → ω(s) = I(s)ki− Td(s) Js + b

Under steady-state condition:

I =V − ωkm

R ω =

I × ki− Td(s)

(6)

6/40

DC motor model - From lecture 13

I =V − ωkm

R ω =

I × ki− Td(s)

b

If the motor is driven at a constant voltage V (t) = V , the steady state speed and torque satisfy

ω =kiV − RTd

kikm+ Rb

, T =ki(Vb + kmTd)

(7)

Speed vs torque characteristics

ω =kiV − RTd kikm+ Rb , T =ki(Vb + kmTd) kmki+ Rb 0 50 100 150 200 250 300 350 0 0.2 0.4 0.6 0.8 1 1.2 0 0 100 200 300 400 500 600 700 800 150 300 450

Suppose steady-state with no load Td= 0 and no friction b = 0:

ω = V

km

, T =

(8)

8/40

Speed vs torque characteristics

0 50 100 150 200 250 300 350 0 0.2 0.4 0.6 0.8 1 1.2 0 0 100 200 300 400 500 600 700 800 150 300 450

Suppose steady-state with a load Td6= 0 and friction b 6= 0:

ω < V

km

, I = V − ωkm

R , T = ?

EMF does not balance applied voltage, and thus i > 0 → Speed and torque depend on load and friction → Friction is always present

(9)

Transfer functions

Speed to voltage transfer function for Td(s) = 0

S(s) = ω(s)

V (s) =

ki

(Ls + R)(Js + b) + kikm

(1)

Position to voltage transfer function for Td(s) = 0

P(s) = θ(s)

V (s) =

ki

s[(Ls + R)(Js + b) + kikm]

(10)

10/40

Transfer functions

Load torque Td(s) to speed transfer function for V (s) = 0.

L(s) = ω(s) Td(s) = Ls + R (Js + b)(Ls + R) + kikm (3) In steady-state: ω = R bR + kikm Td (4)

(11)

Superposition

The effects of the load and voltage can be added to find the system function

S(s) = ω(s) V (s) = ki (Ls + R)(Js + b) + kikm (5) L(s) = ω(s) Td(s) = Ls + R (Js + b)(Ls + R) + kikm (6) ω(s) = ki (Ls + R)(Js + b) + kikm V (s) − Ls + R (Js + b)(Ls + R) + kikm Td(s) (7)

(12)

12/40

Superposition

The effects of the load and voltage can be added to find the system function

P(s) = θ(s) V (s) = ki s[(Ls + R)(Js + b) + kikm] (8) N(s) = θ(s) Td(s) = Ls + R s[(Js + b)(Ls + R) + kikm] (9) θ(s) = ki s[(Ls + R)(Js + b) + kikm] V (s) − Ls + R s[(Js + b)(Ls + R) + kikm] Td(s) (10)

(13)

Frequency response

Position and speed frequency response

-200 -100 0 Magnitude (dB) 100 102 104 -270 -180 -90 0 Phase (deg) Frequency (rad/s)

Why is frequency response important?

Simulation parameters ki 1 Nm/A km 1 V/(rad/s) R 10 Ω L 0.01 H J 0.1 kg·m2 b 0.28 Nm/(rad/s)

(14)

14/40

Frequency response

Speed frequency response as the indicated parameter is increased by a factor

of 20 compared to the reference curve.

10-2 100 102 104 106 -200 -150 -100 -50 0 Magnitude (dB) Frequency (rad/s)

(15)

Frequency response

Position frequency response as the indicated parameter is increased by a factor

of 20 compared to the reference curve.

10-2 100 102 104 -300 -200 -100 0 100 Magnitude (dB) Frequency (rad/s)

(16)

16/40

Speed control

→ The H-bridge is modelled as a low pas filter with τ << τmotor → Q(s) is the sensor transfer function

→ C (s) is the controller. For a PID:

C (s) = kd+ kds +

ki

s (11)

(17)

Speed control

Proportional controller: kp6= 0, ki = kd = 0. -150 -100 -50 0 M ag ni tu de ( dB ) 100 102 104 -180 -135 -90 -45 0 P ha se ( de g) Frequency (rad/s) -1000 -500 0 -300 -200 -100 0 100 200 300 Root Locus Real Axis Imaginary Axis -1 -0.5 0 -0.1 0 0.1 Nyquist Diagram Real Axis Imaginary Axis

→ Overshoot is present for high control gains → The system is stable ∀ kp> 0

(18)

18/40

Speed control

Proportional-derivative controller: kp6= 0, kd 6= 0, ki = 0. -150 -100 -50 0 Magnitude (dB) 100 102 104 -180 -135 -90 -45 0 45 Phase (deg) Frequency (rad/s) -4000 -2000 0 2000 0 Real Axis Imaginary Axis -100 -50 50 100

→ Derivative gain eliminates overshoot → The system is always stable

(19)

Speed control

Proportional-integral controller: kp6= 0, ki 6= 0, kd= 0. -4000 -2000 0 2000 -3000 -2000 -1000 0 1000 2000 3000 Real Axis Imaginary Axis -15 -10 -5 0 5 10 -100 0 100 Real Axis Imaginary Axis -150 -100 -50 0 Magnitude (dB) 100 102 104 -180 -90 0 Phase (deg) Frequency (rad/s)

→ Overshoot is present for high control gains → The system may become unstable for high ki

(20)

20/40

Position control

→ The H-bridge is modelled as a low pas filter with τ << τmotor → Q(s) is the sensor transfer function

→ C (s) is the controller. For a PID:

C (s) = kd+ kds +

ki

s (12)

(21)

Position control

Proportional controller: kp6= 0, ki = kd = 0. -200 -100 0 Magnitude (dB) 100 102 104 -270 -180 -90 0 Phase (deg) Frequency (rad/s) -4000 -2000 0 2000 -3000 -2000 -1000 0 1000 2000 3000 Real Axis Imaginary Axis -1 -0.8 -0.6 -0.4 -0.2 0 -15 -10 -5 0 5 10 15 Nyquist Real Axis Imaginary Axis

→ Overshoot is present for low control gains → The system is unstable for kp>> 0

(22)

22/40

Position control

Proportional-derivative controller: kp= 1, kd = 10, ki = 0. -200 -100 0 Magnitude (dB) 10-2 100 102 104 -270 -180 -90 0 Phase (deg) Frequency (rad/s) -1000 -500 0 -300 -200 -100 0 100 200 300

Real Axis (seconds-1)

Imaginary Axis

→ Overshoot is present for low control gains → The system is stable for kp= 1, kd> 0

(23)

Position control

Proportional-integral controller: kp= 1, kd = 0, ki = 1. -200 -100 0 Magnitude (dB) 100 102 104 -360 -270 -180 -90 Phase (deg) Frequency (rad/s) -4000 -2000 0 2000 -3000 -2000 -1000 0 1000 2000 3000 Real Axis Imaginary Axis

→ Overshoot is present for low control gains → The system is unstable for high values of ki

(24)

24/40

PID controller implementation

Digital PID control algorithm ⇒ Error is sampled every T seconds ⇒ Output is updated every T seconds

(25)

PID controller implementation

Analogue (continous) PID controller

C (s) = kp+

ki

s + kds

The control output is

Z (s) = E (s)C (s) (13)

The integral term is

ˆ t 0 e(t)dt ≈ T k X i =0 e(i ) (14)

(26)

26/40

PID controller implementation

The derivative term is

de(t)

dt

e(i ) − e(i − 1)

T (15)

In discrete form the PID is

Z (i ) = ki T k X i =0 e(i ) ! + kd  e(i ) − e(i − 1) T  + kde(i ) (16)

(27)

Exercise 66

The 2 wheel robot is actuated by a single DC motor that is used to balance the robot using a PI controller G(s) have the same ki and kp gains.

Select the controller gain kp= ki so that all of the complex poles have a damping ratio higher than 0.6.

(28)

28/40

Exercise 66 - continued

(29)
(30)

30/40

Exercise 66 - continued

(31)

Exercise 67

Write an Arduino code of a PID controller that can be used to regulate the speed of a DC motor following the arrangement shown.

(32)

32/40

Exercise 67 - continued

(33)

Exercise 68

A 24V, Maxom RE-40 DC motor has the characteristics shown in the table.

Torque constant ki 32 mNm/A

Speed constant km 32 mV/(rad/s)

Resistance R 0.3 Ω

Inductance L 0.082 H

Rotor inertia J 1.42×10−5 kg·m2

Friction constant b 1×10−5 Nm/(rad/s)

Determine:

(a) The no-load speed

(b) The no-load torque and current

(34)

34/40

Exercise 68 - continued

ω =kiV − RTd kikm+ Rb , T =ki(Vb + kmTd) kmki+ Rb

(35)

Exercise 68 - continued

ω =kiV − RTd

kikm+ Rb

, T =ki(Vb + kmTd)

kmki+ Rb

(36)

36/40

Exercise 68 - continued

ω =kiV − RTd kikm+ Rb , T =ki(Vb + kmTd) kmki+ Rb

(37)

Exercise 69

The measured speed tracking error of a PID-controlled DC motor during the interval shown is described by

e(t) = t 2 5 + 2e −2t 0 1 2 3 4 5 0 1 2 3 4 5

where t is in ms. If the PID is implemented in a microcontroller running with a sampling frequency of 1kHz, calculate the controller output when t = 5 ms.

(38)

38/40

Exercise 69 - continued

e(t) = t 2 5 + 2e −2t 0 1 2 3 4 5 0 1 2 3 4 5

(39)
(40)

40/40

Next class...

• Torque control of DC motors

Additional supporting materials for Lecture 14:

Simulink - DC motor position control: https://goo.gl/WKAaW1 Simulink - DC motor seed control: https://goo.gl/4yCZ2B Speed Control using an H-Bridge: https://goo.gl/gV8T5x

References

Related documents

For NHL clinical studies, determination of the presence of anti-rituximab antibodies followed a sequential process that included (1) screening and (2) concurrent titer de-

By providing electronically controlled fuel injection systems in these single cylinder diesel engines, sizable quantum of fuel will be saved and the performance will be

Our results show that while a well-designed distance education course can lead to a high level of student satisfaction, classroom-based students achieve even higher satisfaction

As an attempt to understand why the performance of SIRENE was better than that of other state-of-the-art unsupervised methods, we reasoned that TF with a large number of known

In a model with heterogenous agents, wage setting by monopoly unions and monetary policy conducted by a central bank, we show that the duration of nom- inal wage contracts is

ABSTRACT : Within the framework of enhancement of plant biodiversity and traditional phytotherapy of Medicinal and Aromatic Plants (MAP) in Morocco, an ethnobotanical survey

However, American Indian faculty are twice as likely to indicate that it is somewhat or very likely they will accept full- time work outside of a postsecondary institution within