Skip to the content
PCBKitNew board
2 layers65 × 56 mmPiFanLidR1, the printed circuit board in 3D

PiFanLidR1

CignaD/PiFanLid

A daughter board with a fan for a Raspberry Pi

Size
65 × 56 mm
Copper layers
2
Thickness
1.6 mm
Parts
16
Nets
35
Pads
66
Tracks, vias
97, 0
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
22 Jan 2026
Updated
22 Jan 2026

Overview

PiFanLidR1 is an open-source printed circuit board by CignaD, from the CignaD/PiFanLid repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 65 × 56 mm with 16 parts on 35 nets, routed with 97 tracks and 0 vias.

It is built around the PN2222A. Its parts include 4 connectors, 1 resistor, 1 diode and 1 transistor.

Main components

1

README

README.md

PiFanLid

Welcome to the Pi Fan LID (LID = Layer Incorporating Devices.) A PCB with a fan to keep your Raspberry Pi cool

It is intended to sit on top of a Raspberry Pi 4B, but will work on a 3B or 3B+ too.

An NPN transistor is included to allow PWM control of the fan speed through any of eight different GPIO pins. GPIO18 allows hardware PWM, but software PWM works well enough in this application and is available on any of the GPIO pins.

The three files: PiFanLidR1.pro, PiFanLidR1.sch, and PiFanLidR1.kicad_pcb constitute a KiCAD project. (KiCAD is an open source schematic capture and PCB layout program.) You can download KiCAD to open the project and possibly make changes, or send PiFanLidR1.kicad_pcb to https://oshpark.com/ to have a PCB made. They should charge around $25 or $30 for three boards.

Or... drop me an email. If I have any boards left over, I might send you one by USPS.

Required materials:

  1. PCB
  2. 5V, 30x30mm fan (available from adafruit)
  3. PN2222 transistor
  4. base current limiting resistor (1k works well)
  5. freewheeling diode (1N4001 for example)
  6. 2x20 pin header socket (available from adafruit. The extra tall version is recommended.)
  7. standoffs to support the PCB. 4 is best. 2 is OK. You can get away with none if you handle carefully.

fan-ctrl.py is a python script that will control the speed of the fan depending on the temperature of the CPU. fan-ctrl.sh is a shell script that can be used to start fan-ctrl.py at boot up. See Pi Lid Assembly and Installation.pdf for instructions.

Aerandir14 wrote an excellent description of the circuit. It can be found at https://www.instructables.com/id/PWM-Regulated-Fan-Based-on-CPU-Temperature-for-Ras/

My python code is based loosely on his.

Parts

16
QtyValueFootprintReferences
8MountingHoleMountingHole:MountingHole_2.7mm_M2.5_DIN965_PadH1, H2, H3, H4, H5, H6, H7, H8
11N4001Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
11kResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR1
1Conn_01x01Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ3
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_HorizontalJ2
1Conn_01x08Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ4
1Conn_02x20_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_VerticalJ1
1LOGOkicad:muG***
1PN2222APackage_TO_SOT_THT:TO-92_Inline_WideQ1

Questions

How big is the PiFanLidR1 PCB?

It measures 65 × 56 mm and has 2 copper layers, 1.6 mm thick.

What parts does the PiFanLidR1 use?

16 parts, built around the PN2222A. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the PiFanLidR1 KiCad files?

From the CignaD/PiFanLid repository on GitHub, at the commit this page was made from: the board is PiFanLidR1.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the PiFanLidR1 design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

Similar boards

  • 2 layers152.4 × 101.6 mm8088-FE2010A SBC, the printed circuit board in 3D

    8088-FE2010A SBC

    skiselev/micro_8088

    Micro 8088 - IBM XT Compatible Processor Board based on Faraday FE2010 chipset

    72 parts412GPL-3.0
  • 2 layers33.7 × 66 mmSmartbell, the printed circuit board in 3D

    Smartbell

    Staacks/there.oughta.be

    Projects featured on my blog at https://there.oughta.be

    27 parts108GPL-3.0
  • 4 layers100 × 100 mm2063-Z80, the printed circuit board in 3D

    2063-Z80

    Z80-Retro/2063-Z80

    Retro Z80 CPU Board

    86 parts96
  • 2 layers30.7 × 76.1 mmRepeater v2, the printed circuit board in 3D

    Repeater v2

    plusvic/simplebus2-intercom

    General description of the Simplebus2 protocol used by some Comelit's intercoms. Hardware for retransmitting Simplebus2 messages over UART.

    17 parts95CC0-1.0
  • 2 layers28.8 × 43.8 mmAdv pcb, the printed circuit board in 3D

    Adv pcb

    Vail-CW/vail-adapter

    Adapter for cw morse keys to USB

    13 parts81MIT
  • 2 layers23.2 × 52.1 mmOpenC64Saver, the printed circuit board in 3D

    OpenC64Saver

    SukkoPera/OpenC64Saver

    Protect your Commodore 64 from killer power supplies!

    17 parts79
  • 4 layers184.2 × 169.5 mmSB mini II, the printed circuit board in 3D

    SB mini II

    simonboak/SB-mini-II

    A homebrewed Apple II clone

    97 parts76MIT
  • 2 layers49.5 × 30 mmAirpcb smd old, the printed circuit board in 3D

    Airpcb smd old

    issalig/toshiba_air_cond

    AB protocol decoder for toshiba air conditioners

    30 parts65