Professional Documents
Culture Documents
Abstract – The aim of this paper is to build a robot car that operates through a straight path on a
revolving platform. The robot car is equipped with MPU6050 sensor an Inertia Measurement Unit
or IMU used for motion processing. The robot DC motors is controlled using L298 motor driver. To
compensate for the gyro drifts and stabilize the motion of the robot an exponential filter is used.
Figure 7.
Figure 4.
Connecting wires allows an
It is a DC motor used to drive electrical current to travel from one
the revolving platform. point on a circuit to another because
electricity needs a medium through
Power bank
which it can move.
4 AA alkaline batteries
Figure 5.
Round platform
Figure 6.
Figure 9.
V. METHODOLOGY
Figure.14
Figure.12
This section shows the value to
be filtered and the function use to filter
the raw data.
Figure 15.
Code for the Car’s motor
For the code of MPU6050 we
just modified the example sketch from
MPU6050 library and combined all the previous
codes for the robot car to work.
yn=(0.50)(-2.7)+(1-0.50)(-0.6725)
1. Exponential Filter Formula.
yn=-2.2+0.33625
yn=-1.86375≈ -2
yn = w × xn + (1 – w) × yn – 1 (Eq. 1)
2. Actual testing of the robot car on the (red) and Unfiltered (blue) yaw values
VIII. REFERENCES