Skip to the content
4 layers65 × 50 mmLuminometer ADC, the printed circuit board in 3D

Software and electronics for the portable SiPM luminometer.

Size
65 × 50 mm
Copper layers
4
Thickness
1.6 mm
Parts
75
Nets
41
Pads
213
Tracks, vias
420, 56
Pours
9
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
10 Jul 2020
Updated
3 Nov 2023

Overview

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.

Main components

4

README

README.md

High-sensitivity Portable SiPM Luminometer

Introduction

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.

Full user guide here:

https://tinyurl.com/3p8p7axm

Mechanical model here:

https://cad.onshape.com/documents/681017372753852c73b577a8/w/f1f724f31d32967117942551/e/8bf7604225c699873e8675c3

Organization

The structure of this repo is illustrated below. Note: the 'Electronics design' and 'Early calculations' directories were truncated for brevity.

text
├── 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.py

Installation and Use

Option 1: Clone the SD Card

  1. Flash our pre-existing 16gb SD card onto a new card. The latest image can be downloaded from Google Drive here. After downloading the image, use the recommended Raspberry Pi Imager, select the "Use Custom" option, and select the downloaded image to flash it onto the 16gb SD card.

Option 2: Manual install

  1. Install the latest Raspbian OS on a micro-SD card by following the instructions at: https://www.raspberrypi.org/software/
    • The config.txt has been validated with RPi OS (full w/ recommended software) version 5.10.17+
      • We may want to switch to RPi Lite (smaller size, stripped away of superfluous services which may help w/ more "real-time" timing), but we have not validated it yet.
  2. After the OS is loaded on the micro-SD card and while still loaded in your mac/PC/linux machine, replace /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).
  3. Follow the instructions to set up the RPi 'headless' (no keyboard or monitor), using WiFi.
  4. ssh into the device
    • Remember to change the hostname after ssh'ing in:
      • 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)
  5. Create and activate a virtual environment with Python3:
  • TODO: convert the following three commands into a single command once the repo has been made public
shell
cd /home/pi/Documents/
python3 -m venv lumi
source lumi/bin/activate
  1. Install the display driver from Pimoroni, answering 'y' when prompted.
shell
curl https://get.pimoroni.com/inky | bash
  1. Clone this repository and navigate to the base:
shell
git clone https://github.com/czbiohub/ulc-tube-reader/
cd ulc-tube-reader
  1. Install setuptools:
shell
pip install setuptools
  1. Install wheel
shell
pip install wheel
  1. Install module
shell
pip install .
  1. Follow the instructions in gpclk_configi/README.md in order to configure the general purpose clock on-board the RPi, which the ADC requires as input.
  2. Configure the RPi to run the luminometer software after boot is completed. After these commands are entered, the RPi will automatically start executing the luminometer software upon startup, but it will still be possible to ssh into the device at the same time.
shell
sudo nano /lib/systemd/system/lumiboot.service

In the newly-opened text file, paste the following text:

  • TODO: add in a command to activate the virtualenv on boot as well
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.target

Now enter the following commands in the terminal to activate the boot service:

shell
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.service
  1. Run the following command to start the pigpiod daemon on startup:
text
sudo systemctl enable pigpiod
  1. Power down the RPi: sudo poweroff
  2. Attach the Inky pHat to the GPIO header, then securely plug the RPi into the socket header on the luminometer board.
  3. Power on the device and make measurements.

ADC Driver

gpclk_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.

Updating Module from Repository

  1. Pull changes from remote repository
  2. Activate virtual environment with previous install
  3. Navigate to the module directory
  4. Update module (pip install . --upgrade)

Note regarding licenses:

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.

Parts

75
QtyValueFootprintReferences
121kResistor_SMD:R_0603_1608MetricR1, R12, R13, R14, R15, R18, R23, R24, R25, R26, R27, R28
81uFCapacitor_SMD:C_0603_1608MetricC1, C7, C8, C9, C10, C11, C14, C17
6220nFCapacitor_SMD:C_0603_1608MetricC2, C3, C5, C6, C15, C16
510nFCapacitor_SMD:C_0603_1608MetricC12, C13, C18, C19, C20
42kResistor_SMD:R_0603_1608MetricR8, R9, R10, R11
4MountingHoleMountingHole:MountingHole_2.5mm_PadH1, H4, H7, H8
4TestPointTestPoint:TestPoint_Pad_1.0x1.0mmTP3, TP4, TP5, TP6
3100kResistor_SMD:R_0603_1608MetricR4, R20, R22
32.7MResistor_SMD:R_0603_1608MetricR3, R19, R21
325kResistor_SMD:R_0603_1608MetricR2, R6, R7
2ADR512Package_TO_SOT_SMD:SOT-23U3, U4
2MICROFC−60035−SMTLuminometer_OPT101_Footprints:OnSemi_CASE512SiPM1, SiPM2
2MountingHoleMountingHole:MountingHole_2.7mm_M2.5_ISO14580_PadH3, H6
2MountingHoleMountingHole:MountingHole_2.2mm_M2_ISO14580_PadH2, H5
2TestPointTestPoint:TestPoint_Pad_D1.5mmTP1, TP2
1 Luminometer_OPT101_Footprints:L_1212_3030MetricL1
1180RResistor_SMD:R_0603_1608MetricR5
1330nFCapacitor_SMD:C_0603_1608MetricC4
1470Resistor_SMD:R_0603_1608MetricR16
1470RResistor_SMD:R_0603_1608MetricR17
1ADA4522-1Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1ADA4522-4digikey-footprints:SOIC-14_W3.9mmU5
1ADS131M08IPBSPackage_QFP:LQFP-32_5x5mm_P0.5mmU7
1Harting__15210122401000Luminometer_OPT101_Footprints:Harting_15210122401000J1
1LOGOLuminometer_OPT101_Footprints:pcrTubeG***
1LOGOLuminometer_OPT101_Footprints:UntitledG***
1LP5907MFX-3Package_TO_SOT_SMD:SOT-23-5U6
1LT3464Package_TO_SOT_SMD:SOT-23-8U1

More from czbiohub-sf/portable-luminometer

1
  • 4 layers75.3 × 50 mmLuminometer RPi, the printed circuit board in 3D

    Luminometer RPi

    czbiohub-sf/portable-luminometer

    Software and electronics for the portable SiPM luminometer.

    57 parts1BSD-3-Clause

Similar boards

  • 4 layers91.4 × 43.2 mmEmg v2, the printed circuit board in 3D

    Emg v2

    dgaddy/biosensing_circuit_board

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

    52 parts1MIT
  • 4 layers173.2 × 52.5 mmCanSat, the printed circuit board in 3D

    CanSat

    budabalint/T.E.E.M.O

    442 parts
  • 2 layers7.3 × 7.4 mmFC60035, the printed circuit board in 3D

    FC60035

    Maniak003/BluZ

    Scintillation gamma-spectrometer

    5 parts3GPL-3.0
  • 4 layers88 × 94.5 mmPROVES Cosmic Watch, the printed circuit board in 3D

    PROVES Cosmic Watch

    BroncoSpace-Lab/CADENCE

    A mono repo for the Cubesat Autonomous Detection and Enhanced Networked Collaboration Explorer(s)

    53 parts
  • 4 layers90 × 60 mmDevice, the printed circuit board in 3D

    Device

    jayis1/hardware-design-lab

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

    19 parts
  • 4 layers86.4 × 68.6 mmCapstone, the printed circuit board in 3D

    Capstone

    camerondm9/ece4600capstone

    Code for our capstone project

    238 parts
  • 4 layers100 × 100 mmHornSystem, the printed circuit board in 3D

    HornSystem

    cristobalcuevas/PCB-Designs

    Projects with Kicad

    233 parts

Questions

How big is the Luminometer ADC PCB?

It measures 65 × 50 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Luminometer ADC use?

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.

Where can I download the Luminometer ADC KiCad files?

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.

Can I use the Luminometer ADC design in my own project?

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