Beruflich Dokumente
Kultur Dokumente
11/2/2013
Syllabus
DATE TOPIC 1. Sep. 20 2. Sep. 25 3. Sep. 27 4. Oct. 2 5. Oct. 4 6. Oct. 9 7. Oct. 11 8. Oct. 16 9. Oct. 18 10. Oct. 23
Mechatronics Design Process System Modeling and Simulation Laplace Transforms and Transfer Functions Electrical Examples Mechanical Examples More Examples, Thermal and Fluid Examples, QUIZ 1 (Take Home) Sensors and Transducers Digital control, Advanced MATLAB Analog and Digital Sensing Ch. 3, Notes Actuating Devices, time and frequency response
Ch. 4
11. Oct. 25
12. Oct. 30 13. Nov. 1 14. Nov. 6 15. Nov. 8 16. Nov. 13 17. Nov. 15 18. Nov. 20 19. Nov. 22 20. Nov. 27 21. Nov. 29 22. Dec.
DC Motor Model,
Examples
Boolean Logic ,Programmable Logic Controllers
Stability and Compensators, P, PI and PD PID Controllers QUIZ 2 (In Class - Open Book) Practical and Optimal Compensator Design Frequency Response Methods THANKSGIVING HOLIDAY Optimal Design of a Motion Control System QUIZ 3 (In Class - Closed Book) FINAL EXAM (In Class - Closed Book)
11/2/2013
Todays objective
To continue the introduction to systems theory by continuing the concept of stability response for digital control for PID compensation of a feedback control for the motorized arm. Compensator examples
11/2/2013
The motion control system of the AGV helps maneuver it to negotiate curves and drive around obstacles on the course. Designing a PID controller for the drive motor feedback system of Bearcat II Robot, the autonomous unmanned vehicle was therefore considered one important step for its success.
(C) 2001, Ernest L. Hall, University of Cincinnati 4
11/2/2013
System description
The wheels of the vehicle are driven independently by two Electrocraft brush-type DC servomotors. Encoders provide position feedback for the system. The two drive motor systems are operated in current loops in parallel using Galil MSA 12-80 amplifiers. The main controller card is the Galil DMC 1030 motion control board and is controlled through a computer.
11/2/2013
System Modeling
The position-controlled system comprises a position servomotor with (Electrocraft Brush type DC motor) an Encoder, a PID controller (Galil DMC 1030 motion control board) and an amplifier (Galil MSA 12-80).
11/2/2013
1 1 Encoder Encoder
11/2/2013
Motor
11/2/2013
Amplifier
K a 1 .2
11/2/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 9
DAC
10 Kd 0.0012 8192
11/2/2013
10
Encoder
K f 318
11/2/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 11
ZOH
2000 H s s 2000
11/2/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 12
Homework
Using the open loop transfer function and the Matlab functions, bode and margin, to determine the phase and gain margins of the compensated system. Does it meet the design criteria?
11/2/2013
13
10
10
10
10
Frequency (rad/sec)
11/2/2013
14
2000 s 2000
ZOH
Kd
10 0.0012 8192
DAC
K a 1.2
Amp
M s
+
Step function
G(s) -
2000/ (s+2000)
0.0012
1.2
1330/s2
Encoder
318
Kf
4N [counts / rad ] 2
11/2/2013
15
2000 s 2000
ZOH
Kd
10 0.0012 8192
DAC
K a 1.2
Amp
M s
+
Step function
G(s) -
3830/(s3+2000s2)
Encoder
318
Kf
4N [counts / rad ] 2
11/2/2013
16
% Verfying the open loop transfer function numz=[0,318*2000]; denz=[1,2000]; numdac=[0.0012]; numamp=[1.2]; nummotor=[0,0,1330]; denmotor=[1,0,0]; numenc=[318]; numoloop=conv(numz,numdac); numoloop=conv(numoloop,numamp); numoloop=conv(numoloop,nummotor); denoloop=conv(denz,denmotor); sysol=tf(numoloop,denoloop); numsysol=conv(numoloop,[.25,42]); syscmp=tf(numsysol,denoloop) %Open loop transfer function syscloop=feedback(syscmp,318)
11/2/2013
17
-140
-160
-180 0 10
10
10
10
10
Frequency (rad/sec)
11/2/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 18
Homework solution
PD Compensator G(s)=.25s+42 Phase margin close to design objective of 45 degrees at crossover frequency of 200 rad/sec.
11/2/2013
19
Mg
Figure 12. A single joint robot arm driven by an armature-controlled DC motor horizontally
11/2/2013 (C) 2001, Ernest L. Hall, University of Cincinnati 20
11/2/2013
21
Form closed loop transfer function Num=[1217940]; Den=[1,2000,0,0]; EDU sys=tf(Num,Den) Transfer function: 1.218e006 -------------s^3 + 2000 s^2 sys2=feedback(sys,1) Transfer function: 1.218e006 -------------------------s^3 + 2000 s^2 + 1.218e006 pzmap(sys2)
Pole-zero map
25 20 15 10
Imag Axis
-2000
-1500
-1000
-500
500
Real Axis
11/2/2013
22
10
10
10
Frequency (rad/sec)
23
11/2/2013
24
Examine pole locations, roots of the characteristic equation as K is varied from 0 to infinity If poles move into rhp there is a problem Range of K values for stability may be found
C ( s) KG ( s) R( s) 1 KG ( s)
11/2/2013
25
Imag Axis
-2000
-1500
-500
500
11/2/2013
26
Try a compensator
Let us first try a compensator that has zeros at the origin to cancel out the poles at the origin. As a first step we will also try poles at s=-50 and s=150 to try to stabilize the closed loop system.
G s
s 50 s 150
11/2/2013
27
% Verfying the open loop transfer function numz=[0,318*2000]; denz=[1,2000]; numdac=[0.0012]; numamp=[1.2]; nummotor=[0,0,1330]; denmotor=[1,0,0]; numenc=[318]; numoloop=conv(numz,numdac); numoloop=conv(numoloop,numamp); numoloop=conv(numoloop,nummotor); denoloop=conv(denz,denmotor); sysol=tf(numoloop,denoloop); numsysol=conv(numoloop,[.25,42]); syscmp=tf(numsysol,denoloop) %Open loop transfer function syscloop=feedback(syscmp,318) %New pole cancellation compensator numg=[1,0,0]; deng=conv([1,50],[1,150]); numcomp=conv(numsysol,numg); dencomp=conv(denoloop,deng); sysgcomp=tf(numcomp,dencomp)
11/2/2013
28
11/2/2013
29
11/2/2013
30
Transfer function:
304500 s + 5.116e007 ------------------------------------s^3 + 2200 s^2 + 712000 s + 6.616e007
11/2/2013
31
pzmap(Sys2)
Pole-zero map
50 40 30 20
Imag Axis
-1500
-1000
-500
500
Real Axis
11/2/2013
32
Step response
A definite improvement
Step Response
From: U(1) 0.8
0.7
0.6
0.5
Amplitude
To: Y(1)
0.4
0.3
0.2
0.1
Time (sec.)
11/2/2013
33
-20
-40
10
10
10
Frequency (rad/sec)
11/2/2013
34
Summary
Time response
11/2/2013
Any questions?
11/2/2013
36