3
\$\begingroup\$

I have an IRLZ44N MOSFET gate connected to a ESP32 Dev board IO pin. When I drive the IO pin high, it will put the ESP32 into a reboot cycle, rebooting each time the MOSFET is triggered high.

This happens when I have a 47k pull down on the gate (or no pull down) and also when using any series resistor, 100-390 Ohms between the IO and the gate.

The drain is connected to a hacked 12V piezoelectric humidifier mister, which pulls about 200mA. Previously I was using an NPN transistor, at one point I noticed it was getting very hot (anomalously). Also when the gate is floating, sometimes it will allow current through the drain. Also sometimes the loads may be disconnected, could this damage the MOSFET potentially?

enter image description here

\$\endgroup\$
  • \$\begingroup\$ And what does the MOSFET connect to? If you don't want to say then maybe there are sites that will use telepathy. \$\endgroup\$ – Andy aka Sep 27 at 12:25
  • \$\begingroup\$ I have updated the question with the load \$\endgroup\$ – Bringle Sep 27 at 12:28
  • 3
    \$\begingroup\$ Just draw a schematic showing all the power rails and any voltage regulators. \$\endgroup\$ – Andy aka Sep 27 at 12:37
  • 2
    \$\begingroup\$ My guess would be brownout since the problem disappeared once you connected it to USB power. I would add a decoupling cap anyways and then scope the 5V and 12V lines. The load might have caps that will act as a short momentarily when it is turned on. \$\endgroup\$ – Joe Mac Sep 27 at 16:00
  • 1
    \$\begingroup\$ Please measure Vcc of the ESP32 with an oscilloscope when this happens. \$\endgroup\$ – winny Sep 29 at 15:42
0
\$\begingroup\$

Using PWM on the output pin to gradually bring the power up did solve the issue, I in turn used a 22uF cap on the gate to perform the same action, with success. Initially a 4.7uF cap solved this issue, although when another load (separate to the schematic) was connected, this also failed. Using a 22uF cap did in turn solve the issue. As Chris Stratton pointed out in the comments this is a brown out issue, which does make things simpler to understand in my head. I have a 12v 2A PSU connected to this device, it makes sense that there is a power spike when the mister circuit is turned on. I have left my cap on the the gate of the FET. This is working, although I am not sure as to whether this is ideal.

| improve this answer | |
\$\endgroup\$
0
\$\begingroup\$

I have made a test according to your provided diagram, and the same thing was happening with me, to solve this I added a buffer ic between the ESP32 output pin and the MOSFET gate and it solved the problem.

enter image description here

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.