A multi-function probe for a unit under test (UUT), made to be driven by hardware-in-the-loop and automated test tooling. One board powers the UUT, talks on its buses, watches its pins and measures what it draws, all on one timebase, remote-controlled over USB, WiFi or Ethernet. Internal project name: BusLab.
Status (2026-10-06): schematic, placement and routing done, pre-fab review and rework done (docs/PREFAB_REVIEW.md); KiCad DRC, the JLCPCB DFM check and an EMC field check are clean. Not yet manufactured or tested. Firmware is not written yet: the hardware numbers below are the design's, the functions marked firmware are planned (docs/FIRMWARE_NOTES.md, spec/).
- Power the UUT and watch what it draws. Two programmable supplies, 0.8-5.0 V at 500 mA each, switched on and off by firmware, with current measurement from sleep currents (0.25 µA steps) to 540 mA, ranging automatically within microseconds. Power-cycle tests, supply steps, brown-out tests, sleep-current and wake-up profiles.
- Sit on its buses. Three RS-485 ports and one CAN FD port, listening all the time (own frames included) and sending, every byte timestamped on the capture timebase. Termination and fail-safe bias are switched per port by firmware, so the probe can be the end of a bus or a tap in the middle of one.
- Capture its pins. Ten digital inputs as a logic analyzer (TTL thresholds, 3.3 V and 5 V logic, ±30 V tolerant) and four analog channels as a small scope (±10 V / ±30 V, 1 MΩ, 12 bit).
- Catch what the ADC is too slow for. Two fast comparators per analog channel (9-21 ns, 12-bit thresholds) timestamp every crossing: voltage dips shorter than one ADC sample are caught and measured. Triggers on edges, patterns, analog levels, RS-485 bytes and an external input, combinable into sequences (firmware).
- Stimulate it. Four outputs and a trigger output at 1.8 / 2.5 / 3.3 / 5.0 V (set by firmware): UART, PWM, button presses, reset lines.
- Let a script or an AI agent run the test. SCPI over USB, WiFi and Ethernet; a Python driver and an MCP server let an LLM agent configure, capture and decode on its own (firmware).
| Analog inputs | 4 channels A1-A4, 1 MΩ ∥ 19 pF, DC coupled, ranges ±10 V and ±30 V per channel by firmware (×10 probe compensation holds on both); max ±50 V continuous, ±100 V peak. About 10 MHz bandwidth to the ADC, more to the comparators. RP2350 ADC: 12 bit (9.2 ENOB), 500 kS/s shared (125 kS/s per channel with all four), 1 LSB 5.4 mV (±10 V) / 16 mV (±30 V). Assembly option: 4 × ADS7883, 2 MS/s per channel, sampled simultaneously |
| Comparators | 2 per analog channel (threshold and window), TLV3502, 9-21 ns, 6 mV hysteresis, 12-bit thresholds (2 × MCP4728): dips from 100 ns are caught |
| Digital inputs | 10 channels D1-D10 through 74HCT541, TTL thresholds (low < 0.8 V, high > 2.0 V: 3.3 V and 5 V logic), signals to 10 MHz, sampled up to 100 MS/s (firmware), 10 kΩ ∥ 47 pF series input, max ±24 V continuous, open inputs read low |
| Outputs | OUT1-4 (ESP32-S3) and TRIG OUT (RP2350) through SN74LVC8T245, level off / 1.8 / 2.5 / 3.3 / 5.0 V by firmware (TLV75801P), 330 Ω series, Schottky clamps, high-impedance at power-up |
| RS-485 | 3 ports, THVD2450 (50 Mbit/s, 1/8 unit load, ±70 V fault, ±25 V common mode), half duplex; 120 Ω termination and 330 Ω fail-safe bias per port behind photoMOS switches, all off at power-up (passive listener); TVS on every line |
| CAN | CAN FD up to 5 Mbit/s, TCAN1051HGV (±70 V fault, ±30 V common mode), switchable 120 Ω, listen-only at power-up |
| UUT power | 2 outputs, 0.8-5.0 V in 1.2 mV steps, 500 mA each, an AP7361C-ADJ LDO per output fed from a 5.28 V boost (TPS61023), set by a 12-bit DAC (MCP4822). Step up ~0.2 ms, down 0.2-1.3 ms (discharge FET). Current: INA236 + INA190 with automatic range switching, 0.25 µA steps to 8 mA, 17 µA steps to 540 mA. Protection: firmware trip, 1.1 A hard limit, over-current alert switches the LDO off in hardware, off at power-up; dissipation (5.3 V − Vout) × I ≤ 1.5 W per output. Not for feeding an external supply back |
| Trigger | TRIG IN (TTL, ±30 V), TRIG OUT (pulse at the trigger, at the output level); sources: TRIG IN, comparators, windows, digital patterns, RS-485 / CAN frames, the ESP32-S3. One timebase for analog, digital, RS-485 and CAN |
| Instrument MCU | RP2350B (chip-down, Raspberry Pi's reference circuit), 150 MHz, PIO capture of all inputs on one clock, 16 MB QSPI flash, 8 MB PSRAM for long captures |
| Gateway MCU | ESP32-S3-WROOM-1-N16R8 (16 MB flash, 8 MB PSRAM): USB, WiFi, Ethernet, CAN, the outputs, scripts; SPI link to the RP2350, updates it over SWD |
| Network | WiFi (ESP32-S3); Ethernet 10/100 with a USR-ES1 (W5500) module soldered on, optional |
| USB | two USB-C sockets: ESP32-S3 (USB serial / JTAG, control) and RP2350 (hold BOOTSEL and plug in: UF2 drive; development and standalone use) |
| Power | 5 V from either USB-C socket (TPS2121 power mux, highest input wins); cut-off above 5.2-5.7 V, TVS and USB ESD on both, 220 µF hold-up; about 0.37 A typical, 1.2 A peak, 2.4 A with both UUT outputs at 500 mA (a 3 A USB-C source) |
| Expansion | I²C, 3 spare GPIOs (100 Ω series; E1 is a 3.3 V-only RP2350 pin), 3.3 V and 5 V out through 200 mA PTCs |
| Debug | SWD and RUN of the RP2350, ESP32-S3 console; test pads for 5 V, 3V3 IO, 3V3 S3, 3V3 RP, VA, VA CMP, GND |
| Connectors | seven JST SH 12-pin, 1.0 mm pitch (board: SM12B-SRSS-TB; cable: housing SHR-12V-S or SHR-12V-S-B, contacts SSH-003T-P0.2-H for AWG 32-28); pins 11 and 12 are GND on every one except EXPANSION |
| Board | 160 × 100 mm (Eurocard), 6 layers (JLC06161H-2116A, two solid GND planes), all parts on the top side for machine assembly, four M3 holes; the back carries the pin table and a data sheet of the board |
All seven are JST SH 12. The table is printed on the back of the board.
| Pin | RS-485 / CAN | DIGITAL IN | OUTPUTS | ANALOG IN | UUT POWER | EXPANSION | DEBUG |
|---|---|---|---|---|---|---|---|
| 1 | 1A | D1 | OUT1 | A1 | UUT2 | SDA | SWCLK |
| 2 | 1B | D2 | GND | GND | UUT2 | SCL | GND |
| 3 | GND | D3 | OUT2 | A2 | UUT2 | GND | SWDIO |
| 4 | 2A | D4 | GND | GND | GND | E1 | GND |
| 5 | 2B | D5 | OUT3 | A3 | GND | E2 | RUN |
| 6 | GND | D6 | GND | GND | GND | E3 | GND |
| 7 | 3A | D7 | OUT4 | A4 | UUT1 | GND | S3 TX |
| 8 | 3B | D8 | GND | GND | UUT1 | GND | S3 RX |
| 9 | CANL | D9 | TRIG O | CAL | UUT1 | GND | GND |
| 10 | CANH | D10 | GND | TRIG I | GND | GND | GND |
| 11 | GND | GND | GND | GND | GND | 3V3 | GND |
| 12 | GND | GND | GND | GND | GND | 5V | GND |
CAL is a 2.500 V ±0.1 % reference (LM4040A) for calibrating the analog channels.
| Path | What |
|---|---|
hw/ |
KiCad 10 project: schematic sheets, board, design rules, custom footprints and symbols, 3D models |
export/fab/ |
Gerbers and drill (buslab-gerber.zip), pick-and-place for JLCPCB (buslab-cpl.csv) |
export/bom/ |
BOMs: JLCPCB assembly (jlcpcb-reduced.csv, jlc-all-bom.csv), self-sourced (Reichelt, TME), hand-fitted parts |
export/ |
schematic PDF, STEP model, raytraced renders |
docs/ |
design and decisions, analog front end, PCB rules, placement, routing, EMC checklist, pre-fab review, firmware notes, toolchain |
ASSEMBLY.md, BRINGUP.md |
assembly options and the bring-up sequence for the first board |
tools/ |
the generators: circuit in Python to schematic and netlist, footprints, placement, an own router, checks, BOM / CPL, shop lookups, SPICE simulations, the EMC field-check scenario |
spec/ |
the original requirements for hardware and software |
Everything in hw/ and export/ is generated by tools/ (see docs/TOOLCHAIN.md):
the circuit is written in Python, placement and routing are scripts, and tools/pcb/fab.sh turns the
board into the fabrication outputs. Requires KiCad 10 (kicad-cli and the pcbnew Python module),
Python 3 and ngspice; tools/setup.sh sets up the rest.
The board was run through emcvisual, with 28 sources
(clocks, buses, USB, switching regulators) whose values come from the datasheets
(hw/buslab.scenario.json, written by tools/emc/buslab_scenario.py). To look at it in 3D:
open the board in emcvisual,
then "Load scenario" with hw/buslab.scenario.json. Results and what was changed:
docs/EMC_CHECKLIST.md.
Datasheets, application notes and the TI SPICE models the design was checked against belong to their makers and are not redistributed here. hw/datasheets/SOURCES.md lists every document by name (with a link where one is known), tools/frontend/models/README.md where to get the SPICE models.
- Hardware design and documentation (
hw/,export/,docs/, the Markdown files): CERN Open Hardware Licence Version 2 - Permissive (LICENSES/CERN-OHL-P-2.0.txt). - Software (
tools/): MIT (LICENSES/MIT.txt). - Third-party parts keep their own licenses: footprints and 3D models derived from the KiCad
libraries (CC-BY-SA 4.0 with the KiCad library exception), the Waveshare Core2350B KiCad files in
hw/datasheets/core2350b/thirdparty_kicad/(MIT, see its LICENSE.md).
Copyright 2026 Thomas Büngener.
Deutsch
Diese Software bzw. dieses Hardware-Design wird unentgeltlich und „wie besehen" (as is) bereitgestellt — ohne jede ausdrückliche oder stillschweigende Gewährleistung. Insbesondere werden keine Eigenschaften zugesichert und keine Garantie für Mängelfreiheit, Richtigkeit, Vollständigkeit, Aktualität, Verfügbarkeit, handelsübliche Qualität, Eignung für einen bestimmten Zweck oder die Nichtverletzung von Rechten Dritter übernommen. Die Nutzung erfolgt auf eigenes Risiko; die Eignung für den konkreten Einsatz ist vor der Verwendung eigenverantwortlich zu prüfen — das gilt besonders beim Ansteuern realer Hardware sowie in sicherheits- oder betriebskritischen Umgebungen.
Eine Haftung des Autors für Schäden gleich welcher Art, die aus der Nutzung oder Nichtnutzbarkeit entstehen, ist — soweit gesetzlich zulässig — ausgeschlossen.
Unberührt bleibt die zwingende gesetzliche Haftung: für Vorsatz und grobe Fahrlässigkeit, für die schuldhafte Verletzung von Leben, Körper oder Gesundheit, nach dem Produkthaftungsgesetz sowie aus einer ausdrücklich übernommenen Garantie. Ergänzend gelten die Haftungserleichterungen der §§ 521, 523, 524 BGB für die unentgeltliche Überlassung.
Dies ist Freizeit-/Open-Source-Arbeit; es besteht kein Anspruch auf Support, Wartung oder Weiterentwicklung, und das Projekt kann jederzeit geändert oder eingestellt werden. Genannte Produkt- und Markennamen gehören ihren jeweiligen Inhabern; es besteht keine Verbindung zu, Billigung durch oder Partnerschaft mit diesen Unternehmen.
English
This software / hardware design is provided free of charge and "as is", without warranty of any kind, express or implied. In particular, no warranties and no guaranteed characteristics are given — including, without limitation, merchantability, fitness for a particular purpose, correctness, accuracy, completeness, availability, or non-infringement. Use is at your own risk; you are responsible for verifying suitability for your intended use before relying on it, especially when driving real hardware or in safety- or mission-critical environments.
To the maximum extent permitted by applicable law, the author shall not be liable for any damages whatsoever arising from the use of, or inability to use, this work.
Mandatory statutory liability remains unaffected (under German law: liability for intent and gross negligence, for culpable injury to life, body or health, under the Product Liability Act, and from any expressly given guarantee).
This is a hobby / open-source project with no obligation of support, maintenance or further development, and it may be changed or discontinued at any time. All product and brand names are the property of their respective owners; this project is not affiliated with, endorsed, or sponsored by them.
The applicable open-source license (see LICENSE) governs use, reproduction and
distribution. In case of any conflict between this notice and the LICENSE, the LICENSE prevails.

