College of Engineering
ECE 309L
Spring 2018
1
Table of Contents
1. Objectives…………………………………………………………………………....Page 3
2. Procedure….…………………………………………………………………………Page 3
3. Conclusion………………………………………………………………………..….Page 3
13. References………………………………………………………………………….Page 22
2
1. Objective: The objective of this lab is to design, assemble, and test a DC motor control
system.
2. Procedure:
b. Research parts, including motor driver, motor and encoder, and myDAQ
d. Order parts; already have myDAQ, ordered motor encoder and motor driver
3. Conclusion:
To summarize this project, we compared the data obtained from both methods and determined
which of the two was better. Both methods resulted in different Ki and Kp values. The different
values allowed us to find different values for the rise time, overshoot, and steady state error. For
both methods we noticed that when a load was added, the values changed. When we added a
load, the steady state error increased. We also noticed that the rise time increased. When
comparing Method 1- Tuning method and Method 2 - System Modeling, we noticed that Method
1 was better, since its steady state error was smaller while its rise time was smaller. Overall, the
lab was very successful in teaching us how to properly execute lab work as well as write a report.
3
Appendix A (Week 1 System Block Diagram)
4
Appendix B (Week 2 Wiring Diagram)
5
Appendix C (Week 5 System Controller Design [TE Tuning Method])
Ki Kp
0.1 0.001
0.1 0.002
0.1 0.003
0.1 0.01
0.1 0.011
0.1 0.015
0.1 0.02
0.5 0.02
0.5 0.015
0.5 0.018
1 0.019
1 0.02
1 0.019
1 0.016
1 0.015
1 0.01
6
Appendix D (Week 7 System Modeling Method)
θ(S)/V(S)=Kt/((LS+R)(JS+b)+Kt2)
RMatlab=11Ω
RMeasured=11.66Ω
LMeasured=21mH
b=Stall torque/Free run Speed=0.1059Nm/58.641rad/s
b=0.001806Nms
J=½mr2=1/2(0.095kg)(0.002m)2
J=1.9x10-7kgm2
Kt=stall torque/stall current=0.1059Nm/1.1A
Kt=0.09627 Nm/A
θ(S)/V(S)=0.09627/(2.969x10-7S2+0.0001994s+0.02898
7
Appendix E cont. (Week 7 System Modeling Method)
MATLAB code:
J = 1.9e-7;
b = 0.001806;
Kt = 0.09629;
Ke = 0.09629;
R = 10.9;
L = 21e-3;
8
Appendix F (Week 8 Control System Analysis)
Method 1 – TE Tuning Method
No Load
Load
Data Table:
9
Appendix F (Week 8 Control System Analysis cont.)
No Load
Load
Data Table:
10
Appendix G (Week 9 Final Demo and Presentation)
Method 1 resulted in the best output. We decided this by the fast rise time, as well as a low
steady state error. The results were close to method 3, but method 3’s steady state error was
higher. Our final values using method 3 were:
Kp= 0.01
Ki=1
TR=1.5
%OS=0
ess=4.24%
With load, ess changes:
ess=0.36%
11
Appendix I (Approved Documents)
12
Appendix I (Approved Documents cont.)
13
Appendix I (Approved Documents cont.)
14
Appendix I (Approved Documents cont.)
15
Appendix I (Approved Documents cont.)
16
Appendix I (Approved Documents cont.)
17
Appendix I (Approved Documents cont.)
18
Appendix I (Approved Documents cont.)
19
References
1. https://blackboard.cpp.edu/bbcswebdav/pid-4060770-dt-content-rid-26289343_2/courses/
18S_CENG_ECE309L.02/ba6956an-e.pdf
2. https://www.pololu.com/product/3262
3. https://blackboard.cpp.edu/bbcswebdav/pid-4084628-dt-content-rid-27218589_2/courses/
18S_CENG_ECE309L.02/ECE309L%20Experiment%205%20%28LV%29.pdf
4. http://ctms.engin.umich.edu/CTMS/index.php?example=MotorSpeed§ion=System
Modeling
20