I'm using the circuit in the picture to control a 12 V DC motor with an ESP32.

enter image description here

Do I need an extra pull-down resistor between the microcontroler pin and ground to avoid my pin floating and maybe activating my MOSFET?

  • 1
    \$\begingroup\$ But R2 is already a pull down. \$\endgroup\$
    – tlfong01
    Commented Jun 11, 2022 at 5:03

1 Answer 1


No. Your existing gate drive circuit acts as a voltage divider decreasing the voltage on the MOSFET gate. Move the pull down resistor (R2) to the pin of the micro and the driver should work fine. The 1N4001 diode is not needed as the MOSFET is avalanche rated but it does not hurt anything. The motor connected to the 3V3 of the micro is a bad idea. You need to power it externally.

  • \$\begingroup\$ Thank you! Yes i forgot to mention that I am using an external voltage source for the motor. Do you mean I should exchange R1 and R2? \$\endgroup\$
    – Fer P
    Commented Jun 12, 2022 at 18:32
  • \$\begingroup\$ R1 is OK, Connect R2 between port pin D6 and ground. \$\endgroup\$
    – Gil
    Commented Jun 12, 2022 at 22:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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