Why and How to Control Fan Speed for Cooling Electronic Equipment

18 Aug.,2025

 

Why and How to Control Fan Speed for Cooling Electronic Equipment

Introduction

Interest has been growing in integrated circuits for controlling the speed of cooling fans in personal computers and other electronic equipment. Compact electrical fans are cheap and have been used for cooling electronic equipment for more than half a century. However, in recent years, the technology of using these fans has evolved significantly. This article will describe how and why this evolution has taken place and will suggest some useful approaches for the designer.

If you want to learn more, please visit our website.

Heat Generation and Removal

The trend in electronics, particularly consumer electronics, is towards smaller products with enhanced combinations of features. Consequently, lots of electronic components are being shoehorned into very small form factors. An obvious example is the notebook PC. Thin and “Lite,” notebook PCs have shrunk significantly, yet their processing power has been maintained or increased. Other examples of this trend include projection systems and set-top boxes. What these systems all have in common, besides significantly smaller—and still decreasing—size, is that the amount of heat they must dissipate does not decrease; often it increases! In the notebook PC, much of the heat is generated by the processor; in the projector, most of the heat is generated by the light source. This heat needs to be removed quietly and efficiently.

The quietest way to remove heat is with passive components such as heat sinks and heat pipes. However, these have proved insufficient in many popular consumer electronics products—and they are also somewhat expensive. A good alternative is active cooling, introducing a fan into the system to generate airflow around the chassis and the heat-generating components, efficiently removing heat from the system. A fan is a source of noise, however. It is also an additional source of power consumption in the system—a very important consideration if power is to be supplied by a battery. The fan is also one more mechanical component in the system, not an ideal solution from a reliability standpoint.

Speed control—one way to answer some of these objections to the use of a fan—can have these advantages:

  1. running a fan slower reduces the noise it emits,
  2. running a fan slower can reduce the power it consumes,
  3. running a fan slower increases its reliability and lifetime.

There are many different types of fans and ways of controlling them. We will discuss here various fan types and the advantages and disadvantages of control methods in use today. One way to classify fans is as:

  1. 2-wire fans
  2. 3-wire fans 
  3. 4-wire fans.

The methods of fan control to be discussed here include:

  1. no fan control
  2. on/off control
  3. linear (continuous dc) control
  4. low-frequency pulse-width modulation (PWM)
  5. high-frequency fan control.

Fan Types

A 2-wire fan has power and ground terminals. A 3-wire fan has power, ground, and a tachometric (“tach”) output, which provides a signal with frequency proportional to speed. A 4-wire fan has power, ground, a tach output, and a PWM-drive input. PWM, in brief, uses the relative width of pulses in a train of on-off pulses to adjust the level of power applied to the motor.

A 2-wire fan is controlled by adjusting either the dc voltage or pulse width in low-frequency PWM. However, with only two wires, a tach signal is not readily available. This means that there is no indication as to how fast the fan is running—or indeed, if it is running at all. This form of speed control is open-loop.

A 3-wire fan can be controlled using the same kind of drive as for 2-wire fans—variable dc or low-frequency PWM. The difference between 2-wire fans and 3-wire fans is the availability of feedback from the fan for closed-loop speed control. The tach signal indicates whether the fan is running and its rate of speed.

The tach signal, when driven by a dc voltage, has a square-wave output closely resembling the “ideal tach” in Figure 1. It is always valid, since power is continuously applied to the fan. With low- frequency PWM, however, the tach signal is valid only when power is applied to the fan—that is, during the on phase of the pulse. When the PWM drive is switched to the off phase, the fan’s internal tach signal-generation circuitry is also off. Because the tach output is typically from an open drain, it will float high when the PWM drive is off, as shown in Figure 1. Thus, while the ideal tach is representative of the actual speed of the fan, the PWM drive in effect “chops” the tach signal output and may produce erroneous readings.

In order to be sure of a correct fan speed reading under PWM control, it is necessary to periodically switch the fan on long enough to get a complete tach cycle. This feature is implemented in a number of Analog Devices fan controllers, such as the ADM and the ADT.

In addition to the power, ground, and tach signal, 4-wire fans have a PWM input, which is used to control the speed of the fan. Instead of switching the power to the entire fan on and off, only the power to the drive coils is switched, making the tach information available continuously. Switching the coils on and off generates some commutation noise. Driving the coils at rates greater than 20 kHz moves the noise outside of the audible range, so typical PWM fan-drive signals use a rather high frequency (>20 kHz). Another advantage of 4-wire fans is that the fan speed can be controlled at speeds as low as 10% of the fan’s full speed. Figure 2 shows the differences between 3-wire and 4-wire fan circuits.

Fan Control

No control: The simplest method of fan control is not to use any at all; just run a fan of appropriate capacity at full speed 100% of the time. The main advantages of this are guaranteed fail-safe cooling and a very simple external circuit. However, because the fan is always switched on, its lifetime is reduced and it uses a constant amount of power—even when cooling is not needed. Also, its incessant noise is likely to be annoying.

On/off control: The next simplest method of fan control is thermostatic, or on/off control. This method is also very easy to implement. The fan is switched on only when cooling is needed, and it is switched off for the remainder of the time. The user needs to set the conditions under which cooling is needed—typically when the temperature exceeds a preset threshold.

choig Product Page

The Analog Devices ADM is an ideal sensor for on/off fan control using a temperature setpoint. It has a comparator that produces a THERM output—one that is normally high but switches low when the temperature exceeds a programmable threshold. It automatically switches back to high when the temperature drops a preset amount below the THERM Limit. The advantage of this programmable hysteresis is that the fan does not continually switch on/off when the temperature is close to the threshold. Figure 3 is an example of a circuit using the ADM.

The disadvantage of on/off control is that it is very limited. When a fan is switched on, it immediately spins up to its full speed in an audible and annoying manner. Because humans soon become somewhat accustomed to the sound of the fan, its switching off is also very noticeable. (It can be compared to the refrigerator in your kitchen. You didn’t notice the noise it was making until it switched off.) So from an acoustic perspective, on/off control is far from optimal.

Linear control: At the next level of fan control, linear control, the voltage applied to the fan is variable. For lower speed (less cooling and quieter operation) the voltage is decreased, and for higher speed it is increased. The relationship has limitations. Consider, for example, a 12-V fan (rated maximum voltage). Such a fan may require at least 7 V to start spinning. When it does start spinning, it will probably spin at about half its full speed with 7 V applied. Because of the need to overcome inertia, the voltage required to start a fan is higher than the voltage required to keep it spinning. So as the voltage applied to the fan is reduced, it may spin at slower speeds until, say, 4 V, at which point it will stall. These values will differ, from manufacturer to manufacturer, from model to model, and even from fan to fan.

The Analog Devices ADM linear fan-control IC has a programmable output and just about every feature that might be needed in fan control, including the ability to interface accurately to the temperature-sensing diode provided on chips, such as microprocessors, that account for most of the dissipation in a system. (The purpose of the diode is to provide a rapid indication of critical junction temperatures, avoiding all the thermal lags inherent in a system. It permits immediate initiation of cooling, based on a rise in chip temperature.) In order to keep the power used by the ADM at a minimum, it operates on supply voltages from 3.0 V to 5.5 V, with +2.5-V full scale output.

5-V fans allow only a limited range of speed control, since their start-up voltage is close to their 5-V full speed level. But the ADM can be used with 12-V fans by employing a simple step-up booster amplifier with a circuit such as that shown in Figure 4.

The principal advantage of linear control is that it is quiet. However, as we have noted, the speed-control range is limited. For example, a 12-V fan with a control voltage range from 7 V to 12 V could be running at half speed at 7 V. The situation is even worse with a 5-V fan. Typically, 5-V fans will require that 3.5 V or 4 V be applied to get them started, but at that voltage they will be running at close to full speed, with a very limited range of speed control. But running at 12 V, using circuits such as that shown in Figure 4, is far from optimum from an efficiency perspective. That is because the boost transistor dissipates a relatively large amount of power (when the fan is operating at 8 V, the 4-V drop across the transistor is not very efficient). The external circuit required is also relatively expensive.

PWM Control: The prevalent method currently used for controlling fan speed in PCs is low-frequency PWM control. In this approach, the voltage applied to the fan is always either zero or full-scale—avoiding the problems experienced in linear control at lower voltages. Figure 5 shows a typical drive circuit used with PWM output from the ADT thermal voltage controller.

The principal advantage of this drive method is that it is simple, inexpensive, and very efficient, since the fan is either fully on or fully off.

A disadvantage is that the tach information is chopped by the PWM drive signal, since power is not always applied to the fan. The tach information can be retrieved using a technique called pulse stretching—switching the fan on long enough to gather the tach information (with a possible increase of audible noise). Figure 6 shows a case of pulse stretching.

Another disadvantage of low-frequency PWM is commutation noise. With the fan coils continuously switched on and off, audible noise may be present. To deal with this noise, the newest Analog Devices fan controllers are designed to drive the fan at a frequency of 22.5 kHz, which is outside the audible range. The external control circuit is simpler with high-frequency PWM, but it can only be used with 4-wire fans. Although these fans are relatively new to the market, they are rapidly becoming more popular. Figure 7 depicts the circuit used for high-frequency PWM.

The PWM signal drives the fan directly; the drive FET is integrated inside the fan. Reducing the external component count, this approach makes the external circuit much simpler. Since the PWM drive signal is applied directly to the coils of the fan, the fan’s electronics are always powered on, and the tach signal is always available. This eliminates the need for pulse stretching—and the noise it can produce. The commutation noise is also eliminated, or reduced significantly, since the coils are being switched with a frequency outside the audible range.

Summary

From the standpoints of acoustic noise, reliability, and power efficiency, the most preferable method of fan control is the use of high-frequency (>20 kHz) PWM drive.

Besides eliminating the need for noisy pulse stretching and the commutation noise associated with low-frequency PWM, it has a much wider control range than linear control. With high- frequency PWM, the fan can be run at speeds as low as 10% of full speed, while the same fan may only run at a minimum of 50% of full speed using linear control. It is more energy efficient, because the fan is always either fully on or fully off. (With the FET either off or in saturation, its dissipation is very low, eliminating the significant losses in the transistor in the linear case.) It is quieter than always-on or on/off control, since the fan can run at lower speeds—that can be varied gradually. Finally, running the fan slower also improves its lifetime, increasing system reliability.

For more cooling fan control board desinginformation, please contact us. We will provide professional answers.

Using fans to cool an Industrial Control Panel - Eng-Tips

Hi,

I am trying to design an Industrial Control Panel that can be a drop-in replacement for an existing control panel that has been in service in a machine control application since the 's. The existing control panel (and the machine it controls) still works, but many of the the components inside it (PLC, drive boards, temperature controls, etc) are obsolete and unsupported. We are afraid that the failure of one of these components would result in significant downtime if we are not prepared. For this reason, we are hoping to do a pre-emptive upgrade of the entire control panel.

Using the original control panel for reference, I am trying to select modern (equivalent or hopefully better) components for each control function. While I am certain the original control panel would be found to be far from UL compliant if it were inspected, I am doing my best to choose components and follow practices defined in UL508A for the new control panel. (I am in the process of reading UL508A after receiving some great advice in response to another question I posted on this forum recently).

The question I have now come upon is this... The existing control panel has three solid-state relays that are used to regulate the power applied to resistance heaters. The new control panel will have similar solid state relays. These solid state relays generate some heat inside the panel. In the old control panel, there are two filtered ventilation openings on the lower part of the control panel (one on each side). (The filters look like a metal mesh). There is a fan mounted dead-center at the top of the old control panel that sucks air from above the panel and blows it down into the control panel. The intake side of this fan has the same type of filter as that used on the sides.

I was just wondering if anyone here can comment as to whether this sounds like a reasonable way to keep the inside of the panel as cool as possible (without resorting to air conditioning)? Before I "felt" the direction of air flow, it crossed my mind that there might be an advantage in having the fan on the top of the panel suck air from inside the panel and exhaust it above the panel.

Any comments will be greatly appreciated.

Thanks in advance,
Paul



Our old standard was to put cooling that pushed air into the cabinet either by a fan as you describe, or from a duct from a common cooling fan unit.
I still think there is no better solution.
Reason being, having in our case, one fan unit supplying cold air to many cabinets and over pressure makes it more energy efficient and it's less of a maintenance cost, then to have several small fan units and filters.
The installation cost is of course higher, but that is a one time cost.
Today usually they put in heat exchange units on each cabinet when needed.

The reason for for pushing air into the cabinet instead of sucking it out, is, regardless of which filters you use or how you try to isolate the cabinets you will always suck dust into the cabinet.

We have electrical cabinets that are over 35 years old which are supplied with incoming air which makes the cabinet "over pressurized" and they are almost as clean as they where 35 years ago.

“Logic will get you from A to Z; imagination will get you everywhere.“
Albert Einstein Not conclusively, but in my general experience the desired approach tis to have the "high pressure" zone inside the cabinet. The basic reasoning is that I want one of two things to occur: either I keep the "dirty environment" out of my cabinet, or I "exhaust" my dirty secrets out to the rest of the world, thereby keeping my cabinet clean(er). Is the OPs "blow down from top" approach truly optimal? In my opinion, no - it always works better to use physics to your advantage (hot air DOES rise!). Is it perhaps better because the parts that need the most cooling (or at least largest temperature differential) are located at the top of the cabinet? Maybe.

The trick to "clean" air flow is to have filtration on the air inlet (to capture the incoming "crud"), and some form of anti-varmint protection on the exhaust - usually louvres or screen, not actual filter - to minimize pressure drop through the whole system. For a "pressurized" system, that filter would normally be BEFORE the fan intake where it's easy to see, check, and change. For a "depressurize" system, the filters are at the actual air intakes (again easy to see, check, and change)which are going to be somewhere other than where the fan is located.

Converting energy to motion for more than half a century Dear Mr. PaulKraemer
#204A87]".......In the old control panel, there are two filtered ventilation openings on the lower part of the control panel (one on each side). (The filters look like a metal mesh). There is a fan mounted dead-center at the top of the old control panel that sucks air from above the panel and blows it down into the control panel. The intake side of this fan has the same type of filter as that used on the sides....."
I am of the opinion that:
1. assuming that there is NO over-temperature/heating problem with the old control panel and that new components do not generate more heat; the existing cooling air-flow volume is in order. But, see 2 below.
1.1 If you are considering to re-arrange the new components, try to locate those (heat generating parts) at the [bottom]. NOT at the top .
2. you mentioned that "....a fan mounted dead-center at the top of the old control panel that sucks air from above the panel and blows it down into the control panel. ....".
This is unusual to me. Usually, the top fan sucks in the (cool air) from/through the bottom two sides and blows/discharges the (hot air) through the top. Reason: hot air rises. No reason to blow (hot air) down to be discharged to outside, at the bottom!
3. Strongly recommend to reverse the top fan direction of rotation to blow/discharge instead of suction.
3.1. Refer the fan manual on how to reveres the rotation by electrical connection or reverse the fan installation, if possible?. Do NOT pull out the fan blade from the shaft and flit it over.
Che Kuan Yau (Singapore) All cabinets I have seen have the fan at the top, or more correctly at the side at the top and the outlet at the bottom.
The only reason I can think of for this is that the air is much cleaner at the top then at floor level where all the dirt sooner or later ends up, and having the fan at the bottom can also create a under pressure socking in air from the cable entries if it is at the bottom, which is common, in old cabinets they are not always so tightly sealed either.

Most electrical components at least here can stand at least +55 C, so pushing hot air down and out at floor level is usually sufficient to keep the components cool it is after all the amount of air exchange and the temperature on the incoming air that makes the biggest difference not which way the air goes.





“Logic will get you from A to Z; imagination will get you everywhere.“
Albert Einstein You are correct in what you say Che, I was merely pondering over why old cabinets where never built like that.

Still pondering.... even with filters on the fan, more dust will be pulled in when you open the door if the fan is at the bottom.
And for the function these old cabinets with the "wrong" airflow direction have, they still have done the job at least the ones we have for more then 35 years.

Back to the original question.
As someone said new components usually are more energy efficient and emits less heat, so if there where no overheating problem with the old cabinet the same functionality would work on a new one.

Today most cabinets whit great need of cooling is usually fitted with a heat exchanger, Rittal have several versions there are probably other brands too.
With these there is no air exchange from inside to outside of the cabinet, you put in your preferred temperature and they only run when needed and when you open the door it stops cooling.
Of course this is a more expensive solution at installation compared to installing a fan, but it saves on energy in the long run since it only runs when there is a need for it.



“Logic will get you from A to Z; imagination will get you everywhere.“
Albert Einstein @ Dear Ms RedSnake (Electrical)8 Jan 23 08:33
" #1. ..... till pondering.... even with filters on the fan, more dust will be pulled in when you open the door if the fan is at the bottom. And for the function ....... they still have done the job at ...... for more then 35 years."
Look at thousands/millions of VFDs on the market:
(a) those with plastic enclosure are NOT intended to be in (normal operation) with [the enclosure/cover removed]; even with the [fan is still in position/operation!].
(b) for those with higher kW rating with enclosure say 2m in height or with multiple panels, they are NOT intended to be [in normal operation with the doors open]. The doors if open for testing etc. are of very short duration (say within <1h). Any dust drawn in, during this short time is minimal.

" #2. ......Back to the original question. As someone said new components usually are more energy efficient and emits less heat, so if there where no overheating problem with the old cabinet the same functionality would work on a new one...."
If the design was with the cooling air entering from the bottom and hot air is discharge/exhaust through the top, (i.e. with better heat ex-changing); a smaller kW fan ,or no fan is required. Ultimately save fan running cost.

" #3. .....Today most cabinets whit great need of cooling is usually fitted with a heat exchanger, ...... . With these there is no air exchange from inside to outside of the cabinet, ....... only run when needed...... is a more expensive solution at installation compared to installing a fan, but it saves on energy in the long run since it only runs when there is a need for it."
(a) Thousands/millions of single plastic enclosed (small kW )VFD are NOT installed with [externally mounted/attach heat-exchange]. Reason: One or tow/three fans are adequate. See also below FYI.
FYI: (a) Externally/attach mounted heat exchangers are NOT useful on plastic covers. They are to be mounted on metallic (i.e. high heat conduction material) panels.
(b) Extremal heat exchanger are expensive. Very very low efficiency, as the cooling effect is "indirect" (i.e. going through cooling the metallic panel to cool down the heat generating parts attached on the panel)
(c) All heat exchangers work on same basic principle : cool air enters from bottom with hot air exhaust through the top. NOT reverse.
(d) when the heat generated is very low and the metallic enclosure is very large plus if the environmental temperature is low (i.e. temperature difference is high); NO fan is required.
Che Kuan Yau (Singapore)




Thank you Red Snake, Gr8blu, Che, Jraef, CompositePro, Lional, mparentau, and Ed Stainless for your detailed responses.

My take is that while physics dictates that the most efficient cooling would occur if we put intake filters at a lower position and use the fan to suck air out of the panel at the top (making the inside of the panel negative relative to the room), the panel might stay cleaner if I stick with the current arrangement where we push cool air in from the top and allow it to exhaust at a lower location (making the inside of the panel positive relative to the room, which is the arrangement in my existing panel).

The ideas of a "fins out design" for my SCR's is interesting, but the location for this panel will be pushed right against a wall, so I think "fins out" might be difficult in my case. I think mounting the SCR's directly on the inside of the enclosure and using the enclosure itself as the heat might be less than ideal for me for this same reason. (Also, the enclosures I typically use come with a panel that is offset a small distance from the back enclosure wall, so I usually mount my components on this panel rather than directly on the enclosure wall).

I do believe (in fact, I am fairly certain) that the new components I use in this new panel will generate less heat than the old components in the old panel, and I have observed no sign that the old panel has been getting excessively hot. I suspect that I will have no over-heating issues whatever I choose.

Lionel's point that UL does not typically like openings on top is well taken also. This makes sense, as I have had panels in locations that I believed to be totally out of harms way, and water somehow found its way in as a result of an unexpected event.

Thanks to you all, I feel like I am in a much better position to make an informed decision on how I proceed. I still have some work to do on my actual layout. I'll make the final decision where I'll put my fans and intakes after I get a little farther with that.

I really appreciate all of your help.

Thanks again,
Paul Some thoughts about optimal cooling:
Hot air rises.
Yes, absent any other influence, hot air rises. Hot air expands, and the specific gravity drops, hence, the hotter, light3er air rises above the cooler, denser air. The effect is called convection.
It doesn't take much of a fan to overcome convection, and in the case of an fan cooled electrical panel, I tend to ignore convection.
Where to direct the incoming air?
All else being equal, although that is seldom the case, I would direct the cooling air first owards the hottest components.
With the cooling air stopped, the various components will be at different temperatures depending on the internal heat generated by each component.
The greater the difference between the cooling air and a particular component, the greater the cooling, or temperature drop of the component.
With the air directed first to the hottest components, they will experience the greatest cooling or temperature drop. As the air continues over the cooler components, it will have been warmed by the hotter components and the temperature difference and the cooling effect will be less.
With the air directed first to the cooler components, the air will be heated somewhat before it reaches the hotter components. There will be less temperature difference and thus less cooling.
So, comparing air first to the hottest parts with air first to the coolestparts:
Air first to the hottest parts, the hotter parts will run cooler and the cooler parts will run hotter.
Air first to the cooler parts, the cooler parts will run cooler and the hotter parts will run hotter.
How much hotter or cooler?
Probably not enough to worry about.

--------------------
Ohm's law
Not just a good idea;
It's the LAW!