Rev Up Your Fan-Speed Control Designs
Speed control of the brushless DC fans commonly used in PCs and other types of electronic equipment is complicated by their nonlinear behavior. As Figure 1 shows, the motors do not run at all until the voltage reaches a highly variable startup voltage and the speed is only approximately linear beyond that point.
Figure 1. This graph shows the voltage vs. speed for a typical brushless DC fan. Fan turning starts between 3V to 5V, but predicting the exact starting voltage is difficult. The exact point varies from fan to fan over the fan's operating life and as a function of ambient conditions. Although the graph is linear above the starting point, most fans only approximate a linear relationship of voltage to speed. Closed-loop fan-speed regulation overcomes all of these difficulties.
Circuits which regulate fan speed can overcome these difficulties. The availability of motors with tachometer outputs facilitates the design of these circuits.
The Basic Fan-Control AmplifierFor some time now there have been integrated circuits (ICs) available that include a DAC (digital-to-analog converter) for controlling fan speed. These circuits include PC system health monitors and dedicated fan-control ICs like the MAX1669 with a linear DAC output as well as PWM output. Although primarily designed for use in PCs, these ICs have found use in other types of electronic equipment. They are equipped with I²C or SMBus interfaces for communication with the controller, processor, or computer. Typically the DAC outputs are fed into either of two types of analog amplifier circuits to step up their voltage output for application to a fan.
These systems are "open loop" and subject to startup voltage requirements. A common approach is to feed full voltage to the fan for a short interval before lowering it to achieve the desired speed. The lowest feasible speed is determined empirically and, because it varies with time and conditions, requires constant reverification.
Figure 2 depicts a schematic for a simple DAC-based open-loop fan control. It is subject to the startup limitations. While often used with fans equipped with tachometer outputs, the ICs only use these tachometer signals to monitor fan speed and determine if speed falls below "watchdog" limits. Because these tachometer signals are so prevalent, the opportunity readily exists to close the loop on fan control.
Figure 2. Simple open-loop fan control is provided by some health monitor, super I/Os, and fan controllers typified by the MAX1669. This design could be implemented with any DAC and any interface. The health monitor ICs have always had inputs for the tachometer, but only as a watchdog function so the host system can verify that the fan is running at minimum rate. The tachometer signal is not directly used in fan control. Because of startup issues, some of the DAC's range is lost, resulting in a system that might actually have less than 7 bits of control over fan speed from an 8-bit DAC.
Closed-Loop Fan-Control AmplifierAn enhancement can be made to DAC-drive fan controllers by using an external amplifier that closes the loop around the tachometer. This approach provides essentially linear control over the full range of 8-bit DAC codes from 0 to 255. Since the tachometer is already there, this modification only requires some signal conditioning and a suitable amplifier arrangement. In the circuit shown in Figure 3, the tachometer pulses are conditioned so that all pulse-width information is removed (differentiated) and only pulse-rate information remains. The pulses representing frequency or fan speed are then used as the feedback to an integrating motor-control amplifier.
Figure 3. This closed-loop fan-control amplifier is used with ICs such as those shown in Figure 2. This design uses the tachometer signals for feedback. This provides linear control over the full output range of the DAC. The fan will reliably start at any setting without needing to take the fan to full speed first.
The time constant of the differentiator is initially set to provide pulses just shorter than the duration of the shortest tachometer pulse at full fan speed. This usually provides too little gain. Gain can be increased by decreasing the value of either R2 or C1. Gain should be set so that the fan just achieves full speed with the full DAC output applied to the input of the amplifier circuit.
The time constant of the integrator is set to provide a smooth response to speed changes without any overshoot or hunting. Typically, this is done empirically with the actual fan and system. The plots in Figure 4 and Figure 5 depict the response of the amplifier with the integration capacitor, C2, at two values, 0.1µF and 1.0µF. Either of these values meets customary criteria for stability, which dictates less than 25% overshoot.
Figure 4. This plot depicts the closed-loop fan-control amplifier with a 0.01µF integrating capacitor as it responds to a step-change input.
Figure 5. This plot depicts the closed-loop fan-control amplifier with a 1µF integrating capacitor as it responds to a step-change input.
Integrated Solutions to Fan RegulationFan-speed regulation design is simplified greatly by using a dedicated IC such as the MAX6650/MAX6651.
The MAX6650 is designed to control a single fan. The MAX6651 controls a single fan and can monitor and act as a watchdog for three additional fan-tachometer outputs. Multiple MAX6651s can be synchronized to control multiple fans. These fan-speed regulators interface to an I²C or SMBus and use the tachometer feedback from fans to regulate their speed. Extensive programmability accommodates a variety of fan speeds and types. Figure 6 depicts a typical connection for the MAX6650.
Note in Figure 6 that the MAX6650/MAX6651 is used with an external pass transistor. Feedback is taken from the drain of the transistor to the terminal on the IC labeled FB, since the output stage of the MAX6650/MAX6651 is an analog DAC and amplifier combination. This DAC/amplifier combination requires local feedback. The feedback of the complete loop is actually the fan's tachometer signal, and this is also returned to the MAX6650/MAX6651. These devices will drive the fan until that tachometer signal matches the programmed period in the speed register in the MAX6650/MAX6651.
Figure 6. The MAX6650 provides a complete integrated, interfaceable solution for fan-speed regulation.
Controlling High-Voltage FansSome fans are rated from 24V to 48V and the MAX6650/MAX6651 can easily be adapted to control these higher-voltage fans. Simply attenuate the feedback and tachometer signals by an amount proportional to the difference between the actual supply and 12V. In essence, the MAX6650/MAX6651 can be "tricked" into thinking that it is controlling a 12V fan. This modification is accomplished with simple attenuation networks on both the feedback and tachometer outputs.
When setting the values for these attenuators, the tachometer feedback signal at the TACHO pin should always be kept more positive than the voltage at the FB pin. This is done with a slightly greater attenuation on the FB network. The FB network can actually tolerate a wide range of attenuation, since that only sets the local gain of the MAX6650/MAX6651 output stage. That output stage is still enclosed within the greater feedback loop formed by the TACHO signal.
Figure 7 shows a circuit for connecting the MAX6650/MAX6651 to higher-voltage fans. R1 should be large enough to avoid loading the pull-up resistor, RPULLUP. R1 and R2 are set for an attenuation factor proportional to the increase in voltage above 12V. For example, in Figure 7 R1 and R2 attenuate the tachometer signal to one-fourth of the value at the fan, since the fan operates at 48V. Once the attenuation factor for R1 and R2 has been determined, select R3 and R4 to have a somewhat greater attenuation factor so that the feedback voltage is more negative than the tachometer signal at all times. In Figure 7 the feedback signal is one-fifth the value at the drain of Q1. The relationship between tachometer and feedback signal is depicted in the scope traces shown in Figure 8. This attenuation relationship is necessary since the tachometer threshold, which is referred to the FB pin, is approximately 1.25V above the FB pin.
Figure 7. This circuit enables the MAX6650 to control a 48V fan by attenuating the feedback and tachometer signals to levels similar to what a 12V fan would produce. In this design select a MOSFET with an adequate voltage rating. The worst-case dissipation will be 0.25 × IFAN × VFAN, where IFAN is the fan's rated current and VFAN is the 24V to 28V supply. Consider this when determining heat-sinking requirements.
Figure 8. The scope photo on the left is taken at 780 rpm, driving a 48V motor. The right trace is taken at 1526 rpm. The square waveform is the tachometer signal at the TACHO pin of the MAX6650. The straight line is the feedback taken at the FB pin of the MAX6650. Note that the voltage at the FB pin is more negative than the TACHO pin over the operating range of the fan. This is ensured by setting the R3/R4 combination in Figure 7 for slightly more attenuation than the R1/R2 combination.
Isolated Fan DriveIn some systems the high fluctuating ground currents of fans cause noise problems due to ground loops. Ground-loop problems are readily solved by galvanic isolation. The schematic of Figure 9 can be used to isolate any I²C or SMBus fan controller, including the previously mentioned MAX1669 or MAX6650/MAX6651. This circuit takes advantage of the already isolated fan power supply so that the MAX6650/MAX6651 does not have to include a separate expensive isolated 5V DC-DC converter. The MAX6330/MAX6331 shunt regulator provides an economical and reliable way to regulate down from the 48V. The SOT23 package of the MAX6330/MAX6331, combined with the size of the 5W dropping resistor, compares favorably to that of a pass regulator and heatsink. Furthermore, the 5W resistor is easier and less costly to install than a heatsink.
Figure 9. Isolated fan-control circuits are useful where ground noise from high fan currents can be a problem. IC1 and IC2 comprise a bidirectional digital isolator for the data line. Since the MAX6650/MAX6651 is only an input for clock, unidirectional isolation can be used for the clock with IC3. IC4 is an optional addition to couple.
In Figure 9 a bidirectional optical isolator circuit isolates the data line. The bidirectional isolator circuit has been described previously in literature.¹,² IC1 and IC2 are connected together so that a low on either side results in a low on the other side, without the isolator circuit latching.
Virtually all of the I²C and SMBus devices discussed here have clock pins that are input only (as opposed to some I²C ICs which can "stretch" the clock by holding the clock low). This design simplifies isolation by requiring only a single unidirectional isolator. Most of these devices also have watchdog or alert outputs that can be coupled back to the controller with another unidirectional isolator.
Fan-Speed Regulation vs. Fan-Speed ControlClosed-loop fan control overcomes the inherent nonlinearity involved in controlling DC brushless fans. Fan control then becomes fan-speed regulation. Precise fan speed is assured even over variations from fan to fan and due to aging. Closed-loop fan regulation is readily accomplished with available fan-control and health-monitoring ICs by using a closed-loop amplifier circuit on their output. More recently, ICs provide closed-loop fan-speed regulation.
These same methods are readily adaptable to circuits that address more limited needs. Many applications such as telecom use 48V fans, and these circuits and ICs can be adapted for that use. Galvanic isolation methods can solve messy ground-loop problems that occasionally arise with large fan current spikes.
¹Steele, Jerry, "Isolate Data Acquisition on a Bi-directional Bus," Electronic Design, November 6, 1995.
²Steele, Jerry, "Temperature sensor uses I²C isolator," EDN, June 6, 1996.