DIY Digital Spirit Level

11,371

100

11

Published

Introduction: DIY Digital Spirit Level

About: Awesome Electronics Tutorials, Projects and How To´s

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:

Amazon.com

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

Ebay:

1x Arduino Nano: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x MPU9250: 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?...

Amazon.de:

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:

https://twitter.com/GreatScottLab

https://www.facebook.com/greatscottlab

Share

    Recommendations

    • Clocks Contest

      Clocks Contest
    • Oil Contest

      Oil Contest
    • Creative Misuse Contest

      Creative Misuse Contest

    11 Discussions

    0
    user
    Pro.S

    10 days ago

    How can I use Z Axis and XAxis

    This is really cool! A project I doubt I'll ever make, but love that its possible!

    Not to put too fine a point on it, but a "spirit" level is so-called because it consists of a partially filled vial of a tinted spirit or alcohol. This is a digital level. No spirits involved, unless of course you consume some while making or using it.

    0
    user
    narb08

    Question 4 months ago

    Can you recommend a good alternative/equivalent to the IRLZ44N?

    2 more answers

    The IRLZ44N is an huge N-Channel transistor in a TO220 package. almost any

    N-Channel TO220 package transistor will do.

    when I saw this I thought Good, viable alternative to the commercial versions. But after, only, watching the video I gave it a pass, sigh. No bells and whistles - no calibration method or angle transfer or hold or accuracy dampening ability.

    It's a good start, just needs some work. Oh and how do you make the chip and rail parallel, shims?

    0
    user
    GIFrank

    Question 4 months ago

    Nice application for the 9250 but I'm also curious about the accuracy. Do you have any meaurements done?

    1 more answer

    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 ;-)

    0
    user
    allangee

    Question 4 months ago

    What's the accuracy of this level?