electrical-pro / ESP32_Robot

ESP32 Balancing Robot
22 stars 10 forks source link

Stepper speed issue #4

Open antalpromille opened 1 year ago

antalpromille commented 1 year ago

Hi,

I have been trying to get this code to run correctly on my robot but I cannot get it to move. Right now, i only have solid light on the leds attached to the step pins, and I can get alternating light on the direction pin leds. I can hear the motors trying to work, but no movement.

I do not have the voltage/current detection unit so I have just tricked the system by saying that the lowest voltage is 12.

Should i expect some kind of flickering on the step pin leds? Or is this to fast to be seen by the human eye? I feel a bit stuck right now, so any help is appreciated.

Edit: did some quick testning yesterday before going to bed, and I can hear the motor buzzing once every second (aproximately) and at that point i can see the step pin leds blinking only once, so im thinking its a timer issue?

antalpromille commented 1 year ago

Just an update on the progress: I managed to get the motors running, turned out I had step and dir pins wrong on my PCB design.

I did hear the motors buzzing once every second, and now when they are turning it seem like the direction of the motors is just updating ~once per second, so I still need to figure this out. Any ideas?