Self-leveling Servo with Arduino and MPU6050
ฝัง
- เผยแพร่เมื่อ 10 ก.ย. 2024
- Program link drive.google.c...
Circuit diagram: drive.google.c...
Tried this self-leveling servo with my MPU6050 IMU. I have this IMU module for years. Previously I used it in head tracking for flight simulation games; it suffers from drifting in yaw axis from time to time but pitch and roll are rock solid. In this self-leveling setup I don't need yaw motion. I might convert it to stepper motor control and use in my robotic arm gripper auto leveling.
when the $500 gimbal is too much:
hi , im trying to do the same thing however after working for about 1 min the code crashes , and the servo stops moving and the serial moniter stops showing any new values , ive tried to follow the link you've provided but the link is broken , any advice would be extremely helpful , thank you
drive.google.com/file/d/1or2p0zRHeqEN0RH59jzgFAFD4ZrZqYE7/view?fbclid=IwAR0jSYM-zWsmWmQ-aSWFTVmqgXU8sWubeuoXPX4pLKIClLqEU2HMgEq41h0
Thankyou for pointing out the link was broken. Here I posted the link again
@@DIY-electronics-automation thank you
I also included the circuit diagram; Yaw axis was not implemented in my test.
@@notsogood4321
I also encountered the same problem when I increased the delay in the main loop. Probably due to MPU6050 FIFO buffer overflow.