. But since we live in the age of arduino, I rather utilized an example code from the Arduino playground., Which, after uploading to the board and opening the serial monitor, presented me a whole lot of different numbers.. What we only care about, though, are those numbers which represent the acceleration in the Y direction.. But what does this acceleration actually mean? Well, it is quite easy to understand if we create an imaginary level Y axis with our accelerometer IC in the middle., In this constellation gravity pulls our IC downward in the Z axis, with an acceleration of 1 G aka 9.81 meters per square second.. That means when the IC is level, there is no acceleration in the Y direction., And thus the numbers shown in the serial monitor are almost 0., But if we have an un level surface, a part of the part of the gravitational acceleration affects the Y axis., Which Means that by tilting the breadboard left and right, the serial monitor values oscillate around the zero point. in the positive and negative range.. The maximum number of plus or minus 16384, which represents 1 G at a full scale. Range of 2 G is then achieved when the angle equals plus or minus 90 degrees.. This way we have a proportional relation between the acceleration values and the angle of the IC., Which means that by doing a bit of code editing, we can already create a serial, monitor, breadboard spirit, level. And needless to say, such an accelerometer does also work in the X and Z direction.

The OLED display to the topside of the enclosure and stuffed the rest of the electronics into the housing.. All there was left to do was to connect both halfs through long M4 bolts. And the project was complete.. I have to say it does work decently, but of course there can be inaccuracy problems. Due to warping during 3D printing or incorrect mounting of the accelerometer IC., And lets not forget that this digital spirit level only works properly. If you hold it still. and thus not accelerate it with your own forces., A solution to that problem would be to utilize the gyroscope component of the IC., But that is a subject for another video.. Until then, don’t forget to like share and subscribe.

arduino 9250 Video

[mam_video id=USa3HFLnrlk]

[mam_tag id=4225]

arduino 9250 Social

official.arduino
2019-10-02T19:32:52+0000

👋 Want to bring Tony Stark-like gesture control to your projects? Learn how with the BLE-enabled MKR WiFi 1010 and Nano 33 BLE Sense boards using the ArduinoBLE library.
official.arduino
2019-10-02T19:08:01+0000

Arduin-yo ho ho! A fairground favorite, the pirate ship is a fun way to explore the oscillation of a pendulum. How much fun, you ask? Access our Science Kit Physics Lab preview and see for yourself: http://bit.ly/2oC6L0Q

🔬 Now that you’ve gotten your feet wet, dive into the kit and enjoy all nine experiments. Order yours today: http://bit.ly/2MnQ7fr