Build an Electronic Level with MPU-6050 and Arduino

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

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

  • @Mystic0Dreamer
    @Mystic0Dreamer 5 лет назад +117

    HOLLY SMOLLY!
    Bill ---> Professor of the Year Award from me!
    I'm not kidding! I've had professors in college who weren't anywhere near as good as you Bill.
    History lessons:
    In-depth mathematics lesson on Quarternions.
    Does all the homework for us finding libraries etc.
    College Level programming explained in-depth.
    Unbelievable concise and even animated Schematic Graphics
    Live in-lab demonstration of the final results.
    LCD digital readout and an LED graphic display to boot!
    And if all that isn't already above and beyond the call of duty,... A link to a full web page complete with the same lesson all typed out with graphics, links, and code!
    Unbelievable! There's just no other word to describe this.
    You are a Younique RUclipsr Bill. To be sure!

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

      yes! but subs don't say that 😢😢😢

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

      youLamewhlteboi

  • @VictorDoomakaSumanthGottipati
    @VictorDoomakaSumanthGottipati Год назад +6

    Because of wonderful creators like you, I am able to learn and grow so much! Thank you!

  • @medrolet
    @medrolet 9 месяцев назад +3

    Thanks for another great tutorial. Excellent pun at 7:56 -- " ... the MPU6050 that IMUsing ... "

  • @donk73
    @donk73 4 месяца назад +1

    Thanks!

  • @raymondmichael4987
    @raymondmichael4987 5 лет назад +19

    An eye opener to the device.
    Thanks
    Greetings from Tanzania 🇹🇿

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

      you black?????

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

      @@atlnlgga4568 , if you’re asking whether I’m black, as of black matter; yes I’m black , native African from Tanzania 🇹🇿.
      Otherwise, I didn't get your question dude, uliza tena tafadhali

  • @Inertia888
    @Inertia888 5 лет назад +3

    I have been watching quite a bit of DroneBot's videos these past few weeks and this one is by far for me the most inspiring! I have to thank whomever it was that suggested the MPU-6050 sensor as a focus, as well as DroneBot of course. His videos are always great. I have a good feeling about where the wheels in my mind are rolling to now!

  • @tinkmarshino
    @tinkmarshino 5 лет назад +1

    egads.. I came late to class... I have an mpu-6050 but have not yet had a chance to play with it.. Now I have some great ideas.. thanks Bill.. I don't worry about my ssd because I can't get anything to work on windows 3.1 any more... keep smile Billiam.. life is good... thanks for the share and please carry on.. till thursday!

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

    This was something I had been googling for, and I found a full explanation, thanks for your work, it seems selfless, we are grateful

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

    Your explanations are very welcome and clear. We only had to change the LCD adress to let the code provided for the level work.

  • @DucatiMTS1200
    @DucatiMTS1200 5 лет назад +2

    What an excellent teacher you are sir. You really are superb at putting information across in a very clear and measured manner. Keep up the good work!

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

    Fantastic, I was looking for something I could use for an automatic leveling system on a camper van and I think this will be perfect, thanks.

  • @tanjiannan
    @tanjiannan 2 года назад +9

    18:34 The YPR angles drifted like crazy when the IMU sat still… you need to double check the code to see if there’s any compensation or filtering built in…

  • @stuartg40
    @stuartg40 5 лет назад +6

    Thanks for the regular videos and the education they provide. Keep up the great work.

  • @bahjatjalamdeh4085
    @bahjatjalamdeh4085 4 месяца назад

    Thanks a lot Bill , you are the best instructor

  • @SivaKumar-ny8pg
    @SivaKumar-ny8pg 3 года назад +1

    As usual highly professional and pragmatic delivery

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

    awesome…you are 1000x better than my lecturers…full respect from me 💋

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

    This is another great video from the Dronebot Workshop! I'm looking forward to experimenting with the MPU-6050 after having enjoyed watching this clip.

  • @abpccpba
    @abpccpba 5 лет назад +2

    An exquisite source; so well done. Thank Bill so much for your dedication to electronic experiments.

  • @DodgyBrothersEngineering
    @DodgyBrothersEngineering 5 лет назад +4

    This channel is inspiring so many ideas. Another device to be added to an upcoming project.

  • @DavidWiffCheese
    @DavidWiffCheese 5 лет назад +3

    I can not thank you enough for all these projects you make easy to understand keep on doing amazing work :)

  • @JesusGamayon
    @JesusGamayon 5 лет назад +4

    Thanks for this Bill, been waiting for this!

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

    Absolute genius! Trying to adapt for a different use and the roll is changing way too slowly (unlike the pitch which is spot on). In the vid it responds instantly!

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

    I Love your video The why u explain huge Fann Sir Love From Pakistan

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

    Very good explained. Thanks for the helpful tutorial!

  • @MrDdgiustina
    @MrDdgiustina 5 лет назад +1

    BEST Arduino professor.

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

    It's the best lecture ever.
    There is something I want to do.
    I want to get more than 3 mpu6050s connected to one Arduino Uno.
    I'm a novice at Arduino.

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

    As usual , a fantastic video. I cannot thank you enough .

  • @havafazai9023
    @havafazai9023 5 лет назад

    Thank you very much for the best arduino tutorial ever!
    Greetings from IRAN

  • @ΑντώνιοςΜανώλακας
    @ΑντώνιοςΜανώλακας 2 года назад

    Greetings from Greece. Grate video

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

    Well done !

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

    Thanks Sir for this video. I cannot emphasise how much this video helped me. Please keep coming with such videos.🥰

  • @Taran72
    @Taran72 5 лет назад +1

    Thank you very much for the wonderful video and for providing the libraries that work! You have been of great help to complete my Arduino projects. :)

  • @treverbelmont8393
    @treverbelmont8393 2 года назад +5

    actually the I2C12 zip file is not on your website instead it is the zip file with the aurduino code for the level

  • @TheUnofficialMaker
    @TheUnofficialMaker 5 лет назад +1

    Always great informative videos and excellent content and very thorough. I look forward to every one.

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

    Very Useful for me as I am trying to build an rc airplane flight controller/stabilizer.

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

    As always, great and comprehensive video.

  • @opalprestonshirley1700
    @opalprestonshirley1700 5 лет назад +1

    Really enjoyed this video. I've never this type sensor before. Thanks.

  • @gasko2762
    @gasko2762 5 лет назад

    Thank you for the perfect demonstrations. I would be grateful for the ATtiny microprocessor projects.

  • @pfow2006
    @pfow2006 5 лет назад +3

    thank you for another great video Bill. If I might say it would have been nice had you shown how to install the libraries in the ide.

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

    Your channel is indispensable.

  • @aberateklehaimanot9804
    @aberateklehaimanot9804 5 лет назад +1

    Great video as always.Thanks for sharing.

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

    Superb! Video. Thank you so much!!!

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

    Well BALANCED episode

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

    Really cool. I have had one of the 9DOF sensors in my drawer for several years, only tried playing with it a couple of times, didn't find it all that exciting since I am not into drones. Now, however I can see where it may be very handy in my RV for leveling her. The built in sensors are so slow that getting the old gal level enough for both walking and the operation of the frige are essential. I currently use an old spirit level and my wife telling me which way to go with the hydrolic levelers, but this would make life for both of us much easier and lest chaotic when we move to a new site. That is if we can ever get on the road again with this damn virus crap.

  • @a330turbinex7
    @a330turbinex7 2 года назад +2

    Can´t install the Jeff libraries. "Error: Request installZip failed with message: 13 INTERNAL: Library install failed: library not valid"... any idea what can be done?

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

    Great video thankyou, I used it to test my new mpu 6050 boards.

  • @army6669990101
    @army6669990101 5 лет назад +1

    This build is perfectly balanced. As all things should be.

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

    Happy New Year!!!

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

    can someone give me the NewLiquidCrystal Library for I2C used in this video?
    because the link on this website is dead and can't be downloaded anymore

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

    i spent like four days trying to manually communicate via I2C and interpret the IMU + gyro myself (and failed)
    thanks for pointing out these libraries

  • @electronic7979
    @electronic7979 5 лет назад +1

    Useful and very good video 👍

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

    Thank you so Much. A very very useful video .

  • @ttibor
    @ttibor 5 лет назад

    I am glad I found this channel.

  • @atabatabaee
    @atabatabaee 5 лет назад

    Hey, thanks, you are great, your workshop is great, your videos are great .
    I wish I could drink a cup of coffee with you in your workshop and poke around.

  • @patrickmaartense7772
    @patrickmaartense7772 5 лет назад +2

    Nice video and gave me an idea to build an joystick that does not rely on potentio meters but can use the gyro.
    just to see if I get better and finer results compared to a analog joystick

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

    The link for the NewLiquidCrystal Library on the level sketch is no longer working. Is there an alternative, working link? I am unable to get this project to work without the required libraries. Thanks!

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

      Were you ever able to get it? Because I cannot

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

      youIameazz whlteboi

  • @ericgroen253
    @ericgroen253 5 лет назад

    Nicely explaind! Especially the graphics!!

  • @ChrisJackson-js8rd
    @ChrisJackson-js8rd 7 месяцев назад

    i think the "w" is an omega?
    the real part of a complex number is typically represented by a miniscule omega (which looks like a lowercase w)

  • @peterbthomas4227
    @peterbthomas4227 5 лет назад

    Thanks for helping get through Uni.

  • @Prompt24
    @Prompt24 5 лет назад +1

    Exactly what I was looking for. Thanks. I would like you to think about the thermometer for extreme conditions like sauna.

    • @abpccpba
      @abpccpba 5 лет назад

      Take note what Bill said in this video; only accept request from News Letter subscribers.

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

      you Iamewhlteboi

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

    Thank you for making these awesome videos.

  • @dufric88
    @dufric88 9 месяцев назад +2

    how do you handle drift though? I've found these have a bad tendency to lose their position very quickly, even when not in motion.

  • @Moon-D0G
    @Moon-D0G 8 месяцев назад

    I wish we could somehow put one 6050 horizontally and one 6050 vertically and calculate yaw angle. I need to buy BNO055 now 😢

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

    Thank god I found this. Just discovered a new hobby!

  • @kapowbalw
    @kapowbalw 5 лет назад +1

    This is really great stuff! Thanks a bunch.

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

      you Iamewhlteboi

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

      @@atlnlgga4568 watch it, boy

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

    Incredibly helpful.

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

    really very good explain i have one question i want to control a moving platform its having 4 wheels connected with

    • @mattn.8941
      @mattn.8941 3 года назад

      If that's a question, you need to be more specific. What is this "4 wheeled moving platform" supposed to do? Why do you need an IMU for it?

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

      YouLAMEwhlteboi

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

    I have a problem with I2C Development Library, when I download zip file and try to install it, it says that zip file doesnt contain library. Its empty

  • @Master_Chief_532
    @Master_Chief_532 5 лет назад

    great explanation. you are a hero!

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

    I have been wanting to use one on an RC Submarine for automatic leveling.

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

    Great job 👍👍👍

  • @Prompt24
    @Prompt24 5 лет назад

    Please do not forget the XOD. It would be interesting and useful. Nobody make a tutorial for XOD, but you. Thanks a lot.

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

    The man is just sooo good

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

    Thank you sir this was very helpful!

  • @rogerbeck3018
    @rogerbeck3018 5 лет назад +1

    especially thank you for thr explanation of degrees of freedom ... I did not understand 6 (9) dof

  • @jasonrbodie
    @jasonrbodie 5 лет назад +1

    You're awesome. Thank you!

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

    The way you explain this stuff is really awesome! Make More videos please.subscribed to channel and news letter

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

    Would you explain it to me why you didn't use pull up resistors and the i2c pins on right top (18 and 19)?
    Thanks for the explanatory video.

    • @SK-ow4vw
      @SK-ow4vw Год назад

      I think that the gy-521 module has inbuilt pull-up resistors.

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

    Very nice. And the electronic level was exactly what I needed for a current project. I'm using laser LEDs that point to the ground. And I want to switch them off if my device is moved or tips over to avoid someone accidentally looking into the laser beam. Seems like the GY521/MPU-6050 is the component I need as a safety device. Thanks for your effort.

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

    The library you used doesn't work with ESP32-C3. The MCU crashed during initialization. I used MPU-6050-Fusion instead.

  • @willofirony
    @willofirony 5 лет назад +5

    Excellent video, as per (how soon we take perferection for granted). Am I correct in assuming that the initial calibration should be done on a levelled surface. As this will be the "zero" attitude for all future calculations?

    • @eyal4
      @eyal4 5 лет назад

      you can do the initial calibration while not being on a leveled surface. You can use the accelerometer values for the calibration of the gyro to "tell" it in what position it is in.

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

      you Iamewhlteboi

  • @stuartg40
    @stuartg40 5 лет назад +1

    It occurred to me that this video may be quite useful for the amateur rocket-building community due to the gyro & accelerometer information.

  • @cyadid
    @cyadid 5 лет назад

    So professional ! Bravo !!!

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

    The link in the article with the code for the liquid crystal library needs to be updated... it took me to an error ☹️☹️☹️☹️

  • @Jethro.Maloku-le.Rey.Kalsitran
    @Jethro.Maloku-le.Rey.Kalsitran 5 лет назад +2

    nice but as you only lit one LED at a time, you could save 4 resistors and only put one on the common ground wire of the LEDs ;-)

  • @LilVader101
    @LilVader101 5 лет назад

    Thank you very much sir for making the video that I requested for.

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

    Hey @DroneBot Workshop, can this device give live update of coordinates of accelerometer? Like every second?

  • @sroberg9800
    @sroberg9800 5 лет назад

    nice work shop

  • @Richard-vw8no
    @Richard-vw8no Год назад +1

    Well... 4 years later. Something is wrong with one of the zip files you've provided for this build. The zip file for the i2c dev lib seems to be overwritten with electronic level sketch.

    • @SK-ow4vw
      @SK-ow4vw Год назад

      I think the I2Cdev file is available elsewhere on the internet.

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

    I can understand that the digital spirit level needs only roll and pitch, (a) if for any purpose, I needed Yaw, then can it be done on similar lines as the sensor has 3 DOF? (b) If two of the MPU6050s are placed perpendicular to each other, will I have all three parameters of Roll, Pitch and Yaw?

    • @SK-ow4vw
      @SK-ow4vw Год назад

      (a) The internal registers of the 6050 chip are (in decimal) 59 and 60 for X acceleration , 61 and 62 for the Y acceleration, and 63 and 64 for the Z acceleration. The first register of each is the high byte. You can probe all three registers and then get all three axes.
      (b) No need for a second chip to get 3-D orientation.

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

    This is sooo cool! Could we extend this idea to make a three axis camera gimbal? Maybe add some servos?

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

    Am I correct in assuming the default orientation of the MPU is with the INT to the bottom left. So X+ goes right and Y+ forward and Z+ Upwards. Which means at 31:02 the X+ is now pointed towards you and Y+ to the right. This would make Pitch+ direction go counter clockwise. Thx

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

      Also at 31:02 the Yaw would 90?

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

      youIame whlteboi

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

    Cool label - "well balanced workshop!"

  • @Vaibhav-Mishra
    @Vaibhav-Mishra 2 года назад +1

    I cannot download I2Cdev.h and NewLiquidCrystal library. Please help

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

    Thank you!

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

    I use it more for the Temperature Sensor feature

  • @manideepduggi952
    @manideepduggi952 5 лет назад

    Nice 😍 very useful

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

    Love this project

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

    Hi! How long could be the cable from the "UNO" to the sensor, in other words, how far away could be the sensor from the controller?

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

    When the MPU is first initialized and calibrated on a level surface are the results stable or do they drift over time? If there is drift how often would the lever require a reset?