Measure Pitch and Roll with the MPU6050


Schematic for Creating a Tilt Meter

This is a simple example of how to measure Pitch and Roll using a 3-axis accelerometer as found on the MPU6050.