A proposal for a new robot balancing robot

As far as shorts, the software is pretty good at picking those up and showing a few other things like pins that have no connection. In my usual way, I designed this from the PCB section of the software which means there is a schematic, but it looks more like a rat's nest, and it is completely unreadable. Maybe someday I will use the schematic software first and then create the PCB from that, but don't count on it.

New schematic posted later.

Thank you so much. I'm not as experienced I guess in programming like an expert like you guys. I'm just trying my best to adapt this and make it work. I thought I knew how to use stepper motors but now I realized that there's more to learn about them. I just have one question that I will prepare later, but I need to show you guys code and other stuff but it's related to Timers and Interrupts, and ArduinoOTA. I'll prepare a bit more. Thanks in advance and let's see how we finish this.

Hi, @PickyBiker

Sorry but, can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

The diagram you provided is not easy to read and does not include all your hardware.
We need a schematic that can be used for troubleshooting.
(Main problem, crossing over of most if not all wires.)

Thanks.. Tom.. :grinning: :+1: :coffee: :australia:

Hi TomGeorge,

I was trying to avoid straightening out the schematic for the PCB, but your request has convinced me that I need to do that.

It will take a little time, but I will either rearrange the schematic in Fritzing or as you suggested, hand draw it and take pictures.

This schematic is actually readable.
Please let me know if you see any errors.

Just got a notice from the PCB company:
"We just wanted to let you know that your order 2024-91716 (Sandbox/R4 Shield With Hole) has hit manufacturing. We will notify you again, once we dispatch your order."

That being done, I can get serious about getting Android Studio up and running.

What PID library are you using that has PID_vZ.h?

Okay, got that library installed.
Got the 0.0.2 Balance bot test loaded.
Got the android ap 0.0.2 installed
connected to the R43D_Remote_AP
Everything seems okay but I can't connect. Nothing happens when Connect is touched.

Update *************************************************************

It works when I use the emulator, but not when I use my real phone.
I'll see what I can find out about the phone link.

Okay, got that library installed.
Got the 0.0.2 Balance bot test loaded.
Got the android ap 0.0.2 installed
connected to the R43D_Remote_AP
Everything seems okay but I can't connect. Nothing happens when Connect is touched.

Update *************************************************************

Got it working with the emulator and the phone.

I think I am caught up and current with the testing environment now.

Yes, it is very cool. TV time with the wife... lol

One of the best tests of a balancer is putting weight out front or back to make it lopsidedly (is that a word?) out of balance.
It should still balance well even though it is not perfectly vertical anymore.

I am going to send you a set of parts that fit a NEMA 17 Stepper motor for a couple reasons. One is that 17's are dirt cheap and readily available. The other is they are light, strong, and fast. If others want to build this, I suspect most would go with 17's rather than the VEXTA steppers we are using. The only difference in code should be tweaking of the PID.

Awesome!

Hi guys. It's nice to see you so active. I have been doing some heavy work with some modifications and testing the code, which works well. Now I'm doing version 2.0 of the Balancing bot. I hope to give more feedback and share with you the design. I'm still working on the hardware, but soon I'll start with the software. I want to have something to do the testing. Keep it going, we are almost there. And I'll share later all the hardware, schematics in KiCad, and some material list for this one. I'm sure hardware can be improved, but these are things I have already. Surely I'll improve it after doing a test.

What you are doing with the hardware is excellent. I hope you are going to push that to github. I am about to make another robot that we are calling R43D which stands for UNO WIFI R4 and 3D printed. If your design is there, I would like print it and test it with our hardware and software.

I see you have sensors on it too, nice addition.

Got your NEMA 17 body done. As soon as I can get out, I'll ship it to you. You don't have to worry about the motors because I'm swimming in NEMA 17 motors.

I don't know about where you are, but we have ice, not snow and per usual, we don't have the equipment needed for this stuff. The main roads are ok but it's 3.5 miles on a country road out of here. Should be able to get out later today or tomorrow.

We got out this afternoon and there were a few icy spots, but not too bad. Once we got to the Hwy, it was fine. Mailed your package, ate an early dinner, then on the way back, on the 3.5-mile road coming to our house; a fire truck, cop car, tow truck, and two vehicles off the road. The only sand we saw on the road was a patch of about a quarter mile on a hill on the Hwy.

We just don't have the tools to deal with snow and ice because those events are so rare.

They shipped the PCB yesterday (or maybe it was the day before). Can't wait to get my hands on the PCB with the hole for the display. Has you son or daughter seen the beating heart sketch I pushed to master/R43D at main · PickyBiker/master (github.com)?

No problem, I was just hoping she liked it.

Hi guys. I'm doing some testing but I'm unable to make the motors work. Can you give me some advice on what step did you use: 1, 1/2, 1/4 or 1/8? I'm using DRV8825 with a dual driver. I'm not sure of what's wrong.

GPT_Stepper leftStepper(leftStepPin, leftDirPin, 34000, true);
GPT_Stepper rightStepper(rightStepPin, rightDirPin, 34000, false);

What did you mean with this two lines?

Can you pin point me to that GPT library? I'm using the one I can get when I search for libraries in Arduino IDE. Thanks in advance. I just want to test and improve the design, then I'll send the final files of the hardware here guys.

The latest one I can see online is 0.3.0
Release V0.3.0 · delta-G/GPT_Stepper (github.com)

Delta-G can let you know if there is something better.