Projects / Ideas / Pi tilt plot

Pi tilt plot

IntermediateMotionIdeaReviewed
In short

How do you build a pi tilt plot?

A Raspberry Pi 4 reads an MPU6050 over I2C and draws a live plot of the tilt angle on screen. Works only when the board is held still. You need Raspberry Pi 4 Model B (4 GB), MPU6050 IMU and Breadboard 830 Tie Points.

Level
Intermediate
Time
About 150 min
Parts
3
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Plot tilt in real time.

Parts list

How to build it

  1. Enable the I2C interface
  2. Read the accelerometer registers
  3. Compute the roll and pitch
  4. Smooth the values
  5. Plot them with matplotlib

Related projects

Common questions

What parts do I need for the pi tilt plot?

Raspberry Pi 4 Model B (4 GB), MPU6050 IMU and Breadboard 830 Tie Points.

How long does the pi tilt plot take to build?

About 150 minutes for a intermediate maker.