Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

1st INTERNATIONAL CONFERENCE PROBLEMS OF INFORMATICS, ELECTRONICS, AND RADIO ENGINEERING PIERE - 2020

Simulink-based Quadcopter Control System


Model
Vadim A. Budnyaev, Ivan F. Filippov, Valeriy V. Vertegel, Sergey Yu. Dudnikov
2020 1st International Conference Problems of Informatics, Electronics, and Radio Engineering (PIERE) | 978-1-7281-8990-1/20/$31.00 ©2020 IEEE | DOI: 10.1109/PIERE51041.2020.9314676

Sevastopol State University, Sevastopol, Russia

Abstract – This paper presents the results of the first stage of areas are significantly separated from each other, so the
creating a multi-rotor unmanned aerial vehicle (UAV) work processes are divided and their own specialists deal
simulation model in MATLAB Simulink. A quadcopter with each part.
mechanical model based on Simscape Multibody library Traditionally, the interaction between different parts of the
elements was developed. In addition, an angular position and
system is verified during the testing phase, at the cost of
flight altitude control model based on proportional-integral
derivative (PID) controllers was designed using the standard expensive prototypes and loss of the time. The MATLAB
Simulink libraries. Simulink environment helps to bring all developments
together. This allows all specialists to work in the same
Index Terms – Quadcopter, UAV, Simulink, Simscape environment and debug the interaction of their designs
Multibody, control system, PID. through simulation. Thus, most of the interaction errors are
detected in the model.
Simscape Multibody is a toolbox for Simulink that allows
I. INTRODUCTION
exploring the dynamics of complex mechanical systems

I N RECENT years, multirotor (especially quadrotor)


unmanned aerial vehicles (UAVs) have become very
popular in the commercial industry[1-4] and are currently
with multiple degrees of freedom. The available modeling
tools make it possible to describe rigid bodies with high
accuracy, taking into account their mass-inertial
used in many areas, from the delivery of parcels and aerial characteristics, degrees of freedom and relative position, as
photography to the maintenance of power lines and well as change the parameters of their motion under the
pipelines. This popularity is due to the combination of the influence of applied forces and moments.
advantages of this design: In addition, Simscape Multibody, using an export plug-in,
● high maneuverability; allows creating complex dynamic models based on their 3D
● possibility of hovering in the air; models, developed in the CAD SolidWorks [5]. In this case,
● quick pre-flight preparation; all issues of ensuring the operability of models are solved in
● the ability to take off from almost any surface; SolidWorks. However, a model that works in SolidWorks
● compactness and simplicity. could be completely inoperable in Simscape Multibody.
The aim of the scientific project is the development of This is due to the fact that not all connections compile
mathematical models, analytical, numerical and correctly. At the first stage of creating the model, it was
experimental methods for modular UAVs research. decided to use only standard Simscape Multibody tools.
Modeling and prototyping techniques that can drastically
reduce the time and cost of UAVs design will be developed
III. MODEL DESCRIPTION
as a part of the research process.
One of the tasks for achieving this aim is the design of a S500 quadcopter platform (Fig. 1) was used for model
complex parameterized simulation model of quadcopter that development. It includes a frame of 500 mm in size and
takes in account the maximum possible number of factors weighing 400 g, four motors with a mass of 15 g and four
that affect the flight dynamics. At the first stage, a model of 10-inch (254 mm) propellers weighing 5 g.
the quadcopter as a control object without using the Fig. 2 shows the simplified mechanical model designed in
technical characteristics of individual elements of its design Simulink using the Simscape Multibody, while Fig. 3 shows
(motors, speed controllers, etc.) are developed, as well as a the results of its visualization. The model is a set of ''Brick
control system based on PID controllers. The results of the Solid'' and ''Cylindrical Solid'' elements, interconnected
UAVs simulation model design are presented in this work. using ''Rigid Transform'' blocks. ''Rigid Transform''
implements the movement and rotation of the element
connected to port F, relative to the element connected to
II. DESIGN ENVIRONMENT
port B.
The development of modern multi-rotor drones is carried
out at the junction of many technical areas: mechanics,
control and automation theory, electronics, navigation,
communications and information systems, etc. All these

978-1-7281-8990-1/20/$31.00 ©2020 IEEE

246

Authorized licensed use limited to: Carleton University. Downloaded on May 31,2021 at 22:46:19 UTC from IEEE Xplore. Restrictions apply.
1st INTERNATIONAL CONFERENCE PROBLEMS OF INFORMATICS, ELECTRONICS, AND RADIO ENGINEERING PIERE - 2020

The full first stage quadcopter Simulink-model is shown


in Fig. 4. It includes:
● a subsystem that describes the position of the
quadcopter in the basic inertial coordinate system and
contact with the surface (''Joint & gnd contact'');
● a subsystem that describes the quadcopter design
(''Quadcopter'');
● a subsystem that describes a control algorithm for
stabilizing the angular position and maintaining a
given altitude (''PID Controllers'');
● ''Input Signals'' block, implemented in the form of
four customizable graphs of roll, pitch, yaw and
altitude time dependencies (Fig. 5). Angles are given
in degrees and then converted to radians.
Fig. 1. S500 quadcopter platform.

Fig. 4. Full quadcopter model.

Fig. 2. Mechanical model of quadcopter.

Revolute ''Joint blocks'' implement angular degrees of


freedom and are required for propeller rotation. ''Bushing
Joint'' block, connected to the fixed base of the World Frame,
realizes six degrees of freedom (three translational and three
rotational) and is required to rotate and move the quadcopter
model in any direction.

Fig. 5. ''Input signals'' block.

The content of the "Joint & gnd" subsystem is shown in


Fig. 6. "Bushing Joint" block, which implements six degrees
of freedom, has a number of additional pins that are required
to read the required parameters:
● pz – movement along the Z axis;
● vz – movement velocity along the Z axis;
● qx – pitch angle;
Fig. 3. Quadcopter model visualization. ● wx – angular pitch velocity;
● qy – roll angle;

247

Authorized licensed use limited to: Carleton University. Downloaded on May 31,2021 at 22:46:19 UTC from IEEE Xplore. Restrictions apply.
1st INTERNATIONAL CONFERENCE PROBLEMS OF INFORMATICS, ELECTRONICS, AND RADIO ENGINEERING PIERE - 2020

● wy – angular roll velocity;


● qz – yaw angle;
● wz – angular yaw velocity.

Fig. 9. ''PID Controllers'' subsystem.

The desired angles and altitude of the quadcopter are set


in ''Input Signals'' block, and the actual values are calculated
in "Bushing Joint" block.
Fig. 6. "Joint & gnd" subsystem. The difference between the desired and actual values
(error signal) is multiplied by the PID gains. The
The content of the "Quadcopter" subsystem is shown in
proportional term simply multiplies the error value by a
Fig. 7. It includes elements that describe the design of a
constant.
quadcopter, as well as a "PWM to Rotation & Thrust" block
The integral term removes the steady state error by
that converts PWM signals into thrust and motors rotation
integrating the error value over time until it reaches zero.
angular velocities. In addition, 3D models of the real frame,
The differential component estimates the future error and
motors and propellers have been added to the subsystem.
eliminates it. It estimates the error by the rate of the error
The visualized model of the quadcopter is shown in Fig. 8.
change in time and multiplies it by the derivative
constant [6, 7].
PWM signals are generated at the outputs of the subsystem
and then are converted into thrust and angular rotation
velocity for each motor.

IV. SIMULATION RESULTS


Fig. 10-13 show the quadcopter simulation results.
A dashed line indicates the desired parameter values
obtained from the ‘‘Input Signals’’ block. A solid line
indicates the actual parameter values calculated in «Bushing
Joint».

Fig. 7. ''Quadcopter'' subsystem.

Fig. 10. Take off to an altitude of 1 m and landing.

Fig. 8. Quadcopter model visualization.

The content of the "PID Controllers" subsystem is shown


in Fig. 9.

248

Authorized licensed use limited to: Carleton University. Downloaded on May 31,2021 at 22:46:19 UTC from IEEE Xplore. Restrictions apply.
1st INTERNATIONAL CONFERENCE PROBLEMS OF INFORMATICS, ELECTRONICS, AND RADIO ENGINEERING PIERE - 2020

into account the influence of the technical characteristics of


the quadcopter individual elements (motors, speed
controllers, etc.), using the wide functionality of MATLAB
Simulink.

ACKNOWLEDGMENT
This work was financially supported by the Ministry of
Science and Higher Education of Russian Federation during
Fig. 11. Pitch angle changes.
the implementation of the project «Fundamentals of
mechanics, control and management systems for unmanned
aerial systems with shape-forming structures, deeply
integrated with power plants, and unique properties that are
not used today in manned aircraft», № FEFM-2020-0001.

REFERENCES
[1] S. Kim and C. K. Ahn, “Adaptive Nonlinear Tracking Control
Algorithm for Quadcopter Applications,” in IEEE Transactions on
Aerospace and Electronic Systems, vol. 56, no. 1, pp. 84-94, Feb. 2020.
[2] Y. E. Houm, A. Abbou and A. Mousmi, “Quadcopter Modelling,
Control Design and PIL Verification Based on DSP F28377s,” 2017
Fig. 12. Roll angle changes. Int. Renewable and Sustainable Energy Conf. (IRSEC), Tangier, 2017,
pp. 1–7.
[3] D. S. Vamsi, T. V. S. Tanoj, U. M. Krishna and M. Nithya,
“Performance Analysis of PID controller for Path Planning of a
Quadcopter,” 2019 2nd Int. Conf. on Power and Embedded Drive
Control (ICPEDC), Chennai, India, 2019,
pp. 116–121.
[4] J. Yang, Z. Cai, Q. Lin and Y. Wang, “Self-tuning PID control design
for quadrotor UAV based on adaptive pole placement control,” 2013
Chinese Automation Congress, Changsha, 2013, pp. 233–237.
[5] M. Yu. Kalyagin, D. A. Voloshin and A. S. Mazaev, “Quadcopter flight
control system simulation in Simulink and Simscape Multibody,”
Trudy MAI, no.112, 2020.
Fig. 13. Yaw angle changes (rotation 90° around the Z-axis and back). [6] M. Usman, “Quadcopter Modelling and Control With
MATLAB/Simulink Implementation,” Thesis (B.S.), LAB University
The absolute error for the roll and pitch angles doesn’t of Applied Sciences, 2020
exceed 2°, for the yaw angle – 0.1°, for the altitude – 4 cm. [7] E. A. Paiva, J. C. Soto, J. A. Salinas and W. Ipanaqué, “Modeling and
PID cascade control of a Quadcopter for trajectory tracking,” 2015
CHILEAN Conf. on Electrical, Electronics Engineering, Information
V. CONCLUSION and Communication Technologies (CHILECON), Santiago, 2015, pp.
809–815.
The quadcopter model designed in Simulink has six [8] M. C. De Simone, S. Russo, Z. B. Rivera and D. Guida, “Multibody
Model of a UAV in Presence of Wind Fields,” 2017 Int. Conf. on
degrees of freedom in space. Quadcopter movement consists Control, Artificial Intelligence, Robotics & Optimization (ICCAIRO),
of translational movement of the center of mass and body Prague, 2017, pp. 83–88.
spherical movement relative to the center of mass. The [9] S. M. L. J. Lun, S. Sakulthong and S. Srigrarom, “Wind disturbance
model takes into account: lift, gravity, propellers gyroscopic control for V-tail Y-shape quadcopter,” 2019 First Int. Symp. on
Instrumentation, Control, Artificial Intelligence, and Robotics (ICA-
effect, drone gyroscopic effect, power plant moment of SYMP), Bangkok, Thailand, 2019, pp. 195-202.
inertia. [10] K. Park, G. Jung and K. Yu, “Comparative evaluation of remote
A control system for quadcopter angular position and controller for manual operation of quad-rotor,” IECON 2013 – 39th
flight altitude based on PID controllers has been developed. Annual Conf. of the IEEE Industrial Electronics Society, Vienna, 2013,
pp. 3388–3391.
Based on the simulation results, we can conclude that the
PID controllers for this model are configured correctly – the
difference between desired and actual parameter values of
the quadcopter's position in space is minimal.
In the future, it is planned to use a bundle of SolidWorks
and Simscape Multibody to design a model of the modular
quadcopter with high carrying capacity, add imitation of
wind gusts to the new model [8, 9] and replace ''Input
Signals'' block with a simplified remote controller model
[10] for real time simulation. In addition, it is planned to take

249

Authorized licensed use limited to: Carleton University. Downloaded on May 31,2021 at 22:46:19 UTC from IEEE Xplore. Restrictions apply.
1st INTERNATIONAL CONFERENCE PROBLEMS OF INFORMATICS, ELECTRONICS, AND RADIO ENGINEERING PIERE - 2020

Vadim A. Budnyaev was born in Sevastopol in Valeriy V. Vertegel was born in USSR, in 1961.
1996. He received the B.S. and M.S. degrees in He received the M. S. and Ph. D. degrees in radio
radio engineering from Sevastopol State engineering from Sevastopol Instrument
University (SevSU), Sevastopol, Russia, in 2018 Engineering Institute (SIEI), Sevastopol, USSR,
and 2020, respectively. He joined SevSU in 1987 and 2000, respectively. In 1989, he joined
Engineering Center of Micro- and the Department of theoretical bases of radio
Nanoelectronics Devices in 2016 where he is engineering SIEI, as an assistant. In 1989, he
currently an assistant research fellow. He is became a Senior lecturer, an Associate Professor
currently towards the Ph.D. degree in radio in 2001. Since January 2015, he has been with the
engineering at SevSU. His research activities SevSU Engineering Center of Micro- and
include complex systems modelling and design of Nanoelectronics Devices, where he is a Director and Leading Researcher.
microwave integrated circuits using Si and SiGe devices and power His current research interests include digital and analog integrated circuits
combining circuits. He has published more than 15 scientific papers in the design, microwave measurements and digital signal processing. He has
field of radio electronics. published more than 70 scientific papers and books in the field of radio
electronics.
Ivan F. Filippov was born in Sevastopol in 1993.
He received the B. S. and M. S. degrees in radio Sergey Yu. Dudnikov was born in Leningrad,
engineering from Sevastopol State University USSR in 1964. He received the M. S. degree in
(SevSU), Sevastopol, Russia, in 2014 and 2016, engineering at Leningrad State University and
respectively. He joined SevSU Engineering Ph.D. degree at State Optical Institute. He
Center of Micro- and Nanoelectronics Devices in currently works at Sevastopol State University.
2016 where he is currently an assistant research Scope of his professional interests: RFID
fellow. He is currently towards the Ph.D. degree technology and applications, communication
in radio engineering at SevSU. His research protocols and systems for aircraft control.
interests include system-level modelling, analog,
radiofrequency and millimeter-wave integrated circuit design and
microwave measurements. He has published more than 20 scientific papers
in the field of radio electronics.

250

Authorized licensed use limited to: Carleton University. Downloaded on May 31,2021 at 22:46:19 UTC from IEEE Xplore. Restrictions apply.

You might also like