Skip to the content
2 layers65 × 56.5 mmPiFanIr, the printed circuit board in 3D

Raspberry pi HAT with fan and Ir receiver

Size
65 × 56.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
30
Nets
42
Pads
122
Tracks, vias
230, 18
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
24 Jul 2019
Updated
3 Oct 2019

Overview

PiFanIr is an open-source printed circuit board by llegoff, from the llegoff/PiFanIrHat repository on GitHub. It is a 2-layer board of 65 × 56.5 mm with 30 parts on 42 nets, routed with 230 tracks and 18 vias.

It is built around the ATTINY85-15M, AT24C32N and BSS138. Its parts include 9 resistors, 5 capacitors, 3 ICs, 3 connectors and 3 switches. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

README.md

:fr: :uk:

buy rev1 on ebay :package:

buy rev1 (silent fan) on ebay :package:

PiFanIrHat

Fan

:warning: need raspbian buster, good version of gpio-fan overlay, come with kernel 4.19.

configuration: edit /boot/config.txt, add folowing line

text
dtoverlay=gpio-fan,gpiopin=18,temp=55000

On/Off button

on/off button is connected to gpio3 and GND

configuration: edit /boot/config.txt, add folowing line

text
dtoverlay=gpio-shutdown,gpio_pin=3,active_low=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)

Download the last bootloader at recovery section https://www.raspberrypi.org/downloads/

IR receiver

install ir-keytable

text
sudo apt install ir-keytable

configuration: edit /boot/config.txt, add folowing line

text
dtoverlay=gpio-ir,gpio_pin=17,gpio_pull=1,rc-map-name=<keymap file for your remote>

keymap files path is /lib//udev/rc_keymaps/

test remote

text
sudo ir-keytable -t -v -p all

IR power On

: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)

Download the last bootloader at recovery section https://www.raspberrypi.org/downloads/

:grey_exclamation: For key learning, press Rec button, led stay on, press remote key, led return off.

flash Attiny85 with file PiFanIr.hex

text
avrdude -p attiny85 -P COM5 -b 19200 -c avrisp -u -U flash:w:PiFanIr.hex

flash attiny85 fuses : lfuse:E2 , efuse:FF , hfuse:DF

text
avrdude -p attiny85 -P COM5 -b 19200 -c avrisp -u -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m

PCB

Schematic

Révision

rev1

  • bad footprint for eeprom

Parts

30
QtyValueFootprintReferences
51kResistors_SMD:R_0805R1, R2, R4, R5, R7
3100nCapacitors_SMD:C_0805C1, C2, C5
2100kResistors_SMD:R_0805R3, R6
23.9kResistors_SMD:R_0805R8, R9
2BSS138TO_SOT_Packages_SMD:SOT-23Q1, Q2
110uCapacitors_SMD:C_0805C4
11N4148Diodes_SMD:D_SOD-123D1
11uCapacitors_SMD:C_0805C3
1AT24C32Housings_SOIC:SOIJ-8_5.3x5.3mm_Pitch1.27mmU3
1ATtiny85Housings_SOIC:SOIJ-8_5.3x5.3mm_Pitch1.27mmU2
1ActLEDs:LED_0805D2
1FanPin_Headers:Pin_Header_Angled_1x02_Pitch2.54mmJ2
1ISPPin_Headers:Pin_Header_Straight_2x03_Pitch2.54mmJ3
1Jumper_NO_SmallPin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmJP1
1On/OffButtons_Switches_THT:SW_Tactile_SPST_Angled_PTS645Vx31-2LFSSW2
1On/OffButtons_Switches_SMD:SW_SPST_TL3342SW3
1Raspberry Pi_LaurentPerso:RaspberryPiHATJ1
1RecButtons_Switches_SMD:SW_SPST_TL3342SW1
1TSOP581xxOpto-Devices:IRReceiver_Vishay_MINICAST-3pinU1

The 28 most common of 30 parts.

Similar boards

  • 2 layers65.5 × 98 mmFloppy Board v3.1, the printed circuit board in 3D

    Floppy Board v3.1

    FloppyO1/Floppy_Boards

    Floppy Boards are a series of breakout boards for rapid prototyping which I developed as an alternative of Arduino.

    339 parts5CERN-OHL-S-2.0
  • 4 layers65 × 56.5 mmCANopy, the printed circuit board in 3D

    CANopy

    taciturnaxolotl/CANopy

    can hat design for raspberry pis

    42 parts1
  • 2 layers65 × 48 mmBarePi RTC, the printed circuit board in 3D

    BarePi RTC

    Panda381/BarePi

    Modular Microchip Kit

    15 parts4
  • 2 layers70 × 75 mmCloverpad mx, the printed circuit board in 3D

    Cloverpad mx

    Cloverpad/cloverpad-hardware

    Hardware designs for the Cloverpad, a 3-key keypad for osu!

    47 partsCERN-OHL-S-2.0
  • 2 layers65 × 50 mmPi400RGB, the printed circuit board in 3D

    Pi400RGB

    kitspace-test-repos/kicad6-file-collection

    55 partsMIT
  • 2 layers40 × 90 mmWingBoard, the printed circuit board in 3D

    WingBoard

    benjohnemmett/Wingman

    Hardware layout and code for a basic fixed wing flight controller.

    85 partsMIT
  • 2 layers89.7 × 97.9 mmGreHack2019-V2, the printed circuit board in 3D

    GreHack2019-V2

    GreHack/CTF-challs

    Here are the challenges (including sources) of the GreHack CTF.

    29 parts108
  • 2 layers50 × 50 mmT85-with driver and poe, the printed circuit board in 3D

    T85-with driver and poe

    cnlohr/ethertiny

    A firmware-only half-duplex 10Base-T implementation for AVRs

    41 parts133

Questions

How big is the PiFanIr PCB?

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

What parts does the PiFanIr use?

30 parts, built around the ATTINY85-15M, AT24C32N and BSS138. 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 PiFanIr KiCad files?

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

Can I use the PiFanIr design in my own project?

Its repository states no licence, so its author keeps all rights: ask llegoff before reusing the design.