Moddeling of A Drone
Moddeling of A Drone
net/publication/261505293
CITATIONS READS
7 2,531
4 authors, including:
Anis Sellami
Université de Tunis
159 PUBLICATIONS 1,581 CITATIONS
SEE PROFILE
All content following this page was uploaded by Jouini Marwa on 13 November 2018.
Research unit C3S, ESSTT, University of Tunis, 5 av. Taha Hussein BP 56 – 1008 Tunis, Tunisia
[email protected] ; [email protected] ; [email protected] ; [email protected]
Abstract —This paper deals with the modeling and the control of manipulator. Chifu Yang [4] developed in 2008 a PID
a parallel robot with six degree of freedom (dof). The controller with gravity compensation with the feedback of
mathematical model of the 6-DOF parallel manipulator includes
cylinder length of platform. Lee and Kim [5] presented a
dynamics model which is on the Lagrange method. The model is
built in generalized coordinate system. The kinematics model is model based on sliding mode control for the Stewart platform.
based on the closed-form solutions. The latter has six electric In 2006, Iqbal and Bhatti [6] developed a control design for
actuators at six legs. The model-based controller is presented with tracking and regulation of a robot platform without any
feedback of platform positions. Two control laws of the actuators knowledge of the system’s mass properties in presence of
positions of the robot are proposed: PID control and Sliding nonlinearities.
Mode Control (SMC). Simulation results are given to show the The novelties in this paper is modeling of the robot, and make
comparison performance in term of robustness.
a comparative study between PID control and sliding mode
control of the actuators positions of robot platform.
Keywords: Parallel manipulator, Model kinematics, Model
dynamics, Platform, Sliding mode control, PID control.
This paper is structured as follow. We first define the studied
I. INTRODUCTION system. Afterward, kinematics and dynamics are explained in
section II. Then, section III, deals with the PID control and the
B. Dynamic Model Ωi
Positions Ui DC motors 1 θi
+ regulator s
The dynamic equation of the platform considers inertia and -
Coriolis. Lebret in [8] developed the dynamic equation using θid
Lagrange method as:
Fig.3: Block diagram of the servo loop.
M (q)q + C (q, q )q + G (q ) = τ (3)
The transfer function of the PID is written in the form:
Where M ∈ R 6×6
is an inertial matrix, G ∈ R 6×1
is the vector of K K + Ps + K d s 2
H PID (s) = P + i + K d s = i (5)
s s
the gravity terms, C ∈ R 6×6 is the Coriolis /centripetal matrix,
From the transfer function of the controller and the process,
and τ ∈ R 6×1 is the applied torque vector. Some relevant the transfer function of a closed loop in canonical form is the
properties are given as below: following:
Property1: K i K PK K K
M is a symmetric and positive definite matrix for all q ∈R . + s + d s2
H ( s) = T T T
Property 2: KKi KP ( KK d + 1) 2 3 (6)
+ s+ s +s
q and q are bounded. T T T
C. Actuators model 1 RJ
Where k = k and T=
ke kt .
The robot controller is based on the parallel electric actuators. e
The state space of the robot actuator platform as follows:
The denominator of the equation (6) can be written in the
form: d + S θi
θ id +
Motors
D( s) = (s + wn )(s 2 + 2ξ wn s + wn2 ) (7)
dt
+
- +
λ Switch surface
Where ξ and wn are positive constants.
Fig.4: Block diagram of sliding mode.
PID controller parameters are attained as follows:
IV. SIMULATION RESULTS
⎧ Tw2 (1 + 2ξ )
⎪P = n
⎪ K Simulation has been performed in-order to examine the
⎪⎪ Twn3 effectiveness of the proposed controller design. The robot
⎨ Ki = (8) platform has six legs, six motors containing six regulators. The
⎪ K
simulation parameters for the 6-DOF electric Stewart platform
⎪ Twn (1 + 2ξ ) − 1
⎪ Kd = K
are given with the following nominal parameters: mass of
⎪⎩ platform m=1kg, R =1.05 Ω , L = 0.5 mH , I =17.2 A
B. Sliding mode control −1 −1
J = 1.6 kg .m 2 , ke = 1 Vrad s , U = 9V , kt = 1.77 N .m.A
The main objective of the design approach of sliding mode and q = (0.9m,0.9m,0.5m,0.3rad ,0.2rad ,0.3rad )t .
control is to force the error of the robot actuator positions and The proposed control procedure is simulated using the
its derivative to zero. The switching surface design comprises Matlab/Simulink environment. Then to test the robustness of
the construction of the sliding function. Positions of errors and the proposed controls, we study the influence of parameter
derivatives are the coordinates in the selected robot platform. variations on the performance of the position settings. The
parameters are varied simultaneously at the motor start. The
The robot actuator position errors are introduced by: value of the inertia of the motor is thus multiplied by 0.5, the
resistance of the armature is multiplied by 2 and the
e = θid − θi (9) inductance of winding is multiplied by 3.
6×1 6×1
Where θi ∈\ is the position vector and θid ∈\ is the A. Simulation with the PID controller
desired positions vector.
The simulation result of the PID control is shown in figure 5.
Linear sliding surfaces S ∈\6×1 are introduced in terms of The figure shows the evolution of the real position with
errors and its derivative positions are given below: respect to the desired position in the absence of parameters
variation.
S = λ e + e (10)
1
⎪⎩U eq = +1 si S >0
Fig.5: Position of one actuator.
Where U eq is the equivalent control signal system, to B. Simulation with the sliding mode controller
compensate the system dynamics.
The simulation result of the sliding mode control is shown in
figure 6. The figure shows the evolution of the real position
The complete control circuit block diagram of these actuators
of manipulator is shown in figure 4. Here U is adjusted to with respect to the desired position in the absence of
positive and negative voltages for -1 and +1 values. parameters variation.
1
0.5
0
(rad)
-0.5
-1
desired position
position
-1.5
0 5 10 15 20 25 30
Time (s)
Fig.6: Position of one actuator.
C. Robustness test
The comparison between the PID control and the sliding mode
control is introduced in the following figure in presence of Fig.8: Lengths of the six legs for the sliding mode control.
parameters variation:
From these figures we note that sliding mode control ensures
1
the stability of each length of the platform after a certain time.
0.5 V. CONCLUSION
0
The robot platform system studied in this paper is a
manipulator with a closed kinematic chain. The latter is more
complicated for control and modeling. We perform a
-0.5 performance study between PID control and sliding mode
control of robot platform actuators. Simulation results show
the stability of the system. In meantime, the sliding mode
-1 Desired position control gives high robustness performance in comparison with
PID the PID control.
Sliding mode
-1.5
0 5 10 15 20 25 30
time (s)
APPENDIX
Fig.7: Comparison between the PID and sliding mode.
Here we explore each component of the Stewart platform
Following these simulations, the PID controller and the sliding dynamic equation. The inertial matrix M can be written as:
mode controller are compared. These two methods gives us
good results. In fact, the six actuator positions of the robot
platform towards the six desired values. ⎡m 0 0 0 0 0 ⎤
The main difference between both methods is in the ⎢0 m 0 0 0 0 ⎥⎥
⎢
robustness. In fact, the variation of the parameters of the ⎢0 0 m 0 0 0 ⎥
actuator (DC motor) shows that the PID controller is not M =⎢ ⎥
robust to parameter uncertainties unlike the sliding mode ⎢ 0 0 0 P11I1 P12 I 2 P13 I3 ⎥
controller, which guarantees good results. Then we can ⎢ 0 0 0 P21 I1 P22 I 2 P23 I3 ⎥
⎢ ⎥
conclude that the sliding mode controller is better and more ⎣⎢ 0 0 0 P31 I1 P32 I 2 P33 I 3 ⎦⎥
robust than the PID controller. Where
Where
⎡UJG T JG JJJJG ⎤
(U 1 ∧ B1C )T
⎢ 1 ⎥
⎢ JG T JG JJJJG ⎥
⎢U 2 (U 2 ∧ B2 C )T ⎥
⎢ JG T JG JJJJG ⎥
U3 (U 3 ∧ B3 C )T
J −1 = ⎢⎢ JG JG JJJJG
⎥
⎥
T
⎢U 4 (U 4 ∧ B4 C )T ⎥
⎢ JG T JG JJJJG ⎥
⎢U 5 (U 5 ∧ B5 C )T ⎥
⎢ JG T JG JJJJG ⎥
⎢⎣U 6 (U 6 ∧ B6 C )T ⎥⎦
where
JJJJG
JJG Ai Bi
Ui =
ρi