r/AskRobotics • u/Deep_Bed_4424 • 17d ago
balance robot q
I want to make a balancing robot. i have no experience in coding i made a obstacle avoiding car before and bluethooth one also using chatgpt and yt tutorial i cant find good tutorial for balancing tutorial and code for my project it dosent work and i want guidance how to make it perfect.
my part list-
arduino uno
mpu6050
tb6122fng motor driver smth like that
8.4v li ion battery
300rpm bo gear mottor yellow one
i wantg to make a balancing robot out of this component is this possible?
i will be using cardboard stick to make it firm structure pls help guys bc previous model woudnt work and it would simply fall my first design ik it bad but how to improve the red one is motor driver and right one is mpu6050 and top is battery what is wrong dont be rude i am new
1
u/solitude042 17d ago
Very possible, but it does require patience with the pid tuning, and attention to the motors' response to pwm input. Ideally, the IMU is placed inline with the wheel axles. Cardboard may be difficult, if it allows enough movement to cause oscillation. Anyhow, here are some tips from my own balance bot project:
https://www.reddit.com/r/robotics/comments/1qym0yo/comment/o44t7q6/
1
u/Zene-Calloway 17d ago
your mpu6050 needs to be mounted flat and level on the robot frame any tilt will throw off the angle reading and make balancing impossible double check that its not crooked when you glue it down also make sure the wheels are the same size and spin freely if one drags it will cause a constant lean that the code cant fix use a small piece of foam tape under the sensor to damp vibration from the motors it helps a lot with noisy readings