labla turns a Raspberry Pi 5 / 500 into a networked lab instrument for digital signals, built from parts that cost very little:
- Logic analyser: up to 28 channels, up to 200 MS/s (on 1–2 channels) and 15 MS/s with all 28 GPIOs. Sampling is hardware-timed by the RP1 chip's PIO block and streamed to RAM by DMA, so captures can be gigabytes long with a timebase within a few ppm.
- Protocol analyser: 100+ sigrok protocol decoders (UART, I2C, SPI, CAN, 1-Wire, WS281x,
I2S, JTAG, SWD …). Captures export as
.srand open directly in PulseView. - Signal generator: square wave / PWM on any GPIO from the PIO block, with exact frequency and duty cycle.
- Digital I/O: read and drive every GPIO from the browser, the CLI or the REST API.
- labla-front (optional, open hardware): a 60 × 105 mm board that protects the Pi and translates every channel to 1.65–5.5 V with per-channel direction, automatic Vio from the target, ESD and over-current protection, plus a 3D-printable enclosure.
- labla-panel (optional, open hardware): a 305 × 74 mm front panel with 40 colour-coded 4 mm terminals in the Pi header order, connected to labla-front by a ribbon cable.
Everything runs on the Pi: a small C engine, a Python service with only standard-library dependencies, and a
single-file web UI. Control it from a browser, the labla command-line tool or your own scripts.
Project status
- Software: working and measured on a Raspberry Pi 500 (see software/README.md).
- labla-front rev 0.2: design complete and DRC-clean, not yet manufactured or tested. Software support for its direction control and Vio selection is on the roadmap. Until then, use the analyser on 3.3 V signals only, preferably with series resistors.
The Raspberry Pi 5 family has the RP1 I/O controller with a programmable I/O (PIO) block, the same idea as on the RP2040. A PIO state machine samples all GPIOs at an exact rate from its own clock, independent of Linux scheduling, and DMA moves the data to RAM. That makes gap-free, high-rate captures possible without extra hardware, and the same block generates output signals with the same precision.
| Hardware | labla software | labla-front board |
|---|---|---|
| Raspberry Pi 5, Pi 500, Pi 500+, CM5 (with a 40-pin carrier) | ✅ | ✅ |
| Pi 4, Pi 400, Pi 3, Zero 2 W and other 40-pin Pis | ❌ (no RP1/PIO) | ✅ as a protected level translator for ordinary GPIO use |
CPU socket adapters (6502/6510, Z80, 8080/8085, 8088/8086, 6809, 68000 …) that let labla capture every bus cycle of a vintage computer and diagnose it automatically: ROM and RAM checks down to the faulty chip, disassembled traces, and a comparison with shared reference recordings of working machines. See docs/retro-diagnostics.md.
| Path | |
|---|---|
software/ |
Capture engine (C), service and web UI (Python), CLI client, deploy script – MIT |
hardware/labla-front/ |
KiCad 10 project, JLCPCB production files, renders, OpenSCAD enclosure, generator scripts – CERN-OHL-P-2.0 |
hardware/labla-panel/ |
Front panel: 40 × 4 mm terminals (Cliff CL1500) in Pi header order, colour-coded, IDC header on the back – CERN-OHL-P-2.0 |
git clone https://github.com/deanelectronics/labla-pi5-logic-analyzer.git cd labla-pi5-logic-analyzer/software ./deploy.sh [email protected] # copies, builds and starts the service on the Pi # then browse to http://raspberrypi.local:8080/ or use the CLI: LABLA_URL=http://raspberrypi.local:8080 ./client/labla capture -c 17,22 -r 10M -t 20ms --trig 22:r
See software/README.md for requirements, configuration, the REST API and measured performance.
- A Raspberry Pi 5 (any RAM size; more RAM allows longer captures).
- Optionally a labla-front board. The parts cost about USD 5 per board at JLCPCB prices (November 2026). Small assembled batches cost more per board, because JLC charges a setup fee and about USD 3 per unique "extended" part (10 on this board).
- Two 40-way IDC ribbon cables, four M2.5 screws and a 3D-printed enclosure.
Without labla-front the GPIOs take 3.3 V maximum and are not 5 V tolerant. On a Pi 500 the RP1 chip cannot be replaced, so a mistake there is expensive. The service has no authentication and can drive pins, so only run it on a trusted network.
- Software (
software/and the scripts inhardware/*/tools/): MIT - Hardware design (
hardware/): CERN-OHL-P-2.0
Contributions and test reports are welcome, especially from anyone who builds a labla-front board.
