How to use MPU-6050 Accelerometer and Gyroscope with Arduino code

preview_player
Показать описание
In this video you will learn how to use MPU-6050 Accelerometer and Gyroscope sensor module for Arduino.

The best thank you for me is to Subscribe 🔔 to my channel and thumb up the video. It is greatly appreciated. 🔔 😊.
I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊

**** Free Course ****

****Purchase MPU-6050****

*** Purchase Arduino Start Kit ***

****** Purchase Authentic Arduino Uno from ****

Related videos:

Chapters of this video:
00:00 Start
00:00 Introduction
02:28 Hardware explained
03:45 Datasheet viewed
06:08 Getting library
06:44 Wiring explained
09:05 Code explained

MPU-6050 Registers' map:

Tutorial by Ahmad Shamshiri form Canada
****************************
****************************

Get other projects code and learn Arduino
#robojaxAccelerometer
#robojax #robojaxMPU6050
Рекомендации по теме
Комментарии
Автор

Only connect SDA and SCL to retrieve gyro angle and accelerometer values.

XCL and XDA do not need to be connected. They are for connecting an external magnetometer module so that DMU (an advanced, but seldom used, feature) can calculate yaw using the magnetometer as a slave device. You shouldn't need the interrupt pin either, unless you are using the advanced DMU feature of the MPU6050. You only need to connect Vcc, Gnd, SDA and SCL to use the device.

mikebrown
Автор

Best Explanation, I have watched 100 videos on youtube, all people are mixing gyro with acceleration, Thanks A lot

bilale
Автор

Thank you so much, this vid help me a lot with my school project.

phuonglehuy
Автор

Thank you so much!
P.S.- Love your accent

laudaemon
Автор

I am so thankful for this video! Thanks for taking your time with it!

michaeljbeal
Автор

Great info. Thanks for sharing. You got yourself another subscriber!

donutboy
Автор

Thank you so much, Now I can use this for my rocket project.

izumisama_
Автор

Hi, i'm dont know much about Arduino, neither speak english, but you video help me a lot.
But i still don't understand about, on the serial monitor, minute 12:29 for example, you have accX, accY, accZ and their respectives values. Same for Gyro. i would like to know what are these values about since the angles of both gyroscope e accelerometer are given in accAngleX... and accGyroX.
And Angle X, Angle y, Angle z, on the last part, those referenced at the angles of what ?.
If you answer i would be grateful.

x-sq
Автор

thank you from my heart the simplest calibration at all!

مصطفىعباسمحمد-شخ
Автор

Thank you for this informative video; I have a question; after doing the same and testing it, I noticed that the Z value is changing over time even without touching the module. Do you have any idea why?

us-wolf
Автор

thanks a lot sir for the explaination and the code ur video helped alot

AdityaSingh-hxtv
Автор

Hello what is sample rate in your code ? Thanks

TheRESMAT
Автор

Thanks for you time making this video. What camera are you using for such great closeups? You audio is very low on this video. I rewound a few times to figure out what you said... Maybe you can edit and increase gain.

TRC-com
Автор

Thank you for the excellent explanation.
I have two additional questions:
1) How can I read the temperature?
2) I understand there is a Tangent function available (in the IDE or perhaps in the Library). I need to use this in one axis. Where is it, and how can I get the tangent of the angle the MPU6050 is detecting?

timkern
Автор

i have been watching this video 2 -3 times and in the and i understood good explanation

juanalvares
Автор

Very clear. Wish i found this video sooner 😟

dudeuw
Автор

Hey dude would you please tell me the difference between ADXL345 and MPU6050, and which one should be preferred for esp32?🙏

luie.nonoob
Автор

i have a question. can we use this sensor on inclined plane to test somethings stability? if we could then where do we place it and how is it going to work, im so lost pls helpp.... thanks so much for this videoo tho soo helpful!

daniaazzahra
Автор

Hello, is it possible to connect 2 different gyroscopes with your code ? If yes, should they be connected in parallel or each one on a different input ?

josselindavy
Автор

hello and thanks a lot for your sketch! it works like a charm, but i have a question. How to deal with 180+ problem. For instance i would like to continue storing the angle after i do a 180 degree up to 359. It is possible? I dont know how but in my android phone i tried a gyro sensor test demo and it is possible to continue the rotation up to 360. maybe it should be based on a script like if the prev angle was 179 then continue to add angles bla bla bla? Thanks a lot!

Muerte_S
welcome to shbcf.ru