Electronic – Analog Fan control via PWM

fanmosfetpwm

I want to control a fan using analog voltage instead of PWM.
I have a PWM signal from MCU. I want to use a low pass filter to convert this to analog, so 0 to 3.3V based on PWM duty cycle. This will go into a MOSFET which will drive the fan. I want to be able to control the speed of the fan in this manner. This way I control the current to the fan based on Vgs. I need this because it gives me greater control in fan speed and is cheap.
Is there anything wrong with this method?
How do I go about making this work well?
And what should I keep in mind and what am I missing in this circuit?

enter image description here

I need to find a transistor with a low enough Vgs to do this, but if such a thing doesn't exist is there a way to fix that?

Thanks!

Best Answer

I have used analog approaches with voltage control successfully in production (10k/mo) and never had a regulator problem. Simple this 1U high 19"rack was pure analog with an OEM 180W supply that UL dictated a "coke-spill" sealed top, I chose a tiny thermistor epoxied to the SMPS hot-spot to bias a switch to drive the fan ON, above 45deg C. I computed the values and gain in a spreadsheet so the gain was 0 to 100% from 45 to 55'C.

You might find the PWM will work best but alias at some rates with some vendor fans, so test them with a pulse gen. and avoid that PWM rate if using a 2 pin fan.

The problem I had was after a few shipments, fans started to get "stuck" and needed a tiny spin to start up, otherwise they would dither back and forth a couple degrees or simply looked dead. This had nothing to do with analog or PWM control, as I recognized the process design fault as misaligned Hall sensors in the fan. the reason being the max fan power is controlled by sensor magnet alignment and commutation closest to reversal ( before top dead center ) was like a backfire in a piston which made it go back/forth so fast, it stood still. in only 1 or 2 stop positions. So I made a quick fan fail tester with 1 second only 4 seconds off to stop and tested every fan start angle 30 seconds, then after 1 hr found 5 failed in 150 fans. rejected the units. accepted the 145 and sent 1 thousand fans fan to supplier and emailed the Test Design to Distributor& Factory and said if we get 1 more fan failure , they lose our business. That worked. No more stuck fans.

It took me less time to put out this Stop ORder and test 150 fans and send the design procedure than to write up this answer.

Your driver is not linear on V+ high side, and you might want a low side with N type. i.e. the Source to Gnd and Drain to fan(-) and fan(+) to 12V or some other switch. Consider slow startup at 5V for cool and quiet.

Max power dissipation of the fan reduced to 50% at half power and RPM where the driver dissipates the same power, so clamp with isolation to a heatsink or frame. In my case it was only a few Watts out of 5W or use PWM if you prefer 3 pin fans and the thermistor speed control bits and pieces cost me ~$2 added cost to cheaper two-pin twin turbo 1.75" fans. 2 much !