Tool/software:
Greetings.
I'm currently developing a board that has, among other things, an ESP32-WROVER-E microcontroller and a DRV8220-DRL H-bridge motor driver, which I use to drive a 12 VDC latching solenoid valve, model Aquative Plus from Netafim (click HERE for datasheet of the valve).
The problem is that, when I put the DRV8220 in forward or reverse drive to turn ON/OFF the valve, the microcontroller just resets, and even when that happens, current continues to pass through the valve, which is not good given that it's a latch valve, so it shouldn't have current continuously passing through it.
Now, for some context, here is some data about the board. The board is supposed to run with a battery of 3.7 V, so it has a battery charger IC, but for these tests, I'm putting a power supply directly where the battery should be, which means that I'm "bypassing" the charger IC. After that, I have a Buck-Boost power supply of 3.3 V, which I use to power both the microcontroller and a Boost power supply of 12 V. That Boost PS is the one that powers the valve.
Here is the circuit of the DRV8220 IC:

The IN1 and IN2 pins are connected directly to the MCU.
Also, I have put filter capacitors in the MCU, technically to avoid that reset problem (which obviously doesn't happend). This is the circuit for the "ENABLE" pin of the MCU:

And this is the circuit for the 3V3 line of the MCU:

As extra information, I've tried putting some resistences in series with the valve, in an attempt to try limiting the valve current, but it doesn't prevent the MCU reset.
Also, I've tried the following DRV8220 sequences for driving the valve:
Sequence 1:
- IN1 = 1, IN2 = 0 (Forward Drive)
- 200 ms delay (also tried 50 and 100 ms)
- IN1 = 0, IN2 = 0 (Sleep)
Sequence 2:
- IN1 = 1, IN2 = 0 (Forward Drive)
- 200 ms delay (also tried 50 and 100 ms)
- IN1 = 1, IN2 = 1 (Brake)
- 1 sec delay
- IN1 = 0, IN2 = 0 (Sleep)
My guess is that, when driving the valve, a current peak appears, which causes a voltage drop in the 3V3 line, which causes the MCU to reset. But technically I've design all power supplies to stand up to 2 A of current.
Any ideas of what could be happening? If any more information is needed, please let me know. Thank you all.







