Low-cost fan control system
Through the combination of processor and CPLD, the CPLD IO port is expanded using the serial-parallel shift register, and combined with the fan restart circuit, the problem of the fan control system occupying more IO ports and backwind pressure is solved, and low-cost, logically simple fan control is achieved. , ensure the fan starts and protects normally.
Patent Information
- Application Number
- CN202323278913.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-01
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2033-12-01
AI Technical Summary
The existing fan control system occupies a large number of CPLD IO ports, resulting in high control complexity and cost, and is prone to backwind pressure problems when the fan is plugged and unplugged, resulting in abnormal fan start-up.
Using a combination of processor, CPLD, serial-to-parallel shift register and parallel-to-serial shift register, the processor and CPLD are connected through the I2C bus, and the fan control is realized using five CPLD IO ports, and external or internal fan restart circuits are added. Make sure that the fan does not have load changes when plugging and unplugging, and maintain the fan speed when the CPLD is abnormal.
It reduces the cost of the fan control system, realizes normal start-up and hot-swap protection of the fan, avoids the problem of headwind pressure, and protects key devices in the event of CPLD abnormality.
Smart Images

Figure CN221973872U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of fan control, in particular to a low-cost fan control system. Background Art
[0002] In the prior art, it is necessary to use CPLD to control the fan, such as Figure 1 As shown, it is a schematic diagram of the existing control scheme, in which CPLD is needed to perform signal interaction on the fan, such as PWM signal (speed signal), TACH signal (speed feedback signal), LED signal (indicator light signal) and Present signal (fan presence signal). One fan occupies four IO ports, so the number of general IO ports occupied by CPLD is four times the number of fans.
[0003] Therefore, the prior art not only occupies a large number of CPLD IO ports, increasing control complexity and cost, but also limits the selection of CPLD because the general IO ports connected to the fans in the prior solution need to support hot plugging. In addition, in the prior solution, when the fans are working, if some fans are unplugged, the other fans will be adjusted to full speed. At this time, inserting a fan will cause abnormal fan startup due to the large headwind pressure. Utility Model Content
[0004] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a low-cost fan control system to solve the problem of high fan control cost in the prior art.
[0005] To achieve the above-mentioned purpose and other related purposes, the utility model provides a low-cost fan control system, including a processor, a CPLD, a serial-to-parallel shift register, a parallel-to-serial shift register, and a plurality of fans and fan power switches, wherein the processor is electrically connected to the CPLD, and the IO port of the CPLD is electrically connected to the serial-to-parallel shift register and the parallel-to-serial shift register, wherein the ends of the serial-to-parallel shift register and the parallel-to-serial shift register away from the IO port are electrically connected to the fan; the enable port of the CPLD is electrically connected to the fan power switch, and the end of the fan power switch away from the enable port is electrically connected to the fan.
[0006] In an embodiment of the present invention, the processor and the CPLD are electrically connected via an I2C bus.
[0007] In an embodiment of the present invention, the CPLD includes five IO ports.
[0008] In one embodiment of the present invention, the four IO ports are electrically connected to the serial-to-parallel shift register, wherein the transmission signals corresponding to the four IO ports input to the serial-to-parallel shift register include a reset signal, serial data, a serial clock and a latch release signal.
[0009] In an embodiment of the present invention, the transmission signal output by the serial-to-parallel shift register to the fan includes a rotation speed signal and an indicator light signal.
[0010] In one embodiment of the utility model, the three IO ports are electrically connected to the parallel-to-serial shift register, wherein the transmission signals corresponding to the two IO ports input to the parallel-to-serial shift register include a serial clock and a latch release signal, and the transmission signal corresponding to the one IO port input to the CPLD includes output serial data.
[0011] In an embodiment of the present invention, the transmission signal output by the fan to the parallel-to-serial shift register includes a rotation speed feedback signal and a fan presence signal.
[0012] In an embodiment of the present invention, an external fan restart circuit is connected between the fan presence signal and the reset signal.
[0013] In one embodiment of the utility model, an internal fan restart circuit is provided in the CPLD, wherein one end of the internal restart circuit is connected to the output serial data IO port, and the other end is connected to the reset signal IO port.
[0014] In an embodiment of the present invention, the number of the fans is the same as the number of the fan power switches, wherein one fan power switch controls one fan, and the fan power switch is electrically connected to an external fan power supply.
[0015] As described above, the low-cost fan control system of the utility model meets the requirements of fan hot-swap protection and normal start-up of the fan when powered on. It has low cost and clear and simple logic. It can not only avoid the situation of reverse wind pressure and allow the inserted fan to start normally, but also maintain the current fan speed when the CPLD works abnormally to protect key components from burning out. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 Shown is a schematic diagram of the structure of a fan control system in the prior art;
[0017] Figure 2 Shown is a schematic structural diagram of a low-cost fan control system of the utility model;
[0018] Figure 3Shown is a structural schematic diagram of an external fan restart circuit of a low-cost fan control system of the utility model.
[0019] Component number description
[0020] 1 Processor
[0021] 2 CPLD
[0022] 3 Serial to Parallel Shift Register
[0023] 4 Parallel-to-serial shift register
[0024] 5 Fan
[0025] 6 Fan power switch DETAILED DESCRIPTION
[0026] The following describes the implementation of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific implementations, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0027] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0028] See also Figure 2 The utility model provides a low-cost fan control system, comprising: a processor 1, a CPLD 2, a serial-to-parallel shift register 3, a parallel-to-serial shift register 4, and a plurality of fans 5 and a fan power switch 6, wherein the processor 1 is electrically connected to the CPLD 2, and the IO port of the CPLD 2 is electrically connected to the serial-to-parallel shift register 3 and the parallel-to-serial shift register 4, wherein one end of the serial-to-parallel shift register 3 and the parallel-to-serial shift register 4 away from the IO port is electrically connected to the fan 5; the enable port of the CPLD 2 is electrically connected to the fan power switch 6, and one end of the fan power switch 6 is electrically connected to the fan 5 through the enable port.
[0029] Specifically, CPLD (Complex Programmable Logic Device) is the abbreviation of Complex PLD, which is a more complex logic element than PLD. In the existing solutions, the general IO ports of the CPLD connected to the fan need to support the hot-swap function, which limits the selection of CPLD. The present application can not only realize the hot-swap protection of CPLD and shift register, but also expand the selection range of CPLD and reduce the overall cost.
[0030] Specifically, the processor 1 is electrically connected to a side port of the CPLD 2 through an I2C bus, and the CPLD 2 also includes five IO ports, wherein four of the IO ports are electrically connected to the serial-to-parallel shift register 3, wherein the transmission signals corresponding to the four IO ports input to the serial-to-parallel shift register 3 include a reset signal, serial data, a serial clock, and a latch release signal, respectively, and three of the IO ports are electrically connected to the parallel-to-serial shift register 4, wherein the transmission signals corresponding to the two IO ports input to the parallel-to-serial shift register 4 include a serial clock and a latch release signal, and the transmission signal corresponding to the one IO port input to the CPLD 2 includes output serial data, wherein the transmission signal output by the serial-to-parallel shift register 3 to the fan 5 includes a speed signal and an indicator light signal, and the transmission signal output by the fan 5 to the parallel-to-serial shift register 4 includes a speed feedback signal and a fan in place signal.
[0031] It should be noted that the general IO port of CPLD 2 is expanded by using a serial-to-parallel conversion shift register, and the serial data SDI output by CPLD 2 includes the speed signal PWM and the indicator light signal LED of the fan 5, which are parsed by the serial-to-parallel shift register 3SIPO under the drive of the serial clock SCL and the latch release signal PCL, and distributed to each fan 5; similarly, the speed feedback signal TACH and the fan presence signal Present from the fan 5 are combined into output serial data by the parallel-to-serial shift register 4, and then input into CPLD 2. Therefore, for the low-cost fan control system proposed in this application, no matter how many fans 5 are included in the system, the solution only needs five general IO ports of CPLD 2 to realize the control of the fan 5, which is a significant improvement compared with the prior art.
[0032] In one embodiment, if Figure 2 As shown, an external fan restart circuit is connected between the fan in-position signal and the reset signal. The external fan restart circuit or the internal fan restart circuit are two options, not both. Therefore, in another embodiment, the CPLD 2 may be provided with an internal fan restart circuit, wherein one end of the internal restart circuit is connected to the output serial data IO port, and the other end is connected to the reset signal IO port.
[0033] In one embodiment, the number of the fans 5 is the same as the number of the fan power switches 6 , wherein one fan power switch 6 controls one fan 5 , and the fan power switch 6 is electrically connected to a power supply of an external fan 5 .
[0034] Specifically, hot-swap protection is achieved through timing control, wherein the fan presence signal present is the shortest pin of the connector. After it is detected that the fan is in place, the power supply (i.e., the external fan power supply) and other three signals (i.e., the fan speed signal, the indicator light signal, and the speed feedback signal) are turned on; after it is detected that the fan 5 is taken away, the power supply and the signal are turned off. Specifically, if the timing design is reasonable, the fan power supply and signal will not change with load during hot-plugging, so that the fan 5 supports hot-plugging. At the same time, a hot-plug protection chip can be added to the power supply and a clamping diode can be added to the signal for further protection.
[0035] Furthermore, in this embodiment, an external fan restart circuit is taken as an example. Figure 3 As shown, it is a structural schematic diagram of the external fan restart circuit, wherein, when CPLD 2 detects that fan 5 is inserted, it outputs a reset signal reset to the serial-parallel shift register 3 for a period of time to stop all fans 5, and then starts them at the same time, thus avoiding the situation of reverse wind pressure and allowing the hot-inserted fan 5 to start normally.
[0036] To sum up, the low-cost fan control system of the utility model meets the requirements of fan hot-swap protection and normal start-up of the fan when powered on. It has low cost and clear and simple logic. It can not only avoid the situation of reverse wind pressure and enable the inserted fan to start normally, but also maintain the current speed of the fan when the CPLD works abnormally to protect key components from burning out.
[0037] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed in the present invention shall still be covered by the claims of the present invention.
Claims
1. A low-cost fan control system, characterized in that: include: Processor, CPLD, serial-to-parallel shift register, parallel-to-serial shift register, and several fans and fan power switches, wherein: The processor is electrically connected to the CPLD, and the IO port of the CPLD is electrically connected to the serial-to-parallel shift register and the parallel-to-serial shift register, wherein one end of the serial-to-parallel shift register and the parallel-to-serial shift register away from the IO port is electrically connected to the fan; The enable port of the CPLD is electrically connected to the fan power switch, and one end of the fan power switch away from the enable port is electrically connected to the fan.
2. The low-cost fan control system according to claim 1, characterized in that: The processor is electrically connected to the CPLD via an I2C bus.
3. The low-cost fan control system according to claim 1, characterized in that: The CPLD includes five IO ports.
4. The low-cost fan control system according to claim 3, characterized in that: The four IO ports are electrically connected to the serial-to-parallel shift register, wherein the transmission signals corresponding to the four IO ports input to the serial-to-parallel shift register include a reset signal, serial data, a serial clock and a latch release signal respectively.
5. The low-cost fan control system according to claim 4, characterized in that: The transmission signal output by the serial-to-parallel shift register to the fan includes a rotation speed signal and an indicator light signal.
6. The low-cost fan control system according to claim 5, characterized in that: The three IO ports are electrically connected to the parallel-to-serial shift register, wherein the transmission signals corresponding to the two IO ports input to the parallel-to-serial shift register include a serial clock and a latch release signal, and the transmission signal corresponding to the one IO port input to the CPLD includes output serial data.
7. The low-cost fan control system according to claim 6, characterized in that: The transmission signal output by the fan to the parallel-to-serial shift register includes a rotation speed feedback signal and a fan in-position signal.
8. The low-cost fan control system according to claim 7, characterized in that: An external fan restart circuit is connected between the fan presence signal and the reset signal.
9. The low-cost fan control system according to claim 7, characterized in that: An internal fan restart circuit is provided in the CPLD, wherein one end of the internal fan restart circuit is connected to the output serial data IO port, and the other end is connected to the reset signal IO port.
10. The low-cost fan control system according to claim 1, characterized in that: The number of the fans is the same as the number of the fan power switches, wherein one fan power switch controls one fan, and the fan power switch is electrically connected to an external fan power supply.
