My Mosfet Always is on allowing current even though GPIO is low

I'm a new commer in Electronics. I'm trying to design a circuit that is control through ESP32 GPIO.

I've a DC12V input. I'm trying to control a 5V motor via ESP32 GPIO and Mosfet (HX2302A).
the Mosfet has Vgs(+/- 12v) . Mosfet Data Sheet is below;

My mosfet allowing current to go through even though the ESP32 GPIO set to Low of off. Not to sure what I've done wrong in schematic diagram. Please provide some guidance.

You have connected the MOSFET in reverse (swaping drain and source pins) and so the built-in protection diode always conducts current. Also, this MOSFET is N-channel and with this control you have to connect it between the GND and the load and not as it is now.

Your circuit is working properly, your configuration will not do what you want. Are you trying to do a highside or lowside switch? Simple P is for positive N is for negative, you are using a N device for positive switching, when doing that the substrate diode will connect and have an approximate resistance of RDSon * 2. High side switch:
image

Lowside Switch:
image

Hey Flashko,

Thank you for your response.
I thought source should always be connected to LM7805 (Vout) and Drain should be connected to the load. Are you saying it should be other way around.

Please see attached updated diagram, is that what you mean;

Hi Gilshultz,

I'm trying to control the 5v motor with my Esp32 GPIO.
The DC12 Battery is connected to LM7805 and the Vout of that is connected to N-Channel Mosfet. I want the N-Channel Mosfet gate to be controlled via ESP32 GPIO.

Unfortunately this is the only Mosfet and LM I've on stock. Anything else I Should do

2 Likes

Have any transistors? Using that N-Channel MOSFET is possible but you will need a gate driver IC and a voltage about 10V to turn it on. It is the Vgs (Voltage gate source) you need to control and for a NFET it needs to be positive in reverence to the source by several volts.

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