

A fan is an electromechanical device that creates airflow to cool or ventilate an area. It is commonly used in electronic enclosures, such as computer cases, power supplies, and other devices, to dissipate heat and maintain optimal operating temperatures. Fans are essential for preventing overheating, ensuring the longevity of components, and maintaining system performance.








Below are the general technical specifications for a standard DC brushless fan. 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 fan speed monitoring |
| Pin Number | Name | Description |
|---|---|---|
| 1 | GND | Ground connection |
| 2 | VCC | Power supply (e.g., 12V DC) |
| 3 | Tachometer | Outputs a signal for fan speed monitoring |
| 4 | PWM | Pulse Width Modulation input for speed control |
Power Connection:
Speed Monitoring (Optional):
Speed Control (4-Pin Fans Only):
Mounting:
Below is an example of controlling 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
// Connect VCC and GND to a 12V power supply and ground, respectively
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() {
analogWrite(fanPWM, 128); // Set fan speed to 50% (128 out of 255)
delay(5000); // Run at 50% speed for 5 seconds
analogWrite(fanPWM, 255); // Set fan speed to 100% (255 out of 255)
delay(5000); // Run at full speed for 5 seconds
analogWrite(fanPWM, 0); // Turn off the fan
delay(5000); // Wait for 5 seconds before repeating
}
Fan Does Not Spin:
Fan Spins Slowly or Stops Intermittently:
Excessive Noise:
PWM Control Not Working:
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 transistor or MOSFET.
Q: How do I determine the airflow direction of a fan?
A: Most fans have arrows on the housing indicating the airflow direction and blade rotation.
Q: Can I power a 12V fan with a 5V supply?
A: No, a 12V fan will not operate correctly at 5V. Always use the specified voltage for optimal performance.
Q: How do I reduce fan noise?
A: Use a fan with a lower RPM or implement PWM control to reduce speed. Additionally, ensure the fan is clean and properly mounted.