MPU6050 module combine tri-axis accelerometer and tri-axis gyroscope sensor, can be widely used in smart car, balance car, airplane model and so on.
This tutorial is to teach you to read the date in the MPU6050 tri-axis gyroscope sensor.
1.The Components
| Pictures | Device | Quantity |
![]() |
UNO Board | 1 |
![]() |
MPU6050 Tri-axis Gyroscope Sensor | 1 |
3.The MPU6050 databook:
PS-MPU-6000A、RM-MPU-6000A
4. The Code
It is simple to read the data in the MPU6050 via the third-party library.
MPU6050 library:MPU6050
I2Cdev library:I2Cdev
You need to copy the two above library files to the libraries of the arduino IDE installation directory. There is a file named MPU6050, you can see the sample code or revise the code as per your needs.
You must be logged in to post a comment
About the Author