Modul Mos Control Mosfet D4184 no work

I just bought a mosfet module, when I code high low why won't the mosfet work?

Let's just say it's a 5V battery, I used the wrong battery example

Showing the code will help. The top module appears to be a NANO, but you need to tell us. The middle is labelled as an esp-01 but the left hand module is a total mystery, you need to supply more information.

Can't you see the module above clearly?
Mosfet HW-532A
ESP01 Adapter
STM32 Bluepill

No code needed, I just followed the code in making a regular Relay

It is doing what it should, not work. It has a minimum voltage specification. Have you looked at the specifications? Here is a schematic: https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse4.mm.bing.net%2Fth%3Fid%3DOIP.OUKTK2WYGQ_cDDZWVnKDQwHaFj%26pid%3DApi&f=1&ipt=fd0140cac8eb10356d2542a78c25d3957b712f3d839eef28c7572d73386c716f&ipo=images Here is a link to the MOSFET data sheet: file:///home/gil/Downloads/IRLR7843.PDF

I cannot follow your picture it is missing to much information.

I followed this circuit, it says 6v input but I put 5v in, I joined the ground

images

Why?
It seems you want to switch an ESP-01 on/off.
Did you try connecting the STM32 output pin directly to the EN pin of the ESP.
Leo..

That is like giving a 5 year old the keys to the car and telling them to drive across country but fill the fuel tank with water before leaving. The minimum voltage is there for a very important reason. If you chose to go less it may not work or more then likely fry the MOSFET with a relative small load.

That voltage (6V / 2 = ~3V) is the minimum required to enhance the MOSFET. By putting 5V you are driving the gate with ~2.5 volts, look at the data sheet. That voltage is divided by ~2 before being applied to the gate.

I use this adapter, the downside is that if the battery is below 4.5V, the esp01 won't turn off immediately, the lights on the esp01 become dim. That's why I want to use mosfet for switch.

The problem is the AMS1117 regulator on that module.
It has a dropout voltage of about 1.2volt, so if you power the ESP-01 through that module then you must give it at least 4.5volt. You shouldn't use that module with a single LiPo cell.

Why an STM32 and a WiFi board. Can't you use a WiFi board that has a LiPo connector included.
Leo..

1 Like

And you thought the MOSFET was tough! Connect everything as it should be and supply what they require not what you think. I would expect that at that point things will begin to work. As far as that adapter do not power it from an Arduino use an external power supply..

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