MPU6050 with Arduino - GY-521

preview_player
Показать описание
This vide will cover how to use the MPU6050 accelerometer and gyroscope module (GY-521) with Arduino. We’ll focus on basics, module pins, how to connect to Arduino, programming in Arduino IDE, and testing. We will also show how to use the sensor along with Processing IDE to visualize the readings from the accelerometer / gyroscope.

Where to buy [Amazon Affiliate]:

Chapters:
0:00 Intro
0:38 MPU6050 Sensor Basics
2:02 Connecting to Arduino
2:33 Programming & Testing in Arduino
6:10 Integrating MPU6050 with Processing IDE
Рекомендации по теме
Комментарии
Автор

This was so far the most straight forward and best tutorial on mpu6050. Thanks man.

himadreemctavish
Автор

THANKS BROTHER, LOOK AT A THOUSAND TUTORIALS AND NONE LIKE THIS!!!! GREETINGS FROM ARGENTINA

tomastoledo
Автор

So Paul McWhorter's channel should be your go to for getting started with arduino, and then this channel is good to do more advanced projects

HaseebAdnan
Автор

toxiclibs doesnt exist in my processing ide for some reason. may I get assistance for that?

shivpat
Автор

Thank you, thank you, thank you for the video!!! ❤️❤️❤️

martinlentz-nielsen
Автор

Hi, thank you for the great video!
Say, if I follow your tutorial step by step exactly, and the Arduino won't connect with the sensor, serial outputs: "MPU6050 connection failed",
How would you suggest to find the connection problem?
Thank you again!

avivbello
Автор

in processing ide, i tried to add toxic lib. but it is not showing the library name, can u tell what to do now, followed all your instructions/steps

kalamabidin
Автор

I'm like a tick. Sorry.
Did you have to write all the filters and such to keep the gyro from drifting?

jstro-hobbytech
Автор

Ha! Three years later, two computers, and 3 operating systems later I finally got it to run. Couldn't get it up on my Windows8/8.1./10. Working fine on Windows 11/Processing 4.3.4

ElizabethBergman-nr
Автор

My program stops working after around 20 seconds, is there anyway I can fix this? Appreciate it!

bh
Автор

Hey there! I really like your video and followed your steps. The visualization in P5 works great. However, only for a couple seconds. After that the rotation drifts off until there is no more data coming from the arduino. Is there a way to ensure a constant data stream?

friendlybear
Автор

I have the 4.3 version and ToxicLib is not available in the library. How can I get past this problem?

SuleymanErtugrulSahin
Автор

Why acceleration is showing this values of the video?
It should not show something near to (0, 9.81, 0), considering an almost orthogonal orientation?

lucasrba
Автор

you should test the accuracy of this, by moving it a whole bunch and calculating where it should be then measuring any discrepancy

justinc
Автор

It works for few seconds and then the whole arduino frezees. I did connect AD0 pin to ground, the SCL and SDA are connected to VCC by resistors each 10kOhm, the INT pin connected to pin 2 on my Arduino Mega 2560 board. I can see the plane rotating and then everything freezes and only restarting arduino fixes this. :|

I have been trying to fix it for few hours now and nothing works. Only when I use libraries that does not use DMP, the arudino doesn't freeze and everything works smoothly but I don't have any precision and the results get inaccurate pretty quickly.

IgorSantarek
Автор

Everything was nice and dandy until he mentioned the TOXIC library at 6:52... and I thought to myself: "how a developer can be such a deadbeat to name a library TOXIC?" And then I remembered what Joler said: "Very poor choice of words..." then I went to use Blendix, a safer library that actually works. And then I remembered another Joker quote, this time from The Killing Joke: " Sorry, but no..."

aaronmccombs
Автор

Is it possible to use mpu6050 to calculate the displacement of a moving robot, Thanks in advance !

ahmednader
Автор

Hallo sir
I want to make an active suspension for an rc car base on gyro and accelerometer
But i am beginer on arduino
Could you help me? 🙏

frenkkotarigan
Автор

what is the unit of the real acceleration shown in the video?
is it g or 2*g?

michealsakr
Автор

Hi, thanks for the excellent explanation. i want to ask, is it linear acceleration or angular acceleration which can be measured by MPU6050? can it be used to measure angular acceleration?

AbdulRahman-jzpx