SlideShare une entreprise Scribd logo
1  sur  12
1
EE 481 – Lab #6
Mireille Mballa
Chad Ryan Weiss
Department of Electrical Engineering and EET
Penn State Harrisburg, The Capitol College
Middletown, PA 17057
I. OBJECTIVES
The objective of this lab is to examine different methods to control the robotic arm called
“pick and place”. Fig. 1 shows the open loop response of the arm. The move in this case is along
an arc from 30° to 60° compare to the robot manipulator reference frame. Fig. 2 shows more
details on the open loop response moving from 30° to 60°. We will use our closed loop control
system to “filter” the step function to obtain satisfactory results.
Fig. 1: Uncontrolled pick and place robotic arm open loop response
2
II. METHODS
We used the step response in Fig. 2 to find the open loop plant transfer function, G(s). Equation (1) is
the format of the transfer function that we need to find.
𝐺( 𝑠) =
ω 𝑛
2
𝑆2 + 2ζ ω 𝑛 𝑠 +ω 𝑛
2
In order to find different coefficient of the equation, we did some alternate calculations using Fig. 2,
we were able to assume that the peak time Tp=1.162s with the value of the peak time, we found ωd using
equation (2). We also needed to find ζ we used equation (3) to find that value and with the values
of ωd and ζ, equation (4) were used to find ωn.
T𝑝 =
𝜋
ω 𝑑
ω 𝑑 = 19.4
%𝑂𝑆 = 100 ∗ 𝑒
−𝜋(
𝜁
√1−𝜁2
)
With %𝑂𝑆 =
73.3−60
30
∗ 100 = 44.3 we have 𝝵=.25
𝜔 𝑛 =
ω 𝑑
√1 − 𝜁2
𝜔 𝑛 = 20
Fig. 2 Detail of open loop response of arm moving from 30° to 60°
(1)
(2)
(3)
(4)
3
The transfer function of the plant is G(s) =
400
𝑠2+10𝑠+400
Now to make sure we found the right transfer function of the plant, we simulated our
function in Simulink using Fig. 3 below. We made sure that one of the pulse generator is set for
an amplitude of 30, period of 2 seconds, duty cycle of 50%, and no phase delay. The second
pulse generator is set to an amplitude of 60, period of 2, duty cycle of 50%, and phase delay of 1
second.
Fig.3. Input scheme for plant testing
The result of the simulation is shown in Fig. 4 and Fig. 5 show a closed up of the open loop
response using the transfer function found.
Fig. 4: Open loop response using the transfer function found while doing calculations
Fig. 5: Close up of the open loop response using the transfer function found while doing calculations
4
After evaluating both Fig. 4 and Fig. 5, we can proceed with confidence through the lab as
our transfer function is correct. We obtained the same graphs as the ones given during the lab
and we calculated and compared our values found for the rise time, peak time, settling time, and
steady state error. Equations (5) and (6), (7) were used to find those values.
T𝑝 =
𝜋
ω 𝑑
T𝑝 = 1 + 0.162
We added due to the offset since the first second is the initial pulse.
T𝑝 = 1.162𝑠
𝑇𝑠 = 60𝑠
The settling time was based on the graph shown in Fig. 5.
𝑇𝑟 = 1.23𝑠
𝑒𝑠𝑡𝑎𝑡𝑒 =
1
1 + 𝑘 𝑝
𝑒𝑠𝑡𝑎𝑡𝑒 = 0.5
We looked at the difference between the final value when the amplitude of 30 and the amplitude
of 60 and we obtain a difference of .5.
We closed the loop on the system and found the transfer function T(s). We used the equation (7)
𝑇( 𝑠) =
𝐾𝐺(𝑠)
1 + 𝐺(𝑠)
Which lead to the final answer of: 𝑇( 𝑠) =
𝐾∗400
𝑠2+10𝑠+400(𝑘+1)
We also found the root locus using the Matlab script in Fig. 6. The graph obtain is shown in Fig.
7.
Fig.6: Matlab script of the root locus
(5)
(7)
(7)
(6)
5
Fig. 7: Root locus of the transfer function T(s)
To determine whether or not it is possible for the proportional control in Fig. 8 to be
improved to the overshoot of 5%, we used equations (8) and (9) to find Kp and steady state error,
when we simulated our values on Matlab, we realized that its was not possible to improve to 5%
because as the value of the gain increased, the steady state error was increased instead of
decreasing.
𝐾𝑝 =
400𝐾
400(𝐾+1)
and 𝑒𝑠𝑡𝑎𝑡𝑖𝑐 =
1
1+𝐾 𝑝
𝑒 𝑠𝑡𝑎𝑡𝑖𝑐 =
400𝐾 + 400
800𝐾 + 400
Fig. 8: Proportional control scheme
In order for the pick and place end to work properly, the settling time for the response
was modified to 5%. Using the equations (3),(10), and (11), we were able to find a set of
dominant target poles positions that will make the pick and place work properly at a settling time
of .4s.
(9)
(8)
6
𝑇𝑠 = .4𝑠
𝑇𝑠 =
4
𝑥
𝑥 = 10
𝜔 𝑛 =
𝑥
𝜁
With %𝑂𝑆 = 5%
𝜁 = .69
𝜔 𝑛 = 14.5
Knowing that the format of the poles is: -𝝵𝞈n ±j𝞈n√1 − 𝜁2 we conclude that the new
dominant target pole is: -10±j10.5.
We then designed a Proportional Controller, PD controller, PID controller, and a hybrid
controller to determine whether the desired pole could be achieved by the system without
compromising stability.
III. Results
The first system that was created was a proportional control system. Looking at the figure
below we see that the result of our system was stable but did not have the desired system
characteristics that we were looking for.
Figure 9: Proportional Control Waveform
(11)
(10)
7
The desired system parameters include a 5% overshoot and a settling time of 0.4 seconds.
Using the root locus command in Matlab allows us to see the exact trajectory of our system and
from that trajectory we can determine if our controller will give us the desired parameters. See
Fig. 10.
Figure 10: Proportional Control Root Locus
As noticed in Fig. 10, the root locus clearly shows that the proportional controller cannot,
under any circumstances, yield a 5% overshoot and hence, this type of control scheme will not
work for our system.
The next control scheme to be implemented was a PD controller. The figure below shows
a condensed version of the block diagram of the system.
Figure 11: Condensed PD Control System
The resulting waveform of this system shows that the PD controller did not help the
cause at all and in fact made it worse, see Fig. 12. and Fig. 13.
8
Figure 12: PD Controller Waveform
Figure 13: PD Controller Root Locus
Fig. 12 and Fig. 13 clearly show that the PD control scheme will not give us the desired
system parameters. The PID controller, shown in Fig. 14 will also make no real difference as far
as the system parameters go.
Figure 14: Condensed PID Control System
9
Fig. 14 shows a condensed version of the PID control system. The only difference is that
a zero was added at -0.1 and a pole at zero. See Fig. 15 for the resulting waveform.
Figure 15: PID Controller Waveform
As seen in Fig. 15 the added zero and pole did not help the system in any way
whatsoever; however, it is important to notice that the system has now gone from stable to
unstable as it continues to grow in the negative direction without bound.
Figure 16: PID Control Root Locus
As seen in Fig. 16, the newly added pole and zero to the system did not help our case
when it comes to achieving the desired system parameters. Hence, our next control mechanism
will be a completely new approach altogether. We will call this scheme the hybrid control
mechanism. See Fig. 17.
10
Figure 17: Hybrid Control Mechanism
Fig. 17 shows the controller that will ultimately give us the desired system parameters
without compromising stability. The control signal block shown as Transfer Fcn1 will act as the
system controller and the other block labeled, Transfer Fcn represents the original system plant.
Our control signal consists of two poles and two zeros. One of the poles happens to be located at
the origin and another at a location that was obtained through trigonometry, i.e. lead
compensation. The two zeros that were implemented in our control system were placed at the
location of the original poles to make the calculations simpler. Therefore, after tedious
calculation, we came up with the following result.
Figure 18: Hybrid Controller Waveform
As seen in Fig. 18, the hybrid controller waveform has the qualities and characteristics
that consummate the objective of this lab. The percent overshoot was reduced to 5% and the
settling time was reduced to 0.4 seconds due to the new target poles.
11
Figure 19: Hybrid ControllerRoot Locus
Furthermore, the root locus diagram shown in Fig. 19 shows us that the percent overshoot
is in fact 5% at the desired target pole location. Hence, it is safe to say that this control
mechanism was the one that proved effective for the purposes of our experiment.
Summary:
Based on the root locus for proportional control, it is not possible to reduce percent
overshoot through proportion control only because it will be difficult to obtain simple gain with a
plant with no zeros.
The PD controller did not deliver the results we expected because our dominant real part
would have been -1.25 which when we look at the root locus in Fig.13, it would have been
impossible. Also, the predicted steady state is 0.75, but with this controller it is 1. There were no
improvements with the PID controller because the stability of the system is affected. The system
went from a stable system to an unstable system.
The hybrid controller worked well because it used the lead compensation to cancel an
undesirable pole and at the same time kept the order of the denominator the same which did not
compromise the stability of the system.
Based on our observations, we realized that the best situation for using the proportional
control is on active circuits when we want to improve the steady state error only. The best
situations to use the PD control is on active circuits when we want to improve the transient
response only. The best situation to use the PID controller is on active circuits when we want to
improve both the transient response and the steady state error and implement an additional pole
to cancel the noise and saturation.
The hybrid controller is better when we want to use the lead compensation technique in
order to meet the system requirements. The disadvantage of the hybrid controller is that it
requires the use of two poles and two zeros that changes the system type.
If we are in the situation where we could not use an active circuit to produce a pure pole
at zero, we can use the lead-lag compensation controller. This controller does not require active
circuits. It is also implemented in passive circuit and it also improves the steady state error and
the transient response.
IV. Conclusions
12
In conclusion, we used different methods to control a robotic arm called “pick and place”
which is a simple move use by industrial robots to pick up an object and place it in another
location. The move long the arc in his case is from 30° to 60° compare to the robot manipulator.
Since the first move is done from 0° to 30°, we tried different controllers during the lab to
determine which controller will allow the arm robot to do the movement with a 5% overshoot
and a settling time of 0.4s. After trying the proportional control, the PD, the PID, and the hybrid
controllers, the only controller that meets the requirements is the hybrid controller as the other
controllers either affect only the steady state error or just the transient response.
V. References
[1] N. Nise, Control Systems Engineering, 6th edition. New Jersey, Wiley, 2011, pp. 456-494.
[2] S. van Tonningen, “EE 481- Lecture note week 9: Static Error Constants” Course handout,
2015.
[3] S. van Tonningen, “EE 481- Lecture note week 10: Root Locus” Course handout, 2015.
[4] S. van Tonningen, “EE 481- Lecture note week 11: PI Control” Course handout, 2015.
[5] S. van Tonningen, “EE 481 – Laboratory 7: Practicing Varioius Control Techniques” Course
Handout, 2015.

Contenu connexe

Tendances

PID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB ApproachPID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB ApproachWaleed El-Badry
 
Integral Backstepping Sliding Mode Control of Chaotic Forced Van Der Pol Osci...
Integral Backstepping Sliding Mode Control of Chaotic Forced Van Der Pol Osci...Integral Backstepping Sliding Mode Control of Chaotic Forced Van Der Pol Osci...
Integral Backstepping Sliding Mode Control of Chaotic Forced Van Der Pol Osci...ijctcm
 
New controllers efficient model based design method
New controllers efficient model based design methodNew controllers efficient model based design method
New controllers efficient model based design methodAlexander Decker
 
HYPERCHAOS SYNCHRONIZATION USING GBM
HYPERCHAOS SYNCHRONIZATION USING GBMHYPERCHAOS SYNCHRONIZATION USING GBM
HYPERCHAOS SYNCHRONIZATION USING GBMaciijournal
 
Meeting w6 chapter 2 part 3
Meeting w6   chapter 2 part 3Meeting w6   chapter 2 part 3
Meeting w6 chapter 2 part 3Hattori Sidek
 
control system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functionscontrol system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functionsnalan karunanayake
 
Modern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID TuningModern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID TuningAmr E. Mohamed
 
1 s2.0-s167452641100161 x-main
1 s2.0-s167452641100161 x-main1 s2.0-s167452641100161 x-main
1 s2.0-s167452641100161 x-mainCristián Opazo
 
Control of new 3 d chaotic system
Control of new 3 d chaotic systemControl of new 3 d chaotic system
Control of new 3 d chaotic systemZac Darcy
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsAmr E. Mohamed
 
Systems Analysis & Control: Steady State Errors
Systems Analysis & Control: Steady State ErrorsSystems Analysis & Control: Steady State Errors
Systems Analysis & Control: Steady State ErrorsJARossiter
 
control system lab 02 - PID tuning
control system lab 02 - PID tuning control system lab 02 - PID tuning
control system lab 02 - PID tuning nalan karunanayake
 
Effects of poles and zeros affect control system
Effects of poles and zeros affect control systemEffects of poles and zeros affect control system
Effects of poles and zeros affect control systemGopinath S
 

Tendances (20)

Drone Controller
Drone ControllerDrone Controller
Drone Controller
 
PID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB ApproachPID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB Approach
 
Integral Backstepping Sliding Mode Control of Chaotic Forced Van Der Pol Osci...
Integral Backstepping Sliding Mode Control of Chaotic Forced Van Der Pol Osci...Integral Backstepping Sliding Mode Control of Chaotic Forced Van Der Pol Osci...
Integral Backstepping Sliding Mode Control of Chaotic Forced Van Der Pol Osci...
 
New controllers efficient model based design method
New controllers efficient model based design methodNew controllers efficient model based design method
New controllers efficient model based design method
 
HYPERCHAOS SYNCHRONIZATION USING GBM
HYPERCHAOS SYNCHRONIZATION USING GBMHYPERCHAOS SYNCHRONIZATION USING GBM
HYPERCHAOS SYNCHRONIZATION USING GBM
 
Control chap6
Control chap6Control chap6
Control chap6
 
Meeting w6 chapter 2 part 3
Meeting w6   chapter 2 part 3Meeting w6   chapter 2 part 3
Meeting w6 chapter 2 part 3
 
control system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functionscontrol system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functions
 
Modern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID TuningModern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID Tuning
 
Control chap2
Control chap2Control chap2
Control chap2
 
1 s2.0-s167452641100161 x-main
1 s2.0-s167452641100161 x-main1 s2.0-s167452641100161 x-main
1 s2.0-s167452641100161 x-main
 
Control of new 3 d chaotic system
Control of new 3 d chaotic systemControl of new 3 d chaotic system
Control of new 3 d chaotic system
 
Control chap1
Control chap1Control chap1
Control chap1
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of Systems
 
CHEMCON2014
CHEMCON2014CHEMCON2014
CHEMCON2014
 
Systems Analysis & Control: Steady State Errors
Systems Analysis & Control: Steady State ErrorsSystems Analysis & Control: Steady State Errors
Systems Analysis & Control: Steady State Errors
 
control system lab 02 - PID tuning
control system lab 02 - PID tuning control system lab 02 - PID tuning
control system lab 02 - PID tuning
 
Effects of poles and zeros affect control system
Effects of poles and zeros affect control systemEffects of poles and zeros affect control system
Effects of poles and zeros affect control system
 
Me330 lecture2
Me330 lecture2Me330 lecture2
Me330 lecture2
 
Transform function
Transform function Transform function
Transform function
 

Similaire à Mballa_Weiss_Lab6

Modeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic armModeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic armcesarportilla8
 
ijccms paper 29--04--22.pdf
ijccms paper  29--04--22.pdfijccms paper  29--04--22.pdf
ijccms paper 29--04--22.pdfijccmsjournal
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond Brunkow
 
Inverted Pendulum Control System
Inverted Pendulum Control SystemInverted Pendulum Control System
Inverted Pendulum Control SystemAniket Govindaraju
 
Design of imc based controller for industrial purpose
Design of imc based controller for industrial purposeDesign of imc based controller for industrial purpose
Design of imc based controller for industrial purpose375ankit
 
SEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdf
SEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdfSEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdf
SEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdfKRISHNADANI4
 
A comparative study of controllers for stabilizing a rotary inverted pendulum
A comparative study of controllers for stabilizing a rotary inverted pendulumA comparative study of controllers for stabilizing a rotary inverted pendulum
A comparative study of controllers for stabilizing a rotary inverted pendulumijccmsjournal
 
A Comparative study of controllers for stabilizing a Rotary Inverted Pendulum
A Comparative study of controllers for stabilizing a Rotary Inverted PendulumA Comparative study of controllers for stabilizing a Rotary Inverted Pendulum
A Comparative study of controllers for stabilizing a Rotary Inverted Pendulumijccmsjournal
 
Real-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumReal-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumFrancesco Corucci
 
15_feedforward_and_ratio_cntrol
15_feedforward_and_ratio_cntrol15_feedforward_and_ratio_cntrol
15_feedforward_and_ratio_cntrolMircea Tomescu
 
IJSRED-V2I5P33
IJSRED-V2I5P33IJSRED-V2I5P33
IJSRED-V2I5P33IJSRED
 
Open Loop and close loop control system ppt.pptx
Open Loop and close loop control system ppt.pptxOpen Loop and close loop control system ppt.pptx
Open Loop and close loop control system ppt.pptxAmritSingha5
 
Design and Implementation of Model Reference Adaptive Controller using Coeffi...
Design and Implementation of Model Reference Adaptive Controller using Coeffi...Design and Implementation of Model Reference Adaptive Controller using Coeffi...
Design and Implementation of Model Reference Adaptive Controller using Coeffi...IOSR Journals
 
Speed control of ward leonard layout system using h infinity optimal control
Speed control of ward leonard layout system using h  infinity optimal controlSpeed control of ward leonard layout system using h  infinity optimal control
Speed control of ward leonard layout system using h infinity optimal controlMustefa Jibril
 
Sliding mode control-based system for the two-link robot arm
Sliding mode control-based system for the two-link robot armSliding mode control-based system for the two-link robot arm
Sliding mode control-based system for the two-link robot armIJECEIAES
 
Automobile cruise control
Automobile cruise controlAutomobile cruise control
Automobile cruise controlTanzeel Ahmad
 
Meeting w6 chapter 2 part 3
Meeting w6   chapter 2 part 3Meeting w6   chapter 2 part 3
Meeting w6 chapter 2 part 3mkazree
 

Similaire à Mballa_Weiss_Lab6 (20)

Modeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic armModeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic arm
 
ijccms paper 29--04--22.pdf
ijccms paper  29--04--22.pdfijccms paper  29--04--22.pdf
ijccms paper 29--04--22.pdf
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15
 
Inverted Pendulum Control System
Inverted Pendulum Control SystemInverted Pendulum Control System
Inverted Pendulum Control System
 
Design of imc based controller for industrial purpose
Design of imc based controller for industrial purposeDesign of imc based controller for industrial purpose
Design of imc based controller for industrial purpose
 
SEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdf
SEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdfSEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdf
SEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdf
 
A comparative study of controllers for stabilizing a rotary inverted pendulum
A comparative study of controllers for stabilizing a rotary inverted pendulumA comparative study of controllers for stabilizing a rotary inverted pendulum
A comparative study of controllers for stabilizing a rotary inverted pendulum
 
A Comparative study of controllers for stabilizing a Rotary Inverted Pendulum
A Comparative study of controllers for stabilizing a Rotary Inverted PendulumA Comparative study of controllers for stabilizing a Rotary Inverted Pendulum
A Comparative study of controllers for stabilizing a Rotary Inverted Pendulum
 
Real-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumReal-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulum
 
15_feedforward_and_ratio_cntrol
15_feedforward_and_ratio_cntrol15_feedforward_and_ratio_cntrol
15_feedforward_and_ratio_cntrol
 
IJSRED-V2I5P33
IJSRED-V2I5P33IJSRED-V2I5P33
IJSRED-V2I5P33
 
Fuzzy logic control vs. conventional pid
Fuzzy logic control vs. conventional pidFuzzy logic control vs. conventional pid
Fuzzy logic control vs. conventional pid
 
Open Loop and close loop control system ppt.pptx
Open Loop and close loop control system ppt.pptxOpen Loop and close loop control system ppt.pptx
Open Loop and close loop control system ppt.pptx
 
PID Control
PID ControlPID Control
PID Control
 
air craft Pitch
air craft Pitchair craft Pitch
air craft Pitch
 
Design and Implementation of Model Reference Adaptive Controller using Coeffi...
Design and Implementation of Model Reference Adaptive Controller using Coeffi...Design and Implementation of Model Reference Adaptive Controller using Coeffi...
Design and Implementation of Model Reference Adaptive Controller using Coeffi...
 
Speed control of ward leonard layout system using h infinity optimal control
Speed control of ward leonard layout system using h  infinity optimal controlSpeed control of ward leonard layout system using h  infinity optimal control
Speed control of ward leonard layout system using h infinity optimal control
 
Sliding mode control-based system for the two-link robot arm
Sliding mode control-based system for the two-link robot armSliding mode control-based system for the two-link robot arm
Sliding mode control-based system for the two-link robot arm
 
Automobile cruise control
Automobile cruise controlAutomobile cruise control
Automobile cruise control
 
Meeting w6 chapter 2 part 3
Meeting w6   chapter 2 part 3Meeting w6   chapter 2 part 3
Meeting w6 chapter 2 part 3
 

Plus de Chad Weiss

Advancing Sustainability
Advancing SustainabilityAdvancing Sustainability
Advancing SustainabilityChad Weiss
 
PLC Building Automation and Control Systems
PLC Building Automation and Control SystemsPLC Building Automation and Control Systems
PLC Building Automation and Control SystemsChad Weiss
 
Solar Panel Installations
Solar Panel InstallationsSolar Panel Installations
Solar Panel InstallationsChad Weiss
 
Recommendation Report
Recommendation ReportRecommendation Report
Recommendation ReportChad Weiss
 
Remote Sensing
Remote SensingRemote Sensing
Remote SensingChad Weiss
 
Advancing Sustainability
Advancing SustainabilityAdvancing Sustainability
Advancing SustainabilityChad Weiss
 
E E 458 Project 003
E E 458 Project 003E E 458 Project 003
E E 458 Project 003Chad Weiss
 
E E 458 Project 002
E E 458 Project 002E E 458 Project 002
E E 458 Project 002Chad Weiss
 

Plus de Chad Weiss (15)

Advancing Sustainability
Advancing SustainabilityAdvancing Sustainability
Advancing Sustainability
 
PLC Building Automation and Control Systems
PLC Building Automation and Control SystemsPLC Building Automation and Control Systems
PLC Building Automation and Control Systems
 
Solar Panel Installations
Solar Panel InstallationsSolar Panel Installations
Solar Panel Installations
 
Recommendation Report
Recommendation ReportRecommendation Report
Recommendation Report
 
Remote Sensing
Remote SensingRemote Sensing
Remote Sensing
 
Advancing Sustainability
Advancing SustainabilityAdvancing Sustainability
Advancing Sustainability
 
Final Project
Final ProjectFinal Project
Final Project
 
Lab 3
Lab 3Lab 3
Lab 3
 
E E 481 Lab 1
E E 481 Lab 1E E 481 Lab 1
E E 481 Lab 1
 
Final Project
Final ProjectFinal Project
Final Project
 
Project004
Project004Project004
Project004
 
E E 458 Project 003
E E 458 Project 003E E 458 Project 003
E E 458 Project 003
 
E E 458 Project 002
E E 458 Project 002E E 458 Project 002
E E 458 Project 002
 
Final Paper
Final PaperFinal Paper
Final Paper
 
Final Project
Final ProjectFinal Project
Final Project
 

Mballa_Weiss_Lab6

  • 1. 1 EE 481 – Lab #6 Mireille Mballa Chad Ryan Weiss Department of Electrical Engineering and EET Penn State Harrisburg, The Capitol College Middletown, PA 17057 I. OBJECTIVES The objective of this lab is to examine different methods to control the robotic arm called “pick and place”. Fig. 1 shows the open loop response of the arm. The move in this case is along an arc from 30° to 60° compare to the robot manipulator reference frame. Fig. 2 shows more details on the open loop response moving from 30° to 60°. We will use our closed loop control system to “filter” the step function to obtain satisfactory results. Fig. 1: Uncontrolled pick and place robotic arm open loop response
  • 2. 2 II. METHODS We used the step response in Fig. 2 to find the open loop plant transfer function, G(s). Equation (1) is the format of the transfer function that we need to find. 𝐺( 𝑠) = ω 𝑛 2 𝑆2 + 2ζ ω 𝑛 𝑠 +ω 𝑛 2 In order to find different coefficient of the equation, we did some alternate calculations using Fig. 2, we were able to assume that the peak time Tp=1.162s with the value of the peak time, we found ωd using equation (2). We also needed to find ζ we used equation (3) to find that value and with the values of ωd and ζ, equation (4) were used to find ωn. T𝑝 = 𝜋 ω 𝑑 ω 𝑑 = 19.4 %𝑂𝑆 = 100 ∗ 𝑒 −𝜋( 𝜁 √1−𝜁2 ) With %𝑂𝑆 = 73.3−60 30 ∗ 100 = 44.3 we have 𝝵=.25 𝜔 𝑛 = ω 𝑑 √1 − 𝜁2 𝜔 𝑛 = 20 Fig. 2 Detail of open loop response of arm moving from 30° to 60° (1) (2) (3) (4)
  • 3. 3 The transfer function of the plant is G(s) = 400 𝑠2+10𝑠+400 Now to make sure we found the right transfer function of the plant, we simulated our function in Simulink using Fig. 3 below. We made sure that one of the pulse generator is set for an amplitude of 30, period of 2 seconds, duty cycle of 50%, and no phase delay. The second pulse generator is set to an amplitude of 60, period of 2, duty cycle of 50%, and phase delay of 1 second. Fig.3. Input scheme for plant testing The result of the simulation is shown in Fig. 4 and Fig. 5 show a closed up of the open loop response using the transfer function found. Fig. 4: Open loop response using the transfer function found while doing calculations Fig. 5: Close up of the open loop response using the transfer function found while doing calculations
  • 4. 4 After evaluating both Fig. 4 and Fig. 5, we can proceed with confidence through the lab as our transfer function is correct. We obtained the same graphs as the ones given during the lab and we calculated and compared our values found for the rise time, peak time, settling time, and steady state error. Equations (5) and (6), (7) were used to find those values. T𝑝 = 𝜋 ω 𝑑 T𝑝 = 1 + 0.162 We added due to the offset since the first second is the initial pulse. T𝑝 = 1.162𝑠 𝑇𝑠 = 60𝑠 The settling time was based on the graph shown in Fig. 5. 𝑇𝑟 = 1.23𝑠 𝑒𝑠𝑡𝑎𝑡𝑒 = 1 1 + 𝑘 𝑝 𝑒𝑠𝑡𝑎𝑡𝑒 = 0.5 We looked at the difference between the final value when the amplitude of 30 and the amplitude of 60 and we obtain a difference of .5. We closed the loop on the system and found the transfer function T(s). We used the equation (7) 𝑇( 𝑠) = 𝐾𝐺(𝑠) 1 + 𝐺(𝑠) Which lead to the final answer of: 𝑇( 𝑠) = 𝐾∗400 𝑠2+10𝑠+400(𝑘+1) We also found the root locus using the Matlab script in Fig. 6. The graph obtain is shown in Fig. 7. Fig.6: Matlab script of the root locus (5) (7) (7) (6)
  • 5. 5 Fig. 7: Root locus of the transfer function T(s) To determine whether or not it is possible for the proportional control in Fig. 8 to be improved to the overshoot of 5%, we used equations (8) and (9) to find Kp and steady state error, when we simulated our values on Matlab, we realized that its was not possible to improve to 5% because as the value of the gain increased, the steady state error was increased instead of decreasing. 𝐾𝑝 = 400𝐾 400(𝐾+1) and 𝑒𝑠𝑡𝑎𝑡𝑖𝑐 = 1 1+𝐾 𝑝 𝑒 𝑠𝑡𝑎𝑡𝑖𝑐 = 400𝐾 + 400 800𝐾 + 400 Fig. 8: Proportional control scheme In order for the pick and place end to work properly, the settling time for the response was modified to 5%. Using the equations (3),(10), and (11), we were able to find a set of dominant target poles positions that will make the pick and place work properly at a settling time of .4s. (9) (8)
  • 6. 6 𝑇𝑠 = .4𝑠 𝑇𝑠 = 4 𝑥 𝑥 = 10 𝜔 𝑛 = 𝑥 𝜁 With %𝑂𝑆 = 5% 𝜁 = .69 𝜔 𝑛 = 14.5 Knowing that the format of the poles is: -𝝵𝞈n ±j𝞈n√1 − 𝜁2 we conclude that the new dominant target pole is: -10±j10.5. We then designed a Proportional Controller, PD controller, PID controller, and a hybrid controller to determine whether the desired pole could be achieved by the system without compromising stability. III. Results The first system that was created was a proportional control system. Looking at the figure below we see that the result of our system was stable but did not have the desired system characteristics that we were looking for. Figure 9: Proportional Control Waveform (11) (10)
  • 7. 7 The desired system parameters include a 5% overshoot and a settling time of 0.4 seconds. Using the root locus command in Matlab allows us to see the exact trajectory of our system and from that trajectory we can determine if our controller will give us the desired parameters. See Fig. 10. Figure 10: Proportional Control Root Locus As noticed in Fig. 10, the root locus clearly shows that the proportional controller cannot, under any circumstances, yield a 5% overshoot and hence, this type of control scheme will not work for our system. The next control scheme to be implemented was a PD controller. The figure below shows a condensed version of the block diagram of the system. Figure 11: Condensed PD Control System The resulting waveform of this system shows that the PD controller did not help the cause at all and in fact made it worse, see Fig. 12. and Fig. 13.
  • 8. 8 Figure 12: PD Controller Waveform Figure 13: PD Controller Root Locus Fig. 12 and Fig. 13 clearly show that the PD control scheme will not give us the desired system parameters. The PID controller, shown in Fig. 14 will also make no real difference as far as the system parameters go. Figure 14: Condensed PID Control System
  • 9. 9 Fig. 14 shows a condensed version of the PID control system. The only difference is that a zero was added at -0.1 and a pole at zero. See Fig. 15 for the resulting waveform. Figure 15: PID Controller Waveform As seen in Fig. 15 the added zero and pole did not help the system in any way whatsoever; however, it is important to notice that the system has now gone from stable to unstable as it continues to grow in the negative direction without bound. Figure 16: PID Control Root Locus As seen in Fig. 16, the newly added pole and zero to the system did not help our case when it comes to achieving the desired system parameters. Hence, our next control mechanism will be a completely new approach altogether. We will call this scheme the hybrid control mechanism. See Fig. 17.
  • 10. 10 Figure 17: Hybrid Control Mechanism Fig. 17 shows the controller that will ultimately give us the desired system parameters without compromising stability. The control signal block shown as Transfer Fcn1 will act as the system controller and the other block labeled, Transfer Fcn represents the original system plant. Our control signal consists of two poles and two zeros. One of the poles happens to be located at the origin and another at a location that was obtained through trigonometry, i.e. lead compensation. The two zeros that were implemented in our control system were placed at the location of the original poles to make the calculations simpler. Therefore, after tedious calculation, we came up with the following result. Figure 18: Hybrid Controller Waveform As seen in Fig. 18, the hybrid controller waveform has the qualities and characteristics that consummate the objective of this lab. The percent overshoot was reduced to 5% and the settling time was reduced to 0.4 seconds due to the new target poles.
  • 11. 11 Figure 19: Hybrid ControllerRoot Locus Furthermore, the root locus diagram shown in Fig. 19 shows us that the percent overshoot is in fact 5% at the desired target pole location. Hence, it is safe to say that this control mechanism was the one that proved effective for the purposes of our experiment. Summary: Based on the root locus for proportional control, it is not possible to reduce percent overshoot through proportion control only because it will be difficult to obtain simple gain with a plant with no zeros. The PD controller did not deliver the results we expected because our dominant real part would have been -1.25 which when we look at the root locus in Fig.13, it would have been impossible. Also, the predicted steady state is 0.75, but with this controller it is 1. There were no improvements with the PID controller because the stability of the system is affected. The system went from a stable system to an unstable system. The hybrid controller worked well because it used the lead compensation to cancel an undesirable pole and at the same time kept the order of the denominator the same which did not compromise the stability of the system. Based on our observations, we realized that the best situation for using the proportional control is on active circuits when we want to improve the steady state error only. The best situations to use the PD control is on active circuits when we want to improve the transient response only. The best situation to use the PID controller is on active circuits when we want to improve both the transient response and the steady state error and implement an additional pole to cancel the noise and saturation. The hybrid controller is better when we want to use the lead compensation technique in order to meet the system requirements. The disadvantage of the hybrid controller is that it requires the use of two poles and two zeros that changes the system type. If we are in the situation where we could not use an active circuit to produce a pure pole at zero, we can use the lead-lag compensation controller. This controller does not require active circuits. It is also implemented in passive circuit and it also improves the steady state error and the transient response. IV. Conclusions
  • 12. 12 In conclusion, we used different methods to control a robotic arm called “pick and place” which is a simple move use by industrial robots to pick up an object and place it in another location. The move long the arc in his case is from 30° to 60° compare to the robot manipulator. Since the first move is done from 0° to 30°, we tried different controllers during the lab to determine which controller will allow the arm robot to do the movement with a 5% overshoot and a settling time of 0.4s. After trying the proportional control, the PD, the PID, and the hybrid controllers, the only controller that meets the requirements is the hybrid controller as the other controllers either affect only the steady state error or just the transient response. V. References [1] N. Nise, Control Systems Engineering, 6th edition. New Jersey, Wiley, 2011, pp. 456-494. [2] S. van Tonningen, “EE 481- Lecture note week 9: Static Error Constants” Course handout, 2015. [3] S. van Tonningen, “EE 481- Lecture note week 10: Root Locus” Course handout, 2015. [4] S. van Tonningen, “EE 481- Lecture note week 11: PI Control” Course handout, 2015. [5] S. van Tonningen, “EE 481 – Laboratory 7: Practicing Varioius Control Techniques” Course Handout, 2015.