PI-35IntermediatePremium

Raspberry Pi Pico Digital Spirit Level (MPU-6050 + OLED Display)

Shelf up, but is it straight? We are building a digital spirit level with a Raspberry Pi Pico. The MPU-6050 measures gravity, and the OLED shows a bubble in a bullseye plus the X / Y tilt. Stand the board on its edge and the display turns into a classic tube level. Below 0.5° the display lights LEVEL, and just like a real one, the bubble drifts to the higher side.

0.0(0)
Raspberry Pi Pico Digital Spirit Level (MPU-6050 + OLED Display)
You build a digital version of the spirit level you use when putting up a shelf or straightening a picture. The MPU-6050 sensor connected to the Raspberry Pi Pico measures the tilt; when the circuit lies flat, the OLED screen shows a bubble inside a circle and the tilt in degrees, and when you stand it on its edge it switches to a classic tube level. Once it is perfectly level, the word LEVEL lights up on the screen.

Source Code

Premium Content

The source code, block version and FAQ of this project are open to Premium members.

  • All Project Code
  • Block version
  • Frequently Asked Questions