
Trigger
Dawson-HEP/scintillating_chamber
Our proposal to the 2025 Beamline for schools competition. It consists of an arrangement of scitillator rods to detect and model the trajectory of cosmic ray in three dimensions.

Open-source acquisition trigger
Digital is an open-source printed circuit board by Dawson-HEP, from the Dawson-HEP/opentrig repository on GitHub, published under the EPL-2.0 licence. It is a 4-layer board of 162.2 × 100 mm with 438 parts on 420 nets, routed with 3,649 tracks and 1,885 vias.
It is built around the ICE40HX4K-TQ144, RP2040 and 74HC244D, with the MCP4728-E/UN, CH224K and W25Q32JVZPIQ among its other parts. Its parts include 135 resistors, 116 capacitors, 45 connectors, 38 ICs and 37 diodes. It belongs with the RP2040 and FPGA and CPLD boards of this library.
open-source trigger system
An open-source, integrated, particle physics data acquisition system (DAQ).
Designed to interface with timing systems controlled by the AIDA-2020 TLU. Up to 24 digital trigger channels with variable-gain threshold setting.

Front panel IO (left)
Back panel (right)
Internal components
The opentrig system is a 24-channel, synchronous data acquisition platform compatible with EUDAQ2-compatible beamline trigger systems. Each channel digitizes an analog falling-edge into a digital rising-edge depending on a threshold set by independent digital-to-analog converters (DACs). Three trigger sources are fed into a selectable OR-ing gate, which allows for the selection of the interrupt source(s) for sample recording.

The trigger combiner vetoes priority in regards to the inputs of selected trigger sources, and assigns FPGA SPI bandwidth to the microcontroller (MCU) for processing and sampling. An active-high trigger output is asserted with controllable duration and delay in reference to the trigger sources. The sample interrupt interacts with the MCU in order to stream data live through the USB Type-C interface across bulk transfer.
The delays incurred by the trigger is synchronized across channels by means of length matching. The largest skew is a result of level shifting: indeed up to $\pm 0.3$ ns across channels. No significant differences are measured in practice. FPGA gate skew is below the delays of level shifting, and are thus negligible in practice. PCB traces are delay-matched to within $\pm0.01$ mm. Given the assumption that channels are synchronized between each other, the input-output delay needs to be considered.

The FPGA PLL is synchronized to a sampling clock of $120$ MHz, while the SPI clock transfers data at a rate of $5$ MHz. The user can select an internal clock input or an external clock input, both requiring different PLL clock dividers to achieve the full sampling rate at $120$ Msps.

Clocks are phase-aligned by phase-locked-loop (PLL). An internal clock can be generated for the independent functioning of the DAQ. Proper PLL clock dividers and multipliers must be set to achieve the target $120$ MHz. An external clock compliant to EUDAQ2 trigger systems, such as the AIDA-2020 TLU, can be synchronized to \textit{opentrig}. A 16-bit trigger-ID can be read synchronously by the phase-locked external trigger module, which will be recorded upon the assertion of a sample interrupt.
The 24 analog inputs are limited to a voltage range of $-0.30$ V to $+5.30$ V on wide-gain mode, and $-0.30$ V to $+3.30$ V on limited-gain mode. A voltage beyond permissible levels may cause irreversible damage to thresholding comparators, whose inputs are directly connected to SMA connectors.
The digital signals are high-impedance or $50 \Omega$ terminated depending on the label, and function on $3.3$ V CMOS voltage levels. The push-pull drivers have weak drive capabilities; therefore, only small digital loads may be attached with matched impedance.
The hardware is designed in KiCad for the digital trigger front-end and mechanical layout, while the firmware and control utilities are written in Rust using the Embassy embedded framework. The FPGA subsystems are written in pure Verilog with the Yosys open-source toolchain, and Project Icestorm's bitstream documentation.
opentrig/
├── hardware/ # KiCad hardware design
│ ├── fab/ # Fabrication files and gerbers
│ ├── logos.pretty/ # Custom logo footprints and graphics
│ └── digital.pretty/ # Custom digital footprints and component libraries
│
├── opentrig/ # Core DAQ firmware
│ ├── src/ # Source code (Rust + Embassy)
│ │ └── fpga/ # FPGA interface and logic modules
│ └── target/ # Compiled firmware output and build artifacts
│
├── cli/ # Command-line interface for control and configuration via host computer
│ ├── src/ # Rust source for CLI utilities
│ └── target/ # Compiled CLI binaries
│
├── tests/ # Automated and hardware-in-the-loop test framework
│ ├── src/ # Unit and integration test sources
│ └── target/ # Compiled test binaries and reports
│
└── README.md # Project overview, setup, and usage instructionsBefore building the firmware and FPGA bitstream, you need to install a few dependencies for Rust and the FPGA toolchain. Follow these steps:
Once dependencies are installed, clone the repository, navigate to the firmware folder, and run the build commands:
# Clone the Protovolt repository from GitHub
git clone https://github.com/Dawson-HEP/opentrig.git
# Go to firmware directory
cd opentrig/opentrig# Compile verilog bitstream
just build-verilog
# Compile embedded firmware
just build-rustFlashing:
A USB Type-C Power Delivery (PD) supply must be connected to the power connector to bias analog and digital circuitry. A $100$ W-capable supply with $20$V output is preferred to provide enough margin for buck converters and analog filtering supplies to function properly. A digital data cable links the data acquisition computer with the DAQ.
Three SWD debug interfaces are made available to the user: the main opentrig MCU debug link, the simulation PICO link, and the logic analyzer PICO link. The MCU flash process includes the FPGA bitstream, which is written upon power up of the DAQ. The simulation PICO, when powered, produce triggers via the internal links directly to the FPGA, which allows for programmatic debugging. The logic analyzer serves as a bitstream debugger, where internal registers and wires can be sampled.
The interfacing with the AIDA-2020 TLU functionality has been verified at the DESY II Test Beam facility in September of 2025, as part of the Beamline for Schools Competition.
Testbeam Area 21, Translation Stage


This project is open-source under the Eclipse Public License - v 2.0.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 65 | 100n | Capacitor_SMD:C_0402_1005Metric | C1, C11, C100, C101, C102, C103, C104, C105, C106, C107, C108, C109, C110, C111, C113, C114 +49 |
| 35 | LED | LED_SMD:LED_0805_2012Metric | D1, D2, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23, D24 +19 |
| 33 | 470R | Resistor_SMD:R_0402_1005Metric | R10, R11, R12, R13, R14, R15, R16, R18, R58, R61, R62, R63, R64, R65, R66, R67 +17 |
| 33 | IPEX-1 | digital:BWIPX-1-001E | J1, J2, J3, J21, J22, J23, J24, J25, J26, J27, J28, J29, J30, J31, J32, J33 +17 |
| 27 | TestPoint_Alt | digital:TestPoint_Keystone_5015_Micro_Mini | TP10, TP12, TP13, TP15, TP17, TP19, TP20, TP21, TP22, TP24, TP26, TP28, TP29, TP30, TP32, TP33 +11 |
| 24 | 10R | Resistor_SMD:R_0402_1005Metric | R100, R105, R106, R109, R110, R111, R112, R113, R116, R121, R122, R123, R126, R127, R128, R129 +8 |
| 24 | 49.9R | Resistor_SMD:R_0603_1608Metric | R101, R102, R103, R104, R107, R108, R114, R115, R117, R118, R119, R120, R124, R125, R131, R132 +8 |
| 19 | 1u | Capacitor_SMD:C_0805_2012Metric | C10, C47, C48, C52, C53, C66, C67, C68, C70, C72, C75, C78, C82, C83, C87, C112 +3 |
| 19 | TestPoint | TestPoint:TestPoint_Pad_D1.0mm | TP1, TP2, TP3, TP11, TP14, TP16, TP18, TP23, TP25, TP27, TP31, TP34, TP36, TP38, TP43, TP45 +3 |
| 14 | 0R | Resistor_SMD:R_0402_1005Metric | R3, R4, R5, R6, R7, R8, R9, R19, R20, R33, R36, R69, R78, R88 |
| 14 | 10u | Capacitor_SMD:C_1206_3216Metric | C35, C37, C42, C49, C50, C54, C60, C65, C76, C79, C84, C88, C91, C96 |
| 13 | 10k | Resistor_SMD:R_0402_1005Metric | R21, R28, R29, R30, R31, R32, R34, R35, R48, R51, R55, R56, R57 |
| 12 | TLV3502AIDR | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U25, U26, U27, U28, U30, U31, U32, U33, U35, U36, U37, U38 |
| 6 | 1k | Resistor_SMD:R_0402_1005Metric | R24, R27, R37, R50, R52, R54 |
| 6 | 22u | Capacitor_SMD:C_0603_1608Metric | C45, C46, C57, C58, C63, C64 |
| 6 | M4 | MountingHole:MountingHole_4.3mm_M4_ISO14580_Pad_TopBottom | H1, H2, H3, H4, H5, H6 |
| 6 | MCP4728 | Package_SO:MSOP-10_3x3mm_P0.5mm | U15, U16, U18, U20, U21, U23 |
| 6 | SW_DIP_x03 | Button_Switch_SMD:SW_DIP_SPSTx03_Slide_6.7x9.18mm_W8.61mm_P2.54mm_LowProfile | SW1, SW2, SW3, SW4, SW5, SW6 |
| 5 | 4.7u | Capacitor_SMD:C_1206_3216Metric | C2, C16, C18, C20, C23 |
| 4 | 74HC244 | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U2, U11, U12, U13 |
| 4 | Conn_01x03_Pin | Connector_PinHeader_1.00mm:PinHeader_1x03_P1.00mm_Vertical_SMD_Pin1Left | J10, J11, J13, J15 |
| 3 | 10uH | Inductor_SMD:L_Changjiang_FXL0630 | L1, L2, L3 |
| 3 | 47k | Resistor_SMD:R_0402_1005Metric | R38, R40, R49 |
| 3 | TPS54302 | Package_TO_SOT_SMD:SOT-23-6 | U5, U8, U9 |
| 3 | TXB0108PW | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U24, U29, U34 |
| 2 | 100k | Resistor_SMD:R_0402_1005Metric | R42, R46 |
| 2 | 100k | Resistor_SMD:R_0603_1608Metric | R39, R43 |
| 2 | 15p | Capacitor_SMD:C_0402_1005Metric | C39, C40 |
| 2 | 1u 25V | Capacitor_SMD:C_0402_1005Metric | C33, C34 |
| 2 | 22k | Resistor_SMD:R_0402_1005Metric | R44, R53 |
| 2 | 27R | Resistor_SMD:R_0402_1005Metric | R25, R26 |
| 2 | 33k | Resistor_SMD:R_0402_1005Metric | R41, R45 |
| 2 | 4.7k | Resistor_SMD:R_0402_1005Metric | R22, R23 |
| 2 | 47p | Capacitor_SMD:C_0402_1005Metric | C56, C62 |
| 2 | 49.9R | Resistor_SMD:R_0402_1005Metric | R1, R2 |
| 2 | 5.1k | Resistor_SMD:R_0402_1005Metric | R59, R60 |
| 2 | Micro_SD_Card_Det1 | digital:microSD_HC_MSD-4-A | J16, J18 |
| 2 | REF5030ID | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U14, U19 |
| 2 | REF5050ID | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U17, U22 |
| 2 | SolderJumper_2_Open | Jumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mm | JP1, JP2 |
| 2 | TPS7A4701 | Package_DFN_QFN:Texas_RGW0020A_VQFN-20-1EP_5x5mm_P0.65mm_EP3.15x3.15mm_ThermalVias | U6, U7 |
| 2 | USB_C_Receptacle_USB2.0_16P | Connector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | J19, J20 |
| 1 | 100R | Resistor_SMD:R_0402_1005Metric | R17 |
| 1 | 100p | Capacitor_SMD:C_0402_1005Metric | C44 |
| 1 | 12 MHz ABM8-272-T3 | Crystal:Crystal_SMD_Abracon_ABM8AIG-4Pin_3.2x2.5mm | Y1 |
| 1 | 1N4148WS | Diode_SMD:D_SOD-323 | D7 |
| 1 | 220k | Resistor_SMD:R_0603_1608Metric | R47 |
| 1 | CH224K | Package_SO:SSOP-10-1EP_3.9x4.9mm_P1mm_EP2.1x3.3mm | U10 |
| 1 | Conn_01x02_Pin | Connector_PinHeader_1.00mm:PinHeader_1x02_P1.00mm_Vertical_SMD_Pin1Left | J14 |
| 1 | Conn_01x03_Pin | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J17 |
| 1 | Conn_01x10_Pin | Connector_PinHeader_1.00mm:PinHeader_1x10_P1.00mm_Vertical_SMD_Pin1Left | J12 |
| 1 | Conn_01x24_Pin | Connector_PinHeader_2.54mm:PinHeader_1x24_P2.54mm_Vertical | J45 |
| 1 | ESDA25P35 | digital:D_1610_4027Metric | D10 |
| 1 | ICE40HX4K-TQ144 | Package_QFP:TQFP-144_20x20mm_P0.5mm | U1 |
| 1 | LOGO | logos:hep_20mm | G*** |
| 1 | LOGO | logos:opentrig | G*** |
| 1 | LOGO | logos:sc_17mm | G*** |
| 1 | RP2040 | Package_DFN_QFN:QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm | U4 |
| 1 | W25Q32JVZP | Package_SON:WSON-8-1EP_6x5mm_P1.27mm_EP3.4x4.3mm | U3 |

Dawson-HEP/scintillating_chamber
Our proposal to the 2025 Beamline for schools competition. It consists of an arrangement of scitillator rods to detect and model the trajectory of cosmic ray in three dimensions.

Studented0/universal-ai-terminal
A pocketable AI terminal that runs Claude Code and Ollama over LTE. Custom carrier board for a Raspberry Pi Compute Module 5, 7" AMOLED touchscreen, and its own cellular modem so it doesn't need WiFi.

IIBM/EEG
Circuito, PCB y data sobre el diseño de un dispositivo de adquisición de EEG. Florencia Grosso y Brian Santillán. IIBM FIUBA.

mattvenn/kicad
The documentation for this workshop mostly consists of youtube screencasts. The screencasts are deliberately fast, if you need them slower then click the video's settings button and choose a slower speed.


lnls-sirius/SPIxCONV
This project consists of an 18-bit analog input (ADC) and output (DAC) within a range of 20 V (± 10 V) and 32 digital pins that can be either as inputs or outputs.

bc-kim/PCB_KiCAD
Tips Footprint of the resisotor and capacitor should be assigned aforetime because assigning those are comfusing when lots of reisistor and capacitors are used. 3. Reference: https://wikidocs.net/103412

It measures 162.2 × 100 mm and has 4 copper layers, 1.6 mm thick.
438 parts, built around the ICE40HX4K-TQ144, RP2040, 74HC244D and MCP4728-E/UN. 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.
From the Dawson-HEP/opentrig repository on GitHub, at the commit this page was made from: the board is hardware/digital.kicad_pcb and its schematic hardware/comparators.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the EPL-2.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).