BUILDING AND CONTROLLING THE QUADROCOPTER

Similar documents
An inertial haptic interface for robotic applications

The Quadcopter Controller

Electronic Speed Variator for a Brushless DC Motor

Author: By Siegfried Krainer and Michael Thomas, Infineon Technologies and Ronald Staerz, MCI Innsbruck

Force on Moving Charges in a Magnetic Field

How To Control Gimbal

Inductance. Motors. Generators

AMZ-FX Guitar effects. (2007) Mosfet Body Diodes. Accessed 22/12/09.

Simple Analysis for Brushless DC Motors Case Study: Razor Scooter Wheel Motor

How to Turn an AC Induction Motor Into a DC Motor (A Matter of Perspective) Steve Bowling Application Segments Engineer Microchip Technology, Inc.

Basic Principles of Inertial Navigation. Seminar on inertial navigation systems Tampere University of Technology

Onboard electronics of UAVs

GENERAL POWER SYSTEM WIRING PRACTICES APPLIED TO TECNADYNE DC BRUSHLESS MOTORS

DC Motor control Reversing

Dedalus autopilot User's manual

Micro-Step Driving for Stepper Motors: A Case Study

Dedalus autopilot user's manual. Dedalus autopilot User's manual. Introduction

CHAPTER 1 INTRODUCTION

PHANTOM 2 Product Release Notes

Active Vibration Isolation of an Unbalanced Machine Spindle

Unit 33 Three-Phase Motors

Speed Control Methods of Various Types of Speed Control Motors. Kazuya SHIRAHATA

Quadcopters. Presented by: Andrew Depriest

ZMART Technical Report The International Aerial Robotics Competition 2014

Mechanics lecture 7 Moment of a force, torque, equilibrium of a body

Flight Controller. Mini Fun Fly

Self-Balancing Robot Project Proposal Abstract. Strategy. Physical Construction. Spencer Burdette March 9, 2007

INSPIRE 1 Release Notes Overview: What s New: Bug Fixes: 1. All-in-One Firmware version updated to: v

Welcome to FBL Gyro Configuration software

Automated Container Handling in Port Terminals

INTRODUCTION TO SERIAL ARM

Hand Gestures Remote Controlled Robotic Arm

Preliminary Analysis of an Aircraft Capable of Deploying and Retracting a

Servo Info and Centering

2. Dynamics, Control and Trajectory Following

INSPIRE 1 Release Notes Overview: What s New: Bug Fixes: Notice: 1. All-in-One Firmware version updated to: v

RC HELICOPTER INSTRUCTION MANUAL

Mathematical Modeling and Dynamic Simulation of a Class of Drive Systems with Permanent Magnet Synchronous Motors

Motor Fundamentals. DC Motor

Magnetometer Realignment: Theory and Implementation

The DC Motor. Physics 1051 Laboratory #5 The DC Motor

The Design and Implementation of a Quadrotor Flight Controller Using the QUEST Algorithm

Permanent Magnet Motor Kit, Magnetic Reed Type. (SKY-ReedMotorKit) Instructions

Chapter 10 Rotational Motion. Copyright 2009 Pearson Education, Inc.

AP Series Autopilot System. AP-202 Data Sheet. March,2015. Chengdu Jouav Automation Tech Co.,L.t.d

Principles of Adjustable Frequency Drives

Chen. Vibration Motor. Application note

AEO Head Movement Tracker X-GYRO 1000 USER MANUAL(V1.1bata )

DC GENERATOR THEORY. LIST the three conditions necessary to induce a voltage into a conductor.

Magnetism. d. gives the direction of the force on a charge moving in a magnetic field. b. results in negative charges moving. clockwise.

Frequency Converter Fv

Configuration Software User Instruction

Using the Motor Controller

ElectroMagnetic Induction. AP Physics B

FRC WPI Robotics Library Overview

TruPower-Portable-500W. Solar Starter kit

2. A conductor of length 2m moves at 4m/s at 30 to a uniform magnetic field of 0.1T. Which one of the following gives the e.m.f. generated?

Electric Flight. The power system basics

Section 9.5 Electric Motors

Magnetic Fields and Their Effects

MANUAL FOR RX700 LR and NR

Programming Logic controllers

PID Control. Proportional Integral Derivative (PID) Control. Matrix Multimedia 2011 MX009 - PID Control. by Ben Rowland, April 2011

HITACHI INVERTER SJ/L100/300 SERIES PID CONTROL USERS GUIDE

BRIEF INFORMATION Angular Position Sensors Single and double sensors

WHITE PAPER. DC Motors Explained. DC Motors Explained: White Paper, Title Page

Introduction to RC Airplanes. RC Airplane Types - Trainers, Sport RC Planes, 3D Acrobat RC Airplanes, Jets & More

Power Electronics. Prof. K. Gopakumar. Centre for Electronics Design and Technology. Indian Institute of Science, Bangalore.

Spacecraft Dynamics and Control. An Introduction

Rotation: Moment of Inertia and Torque

Objectives. Capacitors 262 CHAPTER 5 ENERGY

T1-Fuzzy vs T2-Fuzzy Stabilize Quadrotor Hover with Payload Position Disturbance

Adding Heart to Your Technology

Chapter 22: Electric motors and electromagnetic induction

DIRECT CURRENT GENERATORS

Reading assignment: All students should read the Appendix about using oscilloscopes.

Figure 1. The Ball and Beam System.

A 5 Degree Feedback Control Robotic Arm (Haptic Arm)

The purposes of this experiment are to test Faraday's Law qualitatively and to test Lenz's Law.

Ampere's Law. Introduction. times the current enclosed in that loop: Ampere's Law states that the line integral of B and dl over a closed path is 0

Principles and Working of DC and AC machines

Induction Motor Theory

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

DIY Y6. Build Manual V.A 2014

Visual Servoing using Fuzzy Controllers on an Unmanned Aerial Vehicle

INSTRUMENTATION AND CONTROL TUTORIAL 3 SIGNAL PROCESSORS AND RECEIVERS

Tips For Selecting DC Motors For Your Mobile Robot

Selecting and Implementing H-Bridges in DC Motor Control. Daniel Phan A

S & P COIL PRODUCTS LTD SPC HOUSE, EVINGTON VALLEY ROAD, LEICESTER. LE5 5LU. Electrical layouts for EC Motors in Fan Convector units

Naza for Multi-Rotor User Manual

SYSTEM 4C. C R H Electronics Design

DROFLY PRO V3 User Guide

Servo Motors (SensorDAQ only) Evaluation copy. Vernier Digital Control Unit (DCU) LabQuest or LabPro power supply

Pulse Width Modulation Applications

Physics 9e/Cutnell. correlated to the. College Board AP Physics 1 Course Objectives

0 28 November 2011 N/A First Release of Manual 1 24 February 2012 Page 21 Error in FY31AP connection diagram corrected.

SimpleBGC Software User Manual

Application Information Fully Integrated Hall Effect Motor Driver for Brushless DC Vibration Motor Applications

WINDER SYSTEMS GE Industrial Control Systems

RS platforms. Fabio Dell Acqua - Gruppo di Telerilevamento

Transcription:

BUILDING AND CONTROLLING THE QUADROCOPTER Pavel Chmelař 1 Summary: Quadrocopter it s a flying object, which flies with a help by four propellers placed on the end of a cross construction. Main features this device are stability, small weigh and maneuverability. At present is popular for his advantages. Key words: quadrocopter, PID, controller INTRODUCTION Quadracopters are with us almost one century. First experiments with him started at the beginning 20 th century. The first functional quadracopter was built in year 1920 by Etienne Oehmichen. At first were created devices that should to carry a weight of human body. Actual trend is creation small unmanned quadrocopters. The main reasons for this situation are ability to easy control and maneuverability. Quadrocopters are used by enthusiastic modellers, but also find an application in the professional sphere, such as the police or the army. Here (2) and (3) it s described a construction and a stabilization of the quadropter. In (2) is applied the CHR-6d as a position sensor. The author solves stabilization by using the DCM (Direct Cosine Matrix) algorithm. The position sensor CHR-6d has the onboard EKF (Extended Kalman Filter) for pitch and rolls angle estimation, so I wanted try use on the quadrocopter. In (2) and (3) is the control of quadcopter solved by using a RC remote control. This solution is a natural, but I wanted use something else. Currently many people have a mobile device with Bluetooth technology, so is good idea using a mobile device as a remote control for the quadcopter, is need only a Bluetooth module, which it is not too expensive. This article discusses about a construction of the quadrocopter, which was built in cooperation with my colleague Ing. Pavel Rozsíval. Also discusses a principle of control, a question of stability and possibility to using the quadrocopter for many applications. 1. QUADROCOPTER The quadrocopter (Fig.1) it s a flying object, which flies with a help by four propellers, therefore is so called. Two opposite propellers rotates in one direction, for take-off. First pair opposite propellers (Fig. 2) rotates in one direction for keeping balance in the axis. Second pair opposite propellers rotates in opposite direction, for keeping balance in the axis (Fig. 3). The main reason for opposite rotations of opposite pairs it's the elimination a rotation the quadrocopter in the Z axis. 1 Ing. Pavel Chmelař, University of Pardubice, Faculty of Electrical Engineering and Computer Science, Department of Electrical Engineering, Studentská 95, 532 10 Pardubice, Tel.: +420 728 368 851, E-mail: pavel.chmelar@student.upce.cz Chmelař: Building and controlling the Quadrocopter 95

Fig. 1 The principle function of quadrocopter Fig. 2 The principle function the first arm Fig. 3 The principle function the second arm In the question of the control, is good to separate the problem into three independent parts. The first part is control in the X axis (Fig. 2), where is important a balance on the lever, the second part is similar the first, in the Y axis (Fig. 3). The last part of control is the rotation in the Z axis (Fig. 1), which must be prevent. Chmelař: Building and controlling the Quadrocopter 96

1.1 Motors and rotate regulators In solving the control, the stabilization and for example display some data is needed a higher computing power, for this reason it used a kit with MCU. The MCU on the kit is the ARM Cortex-M3, which is a 32bit MCU. The block diagram of the motor connection is on the next figure (Fig 4): Fig. 4 One motor connection The quadrocopter needs relatively a high thrust of a motor. For this purpose are good AC brushless motors. The thrust is possible continuously control with PWM pulses. Generated PWM pulses for motors are form output ports of a kit whit the MCU brought on an ESC (Electronics Speed Control) of each motors. An ESC needs to know the position a rotor of motor. Is possible to use a motor with a build-in sensor, but the problem is with the compatibility a motor and an ESC. Currently are used motors without a sensor and for detection the rotor position serve a special method. Simply said an ESC sends into windings high frequency impulses and evaluates their reverse induced reflections, which depend on the magnet polarity, which is closest to the coil. Advantage this solution is the lower price of a motor, he doesn t have the position sensor and no need more wires for an ESC, because an ESC needs to has five wires for the position sensor. Current ESC has only three wires and the exchange of two wires between an ESC and a motor causes the change of a motor rotation. For flying is better use outrunner motors. A motor of this construction has important feature in the high torque. AC motors are about 30-50% lighter against DC motors with a same performance and have up to half the greater efficiency. AC motors have a beneficial torque. The optimal trust of DC motor it s only on the maximum speed, but good designed AC motors are able fly whit only twenty percent of the maximal performance. This all allows construct lighter models, which are able to reach the longer fly. When selecting motors, it must be used the adequate ESC on appropriate performance. Most important thing for build the quadrocoper is choosing the optimal performance of motors, which ensure takeoff the device with the concrete weight, but is good to have some reserve, to avoid overload of motors. 1.2 Motors control whit PWM The way to control AC motors is based on principle control a servomotors. The basic signal has a width 1 ms of a logic one with the period 20 ms. After turn on the quadrocopter must have the PWM pulse a width 1 ms, which mean a motor is stopped (Fig. 4 up). With a pulse width greater than 1 ms an ESC won t let wind off a motor for the safety reasons. For start-up motors is need the pulse width 1 ms. Continuously increasing the pulse width from 1 Chmelař: Building and controlling the Quadrocopter 97

ms up, motors begin to spin. The upper limit of the pulse width it s 2 ms (Fig. 5 down), when a motor has a maximal performance. 1ms PWM for motors control 2ms time [ms] time [ms] Fig. 5 Control whit PWM pulses A continuity of changing the rotation is critical for stabilization. In case of the step change the pulse width is need to ensure, that the change will not cause too great a change of the motor rotation, because it may cause high change of a output value the controller and this can lead to destabilization quadrocoper. 2. PID CONTROLLER A proportional integral derivative (PID) controller is a generic control loop feedback mechanism. The PID controller calculates whit error value as the difference between a measured process variable (PV) and a desired setpoint. With this error value is counted each actions of controller (Fig. 6). The controller attempts to minimize the error by adjusting the process control inputs. The main equation of the parallel PID controller (1): The block scheme of the parallel PID controller is on the next figure (Fig. 6). (1) τ τ Fig. 6 Parallel PID controller Chmelař: Building and controlling the Quadrocopter 98

,, error gain(proportional action) integrate action derivative action blocks each controllers (proportional, integrate and derivative) h(t) 0 t Fig. 7 The transfer function of the PID controller The transfer function of the PID controller (Fig. 7) clearly shows the influence each action of the controller. The gain means the increase level. The derivative action makes a rapid decline the level of process action and the integrate increase the action level in time. After the step change of the error dominate an influence of the derivate action and after that begin exercise the integrate action in time. The proportional action P reflect the actual deviation, the integrate action accumulate deviation in past and the derivative action is estimate the next deviation. On controlled systems, which aren t with the good describe, it s using of the PID controller suitable. This type of controller doesn t always represent the best controlled solution, but with optimal parameters settings is able resist instability. Worse parameters settings cause longer time of regulation the error, therefore is appropriate take a time for settings of parameters. 2.1 Settings of controllers For settings of controllers is used the method Ziegler-Nichols. According to the table (Tab. 1) is necessary find two important parameters the critical gain and the critical period. Tab. 1 Parameters settings for the method Ziegler-Nichols Controller type 0,5 0,45 0,85 0,6 0,5 0,125 The proportional action of the controller is increased with a little steps, until is achieved the periodic oscillation on the limit of stabilization, when the output value of the controller Chmelař: Building and controlling the Quadrocopter 99

periodically oscillates around the state of equilibrium. From the recorded process is determinate the critical period as a one cycle of oscillation. After that are the remaining controller actions calculated from the table. In the case control of the quadrocopter it goes about integration system, which has the transfer function still increasing to infinity (Fig. 8) and for the controls constant was necessary using an experimental method. 2 1.8 1.6 Transfer function of the quadrocopter Přechodová charakteristika step, step response skok, skokova odezva 1.4 1.2 1 0.8 0.6 0.4 0.2 0 0 0.5 1 1.5 2 2.5 3 čas[s] time [s] Fig. 8 The transfer function of the quadrocopter 3. ORIENTATION IN SPACE For describe the motion of the quadrocopter it s necessary to define a suitable coordinate system. For most problems dealing with aircraft motion, two coordinate systems are used. First coordinate system is fixed to the Earth and may be considered for the purpose of aircraft motion analysis to be an inertial coordinate system. Second coordinate system is fixed to the airplane and is referred to as a body coordinate system. The next figure (Fig. 9) shows the two right-handed coordinate systems. Fig. 9 Body fixed frame and Earth fixed frame Source: (3) Chmelař: Building and controlling the Quadrocopter 100

The orientation of the airplane is often described by three consecutive rotations, whose order is important. The angular rotations are called the Euler angles. The orientation of the body frame with respect to the fixed Earth frame can be determined in the following manner: 1. Rotate the body about its zb axis through the yaw angle Ψ 2. Rotate the body about its yb axis through the pitch angle Θ 3. Rotate the body about its xb axis through the roll angle (2) (3) Another possibility how can be determined rotations angles show the following expressions: (4) Φ Φ (5) Data from the output of gyroscope are the angular speed. Time is time between two samples and from the expression to calculate distance (6): (6) is possible to calculate the angles. The expressions (2) and (3) describe the angular distance. 4. COMPLETE SET Fig. 10 Quadrocopter the complete set On the end of quadrocopter cross (Fig. 10) are mounted four outrunner motors. The cross is created from the carbon prisms. On the center are mounted the two carbon plate (on Chmelař: Building and controlling the Quadrocopter 101

top and bottom) for fixing the PCB and Li-Pol battery, which supplies all components. On each motor is connected the ESC. The main reason for using carbon parts is the complete weight of device. With a smaller weight is the quadrocopter able fly much longer, because isn t necessary too high thrust of motors and batteries use less power. The complete set controls a MCU, which receive information about the position from the position sensor (CHR-6d). Received data are evaluated for controllers, which controls PWM pulses for motors and ensures stability of a flying object. To the MCU is also connected the LCD display for showing the internal state of the MCU. The quadrocopter is controlled via Bluetooth in the version two. This version of the Bluetooth includes the SPP (Serial Port Profile), which emulates a virtual serial line. Many mobile devices have the Bluetooth interface, so it s possible to control quadrocopter almost with anything. 5. CONCLUSION The quadrocopter is now able to takeoff and reach a steady state at height, but occasionally small corrections are still needed to keep the quadrocopter in one spot. Better settings of controller, for example with using another method for finding the controller actions or use a better control method it may help for a better stabilization. Also it possible to refine the positioning in space by adding more sophisticated filters. On flight of the quadrocopter acts also the wind effect, therefore it is needed to include this effect into the overall stabilization. The remote control over a mobile application works very well. Now is implemented a basic control of the quadrocopter with possibility turn on/off controllers. Into the future can be added some advanced control functions for special maneuvers. For improvement functions of quadrocopter can be added some another sensors like a camera or altimeter. One of the many advantages of the quadrocopter is ability to fly on places, which are for human complicated to reach or so quickly as he and with the help of a camera is possible explore inaccessible locations. With added devices we can to determinate a flight path or track some objects. 6. ACKNOWLEDGEMENT The results presented in this paper were supported by the specific research project of the IGA, University of Pardubice (SGFEI05/2011). REFERNECES (1) KUBÍK S., KOTEK Z., Šalamon M. 1968. Teorie regulace. 1., Lineární regulace. Praha: Státní nakladatelství technické literatury, 1974. 269 s. Vyd. 2., opr. (2) Vassilis' Project. Vassilis' Hobbies and Projects. [Online] [Citace: 12. 02. 2011.] Dostupné z : <http://vassilis.vrhome.net/>. (3) Quadrocopter Gluonpilot. Quadrocopter. [Online] [Citace: 12. 02. 2011.] Dostupné z : <http://gluonpilot.com/wiki/quadrocopter>. Chmelař: Building and controlling the Quadrocopter 102

(4) WINKLER, ZBYNĚK, 2005. Řízení (Robotika.cz > Guide). Robotika.cz. [Online] 11. 10. 2005. [Citace: 19. 02. 2011.] < http://robotika.cz/guide/servo/cs>. (5) PELIKÁN, DANIEL. RCM Pelikán. [Online] [Citace: 10. 05. 2011.] Dostupné z : <http://www.rcm-pelikan.cz/index.php?sec=list&storage=21>. (6) PREMERLANI, WILLIAM A BIZARD, PAUL. 2009. Direction Cosine Matrix IMU: Theory. gentlenav - Firmware for Bill Premerlani's IMU based UAV Dev Board autopilots. [Online] 17. 05. 2009. [Citace: 05. 05. 2011.] Dostupné z :<http://gentlenav.googlecode.com/files/dcmdraft2.pdf>. Chmelař: Building and controlling the Quadrocopter 103