ABSTRACT
The MPU6050 is a 6-axis motion sensor that integrates a 3-axis accelerometer and a 3-axis gyroscope, commonly used for motion tracking and orientation detection. While the accelerometer provides accurate long-term angle measurements, it is prone to noise, whereas the gyroscope offers stable short-term data but suffers from drift over time. To address these limitations, a complementary filter is implemented to fuse the strengths of both sensors, achieving reliable and smooth angle estimation. This paper describes the integration of a complementary filter using an Arduino platform and the MPU6050 sensor. The method combines accelerometer-based tilt readings with gyroscope angular velocity data to calculate orientation in real-time. The approach is computationally lightweight, making it suitable for systems with limited processing capabilities, such as Arduino. This implementation is applicable to various fields, including robotics, drones, and wearable motion tracking devices.
References
- [1] Madgwick, S. O. H., Harrison, A. J. L., & Vaidyanathan, R. (2011). Estimation of IMU and MARG orientation using a gradient descent algorithm. IEEE International Conference on Rehabilitation Robotics (ICORR), 1-7. https://doi.org/10.1109/ICORR.2011.5975346
- [2] Mahony, R., Hamel, T., & Pflimlin, J. M. (2008). Nonlinear complementary filters on the special orthogonal group. IEEE Transactions on Automatic Control, 53(5), 1203-1218. https://doi.org/10.1109/TAC.2008.923738
- [3] Karuna, A., Pradhan, S., & Singh, A. (2019). Design and implementation of complementary filter for attitude estimation using MPU6050. International Journal of Scientific Research and Engineering Development, 2(3), 553-560.
- [4] Yadav, R., & Sharma, S. (2020). Comparative analysis of Kalman and complementary filters for IMU-based attitude estimation. International Journal of Engineering Research & Technology (IJERT), 9(4), 121-125.
- [5] Chu, H., Liu, S., & Xu, C. (2017). Real-time attitude estimation using complementary filter for low-cost IMU. Journal of Sensors and Actuator Networks, 6(4), 28. https://doi.org/10.3390/jsan6040028
- [6] Sharma, P., & Kumar, V. (2021). Sensor fusion for motion tracking using MPU6050 and complementary filter. International Journal of Electronics and Communication Engineering, 10(1), 45-52.
- [7] Tiwari, S., & Pandey, A. (2018). Design and implementation of IMU-based motion tracking system using Arduino and MPU6050. International Journal of Engineering and Technology, 7(4), 235-240.
- [8] Kumar, A., & Gupta, R. (2021). Implementation of complementary filter for real-time attitude estimation using MPU6050 and Arduino Uno. International Journal of Computer Applications, 183(16), 35-41.
- [9] Khan, A., & Sharma, R. (2019). Interfacing LCD 16×2 with Arduino for displaying real-time sensor data. International Journal of Innovative Research in Science, Engineering and Technology, 8(5), 6543-6549.
- Rahman, M., & Islam, A. (2020). Design and development of IMU-based orientation estimation system using MPU6050 and Arduino IDE. International Journal of Robotics and Automation, 12(3), 110-118.
- Gupta, N., & Mishra, P. (2021). A cost-effective IMU-based motion tracking system using Arduino Uno and complementary filter. Journal of Electronics and Communication Engineering, 13(2), 55-62.
- Hossain, M. A., & Rahman, M. (2019). Microcontroller-based real-time motion tracking using MPU6050 and LCD display. International Journal of Electrical and Computer Engineering, 9(6), 4930-4938.
- Liu, J., & Xiao, J. (2019). A low-cost IMU-based attitude estimation system using complementary filter. Journal of Physics: Conference Series, 1168(3), 032083. https://doi.org/10.1088/1742-6596/1168/3/032083
- Sharma, K., & Verma, S. (2020). Implementation of MPU6050 with Arduino for real-time tilt measurement and LCD display. International Journal of Scientific Research and Development, 8(2), 234-238.
- Pandey, R., & Singh, A. (2018). Design and interfacing of LCD 16×2 display with Arduino for sensor-based applications. Journal of Embedded Systems and Applications, 5(1), 45-50.
- Wu, C., & Wang, H. (2018). Design and implementation of sensor fusion algorithms for IMU-based orientation estimation. IEEE Sensors Journal, 18(6), 2442-2451. https://doi.org/10.1109/JSEN.2018.2792196
- Aggarwal, P., Syed, Z., Niu, X., & El-Sheimy, N. (2010). A standard testing and calibration procedure for low-cost MEMS inertial sensors and units. Journal of Navigation, 63(2), 323-336. https://doi.org/10.1017/S0373463309990421
- Kumar, S., & Gupta, M. (2017). Real-time IMU sensor fusion using complementary filter for tilt measurement. International Journal of Computer Science and Engineering,5(3), 22-28.
- Nayak, R., & Rao, P. (2021). Development of IMU-based attitude estimation system using Arduino and MPU6050. International Journal of Robotics and Control Systems, 2(4), 309-317.
- Singh, R., & Kumar, A. (2019). Interfacing MPU6050 with Arduino for motion tracking applications and display on LCD 16×2. International Journal of Advanced Research in Computer and Communication Engineering, 8(6), 45-50.
Download all article in PDF