A laptop fan (cooler) is a critical component on which the processor temperature and the stability of the device depend. However, when replacing, repairing or upgrading the cooling system, many are faced with a problem: how to properly connect the cooler if the pinout of the connector is unknown? Errors here are fraught - from the lack of rotation of the blades to a short circuit and failure of the motherboard.
In this article we will look at standard pinout diagrams laptop fans (2-, 3-, 4-wire), we will explain how to determine the purpose of each contact by the color of the wire, and show how to connect the cooler to Arduino, power supply or directly to the motherboard. You will also learn what mistakes are most often made when soldering or replacing a connector, and how to avoid them.
Types of laptop fan connectors and their differences
Coolers in laptops use three main types of connectors, which differ in the number of contacts and functionality:
- 🔌 2-pin - the simplest option with power (+) and ground (GND). Rotation is always at maximum speed, there is no control.
- 📊 3-pin — a contact is added for tachometer (rotation speed feedback). Allows the motherboard to monitor the operation of the cooler.
- 🎛️ 4-pin (PWM) — full speed control via pulse width modulation (PWM). Used in modern laptops for dynamic cooling control.
90% of laptops have connectors JST PH 2.0 or Molex 51021-0200 with a contact pitch of 2 mm. Less commonly, proprietary connectors (for example, in MacBook or gaming laptops ASUS ROG). Important: even if the connector looks similar, the pinout may differ!
- 2-pin (no adjustment)
- 3-pin (with tachometer)
- 4-pin (PWM)
- I don't know
Standard pinout by wire colors
Manufacturers adhere to generally accepted color coding, but exceptions are common (especially in cheap laptops or Chinese replacements). Below is a basic diagram for most coolers:
| Wire color | Purpose (2-pin) | Purpose (3-pin) | Purpose (4-pin PWM) |
|---|---|---|---|
| Red | +5V or +12V (power) | +5V or +12V | +12V (less often +5V) |
| Black | GND (ground) | GND | GND |
| Yellow | — | Tachometer (speed signal) | Tachometer |
| Blue/Green | — | — | PWM (speed control) |
⚠️ Attention: In laptops Dell Latitude or HP EliteBook red wire may be +19V instead of standard +12V! Before connecting Be sure to check the voltage with a multimeter on the motherboard connector pins.
If the colors do not match the table, use the tester in dialing mode:
- Connect the probes to the red and black wires, supply power (for example, from a power supply). If the cooler is spinning, this is
+VAndGND. - For 3/4-pin coolers, connect the yellow wire to the multimeter in frequency measurement mode (Hz). When the blades rotate, pulses should appear (usually 2 pulses per revolution).
How to connect a laptop fan to Arduino or external power supply
If you are upgrading your cooling system or testing the cooler outside of your laptop, you can connect it to Arduino Uno, Raspberry Pi or power supply. The main thing is to maintain polarity and not exceed the rated voltage.
Determine the supply voltage (usually 5V or 12V)|Check the pinout with a multimeter|Use a 220 ohm resistor to protect the Arduino (when powered by 12V)|Connect GND first, then power
-->
Example circuit for 4-pin PWM cooler And Arduino:
- 🔴 Red →
Vin(if 12V) or5V(if 5V). - ⚫ Black →
GND. - 🟡 Yellow → any digital pin (for example,
D2) to read revolutions. - 🔵 Blue → PWM pin (e.g.
D9) to control speed.
// Пример кода для Arduino (управление PWM кулером)const int pwmPin = 9; // PWM-выход
const int tachPin = 2; // Тахометр
void setup() {
pinMode(pwmPin, OUTPUT);
pinMode(tachPin, INPUT);
Serial.begin(9600);
}
void loop() {
int speed = map(analogRead(A0), 0, 1023, 0, 255); // Управление потенциометром
analogWrite(pwmPin, speed);
// Считывание оборотов (2 импульса = 1 оборот)
int rpm = (pulseIn(tachPin, HIGH) * 30) / 1000;
Serial.print("Скорость: ");
Serial.print(rpm);
Serial.println(" RPM");
delay(1000);
}
⚠️ Attention: Do not connect the 12V cooler directly to 5V Arduino pin - this will lead to overheating of the microcontroller! Use an external power supply or voltage step-down module (such as LM2596).
If the cooler does not start when connected to the Arduino, check whether the low voltage protection is blocking it. Some models require a minimum of 7V to start.
Pinout of coolers in popular laptops (HP, Lenovo, ASUS, Acer)
Manufacturers often use non-standard connectors or change the pinout. Below are proven diagrams for common models:
| Brand/Model | Connector type | Pinout (from left to right) | Notes |
|---|---|---|---|
| HP Pavilion 15, EliteBook 840 | 4-pin JST PH 2.0 | GND | +12V | Tachometer | PWM | Red wire - +19V in models with USB-C PD! |
| Lenovo ThinkPad T480, X1 Carbon | 3-pin Molex 51021 | +5V | GND | Tachometer | Used 5V instead of 12V to save energy. |
| ASUS ROG Zephyrus, TUF Gaming | 4-pin proprietary | PWM | GND | +12V | Tachometer | The order of contacts may differ even in the same line! |
| Acer Aspire 5, Nitro 5 | 2-pin JST SH 1.0 | +12V | GND | There is no feedback, the speed is not adjustable. |
To accurately determine the pinout in your model:
- Find service manual (service manual) on the manufacturer's website. For example, for Lenovo - on pcsupport.lenovo.com.
- Use multimeter in diode testing mode: connect the probes to the connector pins on the motherboard. The positive contact usually shows a voltage drop of ~0.5V.
Where can I download schematics for rare models?
If the manual is not on the official website, try:
1. Search by model on BadCaps Forum (section "Laptop Schematics").
2. Request in Telegram chats of repairmen (for example, @laptop_repair).
3. Watch disassemblies on YouTube - often there are links to diagrams in the description.
Common mistakes when working with pinouts and how to avoid them
Even experienced repairmen make mistakes that lead to the failure of the cooler or motherboard. Here are the most common:
- ⚡ Polarity reversal — connection
+VtoGNDand vice versa. Consequences: the control transistor on the board or the fan itself burns out. - 🔥 Overvoltage - feed
19Vfor a cooler designed for12V. Signs: strong burning smell, lack of rotation. - 📉 Ignoring the tachometer - if you do not connect the yellow wire (3/4-pin), the BIOS may show an error
Fan Errorand block launch. - 🛠️ Soldering without protection — when replacing the connector, heat-shrinkable tubes are not used, which leads to a short circuit.
Critical error: connecting a 4-pin PWM cooler to a 3-pin connector without taking into account the control signal. In this case, the cooler will operate at maximum speed, and the motherboard will try to regulate non-existent PWM, which can cause a failure in the cooling system.
How to avoid problems:
- 🔍 Always check the pinout to connections (using a multimeter or datasheet).
- 📏 Use adapters with the correct wiring (for example, JST PH 2.0 on Molex).
- 🛡️ When soldering, insulate the contacts heat shrink or electrical tape.
If after replacing the cooler the laptop does not turn on or displays an error 0x0A (Fan Error), check the tachometer connection (yellow wire). In 80% of cases, this is where the problem lies.
Upgrading the cooling system: replacing the cooler with a more powerful one
If the standard fan does not cope with cooling (for example, in gaming laptops or during overclocking), it can be replaced with a model with better characteristics. However, there are nuances here:
1. Connector and voltage compatibility. The new cooler must have:
- 🔌 The same type of connector (or the possibility of adaptation via an adapter).
- ⚡ Same nominal voltage (
5V,12Vor19V). - 📏 Suitable dimensions (usually
80×80×10 mmor92×92×15 mm).
2. Speed control. If the original cooler was 3-pin, and the new one is 4-pin (PWM), you will need:
- Connect
PWMto the corresponding pin on the motherboard (usually the 4th pin). - Enable the mode in BIOS
PWM Control(if any).
3. Noise problems. Powerful coolers (for example, Noctua NF-A12x15) may be louder than standard ones. Solution:
- Use resistor on
100–200 Ohmin the power circuit to reduce speed. - Set up fan curve in the BIOS or through utilities (SpeedFan, HWMonitor).
⚠️ Attention: In laptops Apple MacBook Pro (2015–2020) coolers have proprietary control protocol. Replacing with non-original models will lead to an error No Fan Detected and refusal to include. In this case, firmware is required EC controller.
FAQ: Frequently asked questions about laptop fan pinouts
Is it possible to connect a 3-pin cooler instead of a 4-pin?
Yes, but with reservations:
- 🔌Connect
+12V,GNDAndtachometer(yellow wire) to the corresponding contacts. - 🚫
PWM-leave the wire (blue) unconnected. The cooler will operate at maximum speed. - ⚠️ A warning about a fan malfunction may appear in the BIOS.
How to check if the cooler tachometer is working?
Connect the yellow wire to the multimeter in frequency meter (Hz):
- 📊 When the blades rotate, impulses should appear (usually
2 pulses = 1 revolution). - 🔢 Formula for calculating revolutions:
RPM = (pulses per minute) / 2.
If there are no readings, the Hall sensor in the cooler is faulty.
What to do if the cooler does not spin after replacement?
Check in order:
- 🔋 Food: Using a multimeter, measure the voltage on the red and black wires (there should be
5Vor12V). - 🔄 Polarity: swap the red and black wires (sometimes manufacturers confuse them).
- 🖥️ BIOS: reset settings to factory defaults (
Load Defaults). - 🛠️ Mechanics: Make sure the blades are not blocked by dust or cables.
Is it possible to control a laptop cooler via USB?
Technically yes, but you will need:
- 🔌 USB hub with external power supply (For example, Sabrent 4-Port with exit
12V). - 📱 PWM controller (For example, Adafruit PWM Servo Driver).
- 💻 Program for control (for example, Python script with library
pySerial).
⚠️ This method is not suitable for constant use - it is better to modify the standard cooling system.