Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

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

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

Introduction

A 5V fan is a small electric fan that operates on a 5-volt power supply. It is widely used for cooling electronic components, such as microcontrollers, processors, and power regulators, or for providing ventilation in compact spaces. Due to its low power consumption and compact size, the 5V fan is ideal for applications in embedded systems, robotics, and DIY electronics projects.

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!
Battery-Powered Fan Circuit
Image of lesson 1: A project utilizing 5v fan in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered IR Sensor Controlled Fan with LED Indicator
Image of pollution control on roads: A project utilizing 5v fan in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi Pico-Based Smart Fan Controller with Touchscreen Interface
Image of Lueftersteuerung V1: A project utilizing 5v fan in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP8266 NodeMCU Based Temperature-Controlled Fan System
Image of Temp based Fan speed control: A project utilizing 5v fan in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer

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 lesson 1: 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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of pollution control on roads: A project utilizing 5v fan in a practical application
Battery-Powered IR Sensor Controlled Fan with LED Indicator
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Lueftersteuerung V1: A project utilizing 5v fan in a practical application
Raspberry Pi Pico-Based Smart Fan Controller with Touchscreen Interface
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Temp based Fan speed control: 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.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Cooling Raspberry Pi, Arduino, or other microcontroller boards
  • Ventilation in small enclosures or cases
  • Heat dissipation for power supplies and voltage regulators
  • DIY projects requiring airflow in compact spaces
  • Cooling 3D printer components or small motors

Technical Specifications

Below are the key technical details of a typical 5V fan:

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

Pin Configuration and Descriptions

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

2-Pin Connector

Pin Wire Color Description
1 Red Positive (+5V)
2 Black Ground (GND)

3-Pin Connector

Pin Wire Color Description
1 Red Positive (+5V)
2 Black Ground (GND)
3 Yellow Tachometer (Speed Signal)

Usage Instructions

How to Use the 5V Fan in a Circuit

  1. Power Supply: Connect the red wire to a 5V DC power source and the black wire to ground (GND). Ensure the power source can supply sufficient current for the fan (e.g., 200mA).
  2. Optional Speed Monitoring: If using a 3-pin fan, connect the yellow wire to a microcontroller's input pin to monitor the fan's speed using the tachometer signal.
  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).

Important Considerations and Best Practices

  • Voltage Tolerance: Do not exceed the rated 5V input, as overvoltage can damage the fan.
  • Current Supply: Ensure your power source can provide sufficient current to avoid underpowering the fan.
  • Airflow Direction: Check the airflow direction (indicated by arrows on the fan) to ensure proper cooling.
  • Noise Reduction: Use rubber mounts or grommets to reduce vibration and noise.
  • Dust Accumulation: Periodically clean the fan blades to prevent dust buildup, which can reduce efficiency and increase noise.

Example: Connecting a 5V Fan to an Arduino UNO

Below is an example of how to control a 5V fan using an Arduino UNO and a transistor for switching:

// Example: Controlling a 5V fan with Arduino UNO
// The fan is connected to a transistor for switching.
// Pin 9 is used to control the fan.

const int fanPin = 9; // Pin connected to the transistor's base

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

void loop() {
  digitalWrite(fanPin, HIGH); // Turn the fan ON
  delay(5000);               // Keep the fan ON for 5 seconds
  digitalWrite(fanPin, LOW);  // Turn the fan OFF
  delay(5000);               // Keep the fan OFF for 5 seconds
}

Circuit Notes:

  • Use an NPN transistor (e.g., 2N2222) to switch the fan. Connect the fan's red wire to 5V and the black wire to the transistor's collector. The emitter should be connected to GND.
  • Place a 1kΩ resistor between the Arduino pin and the transistor's base to limit current.
  • Optionally, add a flyback diode (e.g., 1N4007) across the fan terminals to protect the circuit from voltage spikes.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Fan Not Spinning

    • Cause: Insufficient power supply or incorrect wiring.
    • Solution: Verify the power source provides 5V and sufficient current. Check the wiring for proper connections.
  2. Fan Spins Slowly

    • Cause: Insufficient current or high resistance in the circuit.
    • Solution: Ensure the power source can supply the required current. Check for loose or corroded connections.
  3. Excessive Noise

    • Cause: Dust buildup or improper mounting.
    • Solution: Clean the fan blades and ensure the fan is securely mounted with vibration-dampening materials.
  4. Fan Overheats

    • Cause: Prolonged operation at high temperatures or overvoltage.
    • Solution: Ensure the fan operates within its rated voltage and ambient temperature range.

FAQs

Q1: Can I power a 5V fan with a USB port?
A1: Yes, most USB ports provide 5V and sufficient current (500mA or more) to power a 5V fan.

Q2: How do I reverse the airflow direction?
A2: To reverse airflow, physically flip the fan. Do not reverse the polarity of the power supply, as this can damage the fan.

Q3: Can I control the fan speed?
A3: Yes, you can control the fan speed using PWM (Pulse Width Modulation) from a microcontroller like Arduino. Use a transistor to handle the fan's current.

Q4: What is the purpose of the yellow wire on a 3-pin fan?
A4: The yellow wire provides a tachometer signal, which can be used to monitor the fan's speed.

Q5: Can I use a 5V fan with a 12V power supply?
A5: No, using a 12V power supply will damage the fan. Use a step-down voltage regulator to convert 12V to 5V if needed.