The Basics of Quadcopter Anatomy
The Basics of Quadcopter Anatomy
https://doi.org/10.1051/matecconf/201821001001
CSCC 2018
Abstract. Variations of un-maned vehicles or drones are widely used in diverse fields, including
monitoring or manipulation with dangerous substances. One of the best drone construction, which can be
used in these fields is an X-copter. This paper serves as an introduction to basics of quadcopter anatomy and
advice to choose components based on their properties. In addition, it shown variants of connection between
microcontroller and motors for test purpose and an example of programming. This information can be used
in education process or for those who want to use a microcontroller Raspberry in their work.
*
Corresponding author: [email protected]
© The Authors, published by EDP Sciences. This is an open access article distributed under the terms of the Creative Commons Attribution
License 4.0 (http://creativecommons.org/licenses/by/4.0/).
MATEC Web of Conferences 210, 01001 (2018) https://doi.org/10.1051/matecconf/201821001001
CSCC 2018
1.3 Material
The material has a significant effect on stiffness and
durability of the propeller. One of the most uses material
is plastic compound, which is flexible and bends in cases
of crashes [7]. On the other hand, its main disadvantages
are vibrations, which can affect the flight performance of
your drone. The material has also effect to the weight of
propeller, which is important to flight performance.
Lighter propellers have less moment of inertia that
Fig 2 . Di st r i b u t i on of Pr op et er s [ 7 ] . means the motor needs less torque to achieve the same
RPM and its change is faster, that leads to better flight
Another important attribute is a propeller pitch, response. The weight also affects a vibration of the
which is a theoretical distance that propeller will move propeller which is important to minimize. The optimally
through the air for every single rotation of the propeller. balanced propeller has no vibration.
In real world can be this value affected by the material of
propellers, air density and efficiency. The quadcopter is 2 Motors
faster if the pitch value is higher [3]. Effect of propeller
pitch can be explained in an example of two wood Brushless DC motors (BLDC) are the most used type of
screws. The screw on the right side has a higher pitch, motor in the quadcopter. BLDC is motor with
and the screw on the left side has a lower pitch. If both permanent magnet, which is driven by direct current
screws will be screwed by a screwdriver, the right screw (DC) electricity. Commutation is controlled
would sink in the wood more. In drone, the propeller electronically, instead of a mechanical commutation
with the higher pitch, need the only half rotation to travel system, by permanent magnet rotor and stator with a
the same distance. sequence of coils. [7].
The permanent magnet rotates and the current
carrying conductors are fixed. The armature coils are
switched by transistors at the correct rotor position in
such a way that armature field is in space quadrature
with the rotor field poles. Rotary encoders (Hall sensors)
are used to sense the position of the rotor and are
positioned around the stator. The rotor position feedback
Fig 3 . Pr op el l er Pi t ch [ 7 ] . from the sensor helps to determine when to switch the
armature current [7].
The electronic commutation eliminates the
Design of propeller must be within a specific range commutator arrangement and brushes in classic DC
of pitch angles to produce required thrust. Flat propellers motors. With this commutation is achieved more reliable
will not generate any lift, so they are not appropriate to and quieter operation.
steeply pitched propellers. There is a wide variety of physical configuration,
which depends on the stator windings. The windings can
1.1 Size be configured as single – phase, two – phase, three –
The longer propellers can generate more thrust at the phase motors. On the other hand, the most used BLDC
same speed. On the other hand, the torque must be motors are three-phase [7].
higher. The larger propeller does not mean the higher
speed of quadcopter, because speed is determined
primarily by the propeller pitch.
A maximal length of propeller depends on a
quadcopter frame. In particular by taking the smallest
dimension of the frame (length or width) and dividing it
by 2. The chosen propeller could be slightly smaller to
provide a rotation clearance between propellers. There
are two used propellers sizing formats: LxPxB and
LLPPxB, where L is length, P represent pitch, and B is
number of blades [7].
2
MATEC Web of Conferences 210, 01001 (2018) https://doi.org/10.1051/matecconf/201821001001
CSCC 2018
3
MATEC Web of Conferences 210, 01001 (2018) https://doi.org/10.1051/matecconf/201821001001
CSCC 2018
4
MATEC Web of Conferences 210, 01001 (2018) https://doi.org/10.1051/matecconf/201821001001
CSCC 2018
e_pin = 18
pin_1 = 23
pin_2 = 2
GPIO.setup(enable_pin, GPIO.OUT)
GPIO.setup(pin_1, GPIO.OUT)
GPIO.setup(pin_2, GPIO.OUT)
motor_pwm=GPIO.PWM(e_pin,600)
motor_pwm.start(0)
Fig 1 0 . Con n ect i on – V ar i an t 2 [ 1 3 ] .
All pins are configured as outputs and help to
control the direction of the BLDC. PWM analogue
The recent variation of connection is a combination
output is also defined, where 600 is PWM frequency.
of the microcontroller and a multiwii. The Multiwii is
The initial value of duty cycle is set to 0% of the
open source project that was based on Arduino, the
frequency.
suitable Multiwii is CRIUS AIO PRO V2, which is a
flight controller. It controls speed signals and distributes def stop():
them into ESC. The Multiwii is a simplification in the GPIO.output(pin_1, False)
system from the side of programming because many of GPIO.output(pin_2, False)
programs are already written a can be used in the system. motor_pwm.ChangeDutyCycle(0)
def forward(duty_cycle):
GPIO.output(pin_1, True)
GPIO.output(pin_2, False)
motor_pwm.ChangeDutyCycle(duty_cycle)
def reverse(duty_cycle):
GPIO.output(pin_1, False)
GPIO.output(pin_2, True)
motor_pwm.ChangeDutyCycle(duty_cycle)
Fig 1 1 . Con n ect i on – V ar i an t 3 [ 1 4 ] . As one can see a pin 1 is used in the forward
direction and the pin 2 is used in the backward direction.
If both of pins are off, the motor is stopped.
7 Programming
try:
There is a wide variety of programming languages, while True:
which can be used for Raspberry Pi programming. The direction = raw_input('↑ – forward, ↓ – reverse, s -
common languages are Python, C++, or C, or C#. stop')
Python has been chosen as the programming if direction[0]=='s':
language in the project. Python is a higher programming stop()
language which does not need to have strictly defined else:
variables, unlike C++. In the deeper context, it is a duty_cycle= input('Duty cycle (between 0 to
hybrid dynamically interpreted language from a group of 100%)')
scripting languages. Graphics User Interface (GUI) if direction [0]== '\x1b[A':
IDLE, which is well organized, was used to develop the forward(duty_cycle)
software itself [15]. elif direction [0]== '\x1b[B':
For access to GPIO pin must be imported one of reverse(duty_cycle)
the GPIO libraries like RPIO,RPi.GPIO, gpiozero,
5
MATEC Web of Conferences 210, 01001 (2018) https://doi.org/10.1051/matecconf/201821001001
CSCC 2018
6
MATEC Web of Conferences 210, 01001 (2018) https://doi.org/10.1051/matecconf/201821001001
CSCC 2018
h t t p s:/ / i .p i n i m g.com / or i gi n al s/ 4 f / e0 / f
b / 4 f e0 f b 2 4 e6 8 6 ef ccd 5 b d 2 5 c8 9 0 e5 e9 9
1 .j p g ( 2 0 1 8 .4 .1 9 )
1 5 . S. M on k . M ak e: act i on : M ov em en t ,
l i gh t , an d sou n d w i t h Ar d u i n o an d
Rasp b er r y Pi . San Fr an ci sco, CA: M ak er
M ed i a. ( 2 0 1 6 )
16. K. Premkumar, K. G. J. Nigel. "Smart Phone Based
Robotic Arm Control using Raspberry Pi, Android
and Wi-Fi."Institute of Electrical and Electronics
Engineers Inc. (2015)
1 7 . P. Di Ju st o. M ak e: DIY Dr on e an d
Qu ad cop t er Pr oj ect s. San Fr an ci sco, CA:
M ak er M ed i a. ( 2 0 1 6 )