Powering order of Stepper motor and Esp32 board

sekipaolo
Posts: 2
Joined: Tue Feb 27, 2024 6:30 pm

Powering order of Stepper motor and Esp32 board

Postby sekipaolo » Tue Feb 27, 2024 6:52 pm

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 365 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.

ESP_Sprite
Posts: 9052
Joined: Thu Nov 26, 2015 4:08 am

Re: Powering order of Stepper motor and Esp32 board

Postby ESP_Sprite » Wed Feb 28, 2024 1:46 am

At least IO12 is a bootstrap pin. Do you still have the behaviour if you connect the signal there to a different GPIO?

sekipaolo
Posts: 2
Joined: Tue Feb 27, 2024 6:30 pm

Re: Powering order of Stepper motor and Esp32 board

Postby sekipaolo » Thu Feb 29, 2024 2:36 pm

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!

Who is online

Users browsing this forum: No registered users and 114 guests