Greetings.
For several weeks now I have been struggling with a trivial task - controlling several PC fans using ESPHome.
In general, there are a couple of the most common fans for a 120x120 case. They have a 3 pin connection. I just want to control them via Home Assistant → ESPHome. That is, change the speed min-max and turn it off completely.
After watching a bunch of videos, looking at various forums and sketches, I still couldn’t find the answer to my problem. I use an IRFZ44N mossfet for this task, with a couple of resistors and a capacitor to keep the fan from stopping and beeping at low speeds.
But I still can’t get the fan to correctly reduce the speed to almost the minimum, even at 1% it spins at about 40-50% speed + the power, even when turned off, remains somewhere around 6-8 volts, from -why the fan windings start to burn (yes, maybe a relay is needed here).
I’m using an ESP8266 and the most basic code, the frequency has almost no effect on anything.
In the end, the idea is that 2 more DS18B20 temperature sensors will be connected, which will measure the temperature, and based on their readings, you need to turn on/off/change the speed of the fans. But I was still stuck at the initial stage.
That’s not a logic level mosfet, it’s not going to work.
IRLZ44N is logic level mosfet and it might work, even if gate voltage should be >4V.
Mosfet module with drive circuit for 3.3V is what you need.
Don’t take me wrong. Your actual is not going to work! But bare IRLZ44N could work well. Problem is that its declared >4V, so with luck one could work with 3.3V but another might not… Mine are all working well.
one more small clarification: will this module be able to completely turn off the power supply? those. Will the fan windings burn? Or is it worth ordering a relay?
That’s when NPN transistor do it better than mosfet.
Wiring is same, difference is that BC337 is ok up to max 0.8A where mosfet can go up to 100+A. But 99% of mosfets are not able to turn on with arduino voltages, only partially.
You only need BC337 (or 2n2222) and ~500ohm base resistor