Build an Electronic Level with MPU-6050 and Arduino
DroneBot Workshop DroneBot Workshop
592K subscribers
306,761 views
0

 Published On Apr 27, 2019

Today we will be working with the MPU-6050 IMU, and we will use it to build an electronic level with an Arduino.

Article with libraries and code - https://dronebotworkshop.com/mpu-6050...
More articles and tutorials: https://dronebotworkshop.com
Join the conversation on the forum: https://forum.dronebotworkshop.com
Subscribe to the newsletter and stay in touch: https://dronebotworkshop.com/subscribe/


Today we will be working with the MPU-6050, a low-cost Inertial Measurement Unit, or IMU. This device has a lot of different applications in many fields including robotics, gaming, quadcopters, and IoT devices.

The MPU-6050 has an internal gyroscope and accelerometer. It's an inexpensive device, available in several packages and modules. The module I am using is very common and has a built-0in voltage regulator so it can work with 5-volt logic.

We will start by looking at the MPU-6050 internals, as well as at the pinout of the module I am using.

Next, we will load a couple of libraries into our Arduino IDE and ruins some sample code to display Pitch, Yaw, and Roll.

After that, we will build a small project, an electronic level. Our level will display on an LCD and will also use 5 LEDs to give a good visual indication of how level the surface is.

Here are the contents for today's video:

00:00 - Introduction
02:53 - MPU-6050 Intro
11:20 - MPU-6050 Arduino Experiments
20:29 - Electronic Level

You can get the sketch and the two libraries used in the experiments on the DroneBot Workshop website.

Hope you enjoy the video!

show more

Share/Embed