
This circuit uses an Arduino Nano to control the speed of a 12V PWM fan with a potentiometer. The Arduino is powered by a 5V battery, while the fan is powered by a separate 12V battery with an SPST rocker switch for power control.

A 4-wire PWM fan is a type of cooling fan designed for precise speed control and efficient thermal management. Unlike traditional 2-wire or 3-wire fans, the 4-wire PWM fan incorporates a dedicated PWM control signal, allowing the fan speed to be dynamically adjusted based on system requirements. This feature makes it ideal for applications where noise reduction, energy efficiency, and temperature regulation are critical.

This circuit uses an Arduino Nano to control the speed of a 12V PWM fan with a potentiometer. The Arduino is powered by a 5V battery, while the fan is powered by a separate 12V battery with an SPST rocker switch for power control.

This circuit controls a 12V PWM fan using an ESP32 microcontroller. The ESP32 regulates the fan speed via a TIP120 transistor and a 1kΩ resistor, with power supplied by a 12V power source and stepped down to 5V for the ESP32 using a Mini 560 step-down converter.

This circuit consists of two 12V fans wired in parallel. Both fans share a common power supply connection, with their +12V pins connected together and their -12V pins also connected together. There is no microcontroller or additional control circuitry involved, indicating that the fans are intended to run continuously when power is applied.

This circuit uses an Arduino Mega 2560 to control the speed of four PWM fans and the brightness of an LED strip based on the input from two potentiometers. The fans and LED strip are powered by a 12V battery, with fuses and toggle switches for safety and control. The Arduino reads the potentiometer values and adjusts the PWM signals accordingly to control the fans and LED strip.
| Parameter | Value/Range |
|---|---|
| Operating Voltage | Typically 12V DC (varies by model) |
| Current Rating | 0.1A to 1A (depending on size/power) |
| PWM Signal Voltage | 3.3V or 5V logic level |
| PWM Frequency Range | 20 kHz to 25 kHz (standard) |
| Speed Control Duty Cycle | 0% (off) to 100% (full speed) |
| Tachometer Signal Output | Open-drain or open-collector |
| Connector Type | 4-pin Molex KK or similar |
| Pin Number | Wire Color (Typical) | Function | Description |
|---|---|---|---|
| 1 | Black | Ground (GND) | Provides the return path for the current. Connect to the system ground. |
| 2 | Yellow | Power (VCC) | Supplies operating voltage to the fan. Typically 12V DC. |
| 3 | Green | Tachometer (TACH) | Outputs a signal proportional to fan speed. Used for speed monitoring. |
| 4 | Blue | PWM Control | Accepts a PWM signal to control fan speed. Operates at 3.3V or 5V logic. |
Below is an example of how to control a 4-wire PWM fan using an Arduino UNO:
// Example: Controlling a 4-wire PWM fan with Arduino UNO
// PWM signal is generated on pin 9
// Tachometer signal is read on pin 2
const int pwmPin = 9; // PWM control pin
const int tachPin = 2; // Tachometer input pin
void setup() {
pinMode(pwmPin, OUTPUT); // Set PWM pin as output
pinMode(tachPin, INPUT_PULLUP); // Set tachometer pin as input with pull-up
// Start with fan at 50% speed
analogWrite(pwmPin, 128); // 50% duty cycle (128 out of 255)
Serial.begin(9600); // Initialize serial communication
}
void loop() {
// Read tachometer signal (pulses per revolution)
int tachState = digitalRead(tachPin);
// Example: Print tachometer state to serial monitor
Serial.println(tachState);
delay(100); // Small delay for stability
}
analogWrite() function generates a PWM signal on the specified pin.Fan Not Spinning
Fan Speed Not Changing
Tachometer Signal Not Working
Excessive Noise or Vibration
Q: Can I use a 4-wire PWM fan with a 3.3V microcontroller?
A: Yes, as long as the fan's PWM control pin supports 3.3V logic levels. Check the fan's datasheet for compatibility.
Q: What happens if I don't connect the PWM wire?
A: The fan will typically run at full speed by default if the PWM wire is left unconnected.
Q: How do I calculate the fan's RPM from the tachometer signal?
A: Measure the frequency of the tachometer pulses. Multiply the frequency by 30 to get the RPM (assuming two pulses per revolution).
Q: Can I use a 4-wire PWM fan with a 2-pin or 3-pin connector?
A: Yes, but you will lose PWM speed control and/or tachometer feedback functionality. The fan will run at full speed when powered.
This documentation provides a comprehensive guide to understanding, using, and troubleshooting a 4-wire PWM fan.