Professional Documents
Culture Documents
I. INTRODUCTION
As Inertial Measurement Unit(IMU) sensors are unable to
measure position directly (only angular velocity and
acceleration), precisely determining the position of
quadcopters using IMU has been proven to be a great Fig. 1. The Quadcopter Hardware Components.
challenge, especially in applications where the displacement is
to be estimated over a long period of time due to error
accumulation in the acceleration measurement. This study
describes a method to implement a double integration of the
signal obtained from the sensor using a microcontroller to
obtain position.
The objective of the study is to develop an algorithm that
will make the quadcopter travel a certain displacement or
position. This algorithm uses mainly the information from the
IMU and minimizes the error between the desired displacement
and the actual displacement travelled by the quadcopter.
II. METHODOLOGY
http://dx.doi.org/10.15242/IJCCIE.AE0516306 332
Int'l Journal of Computing, Communications & Instrumentation Engg. (IJCCIE) Vol. 3, Issue 2 (2016) ISSN 2349-1469 EISSN 2349-1477
http://dx.doi.org/10.15242/IJCCIE.AE0516306 333
Int'l Journal of Computing, Communications & Instrumentation Engg. (IJCCIE) Vol. 3, Issue 2 (2016) ISSN 2349-1469 EISSN 2349-1477
Start
Linear
Acceleration
of x and y
axes
First Integration
Velocity of x
Desired and y axes
Displacement
Second Integration
Error Factor
Calculation
Displacement
Fig. 4. PID Controller Block Diagram of x and y axes
1/Error
Factor
Pythagorean
Theorem
Fig 5. Code snippet for determining which motor is affected by a
particular PID output
Resultant
Displacement
Figure 7 shows the position estimation method implemented
Equal?
by the researchers. Double integrating the linear acceleration
will result to displacement in the x and y axes. The
corresponding codes for double integration and pythagorean
theorem for calculating the resultant displacement can be STOP
observed in Figure 6.
Fig. 7. Position Estimation Method
http://dx.doi.org/10.15242/IJCCIE.AE0516306 334
Int'l Journal of Computing, Communications & Instrumentation Engg. (IJCCIE) Vol. 3, Issue 2 (2016) ISSN 2349-1469 EISSN 2349-1477
Fig. 8. How Error Factor was obtained Fig. 9. Graphical Representation of Percentage Error with respect to
Error Factor
III. EXPERIMENTAL RESULTS The percentage error can be derived into an error factor and
For the objective of this study, the researchers tested a 1 is a function of desired displacement from Equation 3. Figure
meter desired displacement without an error factor to show how 10 is the error factor equation in Arduino code of Equation 4.
the accumulation of errors in the double integration of
ef-desired =-1.064th root of {[(ddesired – 1)(100)]/1553.7} (4)
acceleration can greatly affect the position estimation of the
quadcopter. Shown in Table 1 is the data gathered in this
set-up.
Fig. 10. Error factor equation in Arduino Code
TABLE 1. TEST RESULTS WITH THE DESIRED DISPLACEMENT OF 1 METER
WITHOUT AN ERROR FACTOR
To test the performance of the implemented algorithm
Trial Actual Displacement
shown in Figure 7, three trials were performed in every desired
1 8.14
displacement. In the implemented algorithm, the value of
2 14.5
3 13.46
1/error factor is compared to the displacement obtained by the
Average 12.03 quadcopter through double integration of its linear
acceleration, thus making the quadcopter to stop its travel after
To minimize the errors, the researchers obtained an equation the condition was satisfied. Table 3 – Table 8 present the results
for the error factor with respect to the percentage error relative of the trials under each test condition. Using Equation 4, the
to a perceived displacement of 1 meter. Data in Table 2 was researchers obtained these data with different desired
gathered through the series of trials made by the researchers to displacement for three trials each displacement.
get a sampled data of error factor and its corresponding
TABLE 3. TEST RESULTS OF EXPERIMENTS WITH THE DESIRED DISPLACEMENT
percentage error. Table 2 shows the distance travelled using OF 1 METER
pre-determined error factors. Trial
Actual Percentage Error
TABLE 2. TEST RESULTS WITH THE DESIRED DISPLACEMENT OF 1 METER Displacement
WITHOUT AN ERROR FACTOR 1 1.13 13%
Distance Percentage 2 0.94 -6%
Error Factor
Travelled (m) Error (%) 3 1.14 14%
6 3.18 218 Average 1.07 7%
12 2.47 147
24 1.52 52 TABLE 4. TEST RESULTS OF EXPERIMENTS WITH THE DESIRED DISPLACEMENT
48 1.18 18 OF 2 METERS
http://dx.doi.org/10.15242/IJCCIE.AE0516306 335
Int'l Journal of Computing, Communications & Instrumentation Engg. (IJCCIE) Vol. 3, Issue 2 (2016) ISSN 2349-1469 EISSN 2349-1477
REFERENCES
[1] D. Vincent. (February 2013). Accurate Position Tracking Using Inertial
Measurement Units [[online] Available:
http://dx.doi.org/10.15242/IJCCIE.AE0516306 336