0
\$\begingroup\$

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?

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

1 Answer 1

0
\$\begingroup\$

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.

\$\endgroup\$
2
  • \$\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
    Jun 12, 2022 at 18:32
  • \$\begingroup\$ R1 is OK, Connect R2 between port pin D6 and ground. \$\endgroup\$
    – Gil
    Jun 12, 2022 at 22:31

Your Answer

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

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