MPU-6050 6dof IMU tutorial for auto-leveling quadcopters with Arduino source code - Part 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ค. 2016
  • This video explains how to program your own inertial measurement unit, or IMU for short, that can be used for auto-leveling (self-balancing) a multicopter. No Kalman filters, no libraries, no difficult calculations, just a simple and easy to understand tutorial that explains how to build an IMU that can be used for auto-leveling a multicopter.
    Part 1: • MPU-6050 6dof IMU tuto...
    The Arduino sketch and a detailed parts list that I used during this video can be found on my website:
    www.brokking.net/imu.html
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @MichaelNiece
    @MichaelNiece 6 ปีที่แล้ว

    This video, and the first video that goes with it, is amazing. I’m a drone pilot but just recently starting getting into the programming and development aspects. I bought an Arduino Mega2560 with a bunch of standard sensors in the kit, but the GY 521 is the one I was most interested in. This video series has explained a ton of useful information! I already have a programming background so that part is covered; it was just a matter of getting the pesky data from the GY 521 to actually be useful. It’s great people like you that make TH-cam and DIY projects worth the time and effort when other people are just starting. Thank you so much!

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

    Amazing video. This was the first video of many that helped me understand how the MPU-6050 works, as well as gyros and accelerometers in general. Keep up the great work - it's super cool!

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

    Amazing, thank you! Something I've been trying to wrap my head around for weeks and realized I wasn't even close. Plugged this into my program and bang! spot on!

  • @willmarkusen2080
    @willmarkusen2080 6 ปีที่แล้ว

    I just found your channel last night. I am so glad I did. So much fantastic knowledge, explained in a very relevant and comprehensive way. Thank you for taking the time to produce these great and informative videos.

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

    Hey, although I already read a bunch of stuff about these IMUs the past few days I must say that your video is highly interesting and sums up a whole lot of things you have to deal with when using these type of chips. Thanks for your great and detailed explanations, this way it is really easy to follow!! 👍

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

    The knowledge of vectors and components really helps. When I watched this video two years ago, i understood very little. But now that I've learned about vectors and their angle calculations, this is relatively easy :)

  • @armstrongsubero98
    @armstrongsubero98 7 ปีที่แล้ว

    This is the best tutorial I have seen involving mathematics ever! Keep up the good work, more tutorials with math like this!!

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

    Thanks for this straight forward demonstration of how to harness the MPU data into useful control.

  • @alanpowell328
    @alanpowell328 7 ปีที่แล้ว +14

    Hi Joop,
    I've been building quads for a few years and the IMU has always been a bit of "Black Magic". Thank you for a very clear explanation of how it works.
    Kind Regards
    Alan

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

    after 6 year of your videos, i had to watch your video more than 10 times . i really appreciate your explanation as a way that even the noob can understand . i’m sure this video will never get old .thankkk😅😊

  • @FarazKhan-to5ow
    @FarazKhan-to5ow 5 ปีที่แล้ว

    Thank you so much sir for sharing this great work with the community, It has been 2 years i am following your tutorials

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

    You are truly inspirational! The way you explain everything is so unique. It allows for people of all levels to grasp the concepts as much or as little at a time that they can handle. I believe that this is the way education should be handled at our schools. Students would be engaged a lot more in their Maths and Science with practical applications of the subject material. I have built the YMFC-AL and have had fun flying (and crashing) it. I am now at the stage where I am looking back into the code and trying to better understand the detail.

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

      Thank you for writing this comment!

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

      @@Joop_Brokking
      hi , i want to know how can i calulate number of 360 degree rotations completed by MPU6050 using arduino . it would be nice if u help me

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

    I am so thankful that I stumbled upon your channel; and even more thankful that you have decided to share what you have learned.

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

    Dude.. first thing first.. i trully appreciate your work on this video.. or even your playlist on build quadcopter from arduino. it helps me a lot.. so seriously thank you very much for your work. You explain things very good and easy to understand. I'll look further on your playlist on building copter because im on my way building up one too from arduino. You helped me a lot dude.. thank you very very much.. even better a lot of people might be helped too by your videos. Keep up your good work dude. And once again, thank you very much.

  • @mhogag2360
    @mhogag2360 6 ปีที่แล้ว

    This is the first video I saw which says how to fix drift and is very well explained.
    Thank you for providing the code too :)

  • @zajec11
    @zajec11 7 ปีที่แล้ว

    You are a godsent sir! I'm currently working on a final year project where I need to develop a stop indicator system for a trials motorcycle and I needed a good way of measuring the instantaneous tilt angle in the vibratory conditions. Your explanations were so useful! Thank you :)

  • @nickg4564
    @nickg4564 7 ปีที่แล้ว

    about time someone uploads a video on the subject i can understand, thanks!

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

    Really good. clear and practical explanations of the IMU behaviour and how to compensate for the real-world issues. Excellent work!

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

    Best Video I have ever seen on how to use this device

  • @PiefacePete46
    @PiefacePete46 7 ปีที่แล้ว

    Your explanation is so clear it encourages me to explore areas I would have attempted. Thank you so much.

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

    What a couple of usefull videos. For real man this is gold for me. I had 0 hope of finding how to use this sensor on youtube.

  • @Karneallota
    @Karneallota 6 ปีที่แล้ว

    Thanks for the easy to follow tutorial. I was able to modify your MPU-6050_IMU.ino to work with my MPU-9250 and output some very usable roll/pitch data.

  • @JackZimmermann
    @JackZimmermann 7 ปีที่แล้ว

    Great video! I'm about to build a drag race measurement device, so this video came in handy! Thanks a bunch!

  • @MercurialMann
    @MercurialMann 6 ปีที่แล้ว

    Excellent video. You've managed to shrink a term's work into a 10 minute video! Great job.

  • @MrXanMartins
    @MrXanMartins 8 ปีที่แล้ว

    Great work dude! I am building a quad very similar to yours and your videos are helping a lot!

  • @oadka
    @oadka 8 ปีที่แล้ว

    Sir, your videos are great. You do deserve more attention.

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

    I have been watching your Videos for 2 Hours solid, Most interesting videos I have watched and your theory is amazing I have booked marked and will continue tomorrow.
    I thought I was a Bright Boy. You Just shown me how little I know lol Thanks for the Great Explanations I have learnt a LOT. Thank You !!!!

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

      Thank you for the compliment and taking the time to write this comment!

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

    Your videos are a life saver!!! Thank you so much for making things so simple.

  • @doantrungnghia05
    @doantrungnghia05 7 ปีที่แล้ว

    Your video series on building quadcopters and related research topics are really nice and helpfull. Five years ago, when I learned to build my own quadcopter from scratch, there were not much easy-to-understand tutorials like yours. I think sensor fusion and calibration topics are quite critical for a good performance of a quadcopter. Could you please conduct some research and provide us some tutorials like this video. Thanks a lot.

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

    from a complicated subject to a practical hobby

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

    Good Day, Joop.
    GREAT tutorial my friend. It did very much all what I wanted it to do. However ...
    I tried to make it display the yaw and the temperature, but my knowledge in Arduino and MPU-6050 are still very green, since I only started in this platform (Arduino) 1 or 2 weeks ago. My interest started when I realized I could program this micro controller to do almost anything and I had an application for such thing.
    I did lots of Visual BASIC programmation in my younger days, and I see the C/C++ structure is somewhat different, but I get some parts of this, since it « speaks » English and shares some similar structure.
    I tried to modified the code to make it display the yaw and temperature as well, since I have a 20x4 LCD Display (and a TFT Display, but I'm not there yet!). So, after modifying the Display's parameters and adding a few lines to the original program, trying to follow the same logical structure (declaring extra variables and all) well, it compiles successfully but, of course, it didn't work. I must've missed something or did something wrong.
    Could you (or someone) help me achieve my goal ? Thank you in advance.
    Regards, Dan, aka « Uncle Dan »

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

    U can explain in very detail .....which help us a lot.....thank you very much 👏🏻

  • @robotrandi6223
    @robotrandi6223 7 ปีที่แล้ว

    Awesome, very nicely explained even if I already knew most of the concepts still very useful to see them clearly explained again...

  • @DevesTechnet
    @DevesTechnet 7 ปีที่แล้ว

    Just read the HMC5883L document you suggested. Looking forward to your implementation! Thank you again!

  • @MrInnovative
    @MrInnovative 7 ปีที่แล้ว

    it is really very useful it has clear many of my doubts in single short

  • @basameera
    @basameera 7 ปีที่แล้ว

    Excellent explanation of MPU-6050. Thanks.

  • @malangamba
    @malangamba 7 ปีที่แล้ว +5

    You genius! :) Thanks for sharing it, made me understand how the sensor really works. Thank you again! :D

  • @bonafide9085
    @bonafide9085 7 ปีที่แล้ว

    Clear explanation, thanks!
    Also DMP of the MPU6050 can be used for data fusion and also gimbal lock can be avoided by using the quaternion values.

  • @neretharanthanael9130
    @neretharanthanael9130 6 ปีที่แล้ว

    A great explanation to a difficult topic!

  • @brotschuh
    @brotschuh 7 ปีที่แล้ว +2

    Only 4 people didn't learn something. Great job. :)

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

    Fantastic vid Joop. Keep up the good work.

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

    Thank you!, Explained a lot of different approaches.

  • @dalebotha9162
    @dalebotha9162 6 ปีที่แล้ว

    Hey! What a great video! Thanks! Really simply and nicely laid out and explained with good examples! 😁

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

    You are amazing .. truly amazing. How well you explained it all, when I thought that it is so complicated, but now you made it easy for me. Thank you! You are genius!:)

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

    Duidelijk uitgelegd Joop. Top video!

  • @imadsaliba9015
    @imadsaliba9015 7 ปีที่แล้ว

    its just these two lines that will do the job. more likely all the jobs in the world are solved with two lines of yours mister.
    love you videos. thank you for the time you are spending for making the world smarter. hopefully one day smart people will be more than ignorant people :)

  • @hawkkim1974
    @hawkkim1974 6 ปีที่แล้ว

    Genius level of explanation

  • @__raghu.vir_
    @__raghu.vir_ 3 ปีที่แล้ว

    Very very helpful for us, the way you explain is what our education system needs !
    👍👌👌

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

    Thank you for more detailed information. Very nice for DIY developpers

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

    this is very very good! thank you for your input. without ur video i don't think i would have understand this

  • @breedj1
    @breedj1 6 ปีที่แล้ว

    Bedankt voor de uitleg Joop. Duidelijk uitgelegd.

  • @mirage3rd
    @mirage3rd 6 ปีที่แล้ว

    Thanks a lot for a very thorough and clear explanation

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

    For those who are wondering why he uses different formulas in the video explanation than in the code: The MPU6050 positiv x-direction (Roll-Axis) is used as the pitch Axis in the video.

  • @ahandlethatisnottaken
    @ahandlethatisnottaken 6 ปีที่แล้ว

    Now I would be interested in a similar video, but explaining a more robust algorithm without the problem shown in the end of the video.

  • @irfan-vu5td
    @irfan-vu5td 4 ปีที่แล้ว

    its really worth watching. Excellent work!

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

    Thanks for the great description...AND sense of humour. :)

  • @minhohihi1
    @minhohihi1 7 ปีที่แล้ว +5

    Thank you so much. Your tutorial really help me^^
    May I ask a reason why do you use your own angle (roll, pitch, yaw) calculation method instead of DMP in MPU-6050?
    I guess DMP returns exact values for roll, pitch, yaw. Is there timing issue when using DMP on arduino quad drone? Thanks again~

  • @freddiesnijman
    @freddiesnijman 8 ปีที่แล้ว

    Of course we did learn something Joop!, Excellent coaching/teaching once more!

    • @Joop_Brokking
      @Joop_Brokking  8 ปีที่แล้ว

      Thanks for the compliments Freddie!

  • @ivanllopis5882
    @ivanllopis5882 6 ปีที่แล้ว

    Amazing explanation, thank you!

  • @caioqwerty1
    @caioqwerty1 7 ปีที่แล้ว

    Your videos are so perfect.

  • @olemuell5979
    @olemuell5979 3 ปีที่แล้ว +1

    your tutorials are so underrated!
    They are also not limited to onmly mpu6050. I needed to hear all of this for a completely different imu.
    thank you for your work!
    just one question, it seems your sensor has no yaw drift. how do you combat it?
    In the code you used, there was no word about it, and due to the drift the sin makes my roll and pitch values go all over the place...

  • @vithlanibhargav9643
    @vithlanibhargav9643 7 ปีที่แล้ว

    thank you sir for such a wonderful explanation.

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

    Thank you ! Your tutorial help me a lot

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

    An excellent tutorial, thank you.

  • @brendanvanbreda
    @brendanvanbreda 6 ปีที่แล้ว

    love your content man very helpful

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

    I really like your work. Thanks!

  • @bofloa
    @bofloa 6 ปีที่แล้ว

    You are a good teacher

  • @iforce2d
    @iforce2d 8 ปีที่แล้ว +52

    Very nicely explained. Interesting that such a small correction from the accelerometer is enough.

    • @Joop_Brokking
      @Joop_Brokking  8 ปีที่แล้ว +3

      Thanks Chris. It really depends on the quality of the gyro and the amount of vibrations. But in most cases you only need to correct e few degrees per minute.

    • @Gummientenkillass
      @Gummientenkillass 7 ปีที่แล้ว

      +Joop Brokking Are there any physical anti vibration methods such as rubber suspension mounts in use? Like is the gyro and accelmeter mounted on a suspended plate?

    • @Gummientenkillass
      @Gummientenkillass 7 ปีที่แล้ว

      +Peter Lustich Btw I really enjoyed your video and you sparked my interest and motivartion wirh your beautiful contraption.
      Greetings from Germany and keep up your awesome work.

    • @Joop_Brokking
      @Joop_Brokking  7 ปีที่แล้ว +10

      Try to avoid damping materials. Try to make everything as stiff as possible and balance your motors and props.
      Damping will change the natural frequency of the gyro and can cause oscillation.

    • @Electronieks
      @Electronieks 6 ปีที่แล้ว

      iforce2d toppie

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

    Very nice explanation, I do learned a lot from you. Thank you.

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

    Very well explained, and very interesting. Thanks

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

    Amazing, thank you very much!❤️

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

    Thanks for the great explanation with step-by-step details! I have a question -- how would implementation of a Kalman filter improve the working of the IMU? What would be the costs?

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

    Very well done tutorial. Thank for the effort.

  • @user-qo7zz6tl9u
    @user-qo7zz6tl9u 3 ปีที่แล้ว

    Спасибо Вам! Давно искал рабочий электронный уровень.

  • @reactorscience
    @reactorscience 7 ปีที่แล้ว

    brilliant video,very nicely explained

  • @theinterfaithshepherd9075
    @theinterfaithshepherd9075 6 ปีที่แล้ว

    Dear Joop, Thanks for another great video! It takes a HUGE amount of work to document everything as well as you do. I assume that you are planning to own a channel and get paid for advertising based on your excellent content?
    You asked for feedback at the end of the video, and I'd like to offer some constructive feedback. I'm doing so because you asked for feedback...and you stated intention is to teach people, and I'd like to offer some suggestions.
    I will preface my comments by saying that I've only watched (multiple of) your videos once (each)...the content is complicated and may take multiple watches to understand.
    Also, my background is that of Mechanical Engineering and Software Engineering.
    Finally, I make videos as well...which are just a hobby and FAR less well thought out than yours. I FULLY acknowledge that I am NOT a videographer or documentarian. I LOVE your videos!!
    That said...
    I've watched a lot of your videos now and have found that while you do explain everything extremely well, with very precise details...I am often feeling confused about what is going on and why. I feel lost in the weeds.
    For example, after watching this video, and your two-wheel stepper balancer videos, I feel confused because I don't understand how the two-wheel balancer is working...nor do I understand the high level concept of how you're doing it. Or, why did you bother using a 45deg angle on the accelerometers. I just feel lost! Regarding the balancer, I have no idea how you are balancing it. Are you waiting until is starts to fall and reacting, are you just reading the pitch angle and adjusting. When you want it to go forward and backwards, don't you need to give it a reverse input first...there was no mention of that (as I recall)...tho I know you must be doing it.
    My suggestions are as follows:
    First, I would be to add some graphics or simple diagrams that give a high level overview of the strategy of the project. Perhaps a little demonstration of what you are doing by using your body or balancing a pole on your hand or showing manually what you are having the PID do.
    Secondly, I suggest that rather than jumping into the code, you summarize your strategy.
    For example, perhaps writing out a skeleton program and explaining that first, then jumping into more detail.
    Such as...
    First I do the setup.
    Next I do a loop, and in the loop...
    I read the accelerometer every 5 microseconds.
    if the angle reads zero, I do nothing
    If the angle reads positive, I turn the wheels this way
    If the angle reads negative, I turn the wheels that way
    if the angle is more than 30 I assume it's fallen over and turn the motor off.
    Third...
    I have found that the tone of the videos is constant.
    To keep attention focused, it might be useful to put in some interesting random funny things every few minutes - to break things up and be less monotonous.
    That would definitely change the content characteristics and they would be less academic and more entertaining.
    You may have considered this and made the tactical decision to NOT be entertaining but rather focus upon teaching.
    But, there is a famous physics teacher at MIT who often incorporates some theatrical activity into his classes...for you to consider as a benchmark.
    I hope you consider my feedback to be helpful in teaching people to understand what you're telling them.
    I wish you the VERY BEST of luck in your adventure!
    Sending Love,
    Pat

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

    Beautiful video

  • @theodordrymonis6728
    @theodordrymonis6728 8 ปีที่แล้ว

    Thank you Joop for this educational video !!! Just a small correction/notification at line 68 replace "lcd.begin();" with "lcd.init();" for use with LiquidCrystal_I2C library.

    • @Joop_Brokking
      @Joop_Brokking  8 ปีที่แล้ว

      It depends what library you use. As you can see my library works fine. That is one of the reasons why I hate crappy libraries and always try to avoid them. Another one is the name they change. The Arduino IDE 1.6.7 comes with the LiquidCrystal library and uses begin(). Check keywords.txt file.

    • @theodordrymonis6728
      @theodordrymonis6728 8 ปีที่แล้ว

      That's interesting ! Before i try anything else i will update my Arduino IDE. Thanks again!

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

    thank you very much for sharing these info with us

  • @AboubakrA
    @AboubakrA 3 ปีที่แล้ว +1

    Great video, thank you.
    I have a question though, please, how does adding the 0.04% of the accelerometer angle remove the drift !?

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

    Thank you man, you the best

  • @JDI4DAVID
    @JDI4DAVID 6 ปีที่แล้ว

    Thank you for sharing this with us. I do appreciate your style and clarity of explanation. It is especially nice to have a program with straightforward functions rather than libraries. Your 250 Hz an integration period of 4 ms but your loop period is 4 s. How does this work? Thank you Joop.

  • @JormanMiguel
    @JormanMiguel 8 ปีที่แล้ว

    Thanks a lot Joop, you're awesome!
    I have one question, Can you apply this mods to the YMFC-3D V2 Proyect?
    Greetings from Ecuador!

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

    Hi Sir, first of all thank you for your great job.
    I have a question about the Digital Low-Pass Filter (DLPF) and its band-width. In your final Arduino sketch, you chose a band-width about 43Hz. Why this value ?
    Regards,

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

    learned something......... learned so much!!!!

  • @mw9558
    @mw9558 7 ปีที่แล้ว +1

    Great video. Mooie plaatjes :)

  • @davidabineri908
    @davidabineri908 6 หลายเดือนก่อน

    This is a very valuable and clearly presented series and I am learning a great deal. One question: Where in your code for the YMFC-AL flight controler do you store data into the EEPROM. I can see where you are reading data but not where you are storing data. Thanks for your help with this question.

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

    Thanks for the video's and code. I have been playing with your program a little and adding my notes here for other experimenters. I am using a 32 bit micro, and some of the variables need to be declared as int16_t in order for the values to be read correctly from the IMU. Once tilted past 90 degrees, some of the functions do not work correctly ( inverse sine ). As a simple solution, I may just not apply the accelerometer corrections when past 90 degress.

  • @ozaynergiz6887
    @ozaynergiz6887 7 ปีที่แล้ว

    Very informative,great thanks..

  • @bjnacn6711
    @bjnacn6711 8 ปีที่แล้ว

    Thank you for your very good work.Very useful and very well documented! Please let me know if you ever plan to make the same tutorial about the ESP8266.

  • @WaqarRashid
    @WaqarRashid 7 ปีที่แล้ว

    Great video.. I am been trying to understand the Multiwii IMU but it wasn't making sense.. I hope after this knowledge it would make sense..
    It would be very nice and helpful if you can make some videos about multiwii source code as its really difficult to understand for a beginner.

  • @costynvd
    @costynvd 7 ปีที่แล้ว

    Thanks for a great explanation! Have you experimented with the DMP (and library) yet? It does many of the calculations for you, but knowing what's going on and why is very good to know. I'm still having some issues with the DMP output, I will test-drive your code. :-)

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

    great video, but what about the yaw axis?
    can you calculate the motion around the yaw axis to stabilize the quad direction without a compass

  • @loo39426
    @loo39426 7 ปีที่แล้ว

    Very nice job! :) Keep going!

  • @yunusemreates6976
    @yunusemreates6976 6 ปีที่แล้ว

    great explanation

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

    thanks for the explanations, great job.
    I'm trying your sketch with arduino nano 33 lsm9ds1.
    I have found conflicting information on the IMU but I hope I have taken the correct TYP.
    i had to convert several int and long to float and now it works.
    however, it is very slow to read the movement, not in real time as in your video.
    any suggestions?

  • @handbagsister
    @handbagsister 6 ปีที่แล้ว

    Very good good job with very good explanation. Thanks a lot

  • @timonix2
    @timonix2 8 ปีที่แล้ว +8

    now you just need to add a magnetometer to correct for yaw drift and a barometer for more accurate altitude. Accelerometer alone drifts when trying to measure position.

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

    Hi Joop,
    thank you very much for this article - is it possible to extend this to 360 degree? It would be important to detect over head angles too

  • @sayfgrowflo7340
    @sayfgrowflo7340 6 ปีที่แล้ว

    thank you joop, I have question for
    how Calculate the yaw angle.