Introduction: DIY Digital Spirit Level
In this project we will have a closer look at accelerometer ICs and find out how we can use them with an Arduino. Afterwards we will combine such an IC with a couple of complementary components and a 3D printed enclosure in order to create a digital spirit level. Let's get started!
Step 1: Watch the Video!
The video gives you all the information you need to create your own digital spirit level. During the next steps though I will present you some additional information.
Step 2: Order Your Components!
Here you can find a parts list with example seller:
1x Arduino Nano: http://amzn.to/2FJZ8xk
1x MPU9250: http://amzn.to/2DBxz3h
1x Slide Switch: http://amzn.to/2FRMBE5
1x 128x32 SSD1306 OLED Display: http://amzn.to/2FKof2O
1x LiPo Battery: http://amzn.to/2FPnP7r
1x Arduino Nano: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...
1x Slide Switch: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...
1x 128x32 SSD1306 OLED Display: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...
1x LiPo Battery: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...
1x Arduino Nano: http://amzn.to/2pmIEQr
1x MPU9250: http://amzn.to/2GG00ju
1x Slide Switch: http://amzn.to/2poJBI3
1x 128x32 SSD1306 OLED Display: http://amzn.to/2FKkXNh
1x LiPo Battery: http://amzn.to/2pqt6vp
Step 3: Build the Circuit and Upload the Code!
Here you can find the schematic and code for the circuit. Use them to create your own circuit. Also do not forget to include the SSD1306 Library from Adafruit.
Step 4: 3D Print the Enclosure!
Here you can find the .stl files of my designed enclosure. Feel free to use them to 3D print your own housing.
Step 5: Success!
You did it! You just created your own Digital Spirit Level!
Feel free to check out my YouTube channel for more awesome projects: http://www.youtube.com/user/greatscottlab
You can also follow me on Facebook, Twitter and Google+ for news about upcoming projects and behind the scenes information:
We have a be nice policy.
Please be positive and constructive.
Maybe rather use the Low-Pass filter from Arduino https://playground.arduino.cc/Code/Filters - it's just three lines of code!
Can you recommend a good alternative/equivalent to the IRLZ44N?
The IRLZ44N is an huge N-Channel transistor in a TO220 package. almost any
N-Channel TO220 package transistor will do.
Research, why ask this here?
Nice application for the 9250 but I'm also curious about the accuracy. Do you have any meaurements done?
Because the picture shows 1.16 degrees I would SIMPLY conclude the accuracy to be the nearest 0.01 degree.
As an engineer the accelerometer in the 9250 can resolve 16 Bits or 32768 bits with sign bit for 180 degrees which resolves .00055 degrees and confirms the 0.001 degree resolution of the spirit level.
Personally I can't handle more then 1/2 degree in my unskilled construction builds ;-)
What's the accuracy of this level?