In this post we show how to create a Digital Spirit Level using a Raspberry Pi and python.
The code moves that bubbles on the display in relation to the angle read from the IMU.
Parts used in this project;
- Raspberry Pi 3
Any IMU or TFT can be used, however the code would need to be updated to accommodate the different devices. It is best to use a 480×320 TFT as the images are scaled to fit this resolution.
This guide assumes that some basic understanding of an IMU(Accelerometer and Gyroscope) is already known. And you have one already working with your Raspberry Pi.
If you don’t, we do have some guides which covers this.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!
Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.
Join us every Wednesday night at 8pm ET for Ask an Engineer!
Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground” – Adafruit’s Apps!
Maker Business — SoftBank Invests $300 Million in WeWork
Wearables — Impatience reward
Electronics — Cool your FETs!
Biohacking — What I Learned from VO2 Testing in Ketosis
No comments yet.
Sorry, the comment form is closed at this time.