5V Mini Fan for Raspberry Pi
5V Mini Fan for Raspberry Pi
The 5V Mini Fan for Raspberry Pi is a compact, low-power cooling solution designed specifically for the Raspberry Pi series of single-board computers. This tiny fan is optimized to provide efficient heat dissipation, ensuring reliable operation and prolonging the lifespan of your Raspberry Pi project.
| The 5V Mini Fan for Raspberry Pi is designed to |
Provide active cooling to the Raspberry Pi board, reducing temperature and preventing overheating
Improve airflow and heat dissipation around the CPU, GPU, and other critical components
Enhance system performance and stability, especially during demanding tasks or in hot environments
Operate quietly and efficiently, making it suitable for a variety of applications, from IoT projects to media centers
5V
[insert power consumption]
[insert speed]
[insert airflow]
[insert noise level]
[insert dimensions]
[insert weight]
| The 5V Mini Fan for Raspberry Pi is compatible with all models of Raspberry Pi, including |
Raspberry Pi 4
Raspberry Pi 3
Raspberry Pi 2
Raspberry Pi 1
Raspberry Pi Zero
The 5V Mini Fan for Raspberry Pi is an essential component for any project requiring reliable cooling and efficient heat dissipation. Its compact design, low power consumption, and quiet operation make it an ideal solution for a wide range of applications, from IoT projects to media centers and more.
5V Mini Fan for Raspberry Pi DocumentationOverviewThe 5V Mini Fan for Raspberry Pi is a compact, low-power fan designed to provide cooling for the Raspberry Pi single-board computer. This fan is powered directly from the Raspberry Pi's 5V power supply and is ideal for DIY projects and prototypes where thermal management is crucial.Technical SpecificationsOperating Voltage: 5V
Current Consumption: 100mA (max)
Fan Speed: 6000 RPM (max)
Noise Level: 25 dBA (max)
Dimensions: 30mm x 30mm x 10mm
Weight: 10gConnecting the Fan to Raspberry PiTo connect the fan to the Raspberry Pi, simply plug the fan's 2-pin header into the Raspberry Pi's 5V and GND pins.Code ExamplesHere are a few examples of how to use the 5V Mini Fan with Raspberry Pi in various contexts:Example 1: Python Script to Control Fan SpeedThis example demonstrates how to control the fan speed using a Python script on Raspberry Pi. In this example, we will use the `RPi.GPIO` library to control the fan speed.```python
import RPi.GPIO as GPIO
import time# Set up GPIO mode
GPIO.setmode(GPIO.BCM)# Set up fan pin as output
fan_pin = 18
GPIO.setup(fan_pin, GPIO.OUT)# Set fan speed to 50%
GPIO.output(fan_pin, GPIO.HIGH)
time.sleep(0.5) # 50% duty cycle
GPIO.output(fan_pin, GPIO.LOW)
time.sleep(0.5)# Clean up
GPIO.cleanup()
```Example 2: Bash Script to Run Fan ContinuouslyThis example demonstrates how to run the fan continuously using a Bash script on Raspberry Pi. In this example, we will use the `gpio` command to set the fan pin high and keep it running indefinitely.```bash
#!/bin/bash# Set fan pin as output
gpio mode 18 out# Set fan pin high to run continuously
gpio write 18 1# Run indefinitely
while true; do
sleep 1
done
```Example 3: Node.js Script to Control Fan Using PWMThis example demonstrates how to control the fan speed using PWM (Pulse Width Modulation) with Node.js on Raspberry Pi. In this example, we will use the `pigpio` library to control the fan speed.```javascript
const Gpio = require('pigpio').Gpio;// Initialize fan pin as PWM output
const fan = new Gpio(18, { mode: Gpio.OUTPUT, pwmRange: 1000 });// Set fan speed to 75%
fan.pwmWrite(750);// Run indefinitely
setInterval(() => {
fan.pwmWrite(750);
}, 1000);
```These examples demonstrate how to use the 5V Mini Fan with Raspberry Pi in different contexts. You can modify the code to suit your specific project requirements.