Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use 5v fan: Examples, Pinouts, and Specs

Image of 5v fanDesign with 5v fan in Cirkit Designer

Introduction

A 5V fan is a small electric fan designed to operate on a 5-volt DC power supply. It is commonly used for cooling electronic components, such as microcontrollers, processors, or power regulators, and for providing ventilation in enclosures to prevent overheating. Due to its compact size and low power consumption, the 5V fan is ideal for use in small electronic projects, computer cases, and embedded systems.

Explore Projects Built with 5v 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!
Image of Battery-Powered Fan Circuit: A project utilizing 5v fan in a practical application
Battery-Powered Fan Circuit

This circuit consists of a 9V battery connected to a fan. The positive terminal of the battery is connected to the 5V pin of the fan, and the negative terminal of the battery is connected to the GND pin of the fan, providing the necessary power for the fan to operate.

Open Project in Cirkit Designer
Image of ESP8266 NodeMCU Based Temperature-Controlled Fan System: A project utilizing 5v fan in a practical application
ESP8266 NodeMCU Based Temperature-Controlled Fan System

This circuit features an ESP8266 NodeMCU microcontroller interfaced with a DS18B20 temperature sensor and a 12V fan controlled by a MOSFET. The 7805 voltage regulator, along with electrolytic capacitors for stabilization, steps down the 12V supply to 5V to power the NodeMCU. The temperature readings from the DS18B20 can be used by the NodeMCU to control the fan speed via the MOSFET, likely for thermal management purposes.

Open Project in Cirkit Designer

Common Applications

Technical Specifications

Below are the typical specifications for a standard 5V fan. Note that actual values may vary depending on the manufacturer and model.

Parameter Specification
Operating Voltage 5V DC
Operating Current 80mA to 200mA (varies by model)
Power Consumption 0.4W to 1W
Fan Speed 3000 to 8000 RPM (varies by model)
Airflow 2 to 10 CFM (Cubic Feet per Minute)
Noise Level 20 to 30 dBA
Dimensions 30x30mm, 40x40mm, or 50x50mm
Connector Type 2-pin or 3-pin JST/PH connector
Bearing Type Sleeve or Ball Bearing

Pin Configuration

The 5V fan typically comes with a 2-pin or 3-pin connector. Below is the pin configuration:

2-Pin Connector

Pin Description
Red Positive (+5V)
Black Ground (GND)

3-Pin Connector

Pin Description
Red Positive (+5V)
Black Ground (GND)
Yellow Tachometer (Speed Feedback)

Usage Instructions

Connecting the 5V Fan

  1. Power Supply: Ensure the fan is connected to a stable 5V DC power source. This can be a power supply, a USB port, or a microcontroller's 5V pin.
  2. Polarity: Connect the red wire to the positive terminal (+5V) and the black wire to the ground (GND). For 3-pin fans, the yellow wire can be left unconnected if speed feedback is not required.
  3. Mounting: Secure the fan in place using screws or adhesive mounts. Ensure the airflow direction aligns with your cooling requirements (usually indicated by arrows on the fan housing).

Using with an Arduino UNO

The 5V fan can be controlled using an Arduino UNO for applications requiring on/off control or speed regulation via PWM (Pulse Width Modulation). Below is an example of how to control a 5V fan using a transistor and PWM.

Circuit Diagram

Arduino Code

// Example code to control a 5V fan using PWM on Arduino UNO
const int fanPin = 9; // PWM pin connected to the transistor's base

void setup() {
  pinMode(fanPin, OUTPUT); // Set the fan pin as an output
}

void loop() {
  analogWrite(fanPin, 128); // Set fan speed to 50% (128 out of 255)
  delay(5000); // Run the fan at 50% speed for 5 seconds

  analogWrite(fanPin, 255); // Set fan speed to 100% (255 out of 255)
  delay(5000); // Run the fan at full speed for 5 seconds

  analogWrite(fanPin, 0); // Turn off the fan
  delay(5000); // Wait for 5 seconds before repeating
}

Best Practices

Troubleshooting and FAQs

Common Issues

  1. Fan Not Spinning

    • Cause: Incorrect wiring or insufficient power supply.
    • Solution: Verify the wiring connections and ensure the power supply provides 5V.
  2. Fan Spins Slowly

    • Cause: Insufficient current or high resistance in the circuit.
    • Solution: Check the power supply's current rating and ensure proper connections.
  3. Excessive Noise

    • Cause: Dust accumulation or worn-out bearings.
    • Solution: Clean the fan blades and consider replacing the fan if the bearings are damaged.
  4. Fan Overheats

    • Cause: Prolonged operation at high speeds or blocked airflow.
    • Solution: Ensure proper ventilation and avoid running the fan at maximum speed continuously.

FAQs

Q1: Can I power a 5V fan directly from an Arduino UNO?
A1: Yes, but only if the fan's current draw is within the Arduino's 5V pin limit (typically 500mA). For higher currents, use an external power source and a transistor for control.

Q2: How do I reverse the airflow direction?
A2: You cannot reverse the airflow by changing the wiring. Instead, physically rotate the fan or use a fan designed for reversible airflow.

Q3: Can I use a 5V fan with a 12V power supply?
A3: No, applying 12V to a 5V fan will damage it. Use a voltage regulator or step-down converter to supply 5V.

Q4: How do I measure the fan's speed using the tachometer pin?
A4: Connect the tachometer pin to a microcontroller's input pin and use an interrupt-based program to count pulses. Each pulse corresponds to a specific number of fan rotations (check the fan's datasheet for details).