Esp32 depugging

i am working on a project with esp32 (arduino dev board) and four dc motors (12v) controlled with one lm298 motordriver, the connecting is like showed:

the different from this schematic that i have two dc motors in parallel instead of one that is in the picture.
when i was working around with this circuit the esp32 suddenly stoped working at all, and it stopped showing on the serial of arudino ide, So i was wondring what might went wrong so i can avoid it.
i am wondring could it be the back emf of the dc motors that toasted the board?

I don't know if this is just the way you drew it, but 1.5v x 4 AAA batteries = 6v, which is not meeting the 9-12vdc power supply requirements.

I don't know that anyone will be able to say much from just the Fritzing diagram.

If that's indeed how it was wired, nothing jumps out at me.

Maybe a faulty module? Have you measured voltages at the I/O connections to see if something got shorted to motor power?

What exactly were you doing when "the esp32 suddenly stopped working"? Could you have shorted something, or put power in a place that would have killed the ESP32?

no it is my bad, i am using 3x3.3 lithiuim batteries

i doubled checked every, even tried with an speare esp32 i have, but the other one got toasted too, with same connections and, both of them worked fine for a couple days of testing, then this happen

That two ESP32s died makes me lean towards either a bad module or a problem in the wiring feeding power supply to one or more of the I/O pins. Can we see a photo of your wiring?

remove the 5v wire from the L298 to the ESP32 when you attach USB. I Killed 2 modules myself just the other day that way.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.