Build an Electronic Level with MPU-6050 and Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

ความคิดเห็น • 431

  • @VictorDoomakaSumanthGottipati
    @VictorDoomakaSumanthGottipati ปีที่แล้ว +6

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

  • @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 TH-camr Bill. To be sure!

    • @mixgamer2908
      @mixgamer2908 4 ปีที่แล้ว +2

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

    • @atlnlgga4568
      @atlnlgga4568 3 ปีที่แล้ว

      youLamewhlteboi

  • @medrolet
    @medrolet 10 หลายเดือนก่อน +3

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

  • @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!

  • @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…

  • @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

  • @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!

  • @donk73
    @donk73 5 หลายเดือนก่อน +1

    Thanks!

  • @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.

  • @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

  • @DodgyBrothersEngineering
    @DodgyBrothersEngineering 5 ปีที่แล้ว +4

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

  • @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!

  • @abpccpba
    @abpccpba 5 ปีที่แล้ว +2

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

  • @5000BC-Bot
    @5000BC-Bot 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.

  • @zaqwsx28
    @zaqwsx28 11 หลายเดือนก่อน +1

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

  • @DavidWiffCheese
    @DavidWiffCheese 5 ปีที่แล้ว +3

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

  • @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

  • @MrDdgiustina
    @MrDdgiustina 5 ปีที่แล้ว +1

    BEST Arduino professor.

  • @JesusGamayon
    @JesusGamayon 5 ปีที่แล้ว +4

    Thanks for this Bill, been waiting for this!

  • @shahrozKhan4u
    @shahrozKhan4u 4 ปีที่แล้ว +1

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

  • @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.

  • @TheWesterwaelder
    @TheWesterwaelder 2 ปีที่แล้ว +1

    Very good explained. Thanks for the helpful tutorial!

  • @saravanampatti1
    @saravanampatti1 ปีที่แล้ว

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

  • @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.

  • @army6669990101
    @army6669990101 5 ปีที่แล้ว +1

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

  • @ansarbalkhi
    @ansarbalkhi 3 ปีที่แล้ว

    Well BALANCED episode

  • @VortexMotiveVision
    @VortexMotiveVision 3 ปีที่แล้ว

    Your channel is indispensable.

  • @ΑντώνιοςΜανώλακας
    @ΑντώνιοςΜανώλακας 2 ปีที่แล้ว

    Greetings from Greece. Grate video

  • @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. :)

  • @havafazai9023
    @havafazai9023 5 ปีที่แล้ว

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

  • @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?

  • @kaifahmad4131
    @kaifahmad4131 2 ปีที่แล้ว

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

  • @electronic7979
    @electronic7979 5 ปีที่แล้ว +1

    Useful and very good video 👍

  • @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)

  • @TheUnofficialMaker
    @TheUnofficialMaker 5 ปีที่แล้ว +1

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

  • @a330turbinex7
    @a330turbinex7 2 ปีที่แล้ว

    Superb! Video. Thank you so much!!!

  • @asmaklad
    @asmaklad 4 ปีที่แล้ว

    As always, great and comprehensive video.

  • @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

  • @aberateklehaimanot9804
    @aberateklehaimanot9804 5 ปีที่แล้ว +1

    Great video as always.Thanks for sharing.

  • @Richard-vw8no
    @Richard-vw8no ปีที่แล้ว +2

    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.

  • @opalprestonshirley1700
    @opalprestonshirley1700 5 ปีที่แล้ว +1

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

  • @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.

  • @peterdlynes
    @peterdlynes ปีที่แล้ว

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

  • @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

  • @henkoegema6390
    @henkoegema6390 2 ปีที่แล้ว

    Well done !

  • @ttibor
    @ttibor 5 ปีที่แล้ว

    I am glad I found this channel.

  • @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.

  • @barchilsaid3001
    @barchilsaid3001 4 ปีที่แล้ว

    Thank you so Much. A very very useful video .

  • @drdjwalker4688
    @drdjwalker4688 4 ปีที่แล้ว

    Incredibly helpful.

  • @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

  • @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.

  • @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 ☹️☹️☹️☹️

  • @tamaparata4203
    @tamaparata4203 4 ปีที่แล้ว

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

  • @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.

  • @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

  • @peterthinks
    @peterthinks 8 หลายเดือนก่อน +1

    Is the download link broken? Error: 13 INTERNAL: Library install failed: moving extracted archive to destination dir: library not valid

  • @cyronader
    @cyronader 4 ปีที่แล้ว

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

  • @jayrajchougale7617
    @jayrajchougale7617 2 ปีที่แล้ว +1

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

  • @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.

  • @gasko2762
    @gasko2762 5 ปีที่แล้ว

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

  • @clintdarocha6272
    @clintdarocha6272 4 ปีที่แล้ว

    Thank you for making these awesome videos.

  • @GodSymmetry001
    @GodSymmetry001 4 ปีที่แล้ว

    Happy New Year!!!

  • @peterbthomas4227
    @peterbthomas4227 5 ปีที่แล้ว

    Thanks for helping get through Uni.

  • @kapowbalw
    @kapowbalw 5 ปีที่แล้ว +1

    This is really great stuff! Thanks a bunch.

    • @atlnlgga4568
      @atlnlgga4568 3 ปีที่แล้ว

      you Iamewhlteboi

    • @kapowbalw
      @kapowbalw 3 ปีที่แล้ว

      @@atlnlgga4568 watch it, boy

  • @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.

    • @atlnlgga4568
      @atlnlgga4568 3 ปีที่แล้ว

      youIame azz whlteboi

  • @NewYorkeez
    @NewYorkeez 4 ปีที่แล้ว

    The man is just sooo good

  • @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

  • @damiantabares6443
    @damiantabares6443 2 ปีที่แล้ว +1

    what did you use to mount the MPU6050 to the wood? I keep having difficulties with the MPU6050 connection failing or turning off due to the pins not making proper contact with the holes of the MPU6050, any ideas on how to help maintain this connection? I see that your MPU6050 never turns off even when you turn it many which ways. Thanks in advance!

  • @pecilijevelicanstveni4973
    @pecilijevelicanstveni4973 ปีที่แล้ว

    Just to be extremely precise: the degrees of freedom are not related to the gyroscope. In Mechanics, those degrees of freedom are defined and we know that there are 6 of them: translations along three axes, X, Y and Z, and three rotations around those three axes.
    A classic mechanical gyroscope remains motionless in space in its initial position and if its supports are moved (for example, an airplane) it gives us data on angle changes.

    • @SK-ow4vw
      @SK-ow4vw ปีที่แล้ว

      Be careful here. You need to specify WHAT the degrees of freedom are for. Do you mean DOF for position, acceleration, linear motion ? For the first, there are 6 for 'everyday' use, for the second there are 3, and for the third there are 3. This can be also related to how you think about a problem. For example, we could talk about translation kinetic energy and rotation kinetic energy. Then we might say that we get 6 degrees of freedom, but we only have 2 because kinetic energy is not a vector, so direction (or rotation axis) in space does not matter.

    • @pecilijevelicanstveni4973
      @pecilijevelicanstveni4973 ปีที่แล้ว

      @@SK-ow4vw The degrees of freedom are generic and not related to any physical phenomenon. This means that a body can simultaneously move and rotate around all three axes of the Cartesian system. This further means that the body is free in space. By taking away one freedom at a time, in the end when we take away all 6, the body will be immobile in space. It has nothing to do with energy, acceleration, etc.

    • @SK-ow4vw
      @SK-ow4vw ปีที่แล้ว

      @@pecilijevelicanstveni4973 Then we have simply a difference of opinion of 'terminology". I looked therefore on wiki for what might be considered 'general' usage of the term 'degrees of freedom'. You see in that short article it is indeed related also to physical phenomena. Take for, example the number of degrees of freedom of movement of a linear and non-linear molecule: these are different. Take for another example the independent parameters assigned to a pixel on a color display. This could be three to describe the color and one for intensity, but perhaps you are also interested in position of the pixel on the screen, this could be another two parameters x and y, but it might just be one parameter if you already know the number of pixels on one line so you assume wrap around to the next line. In that case you only need one parameter for position. So if we are to use 'degrees of freedom' as number of independently variable parameters then it does indeed depend on how you think about the problem.

  • @ericgroen253
    @ericgroen253 5 ปีที่แล้ว

    Nicely explaind! Especially the graphics!!

  • @pedrofelipebezerra4491
    @pedrofelipebezerra4491 3 ปีที่แล้ว

    Great job 👍👍👍

    • @atlnlgga4568
      @atlnlgga4568 3 ปีที่แล้ว

      youIame azz whlteboi

  • @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

  • @jasonrbodie
    @jasonrbodie 5 ปีที่แล้ว +1

    You're awesome. Thank you!

  • @Master_Chief_532
    @Master_Chief_532 5 ปีที่แล้ว

    great explanation. you are a hero!

  • @TYGAMatt
    @TYGAMatt 3 ปีที่แล้ว

    I've had no luck trying to use Jeff Rowberg's libraries or sketches. The connection to the mpu6050 fails. Same story with the adafruit mpu6050 library. However, the mpu6050_tokn library works without any issue. I don't understand

  • @kennmossman8701
    @kennmossman8701 5 ปีที่แล้ว

    bad pun counter: 1 well-balanced video

  • @kostaskazantzis4106
    @kostaskazantzis4106 3 ปีที่แล้ว

    Thank you sir this was very helpful!

  • @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 ;-)

  • @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 😢

  • @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

  • @prussian7
    @prussian7 3 ปีที่แล้ว

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

  • @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?

  • @Ymon25
    @Ymon25 4 ปีที่แล้ว

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

  • @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.

  • @dineshwaaransegaran438
    @dineshwaaransegaran438 ปีที่แล้ว

    which software u use to draw the circuit. Could pls tell me so that it is helpful for my project. Thank you

  • @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?

  • @cyadid
    @cyadid 5 ปีที่แล้ว

    So professional ! Bravo !!!

  • @hetshah7490
    @hetshah7490 4 ปีที่แล้ว

    video starts from 3:00
    thank you

  • @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

  • @treverbelmont8393
    @treverbelmont8393 2 ปีที่แล้ว

    what about to get aceleration data how do you get those because roll pitch and yaw are only using the gyroscope so how would we ca tthe aceleration using that code

  • @nurulhusnamohamadfadhil5886
    @nurulhusnamohamadfadhil5886 2 ปีที่แล้ว

    Hello I have tried your code but I got error for setup_mpu_6050_registers().. May I know why I get the error?

  • @LilVader101
    @LilVader101 5 ปีที่แล้ว

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

  • @VictorianMaid99
    @VictorianMaid99 2 ปีที่แล้ว

    Love this project