Communica

Installing a Cooling Fan on a Raspberry Pi: A Practical South African Guide

Learn step-by-step how to choose, wire and mount a cooling fan on your Raspberry Pi with local South African tips, parts guidance and troubleshooting.

electronics power and thermal
March 2, 2026
5 min read

Choose the right fan

Match fan voltage, current and airflow to your Pi model and enclosure.

Safe wiring practices

Use 5V/GND or a MOSFET switch for software control; avoid GPIO powering.

SA practical tips

Check Communica branch stock, VAT invoicing and accessory compatibility locally.

Overview: Why add a cooling fan to a Raspberry Pi?

A small cooling fan helps control CPU temperature on Raspberry Pi models used for sustained workloads (media centres, AI experiments, server tasks, or overclocking). This guide covers fan types, electrical requirements, mounting options, and practical considerations for makers, students and technicians in South Africa.

Common fan types and where to use them

Key selection criteria

  • Supply voltage: Raspberry Pi provides 5V on GPIO header pins; ensure fan is 5V-rated or use a suitable regulator.
  • Current draw: typical small fans draw 60-200 mA; check the fan datasheet before wiring to GPIO.
  • Noise and airflow: look at rpm and airflow (CFM or L/min) for sustained cooling needs.
  • Mounting compatibility: check case cutouts or HAT holes; some fans require custom 3D printed mounts.

Simple spec comparison

Specification Small 25 mm Fan Standard 40 mm Fan
Voltage 5 V 5 V
Typical current 60-100 mA 80-200 mA
Airflow (approx.) 3-6 CFM (50-170 L/min) 6-18 CFM (170-510 L/min)
Noise Low Moderate

Local availability note: Communica stocks a range of fans and Pi accessories across Samrand, Pretoria and Cape Town branches. Check stock and branch collection info for faster turnaround; see the branches and trading hours for details here.

Electrical basics and safety

When wiring a fan to a Raspberry Pi, most makers use the 5V and GND pins on the 40-pin GPIO header. Avoid drawing large currents from GPIO signal pins. Use a transistor or MOSFET for switching fans with software control, and add a diode if using motors that can generate back-EMF.

Voltage, current and power calculations

Use Ohm's law and power formulas to estimate load. Example formulas:

V = I * R (Ohm's law) - for resistive loads. Power: P = V * I.

If a 40 mm fan is 5 V and draws 120 mA: P = 5 V * 0.12 A = 0.6 W. For a Raspberry Pi powered from a 5 V, 3 A supply, this adds a small fraction of the available current but always account for USB peripherals and HATs.

Wiring diagram (basic 5V fan to GPIO)

GPIO 40-pin header view (top-down)
Pin 2: 5V  -------------------+ (Red) Fan +
Pin 6: GND -------------------+ (Black) Fan -

For software-controlled switching: use a GPIO pin -> resistor -> base/gate of NPN/MOSFET -> fan negative -> GND. Include a flyback diode for inductive loads.

For a components list and compatible accessories, explore Communica's collections of fans, power supplies and Raspberry Pi accessories on the site here and the broader product index here.

Related Power & Thermal Management Products

Discover quality power & thermal management products related to Installing a Cooling Fan on a Raspberry Pi: A Practical South African Guide

Fs85 Pc Card Guide L-shaped Polyamid Gf Reinfoced L=85mm

Fs85 Pc Card Guide L-shaped Polyamid Gf Reinfoced L=85mm

Fischer ElektronikThermal Management
ZAR17.48

Fs85 Pc Card Guide L-shaped Polyamid Gf Reinfoced L=85mm

Step-by-step installation and mounting options

1. Passive mounting with heatsink and fan

Affix a heatsink to the CPU with thermal tape or paste, then mount a small fan above the heatsink using screws, clips or a purpose-made HAT. Many Pi cases include mounting posts for 25-40 mm fans; where they don't, a 3D-printed bracket is a common maker solution.

2. Using a fan HAT

Fan HATs simplify wiring: they plug onto the 40-pin header and often include a thermal sensor and automatic control. When using a HAT, confirm pin alignment and that the HAT supports your Pi model. Browse compatible HATs and brands on the site here.

3. Software control and basic scripts

Control fans with simple Python scripts reading CPU temperature from /sys/class/thermal/thermal_zone0/temp and toggling a GPIO pin through RPi.GPIO or gpiozero. Example pseudocode:

read temp -> if temp > 60°C: set GPIO HIGH (fan on) -> elif temp < 50°C: set GPIO LOW (fan off)

Use hysteresis (a gap between on/off thresholds) to avoid rapid switching. Note: temperatures and thresholds are illustrative; adjust based on your workload and enclosure ventilation.

Troubleshooting common issues

  • Fan does not start: check 5V/GND wiring and measure voltage at the fan connector; confirm fan polarity.
  • Fan stutters or stops under load: check current draw and whether the Pi's supply can deliver the extra current. Consider powering the fan from a separate 5V rail or powered USB hub if needed.
  • High temperatures persist: verify airflow path, add vents, or upgrade to a higher-flow fan or active HAT solution.

Practical South Africa-focused tips

  • Availability: popular maker fans and Pi HATs are usually stocked at Communica's Samrand branch; check live stock before ordering to avoid lead times.
  • VAT invoicing and education use: Communica can supply VAT invoices and supports educational purchases; check the About Us page for company background and services here.
  • Accessories: pick up rubber fan mounts, connector kits and small MOSFETs for switching to make a tidy, reliable installation.

Example builds and estimated costs (ZAR)

Build Components Estimate (ZAR)
Basic fan install 5V 25 mm fan, jumper wires ~R40-R120
Controlled fan (software) 40 mm fan, N-MOSFET, resistor, diode ~R80-R250

Estimates are indicative and depend on brand and supplier; actual prices at Communica will vary. For a full browse of compatible parts and brands, visit the collections index here.

Final checklist before powering up

  • Confirm correct wiring: 5V to fan +, GND to fan - (or MOSFET switching on low side).
  • Secure mounting to avoid vibrations and short circuits.
  • Test software control and adjust temperature thresholds to suit your deployment.

Sources

Communica Samrand — Electronic Component Experts

Communica supplies semiconductors and electronic components to industries such as automotive, electrical, automation, mining, and education.

Last updated: March 2, 2026

Disclaimer: This content is for educational purposes only. Product availability, pricing, and specifications are subject to change. Always verify current details on the retailer's website before making a purchase. We may earn affiliate commissions from qualifying purchases.

Frequently Asked Questions

Get answers to common questions about Power And Thermal Management

Why Choose Communica?

*Free Shipping

Free shipping for orders over ZAR 1,000.00.

7-Day Returns

Get a full refund if you had the product for less than 7 days.

Quick Delivery

Nationwide delivery within 2 - 4 working days.