Digital Signal Filtering
Digital Signal Filtering
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
5. Mount the Arduino board and apply the
proper connections of the wires.
6. Mount the sensor and the driver and
assemble its proper connections to the
Arduino board and motor.
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)
3. Filtered and unfiltered data when yaw orientation even the platform is
robot car is not moving. rotating. The robot was able to run on a
straight path. Though upon trials, we
observed that the robot needed to have
better design because the wheels can’t
get a good grip on the platform in some
occasions which lead the car to stop in
Figure 22. the middle of testing.
VIII. REFERENCES