 Open Access
 Authors : Omkar Harkare , Rohan Maan
 Paper ID : IJERTV10IS050162
 Volume & Issue : Volume 10, Issue 05 (May 2021)
 Published (First Online): 21052021
 ISSN (Online) : 22780181
 Publisher Name : IJERT
 License: This work is licensed under a Creative Commons Attribution 4.0 International License
Design and Control of a Quadcopter
Omkar Harkare, Rohan Maan
BTech. Robotics and Automation, MITWPU, Pune, India
Abstract Most of the quadcopters out there talk about controlling the roll, pitch, and yaw. We understand there was a need of focusing on attitude, altitude, and position control and help with required control systems. Our paper goes through the complete process of making a person understand the working of a quadcopter in 6 DOF even after having 4 actuators. Talking about the different available configurations of quadcopter and dynamics of handling each to achieve a required speed, position, and altitude control. We have gone through a general control strategy and explaining the process of tuning PID.
KeywordsDesign; Control; Quadcopter; PID; Dynamics

INTRODUCTION
Quadrotor (Quadcopter) is a fourpropeller helicopter, usually arranged in a square, with four independent rotors, reducing the need for a swashplate. A swashplate method was needed to allow the helicopter to use more degrees of freedom, but the same level of control could be achieved by adding multiple rotors.
The development of quadcopters has come to a standstill recently because controlling four independent rotors has proved very difficult and impossible without the help of electronics. The declining costs of current microprocessors have made quadcopter controls electrical and completely independent for commercial, military, and recreational purposes.
Quadcopter control is a particularly difficult and exciting problem, with 6 degrees of freedom (3 renders and 3 rotations) and only four independent inputs (rotor speed), quadcopters are severely underactuated. To achieve the six degrees of freedom, rotation and translation movement go hand in hand. The emergence potential is very nonlinear, especially after the calculation of complex aerodynamic effects. Lastly, unlike land vehicles, helicopters have very little friction to restrict their movement, so they should give their flexibility to stop moving and stay stable. Together, these factors create a problem of control that is very interesting. This paper will introduce a simplified model of Quadcopter dynamics and control.

DESIGN AND CONTROL

Design of Quadcopter
The standard quadcopter has four rotating angles and four input power, which is provided by each motor as shown in Fig 1. The quadcopter configuration can move and remain vertically which is a great advantage as it reduces the requirements for the landing platform. There are about 2 configurations for multiple quadcopter designs + and x.
The Xconfiguration quadcopter is considered more stable compared to the + configuration, which is an additional acrobatic type. Duplicates 2 and 4 rotate counterclockwise (CCW), 1 and 3 rotate clockwise (CW). For the quadcopter to be able to maintain forward movement by increasing the speed of the front rotors while reducing the speed of the rear rotor simultaneously, which means changing the pitch angle. This process is required to pay for the result of the action / response (3rd Law of Newton). Progresses 1 and 2 have a contrasting pitch towards 2 and 4, so all thrush has the same direction.
Fig. 1 Types of Quadcopter Configuration

Dynamics of Quadcopter
We will begin to discover the power of the quadcopter by introducing two frames that will work on it. The noninserted frame is defined by the ground, with gravity pointing in the wrong zdirection. The body structure is defined by the shape of a quadcopter, with rotor axes pointing in the right z direction and arms pointing in x and y directions.
Fig. 2 Quadcopter frame and Inertial frame
The power of a quadcopter can be defined in many different ways such as quaternion, Euler angle, and directional matrix. However, in building the reference stability control height at the axis angle is necessary, so the designed controller can reach a stable plane. In height control, all angle indicators on each axis should be approximately zero especially when taking, landing or moving upwards. The position of the quadcopter can be defined by the three Euler angles of roll angle (), pitch angle (), and yaw angle (). In figure 2 , , , (angular velocity) of the propellers T, T, T, T: the forces produced by the propellers: Fi i2 depending on the propeller position, air density, etc. M: quadcopter size, mg: quadcopter weight, , , : roll, pitch and yaw angles.
The position of the quadcopter is defined by the inertial frame x, y, zaxes with . The shape, e.g., angular position is defined in the inner circle with three angles of Euler . The pitch angle determines the rotation of the quadcopter around the yaxis. Roll angle determines the rotation around the xaxis and the yaw angle around the zaxis. Vector q contains vectors of line and angular shape
= , =
The reference source of the body is in the middle of the quadcopter multiplicity area. In the body structure, the direct velocities are determined by Jacobian and angular velocity .
JB =
The rotation matrix from the body frame to the inertial frame is
R =
When Sx = sin (x) and Cx = cos (x). The orthogonal rotation matrix of R1 = RT which is the rotating matrix from the inert frame to the body frame. There are 3 types of angular velocity that can be defined as the output of (, , ) in terms of time,
* = Roll rate, * = Pitch rate, * = Yaw rate
When you consider the quadcopter rotation mode it provides 4 calculations of power, times, and rotational speed. Defined by:
Equilibrium of forces: Ti = mg Equilibrium of directions: T1,2,3,4  g Equilibrium of moments: Mi = 0
Equilibrium of rotation speeds: ( 1 + 3) (2+ 4) = 0 And the consequence is : * = 0 , * = 0, * = 0
By increasing / decreasing the rotational speed of all the shelters, the quadcopter can make the movement fly up and down.
Flying up: Ti > mg,
Flying down: Ti < mg, Euler angles and rates remain 0.
Changing the speed of propellers gives us equations of yaw, roll, and pitch quadcopter:
Yaw: * = ky(( 1 + 3) (2+ 4)) = * dt Roll kR(( 1 + 3) (2+ 4)) = * dt Pitch = kp (( 1 + 3) (2+ 4))
Therefore, a decrease of 2 rotor velocity and an increase in rotor velocity 4 acquires roll movement. Similarly, reducing 1 rotor velocity and increasing 3 rotor velocities to detect pitch movement. Increasing the angular velocities of the two opposing rotors and reducing the velocities the other two achieves yaw movements.

Equations of Motion
In a quadcopter control system, it is important to consider how powerful the system should be in relation to external forces such as wind. It is important to consider the response time of the quadcopter w.t.t to external forces operating in the short term. The control strategy will generally depend on the systems under 3 controls. The quadcopter mounting sensors measure angular speed and translation acceleration. These values are compared to the desired attitude and positions to calculate the error signal included in the control system.
The PID control algorithm is used to control the height of the quadcopter. The PID controller acts as a closed loop feedback system. The release of a PID control system is a control number that will drive the system closer to the desired position. The structure of the PID controller is:
u = control input
P = Proportional control term I = Integral control term
D = Derivative control term
kp = Proportional control gain kI = Integral control gin
kD = Derivative control gain t = instantaneous time
xd(t) = desired value of state x at time t x(t) = measured value of state x at time t e(t) = Error value at time t
(t) = Derivative of error at time t
u = P + I + D
e(t) = xd(t) e(t) P = kpe(t)
I = kI
D = (t)
u(t) = kpe(t) + + (t) U(s) = kp + kI/s + kDs
Fig. 3 Methodology to obtain control parameters

General Control Strategy
The quadrotor can travel up to six degrees of freedom (3 renderings and 3 rotations) but has only 4 inputs (speed for each car). While the quadrotor is able to move directly on a
,, = torques along the body aes (Nm) Kd = drag torque proportionality constant KT = thrust coefficient
l = length of arm (m)
u1 = total thrust of all motors u2 = roll control input
u3 = pitch control input u4 = yaw control input
= =

Attitude and Altitude Control
We want to use this controller to stabilize the quadrotor around the stable hover. This means that all the desired angles are 0 and we set the desired height to a certain minimum value for redemption purposes. Controlling altitude is similar to controlling the total amount of a quadcopter. This is important because these control inserts influence and movement on the x and y axis. Therefore, high throttle values lead to very strong movements in the x and y directions. In our simplified model, the direct acceleration is separated from the positive. However, this does not hold when the quadrotor rotates as vertical acceleration components are also present in x and y planes. Therefore, the height control compensates for both the gravitational force and the deviation of the normal vector due to the inclination.
= total thrust of all motors
= Desired angular velocity along (radians/second)
vertical zaxis without changing any other state, it must = Desired angular velocity along (radians/second) change its position in the x and y axis. Since it is not possible
to control six degrees of freedom with just 4 controls, we instead create controllers to settle in x, y, z, and the subject you want. The quadrotor should be able to move safely in the desired location while keeping rolls and angles stable. Modern quadrotors have ESCs that control the angular velocities of each rotor.

the resulting thrust of the four rotors

the difference of thrust between the motors on the xaxis which results in roll angle changes and subsequent movement in the lateral xdirection.
the difference of thrust between the motors on the y
axis which results in pitch angle changes and subsequent movement in the lateral ydirection.
the difference of torque between the CW and CC rotors which results in the moment that rotates the quadrotor around the vertical zaxis.
We will use the equations for the net thrust and moment equations to define the control inputs to the control outputs of quadrotor system. The control inputs are defined below.
T
T
F b = total force of thrust in the body coordinate frame (N) w = motor angular velocity (rads/sec)
= Desired angular velocity along (radians/second)
= Proportional control gain
= Integral control gain
= Derivative control gain
= Desired roll angle (radians)
= Desired pitch angle (radians)
= Desired yaw angle (radians)
= Desired altitude(m)
m = mass of the quadrotor (kg)
g = acceleration due to gravity(m/s2) e(t) = error value at time t
(t) = ( (t) + + + mg)
= (t) + (t)dt +
= (t) + (t)dt +
(t)dt +
(t)dt +
= (t) +
Note that yaw/heading control is often accomplished sufficiently with only PD control so the integration gain would not be required.


Position Control
While the mood / height controller can maintain a stable quadrotor movement and be followed by the input / height input from the RC, it cannot control the quadcopter translation movement. Smaller angles will lead to movement and translation. To prevent this flooding method of translation, it is used to control the location. Input to the position controller are position measurements and the results are required by roll and pitch angle to move the quadrotor to the desired position x and y. This controller also performs a search where a series of consecutive waypoints can be fed to the position control so that the quadrotor follows a certain threedimensional path.
Kp = Proportional control gain kI = Integral control gain
D
D
kD = Derivative control gain
D
D
Xd = Desired global X position (m) Yd = Desired global Y position (m) d = Desired roll angle (radians) d = Desired pitch angle (radians)
(t) = ( ) + dt + ( )
(t) = ( ) + dt + ( )


IMPLEMENTATION
Fig. 4 Block Diagram
Accelerometers and gyroscopes are sensors used to determine posture. The first measures the speed at each side of the connection system (x, y, z), and the second measures the angular velocity. According to our IMU data, accelerometers are very sensitive to vibrations and their response time is not as fast as gyroscopes. Gyroscopes tend to withstand vibrations but turn up certain degrees over time. With this implementation, a combination of data collected by both
sensors will help us to determine the exact position of the quadcopter.
When the radio controller (or a preconfigured function) provides a command, the quadcopter controller must respond as quickly and accurately as possible. The first method of control values is given to system simulations. However, manual manipulation of the controller values is required to synchronize the controller and obtain the desired performance of the system.
Fig. 5 Assembly
In order to tune the controllers, a function is implemented capable to change PID values.
Fig 6 Processes of Implementation

CONCLUSION
We are introducing a quadcopter instruction model to answer the question "How to use attitude, altitude and position controller in a quadcopter". Based on this model and strength tests in safe controlled environments, real world stability was tested for free flights indoors and outdoors. In the development of the research phase, theoretical and artistic methods were used. These approaches were the basic basis for demonstrating the direct relationship between the theoretical model and the behavior of the transformation effect given the artistic approach; therefore, the experimental results obtained have been shown to be similar to the hypotheses studied.
Due to the simplified considerations of the model, the control structure was divided into two phases: the theory phase, corresponding to the mathematical model and the structure of the control, and the actual implementation of the ideas in the visual model. The theoretical model was used to quantify the quadcopter's capacity and the theoretical control system, while in the experimental phase, it was proved that the simplification of the theory led to the creation of a plant that did not meet all aspects of the real system, and therefore experimental adjustments were required.
On outdoor, the quadcopter has deviated from its original position due to the influence of existing air, however, this can be manually controlled by remote. The future addition of a satellite position controller is proposed to avoid position deviation by wind while using the builtin GPS module installed in the quadcopter. However, the system remains stable for roll , pitch , yaw angles, and resistance to wind and other external forces.

REFERENCES

https://www.researchgate.net/publication/283110601_Design_contro l_and_application_of_quadcopter

https://www.researchgate.net/publication/271835155_Design_of_Qu adcopter_in_Reconnaissance

http://www.ijesrt.com/issues%20pdf%20file/Archive2017/May 2017/66.pdf

https://www.sciencedirect.com/science/article/pii/S18770509173004 79

https://iarjset.com/upload/2016/february16/IARJSET%208.pdf

http://www.iraj.in/journal/journal_file/journal_pdf/2257 14653685666972.pdf

https://core.ac.uk/download/pdf/47181924.pdf

https://ieeexplore.ieee.org/document/8794373