DIY Digital Spirit Level

16,356

115

16

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!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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

1 Person Made This Project!

Recommendations

  • Made with Math Contest

    Made with Math Contest
  • Multi-Discipline Contest

    Multi-Discipline Contest
  • Robotics Contest

    Robotics Contest

16 Discussions

None
AlW33

Question 5 months ago

Hi. Nice interesting project. I have most of the parts and will be trying it. However, I have read that MPU9250 uses a 3.3V supply with a max of 4v. You are apparently using 5V. Isn't there a problem of it being blown by overvoltage? Can anyone please confirm whether this is correct?

None
AlW33

5 months ago

Could I please re-ask the question posted by offtherails2010. I also would like to know the lipo battery charge module shown in this instructable but totally ignored in the build description.

None
offtherails2010

Question 6 months ago

Good day to you GreatScott and everyone !!

Please please could ANYONE help identify this charging module, its not shown or mentioned in this instructable but its in the main photo which is really BUGGING the HECK outta ME lol !!

ive tried to find it online in the usual places, ebay and aliexpress, dx, banggood etc but no luck finding this exact module

just curious on its specs and yes, i know theres the TP4056 alternative out there, but it would be nice to solve this puzzling module that not mentioned lol

Pretty please help ?!? lol

BE POSITIVE in replies please, no negativity, thanks in advance.

img66.png
None
asaneie

9 months ago

Hi
Thank you for this awesome instructable
can I use ADXL345 instead of MPU9250?
Merry Christmas ❤️

None
Pro.S

1 year ago

How can I use Z Axis and XAxis

None
aCuriousCreator

1 year ago

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

None
YumanBeing

1 year ago

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.

None
narb08

Question 1 year ago

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

2 answers
None
JohnC430narb08

Answer 1 year ago

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

N-Channel TO220 package transistor will do.

None
itsmescotty

1 year ago on Step 5

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?

None
GIFrank

Question 1 year ago

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

1 answer
None
icengGIFrank

Answer 1 year ago

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

None
allangee

Question 1 year ago

What's the accuracy of this level?