r/arduino • u/Deep_Bed_4424 • Sep 29 '26
Hardware Help help
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
4
u/gm310509 400K , 500K , 600K , 640K , 750K Sep 30 '26
I have approved your post even though it does not sound below believable.
For example, how did you make an obstacle avoiding car but still have no experience in coding?
Even if you used search engines and AI to help you, you presumably would need to have developed some experience. But also, that is your answer - if you want to be able to do what you want to do, don't overly rely on the AI to do stuff for you. Put some effort in yourself.
Also, what is wrong with the many tutorials and guides online that are published? Is it simply that you over relied on AI to do stuff for you and you cannot understand them? If so, take a step back, restart with the basics ditch the AI (and do the basics yourself) then perhaps revisit this self balancing robot project and the many online guides that are available.
1
u/Distdistdist Sep 30 '26
How are you going to sense position/tilt? I don't see anything for that in your parts list.
2
u/JGhostThing Sep 30 '26
You can't find any tutorials out there? You're not looking right. Google "self balancing robot." You should be able to find many. Balance the mass as well as you can, and stick the battery on the top shelf.
Basically, make the body like layers of shelves. Put the motors in the center. For the code, you need a kalmen filter for the IMU. You'll need a PID loop for the control. Start with the P value. Find the value where the balancing happens. The other values are correction values. Look up how to tune a PID loop. There are a couple of good youtube videos.