Simple GUI Wireless Controller of Quadcopter

This paper presents the development of remotely operated Quadcopter system. The Quadcopter is controlled through a graphical user interface (GUI) where the communication between GUI and Quadcopter is constructed by using wireless communication system. The Quadcopter balancing condition is sensed by FY90 controller and IMU 5DOF sensor. For smooth landing, Quadcopter is equipped with ultrasonic sensor. All signals from sensors are processed by Arduino Uno microcontroller board and output from the Arduino Uno microcontroller board is implemented to control Quadcopter propellers. The GUI is designed using Visual Basic 2008 Express as interfacing communication between the Proportional, Integral and Derivative (PID) controller and the Quadcopter system. The experiment shows that the Quadcopter system can hover while maintain it balancing and the stability is guaranteed. Moreover, the developed system is able to cope with load disturbance up to 250 g during the hover position. Maximum operated time of Quadcopter is six minutes using 2200 mAh Lipo battery and operate time can be increased by using largest battery capacity.


Introduction
Research and development of unmanned aerial vehicle (UAV) and micro aerial vehicle (MAV) are getting high encouragement nowadays, since the application of UAV and MAV can apply to variety of area such as rescue mission, military, film making, agriculture and others.In US Coast Guard maritime search and rescue mission, UAV that attached with infrared cameras assist the mission to search the target [1].Quadcopter or quad rotor aircraft is one of the UAV that is major focuses of active researches in recent years.Compare to terrestrial mobile robot that often possible to limit the model to kinematics, Quadcopter required dynamics in order to account for gravity effect and aerodynamic forces [2].Quadcopter operated by thrust that produce by four motors that attached to it body.It has four input force and six output states (x, y, z, θ, ψ, ω) and it is an under-actuated system, since this enable Quadcopter to carry more load [3].Quadcopter has the advantages over the conventional helicopter where the mechanical design is simpler.Besides that, Quadcopter changes direction by manipulating the individual propeller's speed and does not require cyclic and collective pitch control [3,4].

Related Work
Nowadays, studies on UAV has attracted researchers and academia due to its broad of applications.One kind of UAV is Quadcopter.The research related to Quadcopter covers the areas of design, control, stability, communication systems and collision avoidance.
The using of GUI for controlling of Quadcopter has been widely used.Reference [5] studied on designing GUI control of UAV based on genetic algorithm (GA).The GUI developed is multi remote control and multi button.Reference [6] learned GUI control of Quadcopter for test purpose.The GUI is analyzed using GA.Reference [7] investigated GUI for convenient detection and control of the leak bottle detection equipment and embedded in ARM processor.
Reference [8] focused their study on the 3-DOF attitude control free-flying vehicle.The characteristic to be heavily coupled with inputs and outputs, and the serious non-linearity appear in the flying vehicle and due to this non-linear control, multi variable control or optimal control for the attitude control of flying Quadcopter.Reference [9] developed of nonlinear model and nonlinear control strategy for a 6-DOF Quadcopter aerial robot.The nonlinear model of Quadcopter aerial robot is based on Newton-Euler formalism.Model derivation comprises determining equations of motion of the Quadcopter in three dimensions and seeking to approximate actuation forces through modeling of the aerodynamic coefficients and electric motor dynamics.Reference [10] is done research on control of Quadcopter by visual tracking using stereo camera.The motion of a Quadcopter is control based on visual feedback and measurement of inertial sensor.In this research, active markers were finely designed to improve visibility under various perspectives.Figure 1 is the structure of Quadcopter controller done in this research.Reference [11] worked on intelligent fuzzy controller of Quadcopter.A fuzzy control is designed and implemented to control a simulation model of the Quadcopter.The inputs are the desired values of the height, roll, pitch and yaw.The outputs are the power of each of the four rotors that is necessary to reach the specifications.Simulation results prove the efficiency of this intelligent control strategy.References [12,13] are done research to analyze the dynamic characteristics and PID controller performance of a Quadcopter.This paper is describe the architecture of Quadcopter and analyzes the dynamic model on it.Besides that, this paper also designs a controller which aim to regulate the posture (position and orientation) of the 6-DOF Quadcopter.

Quadcopter Model
In this paper the frame of Quadcopter is build using aluminum plate.It is two layer of shape aluminum plate and connects together with bolts and nuts as this will make the frame of the Quadcopter become rigid and light-weight.Weight of the Quadcopter is proportional with it hover ability.Less weight will increase hover ability of it with minimum power consumption.This Quadcopter frame consist of a minimum area that just enough to place all the parts such as motor, controller board and batteries.Figure 2 shows Quadcopter frame  mptio develop.
While the physical form of the Quadcopter develop is described in Figure 3.
To produce optimal performance of the Quadcopter, weight and thrust output of each motor used are calculated by using the motor calculation software provided by Motrolfly.These are obtained through key in the parameters of motor, power source and propeller size.

Quadcopter Mathematical Model
Schematic dynamical of Quadcopter is represented in Figure 1 and based this mathematical model of Quadcopter dynamics are derived [14,15].
Where, 1 is sum of the thrust of each motor.Th 1 , Th 2 , Th 3 and Th 4 are thrust generated by front, rear, left and right motor respectively.m is Quadcopter mass, g is the gravity acceleration and is the half length of Quadcopter.x, y and z are the three axis potion.The dynamics formulation of Quadcopter moving from landing position to a fixed point in the space is given as: where, is a matrix transformation, By applying the force and moment balance laws, Quadcopter motion formulations are given as in Equations ( 2) till (4).
  where i K is drag coefficient (assume zero since drag is negligible at low speed).
The angle movement of Quadcopter is illustrated in U lK I

Quadcopter Controller
In this paper, to control Quadcopter alti d embedded in Arduino e distance of Quadmunicate with electronic devices using images rather than text (10) tude motion, PID controller has been developed an Uno.PID control will maintain th copter altitude motion based on input from ultrasonic sensor.Ultrasonic sensor will sense the distance between Quadcopter and ground, then send this output signal to Arduino Uno board for controlling the throttle.Figure 5 shows the block diagram of Quadcopter altitude control.

Simple GUI Design of Quadcopter Control
The graphical user interface (GUI) is a type of user interface that allows users to interact or com (6) commands [16].In this work the GUI is de unicating tools between the human as operator and unication ess uni- [17].The PID controller is the m sign for comm Quadcopter movement.The command as input of the Quadcopter controller will be inputted by the operator through GUI.There are four movements of Quadcopter that will control.They are throttle for altitude movement, rudder for yaw movement, aileron for roll movement, and elevator for pitch movement.Figure 6 describes the Quadcopter GUI controller develops.Input data to Quadcopter control is send through wirel communication system.The XBee wireless comm cation module is used.The data is inputted using GUI and consist of throttle for altitude movement, rudder for yaw movement, aileron for roll movement, and elevator for pitch movement as in Figure 2. From GUI, data is transmitted to transmitter at computer and received by receiver at Quadcopter.Based on that data controller send command signals to Quadcopter propeller and Quadcopter responses are sensed using ultrasonic sensor and gyro to ensure achievement of controller objectives.Figure 7 describes the connection between Arduino Uno board and XBee board.

Quadcopter Wireless Comm
The PID controller was applied since it is one type of widely used controller form the PID algorithm can be represented by the transfer function below: ost common form of feedback.The PID controllers are today found in all areas where a control is used.Their useful functions are sufficient for a large number of process applications and the transparency of the features leads to wide acceptance by the users.On the other hand, it can be shown that the internal mode control (IMC) framework leads to PID controllers for virtually all models common in practice [17,18].PID control is an important ingredient of a distributed control system.
The PID algorithm is describe as where,  typically takes a value of 1/10.This type of controller is called interacting controller and it is easier to be tune manually [17].Figure 8 shows the the PID controller related to previous equation.

Result and Analysis
In order to verify the GUI controller develops, two tests have been done.They are the Quadcopter roll where, y is the measured process variable, r is th ence variable, is the control signal and e is the control point   Quadcopter can maintain it balance and stability till a some of output data is not in straight line, but most of data are in the range.
For the load 250 g and above, the Quadcopter cannot balance itself as represented in Figures 13 and 14.The

Quadcopter Pitch Axis Disturbance Test
The second test of Quadcopter is pitch axis disturbance test.The test is done in same method with previous test by applied varies amount of load to Quadcopter as a di turbance while Quadcopter is doing pitch axis hover.Table 1 shows the summary of the load amount as a disturbance test result for roll and pitch axis hover of Quadcopter.
From the table above, Quadcopter can maintain it sta-

Conclusion
Quadcopter and its GUI controller have been success fully constructed and developed.Based the test results opter co the co lance.The Quadcopter develope le to accept load disturbance undred and fi hovering position.
are three Euler angles representing pitch, roll and yaw.

Figure 4 .
The angle d  and d  are determined as the follow-

Figure 7 .
Figure 7. Xbee and Arduino Uno connection.(which is proportional to the integral of the error), and D-term (which is proportional to the derivative the error).ain K, tegral time , and derivative time .In general of The controller parameters are proportional g in i d

Figure 9 .
Figure 9. Roll axis hover test response for no load.

Figure 10 .
Figure 10.Roll axis hover test response for load 100 g load.Quadcopter controller response related to amount of load as a disturbance that is provided to it.mount of up to 200 g as in Figures 9-12.Even though

Figure 11 .
Figure 11.Roll axis hover test response for 150 g load.

Figure 12 .
Figure 12.Roll axis hover test response for 200 g load.

Figure 13 .
Figure 13.Roll axis hover test response for 250 g load.responses are spread away and not gather in straight line.Quadcopter is not able to balance itself and lost stability It esigned for roll axis hover is 200 g. .means the maximum amount of load of Quadcopter d described in Figures 15-20.

Figure 14 .
Figure 14.Roll axis hover test response for 300 g load.

Figure 15 .
Figure 15.Pitch axis hover test response for no load.

Figure 17 .
Figure 17.Pitch axis hover test response for 150 g load.

Figure 18 .
Figure 18.Pitch axis hover test response for 200 g load.

Figure 19 .
Figure 19.Pitch axis hover test response for 250 g load.

Figure 16 .
Figure 16.Pitch axis hover test response for 100 g load.

Figure 20 .
Figure 20.Pitch axis hover test response for 300 g load.

Table 1 . Summarize of disturbance test result.
. Hedrick, "A Mode-Switching Path Planner for UAV-Assisted Search and Rescue," Proceed-IEEE Conference on Decision and Control K