DIY Gimbal | Arduino and MPU6050 Tutorial

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

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

  • @thanasisathanasi4965
    @thanasisathanasi4965 4 года назад +5

    I curse a lot for crappy videos in the internet. You have quality man !!! I love you and your wonderful videos

  • @Sam-dc9bg
    @Sam-dc9bg 5 лет назад +80

    Still amazes me that people put all of the effort into designing this stuff and give it out their plans and codefor free.

    • @TheLonelyPanther
      @TheLonelyPanther 3 года назад +12

      Just a different breed of human!

    • @sagnikchatterjee8122
      @sagnikchatterjee8122 2 года назад +15

      Sometimes working free for a small community gives u a mental satisfaction

    • @geforcefan2007
      @geforcefan2007 Год назад +8

      I also share my code with the public because I truly believe in the importance of sharing knowledge. It's the only way to go, in my opinion. I think everyone should have access to knowledge without any cost.

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

      Noble indeed

    • @soraintech
      @soraintech 10 месяцев назад +1

      Please Make a perfect gimb....

  • @TheRedLava
    @TheRedLava 5 лет назад +33

    Very detailed video with simple approach, as it should be in my opinion. You have shown a functional project and gave a (huge) background to anyone who wants to develop it further more.
    Congrats and keep on the great videos 👌

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

    I also do it but with bulletproof - durable does not use battery effectively, but yours is more modern, thanks for a post👍

  • @moisescavalcanti9876
    @moisescavalcanti9876 5 лет назад +8

    Nice project! The only problem is in the complementary filter, because if you move in some direction(What you didn't in the video), like ruuning, the final accelerometer angle will be wrong and point to the direction that you are moving and insert this error over time into the final angle. So if you walk with this gimbal, the camera will start to face down while you walk

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

    Thanks to you, simple translations, free projects, and not knowing anything about design, electronics, and programming, I can try various things. Looking forward to more awesome projects! :D

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

      did you try it out? how’d it go? I tried following a different tutorial and wasn’t able to get any values in my serial monitor😭

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

      @@kriminull8461 not this project yet

  • @2299alexander
    @2299alexander 5 лет назад +24

    You could do one with brushless motors or another project, a balancing robot controlled by the cell phone.

  • @alpeshchaudhari63
    @alpeshchaudhari63 5 лет назад +95

    Your videos are very informative and detailed, i like the way you explain everything. Love from INDIA

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

      Bro mai bhi India se hoon

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

      Are you seriously? Fortunately, I have to undoubted them, I was surprised these people has technology!

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

      @@michaelzajac5284 lmao majority westerners still living under the rock.

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

      @@michaelzajac5284 for your kind information India has mor internet users then any country on the globe and the cheapest data . I guess you don't have technology to cope up with news .😑

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

      @@michaelzajac5284 We have very high technology product in India but problem is that it is utilized by very less people

  • @jon_raymond
    @jon_raymond 5 лет назад +8

    I always enjoy and learn something new from your videos! Thank you for sharing your knowledge.

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

      Thanks!

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

      @@HowToMechatronics hello I am your suscriber how do you learnt to code and make Arduino programs of this level which degre yo took and what is your method to learn to code please 🙏❤️

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

      ​@@vijaygharat2968 You don't need a degree to do any of this stuff. Only passion. I am a mechatronics student in 3rd year. Ive been programming since highschool, and haven't learned anything in university that I didnt already know or learn myself. The BEST people at what they do are self-taught, because they have more interest and passion than people who do it as a career or profession.
      If you want to learn coding then youtube has plenty of videos. I will tell you 100% from my experience in Australian university that you can find videos better than any course at university. I even go to youtube for mechatronics/math/dynamics things, and I see comments from so many other students that say "You're much better than my professor, you taught me better in 10minutes that he did in 2 hours"
      But don't just watch videos, make your own projects. Start with a plan of what you want to make like a website, a program, a arduino project etc. Then start learning what you need to know to make it come true. That's how I learned coding by myself in highschool and at university too.

  • @filippobottero1259
    @filippobottero1259 Год назад +3

    does anyone know why i get numbers that keep growing no matter the inclinantion of the gyroscope?
    Great video by the way

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

    Your code is working for me RIGHT NOW! After all the broken code I have waded through on RUclips yours is perfecto! Thank you sir!

  • @oanceacristian1988
    @oanceacristian1988 5 лет назад +11

    Learned something new. Thank you for sharing!

  • @NTTechnokings
    @NTTechnokings 5 лет назад +37

    Please bro joint brushless motor and joystick......Your video is ranked....

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

    Master the low tech in order to master the High tech. You've come a long way sir! 🙏

  • @santino5891
    @santino5891 9 месяцев назад

    12:35 I have a question, let's say we use even just a simple bldc motor instead of the mg966r, would that still work with the same code and library? and how much of a difference would it make? Thanks boss!

  • @pestrada69
    @pestrada69 5 лет назад +9

    Good Work, next video with brushless and joystick for best working.

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

    Is the ground wire between the MPU-6050 and Arduino Nano wired correctly at 11:05 ? Shouldn't each component run their own independent ground wire back to the buck converter? Or at least three way splice down?

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

    Thank you so much. You've opened up a whole new window for me.

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

    6:20 Based on the silkscreen on the MPU to me the it's sideways to the camera. Yaw should be 90. Pitch 0. Roll 0. When I use this lib the YPR values only seem correct if I initialize in this sideways position... Seems wrong.

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

    Amazing video, not a second of wasted time. Thank you!

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

    it would probably better to mount the gyro on the platform which has to be stabilized and then use PID controllers on each axis to minimize the error to the 0 setpoint. If you would do that you do not need to calibrate the servo range and internal PWM to angle mapping.

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

      are you going to do that and show us? it'd be pretty cool to see it

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

    Wow, that video was just brilliant, and so well done. Thank you so much for making this brilliant tutorial!

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

    So cool 😎! Always enjoy your videos, thanks!

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

    if i use the a gimbal motor, will the gimbal work smoother or no differences at all? @How To Mechatronics

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

    Very nice project 👍

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

    This was a really comprehensive and well organized. Thanks for the info!

  • @twerdster
    @twerdster Месяц назад

    Very nice clear video. Well structured and easy to follow. Curious though which BLDC motors would a real gimbal like a Ronin use?

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

    Hi mate, this is what I was looking for.
    Really appreciate sharing your idea.

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

    PLEASE TELL 9 AXIS MPU-9250 MODULE SENSOR SIMULATION LIBABRY LINK AND SOFTWARE FOR SIMULATION THANKS

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

    My favorite channel ... thanks for sharing ❤

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

    6 video per year but still you 370k + Subscribers 😮😮😮

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

    I would like to use something like this to stabilise a large rc boat will it be easy to adapt the code just for pitch and roll?

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

    What type of modules should i add to use brushless motor for smooth movements ?

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

    Really cool project and well explained! Thank you very much :)

  •  5 лет назад

    Very nice video, i love the explanation of wire function, never seen it before, now it looks simple.

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

    how did you get the MPU6050DMP6 example in ur arduino i didnt get it pls help

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

    Hi there, can I ask you what kind of screws are you using to build this gimbal? Do you have any link to suggest?

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

    Hi, from where did you purchased the screws and bolts used to fix servos to the design. Please tell, it will be a great help.

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

    Good one bro, keep it up

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

    Im somewhat confused, when I checkout serial monitor, the numbers keep rising without any motion.

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

    Superb. Clear... Love it the way you explained....Thank you....

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

    May I ask what motor is it you said that I should be using if I want a smoother footage to use it as a real camera gimbal ? Thank you

  • @wesc6452
    @wesc6452 5 месяцев назад

    Anyone know what the 3D object software is that he is using? How did he get that synced up with arduino

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

    Great video. Very well explained.

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

    I have learned many new things today. Thank you.

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

    That video was brilliant. Keep them coming !

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

    0:27 can you pls pls pls make a video on how you made the visual output more detailed way
    It’s a subscriber’s request

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

    Nice detailed tutorial. Great work.

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

    Hi, Great project.... can this be converted to downward facing 2 axis gimbal using special gimbal motors?

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

    Using bldc instead of servo will give you a real gimbal vibe!

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

    how do you control the servomotors or how do you link the sensor values to the servomotors?

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

    What is the rectangle at the bottom for? what electronic component does it hold? sorry if I missed it.

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

    I had to toggle with the correction values for a while but then I finally did it!

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

      Plz can u send to me full code for Gimbal

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

      Plz can u send to me full code for Gimbal

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

    What's the name of the program you are using to do the plot?, can you also explain or maybe link some website that eplains how the angle is calculated from accelerations or from angle velocity? Awsome video and thanks for the clear explanation.

  • @AA-gl1dr
    @AA-gl1dr 4 года назад

    exactly what i’ve been looking for!!

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

    12:33 - I can not hear what you say. Would you please give a pointer to these "better servos" you are referring to?

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

      BLDC Motor. (Brushless servo motor)

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

    DMP6 example (library by Jeff RowberG) with Output Teapot line uncommented in Arduino ide for 3D visualization in Processing IDE i.e., like the Blue cuboid shown in your video , DOESN'T WORK ..can you please help me on That.!

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

    have you thought about playing around with this to make a Boxing Glove punch counter?
    would love to see something like that, could have the kids at the gym use it.. they'd love it. Talk about a cool game that'd get em even more interested.

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

    what software/website did you use to make a schematic diagram? it looks so interesting

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

    Thanks now I can use the same implementation for my quadcopter self stabilization 😀

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

    Please I need to ask you if I can use mg995 servo motors instead of mg996r?

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

    Great tutorial & thank you for sharing!

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

    can we replace servo motors with BLDC motors keeping the code same?

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

    I'm interested as to why you put the MPU on the base instead of on the end-platform? I could understand why this feed-forward would be beneficial. I'm just curious about your reasons. It seems like most camera gimbals use feed-back by putting the gyro on the camera itself.

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

    Thanku very much sir for free knowledge

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

    May i know how do you set the bit register to another full scale range. for example 500 dps instead of a 1000 dps

  • @estebanmercier9652
    @estebanmercier9652 5 лет назад +8

    Next time make it with Steppers
    Awesome project 👏

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

      Why steppers? Every gimbal uses brushless right?

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

      @@klaunpot Nooo i'm pretty sure that guibal use steppers, for the precision. Or maybe brushless with rotary encoder or something like that. (sorry i'm a french Teen)

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

      @@estebanmercier9652 there are diy motorized gimbal videos, they seem to use brushless motors with feedback from gyro/accelerometer, similar to drones. You don't need shaft rotation measurement with accurate PIDs ;)

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

      Gimbals are using brushless motors cuz it gives most stability.

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

    Nicely done

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

    thank you, good pace to the video.

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

    a couple of my error values were in the hundreds. Is this right? also my numbers keep getting bigger they never decrease (my sensor values)

  • @tv.rc.2329
    @tv.rc.2329 3 года назад

    Привет! Классный держатель сделали. Я делаю ТАНКИ на радиоуправлении, на Т-90мс хочу сделать стабилизацию пушки и стабилизацию корпуса по отношению к башне, чтоб пушка с башней при повороте корпуса била в одну точку, и держала горизонт. Механическая часть реализованна, осталось загрузить в Ардуино скетч, с этим у меня проблемы. Скажите пожалуйста где можно скачать скетч такой как у вас, если можно поделитесь ссылкой. Заранее спасибо.

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

    I like it. Good job !

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

    why do we add gyro and accel. readings together ?

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

    So will this work with larger motors?

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

    Bro can I use it on drone and make aa video about the drone gimbal And control using transmitter

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

    Nice video! What is the material of 3D printed parts?

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

    Would this work for an esp32 board instead of an arduino?

  • @mr.a700
    @mr.a700 2 года назад

    Excellent model.
    However, I'd like to know what that software you used to show the 3D render, before actually assembling, was.

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

    *Wow great work*

  • @아하니니
    @아하니니 3 года назад +1

    good luck my brother~~

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

    When are you going to make a common receiver for arduino transmitter ?

  • @CarlosMartinez-wq6zu
    @CarlosMartinez-wq6zu 3 года назад

    Can I use an DSRL cam for this Gimbal?

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

    Great job sir. Alain from france.

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

    @How To Mechatronics.. i tried this with a 10000 Mah power bank but my motor rotates very slow...... What may be the problem

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

    Hello, we have successfully completed the Arduino nano based Gimbal using your code, it's really good! Now we want to try ESP8266 based Gimbal, I noticed that maybe for ESP8266 define interruptpin need to use pinmode() and attachinterrpin() (we use the interrupt PIN or GPIO2)
    const int INTERRUPT_PIN = 2;
    pinMode(INTERRUPT_PIN, INPUT);
    attachInterrupt(digitalPinToInterrupt(INTERRUPT_PIN), dmpDataReady, RISING);
    but after many times try, it never work, When we move the mpu6050, the servo motor does not respond at all. May I ask what other parts of the code need to be adjusted if we use esp8266? Very much looking forward to your reply!

  • @Vortex-cs8wr
    @Vortex-cs8wr 3 года назад

    For adjusting accelerometer sensitivity, why do we set the register to 00010000?

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

    It will be challenging to do it on a BLDC motor. How do you get feedback? current sensor? hall effect sensor? Good luck

  • @georgeovel6423
    @georgeovel6423 2 месяца назад

    Did you calibrate the mpu6050?

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

    thank you, this could be modified in reverse and be mounted to my 1:1 scale DIY Predator Drone.... one step at a time... next thing to learn is a laser targeting and laser guided systems

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

    Just wanted to ask. Can this motor lift the weight of a DSLR? I'm making a Gimbal for DSLRs

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

      No way! Dslr is too heavy, use brushless motors and basecam

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

    Can I use this with esp32 board ?

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

    Hello, I am surprised that you didn't need any kind of driver for the servos. I am doing a project of a gimbal where I need a high quality stabilization. I will therefore probably use a brushless dc motor. I am certain that I will either need a driver or a brushless gimbal controller. If I were to use the BGC, would the code that you used work on the BGC?

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

      Have you completed your project sir? Cause I'm making a gimbal too and also using bldc instead of servo motors

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

    Hi!
    We attempted this project with an arduino Leonardo but it didn't worked. The gimbal doesn't even move.
    We'd be glad if you could help us with it.
    We think that the problem is in the inputs but we are not quite sure.

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

    Круто теперь взять стервы поменьше, скомпоновать все в более меньший корпус как у монопода в толшину чуть больше фонарика под 18650👏👏👏👏👍

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

    Thank you for the sharing.

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

    lets say I wanted to use this code i wanted to use this code for two mpu6050s, could i just copy and past the code so it doubled and justrenam the second set of variables? the program inside the loop would be doubled and the code inside the error check would be doubled. I tried this with the teacup example, but my interrupts were getting messed up and i kept getting a fifo overflow.

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

      also, thank you for this video. I've been searching through other videos and forums, but this is the first one i found that explained every thing really clearly.

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

    Can you add 2 axis joystick for controlling X and Z axis thank you

  • @뷁-f1n
    @뷁-f1n 4 года назад

    More dynamic!!!
    What can i do for alternative commerical one....

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

    Hello, work with Micro Servo Motor Pro sg9?

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

      Hey, yeah, it would work. Of course, the design parts needs to be modified to fit the SG90 servo instead of the MG996R which is a bigger.

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

    When I start your code I have errors in serial monitor. Can you help?