International Journal of Scientific & Engineering Research, Volume 4, Issue 8, August-2013 1289
ISSN 2229-5518
Controller Synthesis:
Case study of an Automated Sun Tracking
System
Ovie E., Nongo S., Adetoro L., Babayo M., Mustapha U. & Agboola O.A.(Ph.D)
This paper looks at the dynamic model and controller synthesis of a prototype electromechanical system. It
follows a mec hatronics design paradigm and aims to capture as much of the system dynamics as possible.
Two models will be described here for the system in elevation and azimuth. The mathematical models are described and analysis of elevation systemβs controller is designed and tested in simulation experiments using Matlab/Simulink. We then present our results with varying controller parameter c onsideration or controller gain tuning.
System dynamics is a multi-domain[3] discipline requiring the system engineer to understand different engineering domains and their behavior to inputs and corresponding response behavior. For a control system engineer, controller synthesis begins with a proper system model.
Where a proper system model means the system dynamics has been captured with as little simplifying assumptions made during the modeling process.
This paper assumes the modeling has been done to a high degree of accuracy, by utilizing the bond Graph [2][3] method and therefore proceeds to carry out controller synthesis from designing system transfer functions, carrying out open loop tests and then designing a feedback loop for the system in closed loop[1] with the controller in the loop. Fine tuning of the controller is also performed to show the different responses obtainable and how the various gains affect overall system response.
This work follows from dynamic modeling techniques which the author made wide us of during his M.Sc in re- search, specializing in Automatic Control at the French
Grande Ecole, INSA de Lyon with specific theoretical input coming from course work delivered by Bideaux Eric[4].
The system model is divided into two active parts. This is because the sun tracker contains two actuators for control in elevation and in Azimuth. The elevation model is first presented here, then the azimuth model.
IJSER Β© 2013 http://www.ijser.org
International Journal of Scientific & Engineering Research, Volume 4, Issue 8, August-2013 1290
ISSN 2229-5518
With the disturbance term, N(s) set to zero, the final input- output transfer function of the system after substitution is:
πΊel(π ) =
Vsh(s) V1(s) =
5.126s + 5.126
s3 + 2.089s2 + 1.528s + 0.439
The Elevation model obtained from the system prototype shown in figure 1 above, yields the following set of first order ODEβs shown below:
The Azimuth model obtained from the system prototype
shown in figure 2 below yields the set of first order ODEβs shown below:
ππ1
ππ‘
π
1
= β
πΏ1
π1 β
π
π1π2ππ‘ππ‘
π£π β + π1
ππ£π β = β π
π1 β π2π£
πππ3
+
ππ‘
π1π2π1πΏ1
π β
π1
And in equivalent state space representation x = Ax+Bu we
have :
οΏ½ π€1 οΏ½ = οΏ½
π 1
β
πΏ1
π1
π1π2ππ‘ππ‘οΏ½ οΏ½ π1 οΏ½ + οΏ½π£1οΏ½ π’
π£π β
π1
β
π1π2π 1πΏ1
βπ2
π£π β π
ππ2 π
2 π
= β π2 β
π€2 + π2
Where k1, k2 are constants grouping some parameters
ππ‘
ππ€2
= β
ππ‘
π
πΏ2
πΏ2
π2 β
π½π2
ππ
π€2 +
π½π2
ππ
π½_ππ
π€_ππ
defined by:
ππ€_ππ
=
ππ‘
ππ
π½π2
π€2 β
ππ
π½_ππ
π€_ππ
This model takes for its input v1 and gives a response
which is equivalent to the shaft velocity Vsh. After transforming the first order ODEβs, the resulting transfer function of the elevation system which links these two variables evaluates to:
With equivalent state space representation given as:
π3π4πΏ1 L1
π 2 π
οΏ½π +
π πΏ1 + π 1
+ π2οΏ½ ππ β(π ) = k4
sL1 + R1
V1(s) + N(s)
β β 0
β πΏ2 π½π2 β
π£2
π€2
ββ π
πΉππ
β
πΉππ β
π2 0
οΏ½ π€2 οΏ½ = β
πΏ2
π½π2
π½ππ
β οΏ½ π€2 οΏ½ + οΏ½
οΏ½ π’
Where N(s) is a disturbance term which is due to the mass
π€ππ β 0
β
πΉ ππ
π½π2
β πΉππ β
π½ππ
β
π€ππ 0
hanging down while the panel load is at a maximum incline to the vertical. K3=r/(n1n2Mtot) and k4 = r/(n1n2k1L1).
The azimuth model takes v2 as its input and the response is observed on the platformβs angular velocity Wpl. After making necessary substitutions for the overall Azimuth
IJSER Β© 2013 http://www.ijser.org
International Journal of Scientific & Engineering Research, Volume 4, Issue 8, August-2013 1291
ISSN 2229-5518
transfer function, the following form is obtained for the system transfer function in open loop:
πΊaz(π ) =
Wpl(s) V2(s)
Relating the output platform angular velocity to the input
supply voltage, the transfer function for the azimuth
dynamics is obtained but not shown here for lack of space
It must be noted that, this coarse form of the azimuth transfer function made little or no simplifications to the
Azimuth model obtained from the system dynamic studies. The parameters specified in this equation are:
K1= r2/j2, k2=Frr/Jr2, k3= Frr/Jpl with electric time constant
Ο2=L2/R2
As a first approximation before system identification, all the constants are set to unity for open loop test and analysis. This generates a system transfer function which is strictly proper( having the degree of the transfer function characteristic polynomialβs denominator greater than degree of numerator)
s3 + 3s2 + 2s
πΊaz(π ) =
s6 + 4s5 + 9s4 + 16s3 + 19s2 + 12s + 3
A resume of the identified elevation dynamic parameters is given below in Table 1:
Parameters | Ziegler-Nichols | Broida |
Ο | 0.0 | 2.365 |
response time (T) | 0.0 | 1.741 |
Employing Ziegler-Nichols method, where t1 is time at 28% of max. response and t2 is time at 40% of max. response. The open loop response gives a Time delay of about 0.1 seconds. The time constant(63% of output response) for the system in open loop is 3.89sec.
A Matlab/simulink model for the elevation dynamics was used to obtain the open loop response shown in figure 3 the closed loop response of the system is obtained from the signal block diagram given by figure 4, with the response for the closed loop system shown in figure 7 below:
The system identification for the elevation dynamic follows from the method of Ziegler-Nichols and Broida[1]. From the response curve seen in figure 3, the system is approximately a first order system. Using Broida parameters, the system response time (T) and time constant is calculated following the formulas given below:
π = 2.8 β π‘1 β 1.8 β π‘2
π = 5.5 β (π‘2 β π‘1)
Open loop analysis was carried out on both elevation and azimuth models obtained previously in the analog or
continuous domain. We then proceed to identify the system parameters which have utility in synthesizing a suitable controller for each subsystem taking into consideration the system dynamics involved.
IJSER Β© 2013 http://www.ijser.org
International Journal of Scientific & Engineering Research, Volume 4, Issue 8, August-2013 1292
ISSN 2229-5518
Ο | 0.0 | 1.7626 |
response time (T) | 0.0 | 1.1165 |
Similarly, for the azimuth dynamics we obtain the open loop response shown in figure 5 as obtained from simulation experiments in open loop, while the resume of
the identified azimuth parameters is given in Table 2 below:
Parameters Ziegler-Nichols Broida
Since the elevation response follows a first order system
response curve, a PI controller is chosen with gains tuned following the Chiens-Hrones-Reswick formulas in tracking mode [1].
From the open loop analysis, the elevation controller synthesis follows
Kp=0.35x T/Ο = 0.257 &
Ti=1.2xT=2.089
from where the closed loop control response is shown below:
The azimuth controller synthesis follows
Kp=0.35x T/Ο =0.222 &
Ti=1.2xT=1.3398
After controller synthesis, the controller is incorporated into the system with the resulting system diagram shown in figure 6 below:
IJSER Β© 2013 http://www.ijser.org
International Journal of Scientific & Engineering Research, Volume 4, Issue 8, August-2013 1293
ISSN 2229-5518
With the constants defined as:
Various methods exist to test the stability of dynamic systems such as that describing the elevation model of the sun tracker. Some widely used methods are:
β’ Routh- Hurwitz criterion
β’ Eigenvalue analysis
β’ Lyapunov method and LaSalle's invariance
principle
β’ Small or short time stability analysis
To perform stability analysis on the elevation system, the closed loop response will have to be made use of. Recalling
the form of the transfer function in open loop for the elevation subsystem given by equation 3; we can
Incorporate the behavior of the PID controller recalling that the new input from the PID controller is given by:
πΎπ
π(π ) = πΎπ οΏ½1 + π + π πΎποΏ½ πΈ(π )
with U(s) substituting Vin in equation 3 and the error term
from feedback action E(s) being replaced by Vd(s)-Vsh(s), we will have a new closed loop transfer function given by:
K1*=k4kpkdL1
K2*=k4kpL1
K3*=k4kpkiL1
K4*=L1
K5*=R1+k2L1+k4kpkdL1
K6*=k2R1+k3k4L1+k4kpL1
K7*=k4kpkiL1
Stability of the system can be inferred from the poles of the TF denominator. Since all the eigenvalues will be real and strictly negative, the system is eigenvalue stable as all its characteristic poles will be found on the left half of the complex plane.
The stability analysis looks at the dynamics of the system in exponential time. If the error of the system decays to zero as time goes to infinity then the system is said to be stable. This is seen from the plot given in figure 7 of the closed loop dynamic controller response of the elevation system studied.
Experiments were carried out in simulation and the results are shown here with utilized parameters. The system is controllable using a simple PID controller with gain tuning
as shown in figure 6 with various tuned values for controller gains. From the open loop response of the elevation system, we see that divergence from the nominal step input occurs. The voltage equivalent for this response means a sharp rise in input voltage to the elevation motor which is not supposed to be. The controller addresses this situation by forcing the output to be within the desired response of 12 volt.
The azimuth open loop response shows a wide divergence in the motor behavior. This is seen through the strong
πΊelcl(π ) =
Vsh(s) Vd(s) =
s2K1β + sK2β + K3β
s3 K4β + s2 K5β + sK6 + K7β
oscillatory response observed. Using a simple PID might
IJSER Β© 2013 http://www.ijser.org
International Journal of Scientific & Engineering Research, Volume 4, Issue 8, August-2013 1294
ISSN 2229-5518
not be ideal for the control of this system and ongoing tests are in place to resolve the issue of the azimuth control.
The modeling, analysis and control of the sun tracker
system are looked at from a control system stand point with
some results of the performed experiments given. Gain tuning is employed to adjust the system response to within the desired values.
While standard methods[1] exist and are used to compute the start gain parameters for the controller, it is seen that working gain values could widely diverge from the calculated or nominal as was the case with this work. This is being attributed to the unknown system dynamics ignored as part of this analysis as the parts used were sourced for locally in the market without a thorough knowledge of the internal components especially as it concerns frictional effects, reduction gear ratios and other unaccounted for parameters which could play a role in this divergence.
In summarizing, the goal of building a system model and carrying out analysis needed for controller synthesis was achieved through this paper with the dissemination of such knowledge to interested scientists and engineers.
Further work will be to carry out detailed numerical simulations to gain further insight into the system behavior.
References
[1] K. Hamiti, A. Voda-Besanqon and H. Roux-Buisson, POSITION CONTROL OF A PNEUMATIC ACTUATOR UNDER THE INFLUENCE OF STICTION. UJFG-LIME, B.P. 53, 38041 Grenoble Cedex, France, Laboratoire dβAutomatique de Grenoble, ENSIEG, B.P.
46,
38402 Saint Martin dβHeres, France,
1996.
[2] Henry M. Paynter
An Epistemic Prehistory of Bond Graphs
Elsevierβs Press,
2000.
[3] Karnoop, Rosenberg & Margolis
Modeling, Simulation and Control of Dynamic systems
Elsevierβs Press,
2011.
[4] Bideaux Eric
Modeling, Simulation and Control of Dynamic systems
INSA de Lyons, France
2012.
[5] Ovie, E., Bond Graph approach to Dynamic system
Modeling, NASRDA, Abuja. March, 2013.
[6] Lamport, L., LaTeX : A Documentation Preparation
System Userβs Guide and Reference Manual,
Addison-Wesley Pub Co., 2nd edition, August
1994.
IJSER Β© 2013 http://www.ijser.org