Esp32 + stepper motor
Posted: Sun Jan 14, 2024 9:30 pm
Hi,
I'm trying t o connect my ESP32 to this stepper motor(17HS19-2004S1): https://www.amazon.pl/STEPPERONLINE-kro ... B00PNEQKC0
using a driver (drv8825): https://www.amazon.pl/dp/B07CNJR2Z6?ref ... tails&th=1
I'm following this instruction: https://www.makerguides.com/a4988-stepp ... -tutorial/
- setting up Vref to 1V
- Green and Black go to 1A 1B
- Red and Blue go to 2A, 2B- Dir goes to GPIO12
- STP goes to GPIO14
- Logic is powered by esp32 5v
- Motor is powered by 12V DC
- I don't have capacitor
When I power everything driver are getting hot, and motor is "jumping". It doesn't want to do one full rotation. It's going two-three step forward and then one-two step back.
I was even trying to connect in different configuration wires from motor to the drive and result is similar.
Could you advise? I guess "jumping" motor is a quite common problem. I don't understand what could be wrong.
Thanks!
I'm trying t o connect my ESP32 to this stepper motor(17HS19-2004S1): https://www.amazon.pl/STEPPERONLINE-kro ... B00PNEQKC0
using a driver (drv8825): https://www.amazon.pl/dp/B07CNJR2Z6?ref ... tails&th=1
I'm following this instruction: https://www.makerguides.com/a4988-stepp ... -tutorial/
- setting up Vref to 1V
- Green and Black go to 1A 1B
- Red and Blue go to 2A, 2B- Dir goes to GPIO12
- STP goes to GPIO14
- Logic is powered by esp32 5v
- Motor is powered by 12V DC
- I don't have capacitor
When I power everything driver are getting hot, and motor is "jumping". It doesn't want to do one full rotation. It's going two-three step forward and then one-two step back.
I was even trying to connect in different configuration wires from motor to the drive and result is similar.
Could you advise? I guess "jumping" motor is a quite common problem. I don't understand what could be wrong.
Thanks!