mpu 6050 arduino tutorial for beginners

Поделиться
HTML-код
  • Опубликовано: 2 янв 2025

Комментарии •

  • @ico-theredstonesurgeon4380
    @ico-theredstonesurgeon4380 3 года назад +36

    can you make a video that doesn't hurt my head? I mean, I get the animations and all, but when showing code the screen needs to be still. It gets pretty trippy

    • @mission_critical
      @mission_critical  3 года назад +6

      Hahaha sure, Infact if you check my latest videos, there are less animations .
      Thank you for your suggestion!

    • @ico-theredstonesurgeon4380
      @ico-theredstonesurgeon4380 3 года назад +1

      @@mission_critical my pleasure ;)

    • @Frownbrows
      @Frownbrows 2 года назад

      @@ico-theredstonesurgeon4380 Idiot

    • @orange_tweleve
      @orange_tweleve Год назад +1

      ​@mission_critical brah the animations are like , stop rotating the words for no reason 😂 u say one word, the rest of the words do a damn 360 and then add a new word. Too much animations but great video

    • @nicholasparks500
      @nicholasparks500 6 месяцев назад

      came here specifically to say something similar; makes it hard to follow along. good video otherwise, thanks.

  • @activemotionpictures
    @activemotionpictures 3 года назад +2

    The best video out there for this sensor! Thank you very much! 5:23 - That's a tutorial for our next video. I'll look for this one!

  • @cubeunfortunate4228
    @cubeunfortunate4228 2 года назад +3

    Can somebody help me? I double checked my wiring and tried this with too separate sensors but it still returns saying that it has not found a valid MPU-6050

  • @tuyenvo1038
    @tuyenvo1038 2 года назад +3

    When I followed your instructions, I got this error 'class MPU6050' has no member named 'begin' your video was released about 1 year ago. I don't know if you can help me in this case

  • @onlyeyeno
    @onlyeyeno 2 года назад +7

    Great video, short but still comprehensive enough and well explained .
    I must also commend You for talking Your time and talking relatively slowly and very clearly, as I as a non native English speaker often have problems following tutorials where the "instructor" talks like a "machine gun" :)
    Best regards.

  • @aizadjohari2419
    @aizadjohari2419 3 года назад +3

    it show message could not find a valid MPU6050...how can i solve this

  • @dawkos8631
    @dawkos8631 4 года назад +9

    probably one of the best arudino tutorial i have ever seen, keep it up! :)

    • @mission_critical
      @mission_critical  4 года назад

      Thank you 😊

    • @Riz1ahmed
      @Riz1ahmed 4 года назад

      @@mission_critical There have so many mistakes. 4 example haven't seen how to install the library.

  • @bluestar1457
    @bluestar1457 3 года назад +1

    All the values of Ynorm , Xnorm, znorm, yraw, xraw, and zraw show 0. No matter how much I move it remains zero. Is this mean that my mpu6050 is broken?

  • @satyamshashankkaran5886
    @satyamshashankkaran5886 4 года назад +2

    I am following the same process but whenever the code calls any function like mpu.begin or mpu.caliberateGyro any function it doesn't execute furthur. Please respond. Serial monitor only shows initialize mpu

    • @mission_critical
      @mission_critical  4 года назад

      Please try the example code first and then edit your code with reference to example code, it happens many times that we mess up very small segments of code

  • @thirumeniparthiban6261
    @thirumeniparthiban6261 3 года назад +1

    What software you use for desktop capturing, i can see zoom in out movement etc., which software you use.

    • @mission_critical
      @mission_critical  3 года назад +1

      It's basic recording and mostly editing, i use OBS studio for plain recording and do the magic in Premiere pro

  • @engineer966
    @engineer966 2 года назад +1

    Your editing is superb , and the content is fab

  • @rianmoore8693
    @rianmoore8693 2 года назад

    hi what brand of the sensor did you get eg adafuit sparkfun

  • @jackfrost4033
    @jackfrost4033 10 месяцев назад

    Good morning
    When making a wide turn with pitch, does the plane only use a gyroscope for pitch or also an accelerometer for the curved trajectory?
    THANKS

    • @mission_critical
      @mission_critical  10 месяцев назад

      Plane uses multiple sensors and imus along with different filtering algorithms to make the calculation

  • @raj_srikar
    @raj_srikar 4 года назад +8

    I've never seen such high quality tutorial. I subbed immediately!♥️

  • @zaimzarif7508
    @zaimzarif7508 3 года назад

    im impressed with you video editing. nice!

  • @MrSikkandar
    @MrSikkandar 3 года назад +2

    more than the tutorial video editing is very nice, tutorial also useful

  • @crabbypatty7535
    @crabbypatty7535 Год назад

    do you have to solder the pins into the nano

  • @ShubhamSingh-iq5kj
    @ShubhamSingh-iq5kj Год назад

    I have a question can we calculate displacement using s = ut +1/2at2

  • @TechnoWit3D
    @TechnoWit3D 4 года назад +2

    nice tutorial. is it possible to user wemos D1 mini instead om nano ?

    • @mission_critical
      @mission_critical  4 года назад

      As far as I know Wemos has I2C communication and hence can be used, not sure if there will be any code changes because this library is made for Arduino, so give it a try and all the best 😊

    • @TechnoWit3D
      @TechnoWit3D 4 года назад +1

      @@mission_critical thx

    • @mission_critical
      @mission_critical  4 года назад

      Most welcome 😊

  • @nurulistiqomah9476
    @nurulistiqomah9476 3 года назад +2

    i have done to try it, why the output like this one ;
    Could not find a valid MPU6050 sensor, check wiring!
    Could not find a valid MPU6050 sensor, check wiring!
    Could not find a valid MPU6050 sensor, check wiring!

  • @darkcupid7324
    @darkcupid7324 Год назад

    can i use this theory and logic on a bootleg xbox controller to make it have motion control?

  • @YTimo
    @YTimo 4 года назад +1

    Does this also work with an Ardiuno MEGA 2560?

    • @mission_critical
      @mission_critical  4 года назад

      Yes definitely, works with any microcontroller board with I2C communication protocol, you won't need to change code for Arduino mega

  • @danielkorman1361
    @danielkorman1361 3 года назад +1

    When I upload the example code and adding all the libraries, it gets stuck at Initiazalize MPU6050. I tried rewiring the VCC connection multiple times but it still get stuck.
    Do you have a fix for this?

    • @loeloe0251
      @loeloe0251 3 года назад

      Hey, i know I'm a bit late but did you find a fix for it? having the same issue.

    • @danielkorman1361
      @danielkorman1361 3 года назад

      @@loeloe0251 Havent done it yet but if its wired to 5v apparently y a resitor for the sda and scl lines that convert the current to 3.3v should make it work

    • @loeloe0251
      @loeloe0251 3 года назад

      @@danielkorman1361 Thanks, worked for me. Have a great day

    • @danielkorman1361
      @danielkorman1361 3 года назад

      @@loeloe0251 Nice, Ill make sure to try that out now :)
      Quick question what impedance resistors did you use?

    • @loeloe0251
      @loeloe0251 3 года назад

      @@danielkorman1361 Don't exactly know what impedance means but I think the resistord I used where 10k but don't know if that makes a difference, new to all this electronic stuff.

  • @hannanasari9668
    @hannanasari9668 11 месяцев назад +1

    sda and scl only connect to A4 and A5? why not other arduino pins?

    • @mission_critical
      @mission_critical  10 месяцев назад

      That's where the i2c peripheral is wired to internally in the Arduino

  • @AdityaSingh-hx1tv
    @AdityaSingh-hx1tv 4 года назад +2

    It shows class mpu6050 has no member named begin
    This error is shown in initialize mpu6050 statements
    Pls helpp

    • @kartikhegde9368
      @kartikhegde9368 4 года назад +1

      just delete installed MPU6050 library and install "jarzebski
      /Arduino-MPU6050" library

    • @AdityaSingh-hx1tv
      @AdityaSingh-hx1tv 4 года назад +1

      @@kartikhegde9368 thnx ,i found another library right after that day and it worked

    • @AdityaSingh-hx1tv
      @AdityaSingh-hx1tv 4 года назад

      @@kartikhegde9368 u mean mpu6050 tockn library?

    • @kartikhegde9368
      @kartikhegde9368 4 года назад

      @@AdityaSingh-hx1tv one is MPU6050 and otherone is tockn, both are built in libraries, we dont want both

    • @mission_critical
      @mission_critical  4 года назад

      You used the wrong library, thank you @Robotics Hackground to answer!

  • @FPChris
    @FPChris 3 года назад

    In the offsets. Is that 0-360 degrees?

  • @Apophlegmatis
    @Apophlegmatis 4 года назад +1

    I'm having the same issue here as everywhere else. Not everyone using this breakout is using Arduino, what is in calibrateGyro()? What is in readRawGyro()?

    • @mission_critical
      @mission_critical  4 года назад

      If you want to skip callibrateGyro() you can do it
      readRawGyro is pure numbers value coming from sensor

    • @Apophlegmatis
      @Apophlegmatis 4 года назад +1

      I guess I have different issues, possibly defective chip (according to manufacturer IT desk). Looking forward to testing the chip someday to confirm or deny that, but I couldn't even get the who-am-i to read back.

  • @CODEHUB03
    @CODEHUB03 2 года назад +1

    love those editing and the way of explanation, which software do u use to edit your videos??

  • @jasaku8845
    @jasaku8845 2 года назад +1

    good and easy to understand, but i was confused because the screen cant stop moving

  • @tanoryjakaperdana1419
    @tanoryjakaperdana1419 3 года назад

    what software you use to edit the video?

  • @marshallart3384
    @marshallart3384 2 года назад +1

    Good video, but if anybody is having problems the sda and scl need to be swapped for it to work

  • @siarnabizadah7621
    @siarnabizadah7621 2 года назад +1

    GREAT VIDEO!! LOVE THE EDITING!! KEEP IT UP!

  • @poojak3175
    @poojak3175 3 года назад

    Hi sir I have made biped robot in which I have used Arduino and pca9685 as I want to balance my robot I had added mpu6050 I am getting problem in my program please help me sir

  • @caavdig1
    @caavdig1 4 года назад +1

    What is the name for the pins that you soldered to the card? Thank you

  • @halamkajohn
    @halamkajohn 11 месяцев назад

    what will happen if i put a 5 volt clock signal and oscilloscope probe scl and sda

    • @mission_critical
      @mission_critical  10 месяцев назад

      The communication protocol needs data to be in a certain format to work, if you do that nothing should happen no output at scope

  • @faturahmanf3024
    @faturahmanf3024 2 года назад

    What variable to read to know the angle

  • @sanjitraman
    @sanjitraman 4 года назад +1

    Can I mount this thing upside down and calibrate it as a zero?

  • @salemahmed9014
    @salemahmed9014 4 года назад +1

    class MPU6050' has no member named 'begin'
    why this error message show??
    pls help..

    • @mission_critical
      @mission_critical  4 года назад

      i guess u have used wrong library else code, use the code from examples,
      Thank you for Subscribing to Mission Critical

    • @The123rue
      @The123rue 4 года назад

      Hello, I have the same error. What do you mean by "Use wrong library else code" ? I downloaded the library from your link and then opened the same exemple as you.. thanks you in advance

    • @The123rue
      @The123rue 4 года назад

      okok got it, i need to delete the former MPU650 I installed. But Now my problem is that the code print" Could not find a valid MPU6050 sensor, check wiring", However my sensor is brand new and i tested the 2 i have

    • @gregd3317
      @gregd3317 4 года назад

      @@The123rue I have exactly the same problem. Brand new sensor, all wiring double and triple checked, and I still can't rectify the issue.

    • @maciejpospiech4371
      @maciejpospiech4371 4 года назад +1

      Yup, you have to uninstall other MPU 6050 libraries installed earlier
      Just go to your documents/Arduino/Libraries/ and delete these libraries (folders), that should fix the problem

  • @Fugul_
    @Fugul_ 4 года назад +3

    Very nice sir, I want the coding which is shown in the display, I also checked the description link but the coding is missing

    • @mission_critical
      @mission_critical  4 года назад +1

      Please check again, we have uploaded all codes on Instructable

  • @naurazuhdi5134
    @naurazuhdi5134 4 года назад +1

    Why it doesnt show the ouput? It just shows "initialize MPU6050" only and nothing happened. Thanks in advance

    • @mission_critical
      @mission_critical  4 года назад

      Did you double check the connection? I would suggest you to switch SDA and SCL pins which I majority times mess up and wonder why I don't see anything on my serial monitor

  • @Bosefis
    @Bosefis 3 года назад +14

    Good tutorial! I can appreciate the amount of editing as well, great work overall! 👍

  • @robinwood5833
    @robinwood5833 4 года назад +2

    Great video, I wonder if you could help me, I am trying to write an 'if' statement to activate a led when the 'x' value == between 49 deg and 51 and where I could insert this, I would be so grateful
    Thank you
    Robin from Australia

  • @saugatghimire9526
    @saugatghimire9526 3 года назад

    It shows this error 'class MPU6050' has no member named 'begin'!

  • @reddishshrimp4345
    @reddishshrimp4345 3 года назад

    I am always getting as values. Any reason why?

  • @FPChris
    @FPChris 4 года назад +1

    I need to mount mine vertical. Are you saying offsets would allow this?

  • @simonndungu1196
    @simonndungu1196 4 года назад +9

    You've got some good video editing skills

    • @mission_critical
      @mission_critical  4 года назад

      Thanks a lot 😍

    • @alvinboby9962
      @alvinboby9962 3 года назад +1

      @@mission_critical Just make sure u don't over edit
      Tip: 4:00 Just zooming in is enough, and the I like the component labeling at 1:10
      Good luck with your videos

  • @speagleaerospace1013
    @speagleaerospace1013 3 года назад

    Pls tell how to print this data and save it to sd card from mpu6050

  • @AbdulRahman-jz3px
    @AbdulRahman-jz3px 2 года назад +1

    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?

    • @isaacyuki1
      @isaacyuki1 2 года назад

      Yes if u derivate the output over time. The MPU delivers angle-velocity as output.

  • @lorenzothepasta2820
    @lorenzothepasta2820 3 года назад

    code/library doesn't work :/ it prints random characters to the serial monitor

  • @kac3514
    @kac3514 4 года назад +1

    Hi what did u use for the animations, it is beautiful

    • @mission_critical
      @mission_critical  4 года назад

      It's a trade secret 🙃😆

    • @kac3514
      @kac3514 4 года назад

      Please can you say what it is, is it after effects. If you really don’t want to tell then it is ok. I need it

    • @mission_critical
      @mission_critical  4 года назад

      Yes after effects and premier pro

  • @LITHISHLOCHANCKPSGiTECH-qj1jw
    @LITHISHLOCHANCKPSGiTECH-qj1jw 2 месяца назад

    Compilation error: 'class MPU6050' has no member named 'begin

  • @pratiklondhe5167
    @pratiklondhe5167 3 года назад

    that's really nice explanation man , why you connected a wire to address select at last part of video can you tell plz?

  • @jolinarcze
    @jolinarcze 2 года назад +3

    heyo, and thanks for making this video! i have recently gotten into arduino and thought to use this sensor, but upon looking how to connect it and use it in code, i have found out tons of threads describing how this sensor is now outdated/obsolete, but not many of them offering a good alternative... looking back, it seems this sensor has been around since like 2012, so i can understand. I have also gotten a hang of mine, but it turned out to be a fake (0x98 instead of 0x68 asa return of WHO_AM_I ...) hence i come for you to advice... what IMU sensor would be a good idea to use nowadays?

    • @mission_critical
      @mission_critical  2 года назад

      Not sure previously which is the new one, but look for MPU 9250 maybe or ask around on the reddit, someone might know about this better than me.
      Cheers

  • @dharambir_iitk
    @dharambir_iitk Год назад

    Pro Level Editing bro!

  • @Violaetor
    @Violaetor Год назад +1

    This video needs a gyro... when the purpose of a video is to read whats on screen, having it pan scan rotate and skew while things are popping up overtop really makes it annoying.

  • @qozia1370
    @qozia1370 Год назад +2

    Disliked! Too many animations and movements! This is an educational channel not a kids channel!!

    • @mission_critical
      @mission_critical  Год назад

      I understand your concern and I have duly noted this, and improved in my later videos, thank you for bringing it to attention

  • @sarlamomaya1250
    @sarlamomaya1250 4 года назад +2

    Very nice 👌 Akshay

  • @tristanfloris9970
    @tristanfloris9970 3 года назад +2

    This is a propper good tutorial vid!!

  • @sangle1658
    @sangle1658 3 года назад

    video so great. what software do u use to do that?

  • @ssaulgoodmann
    @ssaulgoodmann 4 года назад +2

    how bout you make a vr headset using it ?

  • @sxe-fp5yt
    @sxe-fp5yt 3 года назад +2

    You didn't tell us about the difference between the accelerometer and the gyroscope and the error caused by the vibrations
    Actually, this is the main mathematical problem that needs to be solved using this component

  • @suniltanwar7625
    @suniltanwar7625 3 года назад +1

    Awesome vedio bro

    • @mission_critical
      @mission_critical  3 года назад

      Glad you liked it, thank you for subscribing to Mission Critical

  • @asmawi8463
    @asmawi8463 3 года назад

    Can give example code for mpu 6050 free fall detection

  • @razowankobir7378
    @razowankobir7378 Год назад

    thank you so much for your librabry brother

  • @isaiahgovea2319
    @isaiahgovea2319 3 года назад

    Amazing video kept me engaged the entire time

  • @dcpowered
    @dcpowered 4 года назад +2

    When will you post the video for using Processing with MPU6050?

    • @mission_critical
      @mission_critical  4 года назад +1

      It's already posted on my channel, please check it out

  • @soufbel3455
    @soufbel3455 4 года назад +3

    Nice job 👍, can you explane what is the meaning of 3, 6 or 9 axis? 👍👍👍

    • @mission_critical
      @mission_critical  4 года назад

      3 axis XYZ ,
      6 axis xx , xy, xz, yy, yx, yz, zz, zx, zy
      Similar combination for xxx, yyy, zzz

  • @walterbaldemor2128
    @walterbaldemor2128 Год назад

    I like it, excellent!

  • @panakjdere3074
    @panakjdere3074 4 года назад +1

    can you make video on mpu6050, 3 axis gimbal with arduino

    • @mission_critical
      @mission_critical  4 года назад

      Actually I have made that video, check it out ( not exactly like you wish it to be but it's good enough)

  • @oogityboogity6644
    @oogityboogity6644 3 года назад +1

    Great tutorial thanks this is helping me with a gyroscopically stabilizer

  • @gustavoadolfosanchezvera4124
    @gustavoadolfosanchezvera4124 2 года назад

    Good tutorail,thanks

  • @tharindupiumal3389
    @tharindupiumal3389 2 года назад +1

    An attractive video

  • @zgryx8428
    @zgryx8428 3 года назад +2

    Great tutorial, what software are you using for editing? Thanks man😇

    • @mission_critical
      @mission_critical  3 года назад +1

      Glad to know that you liked it, thank you,
      I use Combination of few softwares like Premire Pro, After effects, Da Vinci

    • @nanorealmak
      @nanorealmak 3 года назад

      The software is arduino ide
      You can get it on arduino.cc

  • @ullaskunder
    @ullaskunder 4 года назад +1

    Sir can you make tutorial on combined mpu6050, sd module with speaker and Arduino Nano

    • @mission_critical
      @mission_critical  4 года назад +2

      I think Arduino nano would run out of memory for code in this case, but it's possible, let's see

  • @dansimpson1729
    @dansimpson1729 2 года назад +1

    Sorry to ask but do you know where I can find cables like the one in your video? Is there a specific name for the grouped cables that you can split apart to make the connections?
    Great video btw👏

    • @splzx8833
      @splzx8833 2 года назад +1

      They're called jumper wires and are pretty cheap, they'll come in a big pack but dont get the really cheap ones because they can be really bad and break easily. There's male to male, male to female and female to female sets.

  • @fahmi5860
    @fahmi5860 3 года назад

    Nice video, l like this one

  • @ApoorviVishnoi
    @ApoorviVishnoi 9 месяцев назад +1

    can i get the github link ?

    • @mission_critical
      @mission_critical  8 месяцев назад

      Hey, when I made this video, I did not have a GitHub repo, for the future videos, everything is gonna be on github repos

  • @yousefyousef495
    @yousefyousef495 3 года назад

    how to connect more than 1 with arduino ?

  • @imnotryuu6391
    @imnotryuu6391 3 года назад

    Hello! I’d like to use this sensor for a pokeball toy 7cm x 7cm and make it sound when I shake it, how can I do it and what else do i need?
    Liked your video and well explained

  • @219cafe
    @219cafe 3 года назад

    You did not show us how to connect the board to the computer.

  • @woutswevers6198
    @woutswevers6198 4 года назад +1

    Can you make a tutorial for this ESC: 36 V 500 W High Power Brushless Motor Controller Driver Board Mounted No Hal?

    • @mission_critical
      @mission_critical  4 года назад

      I wish I could, but I don't have that kind of resources to make detailed video on motor drivers, but I will definitely try it

  • @sunillimbu2059
    @sunillimbu2059 2 года назад

    for rocket thrust gimble code and li...

  • @alekseikolupaev9941
    @alekseikolupaev9941 4 года назад +1

    As far as I know SDA should be connected to A4, but in your video it's connected to A5

    • @mission_critical
      @mission_critical  4 года назад

      SDA and SCL are I2C pins and they should be connected to SDA and SCL, and in Arduino Nano, SCL is A5 and SDA is A4.
      And I have connected the hardware in same manner or else there won't be any data on serial if the sensor is connected incorrectly

  • @isammmdli4967
    @isammmdli4967 4 года назад +2

    Thanks for the detailed explanation. But please dial down those animations while you show codes or small parts of device. It is distracting.

    • @mission_critical
      @mission_critical  4 года назад +1

      I didn't realise that while editing, now I understand why everyone is saying the same, I have noted this point and have started to implement it,
      Thank You for your suggestion

  • @s.siddharth5732
    @s.siddharth5732 3 года назад

    does someone have the zip file for Wire.h library?

  • @DAREDEVIL-lj2we
    @DAREDEVIL-lj2we 2 года назад

    great video. have some confidence and enthusiasm. :}

  • @shenulisenarathna3482
    @shenulisenarathna3482 2 года назад

    Good tutorial 👍

  • @BB-iq4su
    @BB-iq4su 3 года назад +1

    Well done!

  • @climbeverest
    @climbeverest Год назад

    Quite incredible

  • @P0K0
    @P0K0 Год назад +1

    Quality edit

  • @bachaaymene
    @bachaaymene 3 года назад

    'class MPU6050' has no member named 'begin'

  • @sapnarani2095
    @sapnarani2095 4 года назад +2

    Nice animation

    • @mission_critical
      @mission_critical  4 года назад

      Glad that you liked it
      Thank you for Subscribing to Mission Critical

  • @Shubham-9996
    @Shubham-9996 2 года назад

    Nice effects

  • @pramilamhatre4265
    @pramilamhatre4265 4 года назад +2

    awesome animations !

  • @m.nandanbhandary8742
    @m.nandanbhandary8742 3 года назад

    isnt it 3 axis?

  • @jackieboi5275
    @jackieboi5275 4 года назад +3

    Love it!!!

    • @mission_critical
      @mission_critical  4 года назад

      Thanks mate !
      Thank you for subscribing to Mission Critical!!🔥

  • @konorisx8836
    @konorisx8836 2 года назад

    you forgot to include the github library in the description

    • @outruzer
      @outruzer 2 года назад +1

      I found this library, but problem is I can't download it

    • @outruzer
      @outruzer 2 года назад

      Great. Finally I fpund button, where I can download it

  • @blackhole8284
    @blackhole8284 Год назад

    There is something wrong with the code

  • @roshnisahoo3643
    @roshnisahoo3643 4 года назад +2

    Nice!

  • @prakash52kar
    @prakash52kar 4 года назад +1

    Excellent!!

    • @mission_critical
      @mission_critical  4 года назад

      Glad you liked it,
      Thank you for Subscribing to Mission Critical