

A fan is an electromechanical device designed to create airflow, primarily used for cooling or ventilation purposes. It is a critical component in electronic systems, where it helps dissipate heat generated by components such as processors, power supplies, and other heat-sensitive devices. By maintaining optimal operating temperatures, fans ensure the reliability and longevity of electronic equipment.








Below are the general technical specifications for a standard DC fan manufactured in China. Specifications may vary depending on the specific model.
The pin configuration for a 3-pin and 4-pin fan is detailed below:
| Pin Number | Name | Description | 
|---|---|---|
| 1 | GND | Ground connection | 
| 2 | VCC | Power supply (e.g., 12V DC) | 
| 3 | Tachometer | Outputs a signal for speed monitoring | 
| Pin Number | Name | Description | 
|---|---|---|
| 1 | GND | Ground connection | 
| 2 | VCC | Power supply (e.g., 12V DC) | 
| 3 | Tachometer | Outputs a signal for speed monitoring | 
| 4 | PWM | Pulse Width Modulation for speed control | 
Below is an example of how to control a 4-pin fan using an Arduino UNO and PWM.
// Example: Controlling a 4-pin fan with Arduino UNO
// Connect the fan's PWM pin to Arduino pin 9
// Ensure the fan's VCC and GND are connected to a 12V power source
const int fanPWM = 9; // PWM pin connected to the fan's PWM input
void setup() {
  pinMode(fanPWM, OUTPUT); // Set the PWM pin as an output
}
void loop() {
  // Set fan speed to 50% duty cycle (128 out of 255)
  analogWrite(fanPWM, 128); 
  
  // Run at 50% speed for 5 seconds
  delay(5000); 
  
  // Set fan speed to 100% duty cycle (255 out of 255)
  analogWrite(fanPWM, 255); 
  
  // Run at full speed for 5 seconds
  delay(5000); 
}
Fan Does Not Spin:
Fan Spins Slowly:
Excessive Noise:
No Speed Signal from Tachometer:
Q: Can I use a 3-pin fan with PWM control?
A: No, 3-pin fans do not have a dedicated PWM pin. However, you can control their speed by varying the supply voltage using a DC motor driver or similar circuit.
Q: How do I determine the airflow direction of the fan?
A: Most fans have an arrow on the housing indicating the airflow direction. If not, airflow typically moves from the open side to the side with the fan's frame supports.
Q: Can I power a 12V fan with a 5V supply?
A: While the fan may spin at a reduced speed, it is not recommended as it may not operate reliably or provide sufficient airflow.
Q: How often should I clean the fan?
A: Clean the fan every 3 to 6 months, or more frequently in dusty environments, to maintain optimal performance.