Professional Documents
Culture Documents
2016 Praveen
2016 Praveen
net/publication/311950905
CITATIONS READS
10 335
2 authors, including:
Anju Pillai
Amrita Vishwa Vidyapeetham
34 PUBLICATIONS 51 CITATIONS
SEE PROFILE
All content following this page was uploaded by Anju Pillai on 19 November 2018.
ABSTRACT
Quadcopter also called as quadrotor helicopter, is popular in Unmanned Aerial Vehicles (UAV). They are widely
used for variety of applications due to its small size and high stability. In this paper design and development of
remote controlled quadcopter using PID (Proportional Integral Derivtive) controller implemented with Ardupilot
Mega board is presented. The system consists of IMU (Inertial Measurement Unit) which consists of accelerometer
and gyro sensors to determine the system orientation and speed control of four BLDC motors to enable the quadcopter
fly in six directions. Simulations analysis of quadcopter is carried out using MATLAB Simulink. Pitch, roll and
yaw responses of quadcopter is obtained and PID controller is used to stabilize the system response. Finally the
prototype of quadcopter is build PID logic is embedded on it. The working and performance of quadcopter is tested
and desired outputs were obtained.
Keywords: Quadcopter, PID controller, Pitch, Roll, Yaw, MATLAB Simulation.
1. INTRODUCTION
One of the popular area of research is UAV. In the mid 1800s, researches started in UAV and Drones (small
sized UAV) started in the early 1900s and it became more popular in World War-I. Most popular UAV is
Quad Copter (QC) and is preferred due to small size and high stability. It can vertically take off and land
(VTOL). It can change the direction immediately to reach the unreachable areas. Mostly quadcopter is used
in military applications: to identify the unknown objects, enemies, boarder patrolling etc. Recently,
quadcopters are used in small goods transportation.
Many researches are carried out about quadcopter and a wealthy literature support can be found in the
field. In [1], Quadcopter pitch and roll moments are simulated using PID and PD controller. PID and PD
results of pitch and roll moments responses are compared to choose the proper controller for pitch and roll
moments. In [2], PID controller is used to control the quadcopter and Extended Kalman Filter (EKF) is
used to reject the noise from IMU sensor. In [3], author proposes three algorithms: PID, PD and Back
stepping algorithms to get the stabilized response of quadcopter dynamic motions and all the results are
compared using three algorithms. In [4], PD auto tuner is designed to achieve stable and robust performance
of quadrotor. In [5], in presence of disturbances, an adaptive controller is used to improve the tracking
position and trajectory following of the quadcopter. In [6], adaptive neuro PID controller is used for stabilizing
quadcopter motions. Using this algorithm, there is no need for different mathematical analysis for defining
the proper coefficients. In [7], details regarding how to build own quadcopter and use PID controller for
stabilized operation of quadcopter is presented. In [8], [9] UAV provides wide range of visual information
to UGV (Unmanned Ground Vehicle) through cameras and inertial sensors. Phenox, a fully automated
palm sized robot’s software and hardware design and development details are presented in [10].
* Department of Electrical and Electronics Engineering Amrita School of Engineering, Coimbatore Amrita Vishwa Vidyapeetham Amrita
University, India, Email: praveen.viswanadhapalli@gmail.com
** Department of Electrical and Electronics Engineering Amrita School of Engineering, Coimbatore Amrita Vishwa Vidyapeetham Amrita
University, India, Email: s_anju@cb.amrita.edu
7152 Viswanadhapalli Praveen and Anju S. Pillai
In the current work, a quadcopter prototype is designed and developed using PID controller. IMU is
used to determine the system orientation. In this work, mathematical modeling of qudcopter is done using
MATLAB Simulink model using PID controller for stabilized operation of quadcopter. Pitch, roll and yaw
movement of quadcopter responses are obtained through MATLAB Simulink.
The rest of the paper is organized as follows. Section 2 explains the system overview. Section 3 explains
the modeling of the quadcopter. Sect4 explains the control strategy of the quadcopter is presented. Results
are explained in section 5 and the paper is concluded in section 6.
2. SYSTEM OVERVIEW
In this section, the overview of quadcopter is explained. There are four motors in quadcopter (M1, M2, M3
& M4). M1 and M3 are rotated in clockwise direction. M2 and M4 are rotated in anticlockwise direction in
order to stabilize the quadcopter. The quadcopter is controlled using a radio controller which communicates
with the copter wirelessly through a transceiver. Radio controller sends PWM signals to quadcopter. The
receiver in quadcopter receive the PWM signal and is fed to controller. Ardupilot Mega board is used
which consists of ATMEGA 2560 controller. The controller sends the PWM signal to motor. According to
PWM signal, the four motors will be rotated and the quadcopter hover in air. To stabilize the quadcopter,
PID controller is used. A detailed system description is shown in Figure 1.
Where,
M1 & M3 – anticlockwise rotating motors
M2 & M4 – clockwise rotating motors
ESC – Electronic Speed Controller
3. MODELING
Modeling of quadcopter will be beneficial to comprehend the copter dynamics to control and stabilize the
quadcopter accurately. The mathematical modeling of the quadcopter is studied from [2]. Quadcopter can
move in six directions: forward, backward, right, left, up and down by varying the speeds of four motors.
Equations 4, 5 & 6 models the quadcopter pitch, roll and yaw dynamic motions.
Applying Newtons-Euler formulation to Figure 2, equations 1, 2 & 3 are derived which describes the
roll, pitch and yaw movement of quadcopter as in [2].
I yy I zz J tp U2
�� l (1)
I xx I xx I xx
�� I xx I zz J tp U3
l (2)
I yy I yy I yy
�� I xx I yy U4
l (3)
I zz I zz
Where,
2 2
U2 b( 2 4 )
2 2
U3 b( 1 3 )
2 2 2 2
U4 d( 1 2 3 4 )
4. CONTROL STRATEGY
PID controller is used to control the roll, pitch and yaw movement of quadcopter. Gyroscopic torque and
coriolis – centripetal terms are neglected to reduce the complexity copter modeling while hovering at run
time. After reducing terms, the quadcopter dynamic equations are:
�� l U 2
I xx (4)
�� l U 3
I yy (5)
�� U4
l (6)
I zz
Apply the Laplace transform to equations 4, 5 & 6,
(s ) lb
U 2 (s) I xx S 2 (7)
( s) lb
U 3 (s) I yy S 2 (8)
(s) ld
U 4 (s) I zz S 2 (9)
Where,
l = Arm length
b = Thrust coeffient
d = Drag coeffient
Ixx = Moment of inertia along x-axis
Iyy = Moment of inertia along y-axis
Izz = Moment of inertia along z-axis
� = Angular velocity
PID controller design is shown is below Figure 3. Reference signal is pitch or roll or yaw to PID
controller and its output is given to quadcopter. Quadcopter output signal is given as negative feedback to
adder block. According to error, Kp , Ki and Kd are chosen.
Modeling and Simulation of Quadcopter using PID Controller 7155
Kp = Proportional gain
Ki = Integral gain
Kd = Derivative gain
e(t) = Error signal
u(t) = PID controller output
Quadcopter pitch, roll and yaw simulation block diagram is given in Figure 4. Step signal is given as
input signal controlling quadcopter dynamic motions using PID controller. It consists of three PID controllers
for pitch, roll and yaw given to three transfer function blocks (pitch, roll and yaw transfer functions). A
multiport switch helps to get the output individually, by choosing constant as 1 or 2 or 3, pitch, roll and yaw
responses are obtained at output scope.
5. RESULT ANALYSIS
5.1. Software Simulation Results
The quadcopter dynamic motions are simulated by using MATLAB software using PID controller. The
MATLAB results are shown in Figures 5, 6 and 7 which are pitch, roll and yaw responses of quadcopter
respectively. Figures 5 & 6 responses are same because of moment of inertias Ixx and Iyy are equal and thrust
Angle
Time (seconds)
Figure 5: Pitch movement of the qudcopter
Angle
Time (seconds)
Figure 6: Roll movement of the qudcopter
Angle
Time (seconds)
Figure 7: Yaw movement of the quadcopter
Modeling and Simulation of Quadcopter using PID Controller 7157
coefficients are also same. Yaw response in Figure 7 is different from that of roll and pitch responses due to
change in moment of inertia (Izz) and drag coefficient(d) as shown in equations 7, 8 & 9. The Proportional,
Integral and Derivative gains are chosen as 25, 0.2 and 80, to stabilize the quadcopter motions.
REFERENCES
[1] G.H. Tuta Navajas and S. Roa Prada; “Building your own quadrotor: A mechatronics system design case study,” III IEEE
International Congress of Engineering Mechatronics and Automation (CIIMA). pp. 1-5, 2014.
[2] M. Hassan Tanveer, S. Faiz Ahmed, D. Hazry, Faizan A. Warsi and M.Kamran Joyo; “Stabilized controller design for
attitude and altitude controlling of quad-rotor under disturbance and noisy conditions,” American Journal of Applied
Sciences 10 (8). pp. 819-831, 2013.
[3] Patel Keyur and Jayesh Barve; “Modeling, simulation and control study for the quad-copter UAV,” 9th IEEE International
Conference on Industrial and Information Systems (ICIIS). pp.1-6, 2014.
[4] Tnunay H., Abdurrohman M.Q., Nugroho Y., Inovan R., Cahyadi A., Yamamoto Y.; “Auto-Tuning Quadcopter Using
Loop Shaping,” International Conference on Computer, Control, Informatics and Its Applications (IC3INA). 2013.
[5] Razinkova, Anastasia, Igor Gaponov, and Hyun-Chan Cho; “Adaptive control over quadcopter UAV under disturbances,”
14th IEEE International Conference on Control Automation and Systems (ICCAS). pp. 386-390, 2014.
[6] Fatan, Mehdi, Bahram Lavi Se_dgari and Ali Vatankhah Barenji; “An adaptive neuro PID for controlling the altitude of
quadcopter robot,” 18th IEEE International Conference on Methods and Models in Automation and Robotics (MMAR).pp.
662-665, 2013.
[7] D. Norris “Build your own quadcopter. Power up Your designs with the parallax Elev-8,” McGraw Hill Professional
2014.
7158 Viswanadhapalli Praveen and Anju S. Pillai
[8] Jae-Keun Lee, Hahmin Jung, Huosheng Hu and Dong Hun Kim; “Collaborative control of UAV/UGV,” 11th IEEE
International Conference on Ubiquitous Robots and Ambient Intelligence (URAI). pp. 641-645, 2014.
[9] Achtelik, Markus, Tianguang Zhang, Kolja Khnlenz, and Martin Buss; “Visual tracking and control of a quadcopter using
a stereo camera system and inertial sensors,” IEEE International Conference on Mechatronics and Automation (ICMA).
pp. 2863-2869, 2009.
[10] Konomura, Ryo, and Koichi Hori; “Phenox: Zynq 7000 based quadcopter robot,” IEEE International Conference on Re
Con Figurable Computing and FPGAs (Re-Con Fig). pp.1-6, 2014.