

The CPU Fan Connector Male 4 Pin is a widely used electronic component designed to connect a CPU fan to a motherboard. This connector facilitates the delivery of power to the fan and enables speed control through PWM (Pulse Width Modulation). It is a critical component in maintaining optimal cooling for computer processors, ensuring system stability and performance.








The CPU Fan Connector Male 4 Pin is designed to meet standard motherboard and fan interface requirements. Below are the key technical details:
The 4-pin male connector has the following pinout:
| Pin Number | Name | Function |
|---|---|---|
| 1 | GND (Ground) | Provides the ground connection for the fan. |
| 2 | +12V | Supplies 12V DC power to the fan motor. |
| 3 | Tach (Tachometer) | Outputs a signal to monitor the fan's speed (RPM). |
| 4 | PWM (Control) | Receives a PWM signal from the motherboard to control the fan's speed. |
The CPU Fan Connector Male 4 Pin can also be used in DIY projects with microcontrollers like the Arduino UNO. Below is an example of controlling a 4-pin CPU fan using PWM:
// Example: Controlling a 4-pin CPU fan with Arduino UNO
// Connect the fan's PWM pin to Arduino pin 9
// Connect GND to Arduino GND and +12V to an external 12V power supply
const int pwmPin = 9; // Arduino pin connected to the fan's PWM pin
void setup() {
pinMode(pwmPin, OUTPUT); // Set the PWM pin as an output
}
void loop() {
// Set fan speed to 50% duty cycle (128 out of 255)
analogWrite(pwmPin, 128);
// Delay for 5 seconds
delay(5000);
// Set fan speed to 100% duty cycle (255 out of 255)
analogWrite(pwmPin, 255);
// Delay for 5 seconds
delay(5000);
}
Note: Ensure the fan's +12V and GND are connected to an appropriate external power source, as the Arduino cannot supply sufficient power for the fan motor.
Fan Not Spinning:
Fan Speed Not Adjustable:
Overheating CPU:
By following this documentation, users can effectively utilize the CPU Fan Connector Male 4 Pin in their systems or projects.