Skip to the content
6 layers65 × 56.5 mmRPi Hat, the printed circuit board in 3D

Four-channel Raspberry Pi HAT for gLOWCOST scintillator/MPPC readout with programmable bias, thresholds, and FPGA hit processing.

Size
65 × 56.5 mm
Copper layers
6
Thickness
1.6 mm
Parts
204
Nets
131
Pads
577
Tracks, vias
892, 155
Pours
6
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
16 Sep 2026
Updated
16 Sep 2026

Overview

RPi Hat is an open-source printed circuit board by tharinduudu, from the tharinduudu/gLOWCOST-2v2-mppcInterface- repository on GitHub. It is a 6-layer board of 65 × 56.5 mm with 204 parts on 131 nets, routed with 892 tracks and 155 vias.

It is built around the ICE40LP384-SG32TR, MEA1D0505SC and OPA846ID, with the MAX1932ETC+, TLV3603DCKR and MIC5504-1.2YM5-TR among its other parts. Its parts include 88 capacitors, 69 resistors, 15 ICs, 10 inductors and 6 connectors. It belongs with the fPGA and programmable logic boards and the FPGA and CPLD boards of this library.

Main components

12

README

README.md

gLOWCOST 2v2 MPPC Interface

Assembled board render

gLOWCOST 2v2 is a six-layer Raspberry Pi HAT for MPPC readout, bias control, and fast comparator interfacing. The design combines four sensor-interface channels with programmable bias/control, high-speed analog signal conditioning, FPGA logic, and the Raspberry Pi 40-pin interface.

This repository contains a documented release of the working, hardware-tested KiCad design. The electrical topology, copper routing, footprints, board outline, and stack-up from the tested source have been preserved. Repository hygiene, project portability, release automation, title blocks, and board identification have been added around that validated design.

Design snapshot

  • KiCad 9 project
  • 6 copper layers, 1.6 mm nominal FR-4 stack-up
  • 204 placed footprints
  • 194 / 194 physical footprints covered by project-local 3D models
  • 10 intentional bodyless copper test pads
  • Raspberry Pi 40-pin HAT interface
  • Four SMA-connected MPPC signal channels
  • MAX1932 high-voltage bias supply
  • DAC6578 programmable control
  • OPA846 high-speed amplifiers and TLV3603 comparators
  • Lattice iCE40LP384 FPGA logic
  • Project-local symbols, footprints, 3D models, and component documentation

How the detector works

A charged particle crossing an external scintillator produces light that reaches an MPPC/SiPM. The board applies the sensor bias, AC-couples and amplifies the resulting fast pulse, compares it with a programmable per-channel threshold, and sends a digital hit to the FPGA. The deployed FPGA/Pi software can count individual hits and multi-layer coincidences, which reject much of the uncorrelated SiPM dark-count background.

The PCB provides four complete channels. DAC0-DAC3 trim the four sensor operating points, while DAC4-DAC7 set the four comparator thresholds. The scintillators, MPPCs, FPGA bitstream, Raspberry Pi acquisition software, and external environmental sensor are separate parts of the complete detector and are not stored in this hardware repository.

See Detector functionality for the complete signal path, channel map, bias and threshold calibration, deployed coincidence behavior, temperature compensation, and the boundary between PCB-defined and firmware-defined functions.

High-voltage warning: the four SMA connector shells are assigned to HV_out, not ground. Read the safety and measurement guidance before connecting sensors or grounded test equipment.

Functional-change summary

  • Circuit and netlist: no changes. The current and tested-source exports contain the same 204 components, 131 named nets, and 560 connected pins.
  • PCB electrical design: no changes to pads, footprints, placement, nets, tracks, vias, zones, copper layers, holes, board outline, or stack-up.
  • Fabrication settings: the solder-mask bridge setting is restored to the tested-source value; the resulting mask plots remain identical.
  • Board marking: the requested THARINDU identification is retained on the bottom silkscreen. This is non-electrical.
  • Mechanical representation: missing 3D models were added and the Raspberry Pi header plus L8-L10 model orientations were corrected. These changes affect visualization and STEP output only.
  • Repository packaging: project-local libraries, validation scripts, release generation, documentation, and images were added without changing circuit behavior.

Open the project

Install KiCad 9 or later, clone the repository, and open RPi_Hat.kicad_pro. The checked-in sym-lib-table and fp-lib-table resolve the bundled project libraries through ${KIPRJMOD}, so no machine-specific paths are required.

sh
git clone https://github.com/tharinduudu/gLOWCOST-2v2-mppcInterface-.git
cd gLOWCOST-2v2-mppcInterface-
open RPi_Hat.kicad_pro

Validate and build

Run the repeatable KiCad checks, including project-local 3D-model coverage:

sh
./scripts/check.sh

Create Gerbers, drill files, pick-and-place data, BOM, schematic/assembly PDFs, STEP, checksums, and a release ZIP:

sh
./scripts/build_release.sh

Generated working files go under build/ and are intentionally ignored. The reviewed manufacturing package is published under manufacturing/rev2.2/, with a ready-to-download archive at manufacturing/gLOWCOST-2v2-rev2.2.zip.

Engineering status

The board is reported as built and tested. KiCad still reports inherited review findings in the preserved source. They are captured in docs/DESIGN_REVIEW.md and machine-readable reports under docs/validation/; the validation script guards against increases beyond that reviewed baseline. The 3D coverage and model provenance are documented in docs/3D_MODELS.md.

Before ordering another fabrication run, review docs/MANUFACTURING.md, confirm the stack-up and surface finish with the fabricator, and compare the generated package against the previously qualified order.

Repository map

PathPurpose
RPi_Hat.kicad_proMain KiCad project
RPi_Hat.kicad_schMain schematic
RPi_GPIO.kicad_schRaspberry Pi GPIO child sheet
RPi_Hat.kicad_pcbSix-layer PCB layout
components/Project-local symbols, footprints, models, and datasheets
bom/source/Original procurement BOM supplied with the tested design
docs/Detector functionality, design review, and manufacturing documentation
manufacturing/rev2.2/Reviewed fabrication and assembly outputs
manufacturing/gLOWCOST-2v2-rev2.2.zipDownloadable revision 2.2 manufacturing package
scripts/Repeatable validation and release generation

Change control

This is hardware. Treat any change to connectivity, routing, footprints, stack-up, clearances, or manufacturing outputs as a new hardware revision requiring review and requalification. See CONTRIBUTING.md.

Parts

204
QtyValueFootprintReferences
210u1passives:C-0402C11, C12, C14, C15, C16, C27, C29, C30, C31, C32, C35, C36, C37, C40, C41, C42 +5
17100npassives:C-0402C52, C58, C59, C62, C63, C66, C67, C70, C71, C74, C76, C78, C80, C82, C84, C86 +1
151Kpassives:R-0402R6, R10, R14, R18, R39, R40, R41, R42, R43, R46, R50, R54, R67, R68, R69
1322passives:R-0402R37, R45, R49, R53, R56, R57, R58, R59, R60, R61, R62, R63, R64
121upassives:C-0402C1, C2, C13, C17, C28, C33, C34, C38, C43, C48, C50, C54
1110Kpassives:R-0402R22, R23, R24, R25, R26, R29, R33, R34, R35, R36, R66
849R9passives:R-0402R7, R8, R11, R12, R15, R16, R19, R20
84u7passives:C-0402C73, C75, C77, C79, C81, C83, C85, C87
71upassives:C-0805C3, C5, C20, C23, C24, C25, C26
4150Kpassives:R-0402R38, R47, R51, R55
41npassives:C-0402C57, C64, C68, C72
41ppassives:C-0402C60, C61, C65, C69
4200passives:R-0402R27, R44, R48, R52
44.9Kpassives:R-0402R9, R13, R17, R21
4CONSMA003.062-GBWSMA-KE-P001:BATWIRELESS_BWSMA-KE-P001J3, J4, J5, J6
4OPA846OPA84X:SOT-23-5U6, U7, U8, U9
4TLV3603DCKRTLV3603DCKR:SOT65P210X110-6NU12, U13, U14, U15
3100npassives:C-0603C51, C56, C90
310upassives:L-0805L5, L6, L7
34u7passives:C-0805C19, C21, C22
3BL-HUB37A-AV-TRBBL-HUB37A-AV-TRB:D-0402D2, D3, D4
3BLM18PG121SN1DBLM18PG121SN1D:IND_BLM18_0603_MURL8, L9, L10
21upassives:C-0603C6, C18
21upassives:C-1210C9, C10
247Rpassives:R-0402R31, R32
247upassives:C-0603C55, C89
247upassives:L-0805L1, L2
249.9kpassives:R-0805R4, R65
10passives:R-1206R28
10u1passives:C-0603C8
10u22passives:C-0402C4
1150uHSRN4018:SRN4018L3
11mHpassives:L-1210L4
120kpassives:R-0402R1
12K37passives:R-0603R5
12K49passives:R-0603R2
147npassives:C-0805C7
168Rpassives:R-0402R30
1806Rpassives:R-0805R3
1BSS123LBSS123L:SOT-23-3Q1
1CH0tooling:TestPoint_Pad_D1.0mmTP6
1CH1tooling:TestPoint_Pad_D1.0mmTP7
1CH2tooling:TestPoint_Pad_D1.0mmTP8
1CH3tooling:TestPoint_Pad_D1.0mmTP9
1DAC6578xRGEDAC6578SRGET:DAC6578SRGETU10
1D_CH0tooling:TestPoint_Pad_D1.0mmD_CH0
1D_CH1tooling:TestPoint_Pad_D1.0mmD_CH1
1D_CH2tooling:TestPoint_Pad_D1.0mmD_CH2
1D_CH3tooling:TestPoint_Pad_D1.0mmD_CH3
1GNDtooling:TestPoint_Pad_D1.0mmTP1
1HVtooling:TestPoint_Pad_D1.0mmTP2
1ICE40-LP384-SG32ICE40-LP384:ICE40-LP384-QFN32U3
1LL4148LL4148:SOD-80D1
1MAX1932MAX1932:TQFN-12U2
1MEA1D0505SCCONV_MEA1D0505SC:CONV_MEA1D0505SCU5
1MIC5504-1.2YM5MIC550X:SOT-23-5U1
1REF3430IDBVRREF3430IDBVR:SOT95P280X145-6NU4
1RPi_GPIORPI_Hat:RPI_Hat_B+J2
1SG-2032CANCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1SM04B-SRSS-TB_LF__SN_JST_SM04B-SRSS-TB_LF__SN_:JST_SM04B-SRSS-TB_LF__SN_J1
1SN74LVC1G08DCKRSN74LVC1G08DCKR:SOT65P210X110-5NU11

Similar boards

  • 2 layers27.4 × 58.7 mmLc29h mikrobus PCB, the printed circuit board in 3D

    Lc29h mikrobus PCB

    i2hm/micro_climate_station

    Open the KiCad project using KiCad 7 and above.

    48 parts3
  • 4 layers49 × 80 mm70MHz Soil Sensor, the printed circuit board in 3D

    70MHz Soil Sensor

    jhns-de/70MHz-Soil-Sensor

    Soil moisture and electrical conductivity (EC) sensor based on 70 MHz impedance measurement, developed as part of my master’s thesis.

    130 parts2
  • 2 layers85 × 70 mmLogicBoard v1, the printed circuit board in 3D

    LogicBoard v1

    AlexLymbo/MPPT-ECE445

    ECE445 MPPT Project

    83 parts1
  • 2 layers119 × 92 mmClock A, the printed circuit board in 3D

    Clock A

    fluffy/blinky

    Blinking lights to tell time

    225 parts
  • 2 layers38.2 × 45.5 mmConti activate plug, the printed circuit board in 3D

    Conti activate plug

    NerdyProjects/conti_bat_trigger

    Die Conti-Akkus aus dem Finger-Forum liegen immer noch rum, eine Platine muss her, damit es einfach wird.

    58 parts
  • 4 layers75 × 100 mmFrequency counter, the printed circuit board in 3D

    Frequency counter

    vladaviedov/frequency-counter

    [CAD] Handheld RF frequency counter

    104 parts
  • 4 layers21 × 17.8 mmXIAO ESP32 C6, the printed circuit board in 3D

    XIAO ESP32 C6

    MitkoDyakov/Calipatron

    I design my own digital caliper based on STM32F103C8T6 blue pill.

    83 parts47MIT
  • 4 layers128 × 184 mmCosmicpi 1.7, the printed circuit board in 3D

    Cosmicpi 1.7

    CosmicPi/CosmicPiV1.7PCB

    PCB for Version 1.7 of the Cosmic Pi Hardware. Incremental changes from V1.6. This design is licensed under the CERN OHL V1.2

    219 parts14

Questions

How big is the RPi Hat PCB?

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

What parts does the RPi Hat use?

204 parts, built around the ICE40LP384-SG32TR, MEA1D0505SC, OPA846ID and MAX1932ETC+. 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 RPi Hat KiCad files?

From the tharinduudu/gLOWCOST-2v2-mppcInterface- repository on GitHub, at the commit this page was made from: the board is RPi_Hat.kicad_pcb and its schematic RPi_GPIO.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the RPi Hat design in my own project?

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