

A fan is a device that creates airflow by rotating blades, commonly used for cooling or ventilation in electronic circuits and systems. It is an essential component in thermal management, helping to dissipate heat generated by electronic components such as processors, power supplies, and other heat-sensitive devices. Fans are available in various sizes, voltages, and configurations to suit different applications.








Below are the general technical specifications for a typical DC fan used in electronic applications. Specifications may vary depending on the specific model.
The pin configuration depends on the type of fan (2-pin, 3-pin, or 4-pin). Below are the details:
| Pin Number | Name | Description |
|---|---|---|
| 1 | VCC | Positive power supply (e.g., 12V DC) |
| 2 | GND | Ground connection |
| Pin Number | Name | Description |
|---|---|---|
| 1 | VCC | Positive power supply (e.g., 12V DC) |
| 2 | GND | Ground connection |
| 3 | Tachometer | Outputs a signal for speed monitoring |
| Pin Number | Name | Description |
|---|---|---|
| 1 | VCC | Positive power supply (e.g., 12V DC) |
| 2 | GND | Ground connection |
| 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.
// Define the PWM pin for fan control
const int fanPwmPin = 9; // Connect to the PWM pin of the fan
void setup() {
pinMode(fanPwmPin, OUTPUT); // Set the PWM pin as an output
}
void loop() {
// Set fan speed to 50% using PWM (128 out of 255)
analogWrite(fanPwmPin, 128);
delay(5000); // Run at 50% speed for 5 seconds
// Set fan speed to 100% using PWM (255 out of 255)
analogWrite(fanPwmPin, 255);
delay(5000); // Run at full speed for 5 seconds
}
Fan Does Not Spin
Fan Spins Slowly
Excessive Noise
Tachometer Signal Not Detected
Q: Can I use a 12V fan with a 5V power supply?
A: No, a 12V fan requires a 12V power supply to operate correctly. Using a lower voltage may prevent the fan from spinning or reduce its performance.
Q: How do I reverse the airflow direction?
A: You cannot reverse the airflow direction electrically. Instead, physically flip the fan to change the airflow direction.
Q: What is the difference between a 3-pin and a 4-pin fan?
A: A 3-pin fan provides speed monitoring via the tachometer pin, while a 4-pin fan adds PWM control for precise speed adjustment.