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.
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 👌
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
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
@@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 .😑
@@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 🙏❤️
@@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.
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!
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?
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.
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.
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.
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.!
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.
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.
@@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)
@@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 ;)
Привет! Классный держатель сделали. Я делаю ТАНКИ на радиоуправлении, на Т-90мс хочу сделать стабилизацию пушки и стабилизацию корпуса по отношению к башне, чтоб пушка с башней при повороте корпуса била в одну точку, и держала горизонт. Механическая часть реализованна, осталось загрузить в Ардуино скетч, с этим у меня проблемы. Скажите пожалуйста где можно скачать скетч такой как у вас, если можно поделитесь ссылкой. Заранее спасибо.
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!
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
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?
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.
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.
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.
I curse a lot for crappy videos in the internet. You have quality man !!! I love you and your wonderful videos
Still amazes me that people put all of the effort into designing this stuff and give it out their plans and codefor free.
Just a different breed of human!
Sometimes working free for a small community gives u a mental satisfaction
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.
Noble indeed
Please Make a perfect gimb....
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 👌
Thank you!
I also do it but with bulletproof - durable does not use battery effectively, but yours is more modern, thanks for a post👍
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
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
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😭
@@kriminull8461 not this project yet
You could do one with brushless motors or another project, a balancing robot controlled by the cell phone.
Your videos are very informative and detailed, i like the way you explain everything. Love from INDIA
Bro mai bhi India se hoon
Are you seriously? Fortunately, I have to undoubted them, I was surprised these people has technology!
@@michaelzajac5284 lmao majority westerners still living under the rock.
@@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 .😑
@@michaelzajac5284 We have very high technology product in India but problem is that it is utilized by very less people
I always enjoy and learn something new from your videos! Thank you for sharing your knowledge.
Thanks!
@@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 🙏❤️
@@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.
does anyone know why i get numbers that keep growing no matter the inclinantion of the gyroscope?
Great video by the way
Have you found a solution to this?
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!
Great to hear!
did you get MPU6050_INTERRUPT_FIFO_OFLOW_BIT' was not declared in this scope ?
Learned something new. Thank you for sharing!
Please bro joint brushless motor and joystick......Your video is ranked....
Master the low tech in order to master the High tech. You've come a long way sir! 🙏
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!
Good Work, next video with brushless and joystick for best working.
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?
Thank you so much. You've opened up a whole new window for me.
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.
Amazing video, not a second of wasted time. Thank you!
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.
are you going to do that and show us? it'd be pretty cool to see it
Wow, that video was just brilliant, and so well done. Thank you so much for making this brilliant tutorial!
So cool 😎! Always enjoy your videos, thanks!
Thanks! :)
if i use the a gimbal motor, will the gimbal work smoother or no differences at all? @How To Mechatronics
Very nice project 👍
This was a really comprehensive and well organized. Thanks for the info!
Very nice clear video. Well structured and easy to follow. Curious though which BLDC motors would a real gimbal like a Ronin use?
Hi mate, this is what I was looking for.
Really appreciate sharing your idea.
PLEASE TELL 9 AXIS MPU-9250 MODULE SENSOR SIMULATION LIBABRY LINK AND SOFTWARE FOR SIMULATION THANKS
My favorite channel ... thanks for sharing ❤
6 video per year but still you 370k + Subscribers 😮😮😮
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?
What type of modules should i add to use brushless motor for smooth movements ?
Really cool project and well explained! Thank you very much :)
Glad you liked it!
Very nice video, i love the explanation of wire function, never seen it before, now it looks simple.
Thanks, I'm glad you found it helpful!
how did you get the MPU6050DMP6 example in ur arduino i didnt get it pls help
Hi there, can I ask you what kind of screws are you using to build this gimbal? Do you have any link to suggest?
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.
Good one bro, keep it up
Thanks!
Im somewhat confused, when I checkout serial monitor, the numbers keep rising without any motion.
Superb. Clear... Love it the way you explained....Thank you....
Thanks!
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
Anyone know what the 3D object software is that he is using? How did he get that synced up with arduino
Great video. Very well explained.
Thank you!
I have learned many new things today. Thank you.
That video was brilliant. Keep them coming !
Thank you!
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
hi
Nice detailed tutorial. Great work.
Thank you!
Hi, Great project.... can this be converted to downward facing 2 axis gimbal using special gimbal motors?
Using bldc instead of servo will give you a real gimbal vibe!
how do you control the servomotors or how do you link the sensor values to the servomotors?
What is the rectangle at the bottom for? what electronic component does it hold? sorry if I missed it.
I had to toggle with the correction values for a while but then I finally did it!
Plz can u send to me full code for Gimbal
Plz can u send to me full code for Gimbal
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.
exactly what i’ve been looking for!!
12:33 - I can not hear what you say. Would you please give a pointer to these "better servos" you are referring to?
BLDC Motor. (Brushless servo motor)
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.!
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.
what software/website did you use to make a schematic diagram? it looks so interesting
Thanks now I can use the same implementation for my quadcopter self stabilization 😀
Please I need to ask you if I can use mg995 servo motors instead of mg996r?
Great tutorial & thank you for sharing!
can we replace servo motors with BLDC motors keeping the code same?
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.
Thanku very much sir for free knowledge
May i know how do you set the bit register to another full scale range. for example 500 dps instead of a 1000 dps
Next time make it with Steppers
Awesome project 👏
Why steppers? Every gimbal uses brushless right?
@@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)
@@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 ;)
Gimbals are using brushless motors cuz it gives most stability.
Nicely done
thank you, good pace to the video.
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)
Привет! Классный держатель сделали. Я делаю ТАНКИ на радиоуправлении, на Т-90мс хочу сделать стабилизацию пушки и стабилизацию корпуса по отношению к башне, чтоб пушка с башней при повороте корпуса била в одну точку, и держала горизонт. Механическая часть реализованна, осталось загрузить в Ардуино скетч, с этим у меня проблемы. Скажите пожалуйста где можно скачать скетч такой как у вас, если можно поделитесь ссылкой. Заранее спасибо.
I like it. Good job !
why do we add gyro and accel. readings together ?
So will this work with larger motors?
Bro can I use it on drone and make aa video about the drone gimbal And control using transmitter
Nice video! What is the material of 3D printed parts?
It's PLA.
Would this work for an esp32 board instead of an arduino?
Excellent model.
However, I'd like to know what that software you used to show the 3D render, before actually assembling, was.
*Wow great work*
Thank you! Cheers!
good luck my brother~~
When are you going to make a common receiver for arduino transmitter ?
Can I use an DSRL cam for this Gimbal?
Great job sir. Alain from france.
Thanks!
@How To Mechatronics.. i tried this with a 10000 Mah power bank but my motor rotates very slow...... What may be the problem
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!
For adjusting accelerometer sensitivity, why do we set the register to 00010000?
It will be challenging to do it on a BLDC motor. How do you get feedback? current sensor? hall effect sensor? Good luck
Did you calibrate the mpu6050?
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
Just wanted to ask. Can this motor lift the weight of a DSLR? I'm making a Gimbal for DSLRs
No way! Dslr is too heavy, use brushless motors and basecam
Can I use this with esp32 board ?
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?
Have you completed your project sir? Cause I'm making a gimbal too and also using bldc instead of servo motors
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.
Круто теперь взять стервы поменьше, скомпоновать все в более меньший корпус как у монопода в толшину чуть больше фонарика под 18650👏👏👏👏👍
Thank you for the sharing.
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.
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.
Can you add 2 axis joystick for controlling X and Z axis thank you
More dynamic!!!
What can i do for alternative commerical one....
Hello, work with Micro Servo Motor Pro sg9?
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.
When I start your code I have errors in serial monitor. Can you help?