









Key Technical Details:
Pin Configuration and Descriptions:
| Pin Number | Name | Description |
|---|---|---|
| 1 | VCC | Positive power supply (e.g., 12V) |
| 2 | GND | Ground connection |
| Pin Number | Name | Description |
|---|---|---|
| 1 | VCC | Positive power supply (e.g., 12V) |
| 2 | GND | Ground connection |
| 3 | Tachometer | Outputs a signal for speed feedback |
| Pin Number | Name | Description |
|---|---|---|
| 1 | VCC | Positive power supply (e.g., 12V) |
| 2 | GND | Ground connection |
| 3 | Tachometer | Outputs a signal for speed feedback |
| 4 | PWM | Pulse Width Modulation for speed control |
How to Use the Component in a Circuit:
Important Considerations and Best Practices:
Example Code for Arduino UNO (4-Pin Fan with PWM Control):
// This code demonstrates how to control a 4-pin fan using PWM on an Arduino UNO.
// Connect the fan's PWM pin to Arduino pin 9, VCC to 12V, and GND to ground.
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); // Fan remains off for 5 seconds
}
Common Issues:
FAQs: