Page 1 of 1

Powering order of Stepper motor and Esp32 board

Posted: Tue Feb 27, 2024 6:52 pm
by sekipaolo
Hi all.

I'm working on a simple project with a NEMA17 stepper motor driven by a TMC2208 driver connected to an ESP32. All is powered though a 12V 16A external power supply, directly to the stepper and through a LM-2596 (5V buck converter to the board).

Here the schematic:
stepper diagram.png
stepper diagram.png (99.48 KiB) Viewed 1137 times
Stepper motor: https://www.amazon.it/dp/B0B38H2ZMR?psc ... ct_details

Stepper driver: https://www.amazon.it/dp/B07GJ7L48H?psc ... ct_details

If I power the esp32 and after connect the stepper to the 3v output and ground everything works perfectly . If the order is inverted or they are powered together (as in the wiring) the ESP32 enter a infinite reboot loop and the motor vibrates heavily. I tested using different powering options but it seems to boiler down to the order, like if some kind of current is flowing from the stepper back to the board and this interferes with the booting process. I'm not an expert on electronics, so I couldn't come up with more testing/debugging options. Would appreciate some help.

Re: Powering order of Stepper motor and Esp32 board

Posted: Wed Feb 28, 2024 1:46 am
by ESP_Sprite
At least IO12 is a bootstrap pin. Do you still have the behaviour if you connect the signal there to a different GPIO?

Re: Powering order of Stepper motor and Esp32 board

Posted: Thu Feb 29, 2024 2:36 pm
by sekipaolo
Hi @ESP_Sprite, you were right, that was the issue, changing to a different PIN works and now I can drive 2 motor too without any issue. Thanks for your help!