r/arduino • • 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

0 Upvotes

11 comments sorted by

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.

2

u/ltjojo Sep 30 '26

Yeaaaaaah their story doesn't add up at all. They use AI to make a complicated BT project...but can't apply even some of what AI supposedly gave them, and start working on this new project? And can't find a good tutorial out of the MILLIONS out there? Something ain't right...

-1

u/Deep_Bed_4424 Sep 30 '26

i mean i am not good at coding i do this as a hobby and i dont want to spend to much time learning coding soo i used tutorial online some time its not right part coudnt find with same part guide and when i do it woudnt work i know basic of electronic like capacitor microcontroller pid and more

i know almost 0 coding lol but know about hardware how its working js dont know how to code

1

u/gm310509 400K , 500K , 600K , 640K , 750K Oct 01 '26

I'm not sure what to say other than to repeat this:

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.

In other words put some effort in to overcome the gaps in your knowledge.

You will find that people typically don't want to do your project for you because they are busy doing their own project. That does not mean that people won't help you if you get stuck on something, but it does mean that you have to have put in some effort to create some basic knowledge so that you can:

  1. properly formulate a question and accurately describe the challenge you are experiencing.
  2. understand the replies you have been given and have some ability to execute those suggestions.

Without that, it is no different to what you said when you said: "i used tutorial online some time its not right part coudnt find with same part guide"

To be blunt, if your attitude is: " i dont want to spend to much time learning", then most people's response will be "next post".

1

u/Deep_Bed_4424 Oct 01 '26

so how do i start i am just confused what should i begin with

1

u/gm310509 400K , 500K , 600K , 640K , 750K Oct 01 '26

So I do not know as I do not know what you do actually know and what gaps you have.

The best I can offer is something generic - it is 3 steps.

  1. Ditch the AI completely.
  2. Get yourself a starter kit (if you don't already have one) - ideally one with a servo and a motor (e.g. a fan) and a motor driver).
  3. Start with project #1 in the instructions included in the starter kit and work your way through them.

If when doing #3, you also explore other possibilities based upon things you have learned in earlier instructions (without the AI doing it for you), you will find you learn a lot more quickly. For example, suppose there is a lesson on just using a potentiometer and suppose there is a lesson on just using a servo. After you learn both, try using the potentiometer to provide the input that determines the position of the servo - especially if that is not one of the examples included in the instructions.

Will it be easy? Probably not, you will probably make mistakes and the programs won't work the first time - fixing them is part of the learning process.

All the best with it.

1

u/[deleted] Sep 30 '26

It's not like Lego -- you just don't connect things together and magically it all works. And with AI as your designer/co-pilot, what happens when the AI-generated code doesn't work? And, yes, this is a VERY common problem. You don't have (or want to have) the necessary skill in programming to debug and fix it.

AI is helpful if you know what you're asking and can follow the generated output. A lot of developers use it to streamline their development process, but they, in turn, know what they're doing and are able to understand the generated code and fix any irregularities. This is not your case, however.

You may find here a general pushback on "I used AI (whatever the flavor of the month is) to create a complex something-or-other, and it doesn't work. Please help". Um... nope.

Just my $0.02USD.

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.

1

u/Deep_Bed_4424 Sep 30 '26

mpu6050

2

u/Distdistdist Oct 01 '26

Oh, right-o. Well looks like you're all set! What do you want from us?

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.