Powering order of Stepper motor and Esp32 board
Posted: 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 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.
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 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.