A fan is an electromechanical device designed to create airflow, which is essential for cooling or ventilating an area. In electronics, fans are commonly used to dissipate heat generated by components, ensuring optimal performance and preventing overheating. Fans are often integrated into enclosures, power supplies, and other systems where thermal management is critical.
Explore Projects Built with Fan
Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
This circuit is a fan control system that uses an IR sensor to detect motion and activate a relay, which in turn powers a fan. The circuit includes a voltage regulator to step down the voltage from a 9V battery to 5V, and an NPN transistor to control the relay coil, with an LED indicator to show the status of the fan.
This circuit consists of a 9V battery powering a fan through a rocker switch. The switch controls the connection between the battery and the fan, allowing the user to turn the fan on and off.
This circuit is an automated fan control system using a Raspberry Pi Pico, which reads temperature and humidity data from an AHT20 sensor and displays information on a Nextion Touch LCD. The system uses a Seeed Mosfet to control a fan based on the sensor data, with a logic level converter to interface between the 3.3V and 5V components, and a DCDC converter to step down voltage from 12V to 5V.
This circuit is a motion-activated fan control system. An IR sensor detects motion and activates a 12V relay, which then powers on 12V fans. The system uses a 9V battery for the sensor and relay, and a separate 12V battery for the fans.
Cooling electronic components such as CPUs, GPUs, and power supplies.
Ventilating enclosures to maintain a stable operating temperature.
Used in robotics and IoT projects for thermal management.
Integrated into Arduino-based systems for temperature-sensitive applications.
Technical Specifications
Below are the general technical specifications for a standard 5V DC fan compatible with Arduino Nano:
Parameter
Value
Operating Voltage
5V DC
Operating Current
100-200 mA (typical)
Power Consumption
0.5W - 1W
Speed
3000-5000 RPM (varies by model)
Airflow
10-20 CFM (Cubic Feet per Minute)
Dimensions
40mm x 40mm x 10mm (example size)
Connector Type
2-pin or 3-pin (VCC, GND, optional PWM)
Noise Level
20-30 dBA
Pin Configuration and Descriptions
The fan typically comes with a 2-pin or 3-pin connector. Below is the pin configuration:
2-Pin Fan
Pin
Name
Description
1
VCC
Positive power supply (5V DC)
2
GND
Ground connection
3-Pin Fan
Pin
Name
Description
1
VCC
Positive power supply (5V DC)
2
GND
Ground connection
3
PWM
Pulse Width Modulation input for speed control
Usage Instructions
How to Use the Fan in a Circuit
Power Connection: Connect the fan's VCC pin to a 5V power source and the GND pin to the ground. For Arduino Nano, you can use the 5V and GND pins.
Speed Control (Optional): If using a 3-pin fan, connect the PWM pin to a digital PWM-capable pin on the Arduino Nano for speed control.
Mounting: Secure the fan in the desired location using screws or adhesive mounts, ensuring proper airflow direction.
Important Considerations and Best Practices
Power Supply: Ensure the fan's voltage and current requirements match the power source. Overvoltage can damage the fan.
Airflow Direction: Check the fan's markings (usually an arrow) to confirm the airflow direction.
Noise Reduction: Use rubber mounts or grommets to minimize vibration and noise.
PWM Control: For speed control, use a PWM signal with a frequency of 25 kHz or as specified by the fan's datasheet.
Example Code for Arduino Nano
Below is an example of controlling a 3-pin fan's speed using PWM on an Arduino Nano:
// Define the PWM pin connected to the fan's PWM input
const int fanPWMPin = 9; // Use a PWM-capable pin on the Arduino Nano
void setup() {
pinMode(fanPWMPin, OUTPUT); // Set the PWM pin as an output
}
void loop() {
// Set fan speed to 50% (128 out of 255)
analogWrite(fanPWMPin, 128);
delay(5000); // Run at 50% speed for 5 seconds
// Set fan speed to 100% (255 out of 255)
analogWrite(fanPWMPin, 255);
delay(5000); // Run at full speed for 5 seconds
// Set fan speed to 0% (fan off)
analogWrite(fanPWMPin, 0);
delay(5000); // Turn off the fan for 5 seconds
}
Note: Ensure the fan supports PWM control before using the above code. If using a 2-pin fan, speed control is not possible.
Troubleshooting and FAQs
Common Issues and Solutions
Fan Not Spinning
Cause: Insufficient power supply or incorrect wiring.
Solution: Verify the power source provides 5V and sufficient current. Check the wiring connections.
Fan is Noisy
Cause: Loose mounting or worn-out bearings.
Solution: Secure the fan properly and consider replacing it if the bearings are damaged.
Fan Speed Not Changing (3-Pin Fan)
Cause: Incorrect PWM signal or incompatible fan.
Solution: Ensure the PWM signal is within the fan's specified frequency range. Check the fan's datasheet for compatibility.
Overheating Despite Fan Operation
Cause: Insufficient airflow or improper placement.
Solution: Ensure the fan is oriented correctly and not obstructed. Consider using a higher-capacity fan.
FAQs
Can I use a 12V fan with the Arduino Nano?
No, the Arduino Nano provides a 5V output. Using a 12V fan requires an external power source.
How do I know the airflow direction of the fan?
Most fans have arrows on the housing indicating the airflow direction and blade rotation.
Can I control a 2-pin fan's speed?
No, 2-pin fans do not support speed control. Use a 3-pin or 4-pin fan for PWM-based speed control.
What is the maximum current the Arduino Nano can supply to the fan?
The Arduino Nano's 5V pin can supply up to 500 mA. Ensure the fan's current draw does not exceed this limit.