PiFanIrHat
llegoff·PiFanIrHat
About the PiFanIrHat PCB
PiFanIrHat is an open source AVR/Arduino PCB design by llegoff, published on GitHub under the CERN-OHL-1.2 license. It is a 2-layer board measuring 65 × 56.5 mm, with 28 components from 19 distinct parts.
Its main chip is the ATtiny85, from the AVR/Arduino family. Other key parts include the TSOP581xx and AT24C32. By type, the board carries 9 resistors, 5 capacitors, 3 ICs, 3 connectors, 3 switches and 2 transistors.
It belongs with the dev boards & breakouts designs in this gallery.
From the project
Raspberry pi HAT with fan and Ir receiver
:warning: need raspbian buster, good version of gpio-fan overlay, come with kernel 4.19.
configuration: edit /boot/config.txt, add folowing line
dtoverlay=gpio-fan,gpiopin=18,temp=55000
on/off button is connected to gpio3 and GND
configuration: edit /boot/config.txt, add folowing line
dtoverlay=gpio-shutdown,gpiopin=3,activelow=1,gpio_pull=up
:warning: on raspberry pi 4, only shutdown work, with original bootloader. For power on, bootloader need to be update to ~~RC3.3~~ last version (see https://www.raspberrypi.org/forums/viewtopic.php?f=117&t=246027)

Main components on the PiFanIrHat
PiFanIrHat bill of materials (BOM)
28 components, 19 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | TSOP581xx | IRReceiver_Vishay_MINICAST-3pin | U1 |
| 1 | ATtiny85 | SOIJ-8_5.3x5.3mm_Pitch1.27mm | U2 |
| 1 | AT24C32 | SOIJ-8_5.3x5.3mm_Pitch1.27mm | U3 |
| 2 | BSS138 | SOT-23 | Q1, Q2 |
| 1 | Raspberry Pi | RaspberryPiHAT | J1 |
| 1 | Fan | Pin_Header_Angled_1x02_Pitch2.54mm | J2 |
| 1 | ISP | Pin_Header_Straight_2x03_Pitch2.54mm | J3 |
| 1 | Jumper_NO_Small | Pin_Header_Straight_1x02_Pitch2.54mm | JP1 |
| 1 | Rec | SW_SPST_TL3342 | SW1 |
| 1 | On/Off | SW_Tactile_SPST_Angled_PTS645Vx31-2LFS | SW2 |
| 1 | On/Off | SW_SPST_TL3342 | SW3 |
| 1 | 1N4148 | D_SOD-123 | D1 |
| 1 | Act | LED_0805 | D2 |
| 3 | 100n | C_0805 | C1, C2, C5 |
| 1 | 1u | C_0805 | C3 |
| 1 | 10u | C_0805 | C4 |
| 5 | 1k | R_0805 | R1, R2, R4, R5, R7 |
| 2 | 100k | R_0805 | R3, R6 |
| 2 | 3.9k | R_0805 | R8, R9 |
PiFanIrHat design files
The KiCad project lives in the llegoff/PiFanIrHat repository on GitHub; these links point at the commit this page was built from.
- LayoutPiFanIr.kicad_pcb
PiFanIrHat: common questions
What microcontroller does the PiFanIrHat use?
The PiFanIrHat is built around the ATtiny85, from the AVR/Arduino family.
How big is the PiFanIrHat PCB?
The PiFanIrHat measures 65 × 56.5 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the PiFanIrHat?
28 components, from 19 distinct parts. The full bill of materials is listed on this page.
Where can I download the PiFanIrHat design files?
From the llegoff/PiFanIrHat repository on GitHub, which has the KiCad layout; the links under Design files point to each one.
Can I use the PiFanIrHat design in my own project?
Yes, under the terms of its CERN-OHL-1.2 license, which llegoff chose for the repository.
Can I test firmware for the PiFanIrHat without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug AVR/Arduino firmware against it before you order a PCB.
Similar boards
AVR/Arduino
Redox keyboard
mattdibi
162.2 × 126.5 mm77 parts2LMIT2.0kAVR/Arduino
ModuleV450
stuartpittaway
30 × 61.4 mm39 parts2LCC-BY-NC-4.01.1kAVR/Arduino
V4
stuartpittaway
30 × 50 mm38 parts2LCC-BY-NC-4.01.1kAVR/Arduino
Discipline
coseyfannitutti
304.9 × 122.8 mm170 parts2LCC-BY-NC-4.01.0kAVR/Arduino
Megadesk
gcormier
41.7 × 32.2 mm23 parts2LGPL-3.0818AVR/Arduino
Easyduino Atmega Nano
Hanqaqa
43.4 × 18 mm30 parts4LCERN-OHL-P-2.0746