
Luminometer RPi
czbiohub-sf/portable-luminometer
Software and electronics for the portable SiPM luminometer.

Software and electronics for the portable SiPM luminometer.
Luminometer ADC is an open-source printed circuit board by czbiohub-sf, from the czbiohub-sf/portable-luminometer repository on GitHub, published under the BSD-3-Clause licence. It is a 4-layer board of 65 × 50 mm with 75 parts on 41 nets, routed with 420 tracks and 56 vias.
It is built around the ADA4522-1AR, ADS131M08IPBS and LP5907MFX-3.3, with the MICROFC-60035-SMT-TR among its other parts. Its parts include 28 resistors, 20 capacitors, 7 ICs, 1 connector and 1 inductor. It belongs with the sensors and measurement boards of this library.
This repository contains the electronics design and control software for a portable, low-cost luminescence reader developed by the BioE team at Chan Zuckerberg Biohub San Francisco (CZ Biohub SF). This instrument was developed in response to the need for a device to read out a split-luciferase luminescence assay for a sars-cov-2 antibody test compatible with remote, low-resource settings. The assay itself was developed by Susanna Elledge et al. in Jim Wells' lab at the University of California San Francisco (UCSF), in collaboration with Cristina Tato (CZ Biohub SF).
Link to preprint: https://www.medrxiv.org/content/10.1101/2023.05.18.23290120v1
Like many assays, the split-luciferase assay was developed on a high-performance benchtop luminometer with sub-attomole limit of detection for luciferase. Unfortunately, there is an orders-of-magnitude performance gap between these devices and available handheld luminometers. The need for the equivalent performance level but in a robust, handheld format was identified by Cristina Tato, and together with Senjuti Saha at CHRF Dhaka, is leading an effort to map coronavirus immunity across rural regions in Bangladesh.
In response to this need, the BioE team developed a portable Silicon Photomultipler (SiPM) - based luminometer. The device accepts 1-2 PCR tubes, and reports on luminescence levels using sensors that are read out by a 24-bit analog-to-digital converter. The device includes a shutter system that repeatedly blocks and unblocks the signal from reaching the sensor, thereby continuously performing dark measurements in order to stabilize the baseline of the measurement against drift, achieving sub-attomole performance on par with high-end benchtop instruments costing an order of magnitude more.
The software was written to run on the Raspberry Zero W inside the device, which interfaces with custom PCBs that perform the physical measurements. The user interacts with the device with side-mounted buttons, and results are displayed on a low-power, e-ink screen.
The structure of this repo is illustrated below. Note: the 'Electronics design' and 'Early calculations' directories were truncated for brevity.
├── CHANGES.md
├── Early calculations
├── Electronics design
├── LICENSE
├── README.md
├── RPi Config
│ └── config.txt
├── gpclk_config
│ ├── README.md
│ └── dt-blob.dts
├── luminometer
│ ├── __init__.py
│ ├── adc_constants.py
│ ├── adc_phat_example.py
│ ├── adc_reader.py
│ ├── ads131m08_reader.py
│ ├── crc.py
│ ├── luminometer.py
│ ├── luminometer_constants.py
│ ├── lumiscreen.py
│ ├── menu.py
│ ├── no_sensor_validation.py
│ ├── pwm_test.py
│ ├── screen_test.py
│ └── temp_coeffs.json
└── setup.pyconfig.txt has been validated with RPi OS (full w/ recommended software) version 5.10.17+
/boot/config.txt with the version found in this repo. This configures the SPI bus on the device, turns off audio processing and the HDMI driver (to save power), and turns off the on-board activity light (to reduce stray light inside the device).sudo raspi-config (see here for more, note that the raspi-config menu may look slightly different than what the documentation shows, but the option to configure the hostname will still be there somewhere in the menu)cd /home/pi/Documents/
python3 -m venv lumi
source lumi/bin/activatecurl https://get.pimoroni.com/inky | bashgit clone https://github.com/czbiohub/ulc-tube-reader/
cd ulc-tube-readerpip install setuptoolspip install wheelpip install .gpclk_configi/README.md in order to configure the general purpose clock on-board the RPi, which the ADC requires as input.sudo nano /lib/systemd/system/lumiboot.serviceIn the newly-opened text file, paste the following text:
[Unit]
Description=Luminometer boot command
After=multi-user.target
[Service]
Type=idle
ExecStart=/usr/bin/python3 /home/pi/Documents/ulc-tube-reader/luminometer/luminometer.py
Restart=on-failure
[Install]
WantedBy=multi-user.targetNow enter the following commands in the terminal to activate the boot service:
ExecStart=/usr/bin/python3 /home/pi/Documents/ulc-tube-reader/luminometer/luminometer.py > /home/pi/lumilog.log 2>&1
sudo chmod 644 /lib/systemd/system/lumiboot.service
sudo systemctl daemon-reload
sudo systemctl enable lumiboot.servicesudo systemctl enable pigpiodsudo poweroffgpclk_config/ - contains the dt-blob.dts file required to run the ADC. See the README for instructions on setting up the Raspberry Pi.
adc_reader.py - defines the ADCReader abstract base class, includes the basic operations for ADC drivers for this project
ads131m08_reader.py - defines the ADS131M08Reader driver for the ADS131M08. The if __name__ == '__main__' block at the bottom of the file has an example of running the software.
consts.py - defines specific constants for the ADS131M08Reader class, such as register addresses, commands, e.t.c.
crc.py - defines the CRC functions for communications with the ADC.
Two different licenses are used in this repo. The BSD 3-Clause License is applied to the entire repo except for the hardware design files contained in the Electronics design directory, which are separately licensed by the CERN Open Hardware Licence Version 2 - Weakly Reciprocal, contained in that directory.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 12 | 1k | Resistor_SMD:R_0603_1608Metric | R1, R12, R13, R14, R15, R18, R23, R24, R25, R26, R27, R28 |
| 8 | 1uF | Capacitor_SMD:C_0603_1608Metric | C1, C7, C8, C9, C10, C11, C14, C17 |
| 6 | 220nF | Capacitor_SMD:C_0603_1608Metric | C2, C3, C5, C6, C15, C16 |
| 5 | 10nF | Capacitor_SMD:C_0603_1608Metric | C12, C13, C18, C19, C20 |
| 4 | 2k | Resistor_SMD:R_0603_1608Metric | R8, R9, R10, R11 |
| 4 | MountingHole | MountingHole:MountingHole_2.5mm_Pad | H1, H4, H7, H8 |
| 4 | TestPoint | TestPoint:TestPoint_Pad_1.0x1.0mm | TP3, TP4, TP5, TP6 |
| 3 | 100k | Resistor_SMD:R_0603_1608Metric | R4, R20, R22 |
| 3 | 2.7M | Resistor_SMD:R_0603_1608Metric | R3, R19, R21 |
| 3 | 25k | Resistor_SMD:R_0603_1608Metric | R2, R6, R7 |
| 2 | ADR512 | Package_TO_SOT_SMD:SOT-23 | U3, U4 |
| 2 | MICROFC−60035−SMT | Luminometer_OPT101_Footprints:OnSemi_CASE512 | SiPM1, SiPM2 |
| 2 | MountingHole | MountingHole:MountingHole_2.7mm_M2.5_ISO14580_Pad | H3, H6 |
| 2 | MountingHole | MountingHole:MountingHole_2.2mm_M2_ISO14580_Pad | H2, H5 |
| 2 | TestPoint | TestPoint:TestPoint_Pad_D1.5mm | TP1, TP2 |
| 1 | Luminometer_OPT101_Footprints:L_1212_3030Metric | L1 | |
| 1 | 180R | Resistor_SMD:R_0603_1608Metric | R5 |
| 1 | 330nF | Capacitor_SMD:C_0603_1608Metric | C4 |
| 1 | 470 | Resistor_SMD:R_0603_1608Metric | R16 |
| 1 | 470R | Resistor_SMD:R_0603_1608Metric | R17 |
| 1 | ADA4522-1 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U2 |
| 1 | ADA4522-4 | digikey-footprints:SOIC-14_W3.9mm | U5 |
| 1 | ADS131M08IPBS | Package_QFP:LQFP-32_5x5mm_P0.5mm | U7 |
| 1 | Harting__15210122401000 | Luminometer_OPT101_Footprints:Harting_15210122401000 | J1 |
| 1 | LOGO | Luminometer_OPT101_Footprints:pcrTube | G*** |
| 1 | LOGO | Luminometer_OPT101_Footprints:Untitled | G*** |
| 1 | LP5907MFX-3 | Package_TO_SOT_SMD:SOT-23-5 | U6 |
| 1 | LT3464 | Package_TO_SOT_SMD:SOT-23-8 | U1 |

czbiohub-sf/portable-luminometer
Software and electronics for the portable SiPM luminometer.

dgaddy/biosensing_circuit_board
Custom printed circuit board for biosensing, such as EMG, EEG, or ECG




BroncoSpace-Lab/CADENCE
A mono repo for the Cubesat Autonomous Detection and Enhanced Networked Collaboration Explorer(s)

jayis1/hardware-design-lab
Full-cycle hardware device designs — each device in its own subfolder with architecture, schematics, PCB layout, and software stack


It measures 65 × 50 mm and has 4 copper layers, 1.6 mm thick.
75 parts, built around the ADA4522-1AR, ADS131M08IPBS, LP5907MFX-3.3 and MICROFC-60035-SMT-TR. 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 czbiohub-sf/portable-luminometer repository on GitHub, at the commit this page was made from: the board is Electronics design/Luminometer_ADC/Luminometer_ADC.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the BSD-3-Clause licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).