Documente Academic
Documente Profesional
Documente Cultură
Submitted by:
We would like to thank all our friends and relatives specially our parents
YES /-NO
who kept backing us up in all the times, both financially and morally and
also prayed for us throughout
We would also like to thank Dr.Umer Farooq and Sir Usman Rafique for guiding and
encouraging us to work hard and smart. We have found them very helpful and encouraging while
discussing the optimization issues in this dissertation work. Their critical comments on our work
have certainly made us think of new ideas and techniques in the fields of optimization and
software simulation.
We are grateful to the Allah Almighty who provides all the resources of every kind to us, so that
we make their proper use for the benefit of mankind. May He keep providing us with all the
resources, and the guidance to keep helping the humanity.
4
Abstract
There is a great need of search, rescue and surveillance assets in our country which are easy to
use regardless of operational area. We want to provide a solution by using unmanned aerial
vehicles (UAVs) for this purpose. Our aim is to make a UAV which is suitable to operate in any
terrain. We have used a quad copter for our project which is controlled using a transmitter and on
the other end there is a receiver connected to the microcontroller. Moreover our quadcopter is
equipped with a wireless camera in order to get real time footage of the crisis area, global
positioning system (GPS) in order to get real time location of the UAV and it is able to deliver
medical kit at the crisis site. We have also made the frame of our quad copter flexible for any
future modifications.
Table of contents
1 INTRODUCTION ERROR! BOOKMARK NOT DEFINED.
...............................................................1
................................................................3
................................................................4
...............................................................4
...............................................................5
................................................................6
...............................................................6
............................................................................
2.1 Aerodynamics................................................................................................................7
2.1.1 Aircraft Model.........................................................................................7
2.1.2 Vertical Flight Model............................................................................10
2.1.3 Quadcopter Model.................................................................................12
2.2 Motor and Propeller......................................................................................................15
2.2.1 Propeller................................................................................................15
2.2.2 Motor Control.......................................................................................16
2.3 Tx and Rx.....................................................................................................................19
2.4 Stabilization..................................................................................................................20
2.4.1 PID controller........................................................................................21
2.4.2 Kalman Filter........................................................................................24
3 PROJECT DESIGN.....................................................................................................25
3.1 METHODOLOGY............................................................................................................25
3.2 ARCHITECTURE OVERVIEW...........................................................................................26
6
3.3 Material selection.........................................................................................................26
3.3.1 Nylon.....................................................................................................27
3.3.2 Carbon fiber composite.........................................................................27
3.3.3 Steel......................................................................................................27
3.3.4 Wood.....................................................................................................28
3.3.5 Aluminium............................................................................................28
7
3.4 Frame components.......................................................................................................28
3.4.1 Central Hub..........................................................................................28
3.4.2 Spar......................................................................................................29
3.4.3 Package................................................................................................29
3.5 Frame design................................................................................................................29
3.5.1 Structure...............................................................................................30
3.6 Design Description......................................................................................................33
3.6.1 Motors..................................................................................................33
3.6.1.1 Brushless vs. brushed motors.............................................34
3.6.2 Propellers..............................................................................................36
3.6.3 Electronic speed controller (ESC)........................................................38
3.6.4Battery.....................................................................................................39
3.6.4.1 Lithium polymer batteries versus nickel batteries..............40
3.6.5 Transmitter and receiver.........................................................................41
REFERENCES.........................................................................................................................50
8
Figure 1.4. Classification of Aircrafts..........................................................................................4
9
Figure 2.27 Kp effect...............................................................................................................23
Figure 3.12 Fly Sky FS-T6 2.4GHz Digital Proportional 6 Channel Tx and Rx........................42
10
1 Introduction
Unmanned aerial vehicles (UAVs) are crafts capable to flight without a human pilot control.They are controlled remotely by
an operator, or can also be controlled autonomously by following programmed paths using the GPS data as well. Such aircrafts have
already been used by military for recognizance flights and now a days we can see a sudden increase in their use by every major
country and for a lot of applications, it is an estimate that in future 90% of US Air force will consist of drones[1]. Further use of UAVs,
specifically as a tool for surveillance, warrant continued development of UAV technology.
A quadcopter helicopter is an aircraft whose lift is generated by four rotors. The control of aircraft is accomplished by varying
their speeds of these four motors relative to each other. Quadcopter crafts naturally demand a sophisticated control system in order to
make a balance flight. Uncontrolled flight of a quadcopter would be virtually impossible by human operator, as the dynamics of such a
system demand constant adjustment in the speed of four motors simultaneously with respect to the change in different parameters
affecting the balanced flight of quadcopter. Controlling a quadcopter is very important and its nearly impossible without a computer-
based control system in order to make quick decisions for all type of disturbances. The availability of high performance sensors and
small size controllers has resulted in revival of quadcopter concept.
Our idea is to make a quadcopter frame (body) suitable for adding multiple gadgets which can be used for a number of
applications mainly search, rescue and surveillance. The main goal of our project is to make a quadcopter suitable for surveillance and
rescue operations, at the same time our quadcopter body is flexible for any further addition of gadgets and units for desired
applications, it will be able to lift a payload less than 1kg which can be any operating unit for a specific purpose or any other type of
payload.
1.1History of Quadcopter
In 1907 the first quadcopter aircraft construction was finished It was named Breguet- Richet Gyroplane No. 1 (Figure 1.1), a
quadcopter with four propellers of 8.1 meters in diameter each and its weight was 578 kg including the weight of two pilots and with
50 hp (37.3 KW) internal combustion engine, which drove the rotors through a belt and pulley system. Their main concern was to
make a vertical fight, because there were no aircrafts which were capable for making vertical flights till that time and the applications
of vertical flight were very important and necessary. This experiment was unsuccessful at that time but in 1932 Louis became one of
the pioneers of helicopter development.[2]
1
Figure 1.1. 3D Model of Gyroplane No. 1
In this period there were a lot of attempts made by many other engineers like Oemichen, who designed six different vertical
lift machines but they failed to make vertical takeoff from ground, so he added hydrogen -filled balloons in order to handle the
stability and lift. His second aircraft, Oemichen No. 2 (Figure 1.2) had four rotors and eight propellers, five of these propellers were
meant to stabilize the aircraft, another for steering and finally two for forward propulsion. This design achieved a considerable degree
of stability and controllability.
Later in 1956, a quadcopter helicopter prototype called Convertawings Model A (Figure 1.3) was designed both for military
and civilian use. Is was controlled by varying the thrust between rotors, and its flight were a success, even in forward flight.[2]
2
Figure 1.3. Covertawings Model A
Quadcopters are available to public use both for researchers and hobbyists. This is only possible due to availability of cheap
electronics and lightweight resistant materials available to the public. Their demand is increasing day by day in different areas like
surveillance, payload delivery etc.
3
1.3Advantages of Quadcopter
Vertical takeoff and landing (VTOL) have several advantages over fixed-wing planes. They do not need any runway for
takeoff and landing and they are can be deployed in almost any terrain. Quadcopter specially have multiple advantage over
helicopter, the most important of which is reduced mechanical complexity and higher safety. Advantages may be summarized as
follows:
i. No gearing required between the motor and the rotor.
ii. No variable propeller pitch required for changing the angle of attack.
iii. No rotor shaft tilting required.
iv. Four smaller rotors instead of one big rotor resulting in less stored kinetic energy and
thus less damage in case of accident.
v. Minimal mechanical complexity, quadcopter require less maintenance as compared to
helicopter and planes.
The main advantage of the quadcopter over a helicopter is simplicity in building, the frame of quadcopter is much simple
as compared to the helicopter and there are no complexities because the only moving parts in quadcopter are the four motors. No
servo control is necessary to control the pitch of the motors as all movement is controlled simply by varying motor speed.
1.4Classification of Quadcopter
Quadcopters are classified into two types based upon their axis and orientation , the motor and propeller direction is same
and even the design is almost same but configuration is different. They are
> Cross-type
> X-type
4
1.5Aims and Objectives
The main aim of our project is to make a UAV from the base in order to get better understanding of the designing and
modeling of UAVs, then transform the UAV into a useful surveillance, search and rescue asset. Our UAV will have no limited
base for payload so that it could be able to lift any shape of payload and the modification process is easier in order to add any
other gadgets in the UAV other than ours. Initially our UAV will deliver the medical kit from the control station to the target area
but we also want to add some other useful gadgets in future. Objectives are outlined as follows:
To gain better understanding about quadcopter.
To know the relationship of battery-motor-prop combination.
To understand the stabilization system of quadcopter.
To make quadcopter suitable for search and rescue operations.
To make surveillance system easier using UAVs.
To design a multipurpose UAV in which modification is easier.
1.6Scope of study
The scope of study is as follows:
1. Types of quadcopter, applications and developments are studied.
2. The structure of quadcopter is studied.
3. Stabilization sensors and interfaces studied.
4. Control system of quadcopter is studied.
5. Stabilization algorithm for quadcopter studied.
6. Electronics to control and interface devices studied.
7. Aerodynamics of flight studied.
8. Structural stability of quadcopter studied.
In this project we mainly studied four areas aerodynamics for understanding the flying mechanism of quadcopter, computer
programming to write algorithms for control, stability and other features, control system to implement stabilization features in
quadcopter for a smooth flight by detecting and removing error, electronics in order to interface multiple modules and circuits
with each other for final model. This shows the relevance of this project with the subjects we studied in university.
1.7Outline of Project
There are six chapters in this project; Chapter 1 presents the basic introduction about history of quadcopters, some basic
knowledge, aims, objectives and scope of study. In Chapter 2, background and literature review of the project is discussed.
Chapter 3 presents all the requirements for this project in order to make it operational. Chapter 4 presents the design of
quadcopter and other features necessary in the project. Chapter 5 involves the final implementation of ideas and knowledge
practically and methods used. Chapter 6 presents the initial testing and future recommendations for development in this project.
5
2 Background and Literature Review
First we have to leam and understand all the major portions of our project like frame , control system and stability. In
order to do that we needed to do a lot of research in these areas so we could decide the specifications of our project efficiently. We
studied all these areas to reach our final goal by combining them and to make them useful. Some of the study and research is not
related to our engineering department but we had to do that in order to complete our project.
2.1Aerodynamics
The most challenging aspect for us was to understand the aerodynamics in order to make a UAV operational because
without the knowledge of aerodynamics we would not be able to make the UAV take off smoothly. In order to do that we first
understood the physics of flying and then we learned the way how this study is applied in different aircrafts like airplanes,
helicopters, multi-rotors etc.
2.1.1 Aircraft Model
In the diagram (Figure 2.1) we can see that there are four major forces acting on any aircraft in order to make a flight, in
order to understand the physics of flying we have to understand these forces first and by using them we can cancel out the
opposing forces in order to make the useful forces to dominate so the aircraft can make a flight by overcoming the factors which
are stopping them to fly [2].
The forces we want to exert on the aircraft in order to make it fly are thrust using the motor and propeller combination but as we
know Newtons third law Every action has an equal and opposite reaction, so in order to oppose the forces that we exert on the
aircraft in order to make it fly as a reaction we experience two opposing forces of Weight and Drag. Weight is the original weight
of aircraft which opposes the aircraft to lift upwards and drag is the force that opposes the aircraft to move forward in horizontal
direction. We have to increase the forces on both vertical and horizontal axis of aircraft in order to make it fly in air. Forces acting
on vertical axis are lift and weight and forces acting on horizontal axis are thrust and drag. In (Figure 2.2) the diagram of wing
design we can see how lift is created in aircraft in order to lift it up in air.
6
The wing of aircraft is designed in such a way that it is aerodynamically feasible to lift the whole mass in the air. The
incoming air form the propeller builds up two pressure conditions on the wing of aircraft. On the upper side of the wing there is
high speed air because of which the pressure on the upper part of wing decreases and on the lower side of wing there is low speed
air which increases the pressure on the lower portion of the wing. The Bernoullis Principle helps us to understand the lift
process of aircraft. Because of this pressure difference on two sides of the wing, the higher pressure side of wing pushes it
towards the lower pressure side because of which the wing lifts up and along with the wing of aircraft the fuselage also lifts up.
Using this principle the whole aircraft lifts up in the air vertically[2].
For forward movement along the horizontal axis there are again two forces. Thrust acts to pull the aircraft forward and as
a reaction Drag acts to pull the aircraft backward, in order to move forward the thrust created by the motor and propeller should
be greater than drag. In this way after reaching the point where the thrust and drag are the same the aircraft is free to move in
either direction by exerting any more force on the thrust or drag, this allows the forward movement of aircraft. By the combined
effect of thrust and lift the aircraft fly.
7
F Thrust
ratio = = ---------------= --------
W Weight m.g From this diagram (Figure 2.3) we can see the effect of thrust, lift, weight and drag in the
vertical and horizontal movement of aircraft, vertical movement is possible due to force F
because of thrust, the reaction force D because of drag and lift L which also depends upon F because the air speed is exerted on the
wing using the motor thrust and then there is weight W which is the actual weight of the aircraft and it opposes the lift L. The mass of
aircraft is m, the acceleration due to thrust is a and the acceleration due to gravitational for acting on the aircraft is g which decreases
as the aircraft increases its height. The acceleration due to thrust will be divided into two parts, horizontal and vertical acceleration.
m, a a
a v = vertical acceleration
From these equations we can see the factors involve in vertical and horizontal movement of aircraft as well as in horizontal movement
of aircraft, by representing these forces in rectangular coordinates (Figure 2.3), we can understand the basics of flying. Our project is
related with the vertical flight model because airplane needs a runway in order to takeoff but a quadcopter is a vertical flying aircraft
which is very much similar to the helicopter in operation.
8
2.1.2 Vertical Flight Model
Quadcopter is mainly a vertical flight aircraft and as a reference we can take the helicopter because it is also a vertical flight
aircraft and it experiences the same forces during flight and we can get a better understanding of vertical flight problems through this.
We will take helicopter model as a reference to get awareness of vertical flight problems and their solutions so after understanding
them we will be able to relate them to the quadcopter.
9
helicopter move 360 degree along the x-axis. Yaw acts on the helicopter and make it move along
z-axis during flight.
We have seen previously the pitch and roll effect on helicopter and measures taken in
order to overcome them and to make smooth movements of helicopter possible. As an effect of
the movement of main propeller in order to liftoff, pitch and roll, it moves in one direction
creating torque in one direction and in order to oppose this movement there is a counter torque
created in opposite direction which cause the helicopter spin in one direction. In order to
compensate this counter torque we use a small propeller to keep the helicopter in a stable state by
moving it in both directions. So finally the yaw effect of helicopter is controlled using this
method.
2.1.3 Quadcopter Model
Quadcopter is our main concern but now as we understood the aerodynamics of airplane
and helicopter this is very easy for us to map out these effects on a quad copter. Quad copter is
also a vertical takeoff machine and it is very much similar to the helicopter in terms of the forces
acting on it but differs in terms of methods used to control them. The major difference in
quadcopter and helicopter is that in quadcopter the roll, pitch, yaw, all movements, takeoff and
landing is done by varying the speed of four motors.
Figure 2.9 quadcopter theoretical model
We can see in the diagram (Figure 2.9) that there are four rotors and each of them
produce torque in one direction, is the torque produces by rotor-1 and in order to compensate
7k T3 T2 T4
there is a counter torque produced by rotor-3, in the same way there are and
produced by rotor-2 and rotor-4 which produce counter torques in order to make quadcopter fly.
The effects of roll and pitch on quadcopter are same as on helicopter but in quadcopter
we control them by changing the speed of motors in order to get stability, like I will explain one
scenario here in case of pitch control, if the quadcopter tilts towards one side due to external
disturbances or un-equal weight distribution [4]. We will increase the motor speed on one side of
quadcopter and decrease the speed of motors on the other side of quadcopter to compensate the
torque effect, by doing this we will remove the pitch effect on the quadcopter.
Figure 2.11 Movement of X-shaped quadcopter
Here in this diagram (Figure 2.11) we can understand the movements of quadcopter. For
forward movement we will increase the speed of rear motors and decrease the speed of front
motors and in order to move the quadcopter back we will increase the speed of front motors and
decrease the speed of rear motors in this case the lift on the front side of quadcopter increases and
lift on the rear side of quadcopter decreases which makes the quadcopter move backwards. In the
same way movements are made possible in each direction as there is no swash-plate so all of the
movements are done by changing the speed of motors. In order to lift up we will increase the
speed off all four motors and this will lift the quadcopter up and when we want to land it we will
simply decrease the speed of all four motors [4].
The main problem for us is to control the yaw of quadcopter. The yaw mainly occurs as a
response of the motors movement and these forces the quadcopter to spin in one direction, yaw
control is done increasing the speed of motors in diagonal in order to compensate the spin
produced by counter torque effect.
2.2Motor and Propeller
The motor speed control is the most important task in order to make quadcopter fly
because not only the liftoff and landing is done through the motor speed but all the movements
are made by varying the speed of motors and most importantly the stability of quadcopter is also
done by motor speed control. In order to control the motor speed we use electronic speed
controllers (ESCs), the combination of motor and propellers is the key factor in creating thrust
and the torque is also controlled by varying the speed of motors and by changing the orientation
of propellers.
2.2.1 Propeller
The propeller selection is also a very important task, there are multiple scenarios for this
like if we want to make a quadcopter for high speed applications then we will use a propeller of
small size but high pitch, this will make the quadcopter move with high speed but the lifting
capability is less because of small size.
A B C D E F G H I J
K l
Figure 2.13 Propeller comparison
Here we have shown the comparison between different propellers in order to deliver the
knowledge we have gained in order to select the propeller that fits for our purpose. As we do not
need our quadcopter to move at high speed, our main purpose is to lift the payload and deliver it
to the target for that reason we need a propeller which is fit for load lifting capability, so
weselected 10*4.7 propellers. The diameter as given is 10 inches and pitch is 4.7, after each
complete revolution the propeller will travel 4.7 inches in the air. The other main concern is to
set these propellers opposite to each other in order to control the spin of quadcopter by cancelling
the counter torque produced by each motor. For this purpose we will set the propellers on the
same axis opposite in orientation to each other, if one propeller is clock wise (CW) than the
propeller on the opposite side of same axis will be counter clock wise (CCW) orientated in order
to cancel the torque effect.
2.3Tx and Rx
The transmitter in our case is a six channels and 2.4 GHz radio frequency (RF)
transmitter, time division multiplexing (TDM) is done in the transmitter and then demultiplexing
at the receiver end, the transmitter gives time slops of 2ms on each channel, in this way the data
from every channel is sent to the receiver and the value range up because of the channel division.
Channel output sequence
i i i i i i i
Channel 1
Channel 2
__1
1_ _ _channels
Figure 2.20 TDM ini
_ _ _ _ _!_ _ _ _ _ _ _ _ _ _ _ !_ _ _ _ _ _ _ _ _ _ _ !_ _ _ _ _ _ _ _i_ _ _ _ _ _ _ _ _ _ _ _
i L
i
i
In this diagram we can see the time slots for each channel and these will
i i i i
i i j
____r i
! !
i i
!
Channel 4 i i i
I
i i i i r l i i i
Channel 5 I I I l ! i i
i i 1 1 i
1
! ! ! -------------------1
i i i > i
Channel 6
__
i
n i l i
Data clock
ji_h_h_Ji _h_r i i
2.4Stabilization
For stabilization we use Inertial measurement Unit(IMU) which consist of an accelerometer, gyroscope and magnetometer.
These sensors are used to stabilize the quadcopter.
Accelerometer is used to send the movement data of quadcopter to the controller and the data is processed in order to stabilize
the movement of quadcopter [10]. (Figure 2.21) we can see in the diagram that accelerometer is like a box and there is ball which
gives us the movement of quadcopter which is then send to the controller in form of voltage data.
GROONC
[13]
Figure 2.212.22
Figure Accelerometer
Gyroscope[9]
After that
The there is gyroscope
magnetometer which is
is an electromagnet which gives us data about the orientation of the quadcopter by comparing the effect of earth
alsomagnetic
used tofield
detect
uponthe error in
the magnetometer. The data is then processed to make the orientation of quadcopter right [9]. Figure 2.23
movement
shows usbythecalculating the tiltmagnetic
effect of external in field upon the electromagnet in the magnetometer.
the movement but the more important
thing is that the gyroscope data is
more accurate for detecting minute
tilts or errors in the movement
(Figure 2.22).
Figure 2.23 Magnetometer [9]
By excessive experimentation it is observed that the gyroscope gives us more accurate measurement of angle for the first 25%
of tilt and the accelerometer gives us more accurate measurements of angle after the 25%, so in order to get the optimum angle we
combined the gyroscope and accelerometer data in the algorithm in order to calculate the accurate angle.
2.4.1 PID controller
Proportional Integral and Differential (PID) controller is used to correct the error [12] (Figure 2.24). We can see that it first
sets the set-point which is where we want the state to stay and then it calculates the error in order to provide the output to remove the
error by keeping the state close to the set-point.
We can see that it sums up the proportional (Kp), integral (Ki) and differential (Kd) in
order to give optimum output to remove the error [7].
By increasing the Kp value the response upon the current error increases as we know
the Kp is proportional effect.(Figure 2.27) [7].
The tuning of these parameters is main task in order to get best output to keep the
quadcopter stable, we have experimented a lot on these parameters in order to get optimum
response.
2.4.2 Kalman Filter
The data from the sensors is very much discontinuous and in order to bring continuity in
the data we use Kalman filter so it could be efficiently processed by PID. What kalman filter
does is that it takes the current value from data and the previous after that it predicts the next
value itself in order to eliminate the discontinuity of sensors data. (Figure 2.28)
3 Project Design
Project design is mainly concerned with the construction of frame suitable for carrying
payload and for future modifications. This area also requires a lot of research in order to make a
suitable frame because frame is the most basic component of our project and it includes multiple
bases for control and communication and arms to hold the motors. The frame should be light
weight and strong as well in order to lift the load and with stand the resistance from air.
Following are the main features of project design.
3.1Methodology:
Arduino microcontroller and software is used for the control and command for
our project we used Arduino uno for our project as it has wide range of libraries
available (like gps, survo, nrf24l01) and online help is easily available. And Arduino can
be powered either by giving it DC voltage or by providing it power from the circuit
board to its Vin and ground pins.
And for stabilization point of view we are using (microprocessor unit) MPU
6050 sensors, as stabilization is the main feature of our project because we cannot have a
flight without stabilizing our UAV. MPU 6050 has multiple sensors including gyroscope,
accelerometer and magnetometer which help in providing accurate change in movements
of our quad-copter so we can make decisions accordingly. We are using inertial
measurement unit GY-521 (IMU GY-521). It has 6 DOF as accelerometer and gyroscope
sensors reads in X, Y and Z axis giving us 6 degrees of freedom. And we are using a 2.4
GHz transmitter and receiver for flight and communication and a wireless camera is also
used for real time video feed to the ground station.
3.2Architecture Overview:
The design of the our project is illustrated graphically with the help of a block diagram shown in following figure
RF Trgnjmittc*
3.3Material selection:
Payload 1 Controlle
Controll Payload 2 ESC-1 P^OCOf-
er r ESC-2 1 Motor-
Stun gurv3
ESC 3 2 t^otor
Smiot> ESC-4 3 Motor-
-i 4
We had number of materials in mind for making of our quad-copter frame like plastic, fiber glass, steel, aluminium and wood.
These materials have different types of mechanical properties. List of different materials is and their mechanical properties are
compared in below table.
Materials Modulus of Ultimate tensile Density
3.3.1 Nylon:
Nylon is a polymer material that is very light and easy to manufacture. It is abundant and easy to produce, however,
it is not very stiff , and its mechanical properties are incredibly sensitive to environmental conditions. Ultra violet rays will
breakdown the molecular structure, compromising its strength. Humidity also severely compromises its strength: a relative
humidity of 50% cuts its ultimate tensile strength (UTS) in half.
3.3.3 Steel
Steel is an alloyed metal, which highest UTS if the materials studied, beating the competition by a factor of two or
more, and has the second highest stiffness. It is however by far the heaviest, nearly three times as heavy as aluminium. Its
increased density requires more time to machine making it a difficult material to use.
3.3.4 Wood
Wood is most used structural material in the world. It is light weight and easy to work
with but it is not as strong as the other surveyed materials. It is less elastic and breaks easily as
compared to other materials. Red oaks UTS along its transversal axis is merely 7.2 MPa. Not to
mention the countless environmental issues to consider. Ultra violet rays break down the fibers of
the wood, and there is potential for not
3.3.5 Aluminium
Aluminium is an alloy of aluminium that has been developed especially for aerospace
applications. It is good compromise between strength, rigidity, and weight. Although it is not as
strong as steel, but weighs considerably less and it is not as light as carbon fiber, but does not
have the same directional load dependency [11].
In our project, the aluminium was selected for the frame because of its good strength to weight
ratio as it is properly, low price and easily availability.
3.4Frame components
Frame is designed to be as light as possible to utilize as much of thrust capabilities from
motors as possible. The minimum length of the spar is 14 to place appropriate distance between
propellers [11]. In addition spar had to be sufficiently strong to deal with the moment forces
exerted on the arm.
3.4.3 Package
Package is the key component of our project. It includes the components we need to
drop at our destination it has to be light weight and should also accommodate required
components of package in the box. So material we selected for it is polythene box as it is
extremely light weight will also provide required strength for components to hold inside the box
it is aligned in the centre of our frame, causing no issues during flight due to unbalancing,
3.5Frame design
The structure of the quad-copter needed to satisfy multiple requirements. Most
generally, it needed to hold the various parts of the quad-copter together while remaining as light
weight as possible. Additionally, the structure needed to have a modal nature of frequency
sufficiently large to avoid resonance with vibrations caused by rotations of the propellers and
motors [8]. It must be decided upon for the radial compression members that could provide the
minimal strength required of the compression members while maintaining the stiffness requires
preventing from buckling.
In frame design aluminium is chosen in order to set lighter weight. In this type, the
main spar has the length of 28 inches. The motor is placed 14.4 inches from the central hub. The
central hub is 6 inches circular fiber glass sheet
3.5.1 Structure
There are 2 types of quadcopter namely +plus type and x cross type. In cross type
controlling is simple while Pairs of motors are controlled in cross type.
The following figures show the types of quadcopter. The cross type is chosen for the quadcopter.
In plus type structure the frame is designed like a + sign and angle between two spars is 90
degree and two adjacent motors have opposite motion of propellers i.e. if one motor is moving
clockwise then other motor will be moving counter clockwise and vice versa.
When a motor rotates lets say in clockwise direction it will produce torque in counter clockwise,
opposite direction of its motion, so main purpose of having two adjacent motors rotations
opposite is to produce torque in both directions so that it would be cancelled out and should not
produce any yaw movement. Basic structure is illustrated in following figure.
In cross type frame is designed like a x sign and angle between two spars is 90
degrees. In this type also we have rotations two of adjacent motors is opposite to each other to
overcome the torque produced by the motors as opposite rotations will produce opposite torques
causing them to cancel each others effect.
Figure 3.3 X type structure
QUAD QUAD
+ X
Figure 3.4
CLOCKWISE ROTATON Plus vs X-configuration
COUNTER-CLOCKW SE ROTATON
USE PUSHER PROPELLER USE NORMAL PROPELLER
Dimensions:
3.6Design Description
We used AutoCAD Software to make the design of quadcopter, which shows that there
are two arms of 2.3ft length and base of 6 inches and in (Figure 3.5a) the diagram we have also
shown the controller, battery and other equipment used. Following are the modules constituting
the product to be developed. Please note that we are documenting only the salient properties and
methods of each module to keep the description simple and more readable.
3.6.1 Motors
There are several options available in motor selection. Not only are there numerous
brands to select from, but motors seem to lie in the general categories. These categories include
commercial brushed motors, commercial brushless motors and hobby supplier brushless motors.
Hobby supplier brushed motors are also available, but in limited sizes. The principal concern in
motor selection is power output versus motor weight, as any weight added will require power
expenditure to keep it aloft, which is a secondary desire for reliable and long term performance.
In the early days of quad-copter construction, it used DC motors or brushed motors.
These types of motors have serious disadvantages. The first is that they have a very short
lifespan. This lifespan was further shortened by techniques used to shorten their weight. Weight
was saved by ignoring limited power to the motor which would severely curtail its lifespan. The
motors would slowly wear out and not offer the thrust it was once capable. This would cause the
other motors to have to cut back on thrust to compensate for the bad motor, and as a result the
motors would only be as good as weaker one. The other disadvantage is that because brushed
motors are designed to be driven at very high speed, a gearbox had to be used to apply the
appropriate speed to the propeller. This would add additional weight and would offer another
place for the vehicle to fail.
A survey of different motors, available motor types was conducted. It was concluded
that DC motors do not have sufficient power-to-weight ratios to produce enough lift required to
carry the UAV. The DC motors could be geared down to turn large rotors, but this would increase
the size of the vehicle. Hence a brushless DC motor that possesses the appropriate features was
selected for the design. Given a fixed payload consisting a structural, controller, and power
subsystems, motors weight is the only variable that parameterizes the total mass of the system.
The power output of a motor was compared to the power requirements for lifting the total mass
of the craft in order to select an appropriate motor-rotor combination.
3.6.1.1 Brushless vs. brushed motors
Brushless motors prove to be a much better alternative. A brushless DC (BLDC) motor
is a synchronous electric motor which is powered by different current electricity. It has an
electronically controlled communication system, instead of a mechanical communication system
based on brushes. In such motors, current and torque, voltage and (revolution per- minute) RPM
are linearly related. BLDC motors offer several advantages over brushed DC motors including
higher efficiency and reliability, reduces noise, electromagnetic interferences. Brushless motors
do not require mechanical contact between parts to supply current. This greatly reduces wear and
tear on the motor [5]. They do however require an electronic speed controller to supply three
alternating current signals. These motors do not require the use of a gearbox.
position sensors.
speed/torque
flat- as it enables working at all speeds moderately flat at higher speed, brush
characteristics
with rated loads. friction increases, thus it reduces
torque.
Efficiency
Speed range high- as no
Higher- there is no voltage
mechanical drop across
limitation Moderatemechanical limitations by the
the Lower-
imposed
brushes.
by brushed/ commutator. brushes.
Rotor inertia Low, because it has permanent magnets on Higher rotor inertia which limits the
Control the rotor.plus
Complex This improves the dynamic Simpler
expensive. dynamicand
characteristics.
inexpensive.
response.
Control requirements A controller is always required to keep the Controller is only required for variable
motor working. The same controller is speed.
used for variable speed control.
3.6.2 Propellers
The propeller is the thrust producing component on the quad-copter. A propeller is a
type of fan that transmits power by converting rotational motion into thrust. Design of the airfoil
for the propellers is highly studied and coveted engineering secrets and has been used for more
than a century. Over the years many classes of airfoils have been developed. Each design created
for different applications, producing different flight specifications. For the RC quad- copter
application there is only one class, the small scale fixed-pitch rotor blade. The miniature quad-
copter most commonly uses a twin-blade propeller for each of its motors. The twin-blade design
is light and provides excellent mission endurance. Assuming compressibility effects are
negligible the best airfoils have high-aspect ratio, which increases lift. In aerodynamics, however,
maximizing lift is only important as minimizing drag. A high lift to drag ratio is desirable.
There are two types of propellers used in quad-copters.
Pusher type for clockwise rotation, and
Tractor type for counter-clockwise rotation.
There are different kinds of propellers recommended by the motors, which have been described
above. A higher RPM of the propeller gives higher speed and manoeuvrability, but it is limited in
the amount of weight it will be able to lift for any given power. A larger diameter or higher pitch
will draw more power at the same RPM, but will also produce much more lift. A slow rotating
propeller is used when we have a motor with less revolution but can provide more torque. Using
a larger or higher pitched propellers will give a same lift to a higher rotating one of the
length/pitch. We choose 10x4.7 propellers, which are more appropriate for our vehicle such as
excessive thrust requirement, acceptable amount of current drawn by motor with that propeller,
the power consumption is also between the acceptable limit and by using 10x4.7 is also match for
the time flight which we expected.
Figure 3.8 propellers used in project
Dimensions
3.6.4Battery
Choosing the correct battery a quad-copter is time consuming and difficult. The
batteries that are generally used are NiMH (nickel). Nickel batteries present several problems.
They do not contain energy to give an extended flight time. Roughly five to six minutes of flight
time is produced during normal flight before the battery gives up. Operating the quad-copter
takes a lot of practice and patience you may have to charge battery many times before even
achieving a stable hover. Another disadvantage of nickel batteries is inconsistent discharging
from numerous battery drains. This results in quick drops in voltage towards the last life time of
a battery, which can cause instability in our motors. The last of our consideration when choosing
a battery was its weight. The battery is the heaviest component on the quad-copter, possibly
outweighing the rest of the components on the UAV.
3.6.4.1 Lithium polymer batteries versus nickel batteries
The development of lithium ion polymer packs is an extraordinary improvement in
battery technology, slowly rendering its cheaper counterpart, nickel, obsolete. The Li-poly packs
test very consistently, with the random drops in the voltage a thing of the past. Li-poly batteries
area also three times more energy dense than nickel batteries; consequently, they have a lower
weight, which increases flight time dramatically [6]. A Li-po battery solves the majority of
issues with nickel batteries, although it has some of its own.
The lithium batteries are very expensive. A model with 11.1V and 8400 mAh costs about $50
plus. The Li-po batteries are so energy dense there is a possibility that they will catch fire if used
casually which can ruin the battery. Running a high current through such an energy dense battery
can be very dangerous.
Another option we had was to connect several smaller batteries in a configuration the one
described above in a 3s li-Po packs. The issue with that configuration is the batteries need to be
discharged at the exact same rate. If one cell performs slightly better than others and drains
slower, the cell configuration becomes unbalanced, accumulating charge with each charge and
discharge. This can result in the pack actually catching fire in addition to lowering performance
on the unbalanced cells however with the computing system of the batterys charge can be
controlled.
Nickel batteries need to be completely discharged often to their charging capacity
because they develop memory or voltage depression characteristics. An easy way to assure the
battery is fully discharge is to allow the UAV to continue running after the batterys power has
been depleted past flight capability [6]. Contradictory, Li-Po packs cannot be discharged too
mush. There is a cut-off point where the battery should not be used any more even though if
there is a little energy left. To avoid the cells being discharged too much discharging rate should
be kept in mind while operating.
So in short Li-Po battery is best selection for this project.
Dimensions
W: 7.5, H: 8, D: 2.5
Weight
1.7lb
Modulation
1 GFSK
pulse width
1.5 ms
Table 3.5a transmitter specifications
Receiver type 6-channels
Weight 0.075lb
Figure 3.12 Fly Sky FS-T6 2.4GHz Digital Proportional 6 Channel Transmitter and Receiver [19].
4 Implementation
Arduino microcontroller and software is used for the control and command for our project. The basic implementation of our
project is shown in the following figure showing different components and working of these components we implemented our project
in five different steps which are highlighted below.
IMU
Gyro & Acc
SCL SDA
PWM
Figure 4.0 basic block diagram of quad-copter working
Transmitter
2.4 GHz MC
RF Receiver ( A rUd u i n o )
RData-^
2.4GHz
4.1.3 Stabilization:
Stabilization is the main feature of our project as it is very difficult to have a flight without crash in absence of stabilization.
We used IMU GY-85 sensors and kalman filter and PID controller [16].
Inertial measurement Unit (IMU) which consist of an accelerometer, gyroscope and magnetometer their sensors are used to stabilize
the quadcopter.
Accelerometer is used to send the movement data of quadcopter to the controller and the data is processed in order to stabilize
the movement of quadcopter [10]. We can see in the diagram that accelerometer is like a box and there is boll which gives us the
movement of quadcopter which is then send to the controller in form of voltage data[13].
After that there is gyroscope which is also used to detect the error in movement by calculating the tilt in the movement but the
more important thing is that the gyroscope data is more accurate for detecting minute tilts or errors in the movement. The
magnetometer is an electromagnet which gives us data about the orientation of the quadcopter by comparing the effect of earth
magnetic field upon the magnetometer [9]. The data is than processed to make the orientation of quadcopter right
PID is a proportional integral and derivative controller is a control loop feedback system that is mostly used for error detection and
correction. Multi-copters and quad-copter uses this controller for stability realization. It first sets the set-point which is where we want
the state to stay and then it calculates the error in order to provide the output to remove the error by keeping the state close to the set-
point.
It sums up the proportional (Kp), integral (Ki) and differential (Kd) in order to give optimum output to remove the error. In quad-
copter tuning we initially set Integral gain and Derivative gain zero then start increasing proportional gain and see quad-copters
response against that at first with low proportional gain quad-copter oscillates back and forth, during tie down stability test, by
increasing its proportional gain these oscillations frequency decreases and we keep tuning its proportional gain until it gives its best
response against that which is not stable yet. After getting its optimum response we start tuning derivative gain and see its response
against each gain value usually in our case it stated showing high frequency oscillations at first but after increasing a little it stated
showing reasonable result after getting a derivative gain we play with integral gain which almost makes it stable after increasing a
little gain.
We also use kalman filter which takes the data from the controller which is very much discontinuous and in order to bring continuity
in the data we use Kalman filter so it could be efficiently processed by PID, what kalman filter does is that it take the current value
from data and the previous after that it predicts the next value itself in order to eliminate the discontinuity of and gives better result by
predicting future error.
Initially we had problems in obtaining a stable flight so we worked again on our frame as it was causing vibrations during flight
testing. So we moved on to fiberglass for the central hub and we also made fiberglass bases for motors, as they perfectly fits on the
base, causing less mess and more stiffness in our design.
[2] K. Munson. (1968). Helicopters and Other Rotorcraft Since 1907 [Online]. Available:
http://aviastar.org/helicopters_eng/oemichen.php
[5] S. W. Colton. (2010, June) Design and prototyping methods for brushless motors and
motor control. Massachusetts, United States. Accessed: October 2012. [Online].
Available: http: //web.mit.edu/scolton/www/SCThG.pdf
[6] P. Energy, Battery types: Which batteries to use? accessed: October 2012. [Online].
Available: http://www.pureenergybattery.com/pdf/batterytypes.pdf
[7] Bouabdallah, S., Noth, A. and Siegwart, R. "PID vs LQ Control Techniques Applied to
an Indoor Micro Quadrotor". In Proceedings of
the IEEE International Conference on Intelligent Robots and Systems,
Sendai, Japan, 2004.
[8] P. Pounds, R. Mahony, P. Hynes, and J. Roberts, Design of a four-rotor aerial robot, in
Australasian Conference on Robotics and Automation, vol. 27, 2002, p. 29.
[9] C. W. Kang and C. G. Park, Attitude Estimation with Accelerometers and Gyros using
Kalman filter, proc. Of EU cont. conf, Hungary, (2009).
[10] M. Pedley, Tilt Sensing Using a Three-Axis Accelerometer, document
number, AN3461, Rev. 6, 03/2013
[11]H. Lim, J. Park, D. Lee, H.J. Kim, Build your own quadrotor 2012
[13] P. Martin and E. Salaun, The true role of accelerometer feedback inquadrotor
control, in IEEE International Conference on Robotics and Automation, 2010, pp.
1623-1629.
[15] brushed motors vs brushless, radio control tips, January 2015 [Online].
Available: http://www.radiocontroltips.com/brushed-motor-v-brushless-motors/
[16] A. Kivrak, Design of control systems for a quad-rotor flight vehicle squipped
with inertial sensors, M.S. thesis, Atilim University, 2006.
GPS
GPS Transmitter:
#include <SPI.h>
#include <nRF24L01p.h>
#include <SoftwareSerial.h>
#include <TinyGPS.h>
nRF24L01p transmitter(7,8);//CSN,CE
long lat,lon; // create variable for latitude and longitude object
float longitude;
float latitude;
SoftwareSerial gpsSerial(4, 3); // create gps sensor connection
TinyGPS gps; // create gps object
void setup(){
gpsSerial.begin(4800); // connect gps sensor
delay(150);
Serial.begin(115200);
SPI.begin();
SPI.setBitOrder(MSBFIRST);
transmitter.channel(90);
transmitter.TXaddress("Artur");
transmitter.init();
}
void loop(){
///////////////////////////////////////////////////////////////////
while(gpsSerial.available()){ // check for gps data
if(gps.encode(gpsSerial.read())){ // encode gps data
gps.get_position(&lat,&lon); // get latitude and
longitude // display position longitude = lon; latitude =
lat;
}
else{ lon = 0; lat = 0;
longitude = lon; latitude = lat;
}
}
//////////////////////////////////////////////////////////////////
transmitter.txPL(longitude);
transmitter.txPL(latitude);
transmitter.send(SLOW);
delay(3000);
}
GPS Receiver
#include <SPI.h>
#include <nRF24L01p.h>
#include <LiquidCrystal.h>
//LiquidCrystal lcd(5,4,3,2,1,0);
LiquidCrystal lcd(27, 26, 25, 24, 23, 22);
nRF24L01p receiver(53,48);//CSN,CE
Payload delivery
#include <Servo.h> int
led = 13; int b = 7; int
state;
Servo s1;
void setup() {
pinMode(led,OUTPUT);
pinMode(b,INPUT);
s1.attach(10);
s1.write(90);
digitalWrite(led,LOW);
}
void loop() { state =
digitalRead(b);
if(state==HIGH)
{ s1.write(90);
digitalWrite(led,HIGH);
}
else{
s1.write(0);
digitalWrite(led,LOW);
}
Stabilization
#include <Servo.h>
#include "Wire.h"
#include "SPI.h"
//#include "Mirf.h"
//#include "nRF24L01.h"
//#include "MirfHardwareSpiDriver.h"
#include "I2Cdev.h"
#include MMPU6050.h'
Servo FR_Mot,FL_Mot,RR_Mot,RL_Mot;
long data;
int rc_thr,rc_rol,rc_pit,rc_yaw;
RR_Mot .write(RRMotor_offset);
RL_Mot.write(RLMotor_offset);
FR_Mot .write(FRMotor_offset);
FL_Mot.write(FLMotor_offset);
//Mirf.spi = &MirfHardwareSpi;
//Mirf.init();
//Mirf.setRADDR((byte *)"serv1");
//Mirf.payload = sizeof(long);
//Mirf.config();
Serial.begin(115200); // Initialize Serial communication with PC
}
//================================================ void loop() {
//Recive();
rc_rol=pulseIn(ROL,HIGH);
rc_pit=pulseIn(PIT,HIGH);
rc_yaw=pulseIn(Y
AW,HIGH);
rc_thr=pulseIn(THR,HIGH);
accelgyro.getMotion6(&ax, &ay, &az, &gx, &gy, &gz); // Read all axis acceleration and
gyro voltage values for further processing
r_angle_Pitch = (atan2(ay, az) * 180 / pi + Angle_offset); // Calculate acceleration based angle
omega_Pitch = Gyr_Gain * (gx + Gry_offset); Serial.print(" omegaP=");
Serial.print(omega_Pitch); // Calculate gyro filterde value
if (abs(r_angle_Roll)>0){
PID_Roll();
Control_roll();
}
if (abs(r_angle_Pitch)>0) {
PID_Pitch();
Control_pitch();
}
} //-- void PID_Roll() {
timeChange_Roll = (now - lastTime_Roll); //Calcultae time every time loop comes here
if(timeChange_Roll >= SampleTime) { // If time elapsed when the descission to be maid the
calculate PID
Input_Roll = f_angle_Roll; // Final tilt Angle to be corrected towards 0 dgree for
balance point
error_Roll = Input_Roll; // P error without Kp
errSum_Roll += error_Roll * timeChange_Roll; // I error without Ki
dErr_Roll = (error_Roll - lastErr_Roll) / timeChange_Roll;// D error without Kd
Output_Roll = kp_Roll * error_Roll + ki_Roll * errSum_Roll + kd_Roll * dErr_Roll;
lastErr_Roll = error_Roll;
lastTime_Roll = now;
}
}
//===================================================================
void PID_Pitch(){
timeChange_Pitch = (now - lastTime_Pitch); //Calcultae time every time loop comes here
if(timeChange_Pitch >= SampleTime){ // If time elapsed when the descission to be maid the
calculate PID
Input_Pitch = f_angle_Pitch; // Final tilt Angle to be corrected towards 0 dgree for
balance point
error_Pitch = Input_Pitch; // P error without Kp
errSum_Pitch += error_Pitch * timeChange_Pitch; // I error without Ki
dErr_Pitch = (error_Pitch - lastErr_Pitch) / timeChange_Pitch;// D error without Kd
Output_Pitch = kp_Pitch * error_Pitch + ki_Pitch * errSum_Pitch + kd_Pitch * dErr_Pitch;
lastErr_Pitch = error_Pitch;
lastTime_Pitch = now;
}
}
//===================================================================
void Control_pitch() {
// void Control_roll() {
}
//
Appendix B: List of Components
No. Components No of
components
1 Frame X1
2 Motor X4
3 Electronic Speed Control X4
4 Arduino Uno X2
5 Radio transmitter and Receiver X 1
6 IMU 6050 X1
7 NRF 24L01 X2
8 Gps module X1
9 Servo motor X1
10 LCD X1
11 Arduino mega X1
Appendix C: Project Timeline
TITLE Search and Rescue Quadcopter
DATE 27-05-2015
STARTING
No. DESCRIPTION OF MILESTONE DURATION
WEEK
1 1 Understand the basic aerodynamics of quadcopter TOTAL NUMBER
3 Weeks
PROJECT ID 14 OF WEEKS IN
2 5 Working on Arduino 4PLAN
Weeks