
Daylight Matchstick
VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

8-channel USB digital logic analyzer built around the STM32F446RE board with real-time protocol decoding in Go and a Python GUI.
ECE692 3 is an open-source printed circuit board by raghavbharath, from the raghavbharath/usb-logic-analyzer repository on GitHub, published under the MIT licence. It is a 2-layer board of 71.9 × 85.6 mm with 22 parts on 83 nets, routed with 243 tracks and 7 vias.
Its parts include 6 ICs, 5 resistors, 4 connectors, 1 capacitor and 1 diode. It belongs with the sensors and measurement boards of this library.
Main repository: https://github.com/ragusauce4357/ece692-final-project
Group Members: Raghav Bharathan (raghavbharath), Arnav Revankar (avr34), Gonzalo Villanueva, William Dougherty (Will35084), Bryan Galecio (bryangalecio04)
This project is a custom USB logic analyzer built around two STM32F446RE Nucleo boards, developed as our final project for ECE 692 at NJIT. The system captures digital signals from an external device under test, decodes UART, SPI, I2C, and CAN protocols using a Go signal decoder, and visualizes the results in real time through a Python GUI.
The transmitter Nucleo generates test signals over UART, SPI, I2C, and CAN. The receiver Nucleo samples up to 8 digital channels simultaneously at 1MHz using DMA-driven GPIO capture, packages the raw samples into packets, and streams them to a host PC over USB CDC. A Go application reads the packet stream, decodes UART, SPI, and I2C from the raw samples, and forwards the results to a Python GUI over TCP. CAN frames are decoded inside the STM32 hardware itself by the bxCAN peripheral and forwarded directly.
Note: This repository is organized across several feature branches, with each of us making contributions in different areas. The master branch contains the integrated codebase including the firmware configured for 10kHz sampling over ST-Link USART, which was used during final testing and demonstration. The 1MHz USB CDC configuration and other work can be found in the individual feature branches (feature/stm32-firmware, feature/SignalDecoder, feature/GUI, feature/PCB, feature/3DEnclosure). The feature/test branch contains the final snapshot used during the live demo.
firmware-receiver/ # STM32 receiver firmware (STM32CubeIDE)
firmware-transmitter/ # STM32 transmitter firmware
SignalDecoder/ # Go signal decoder application
gui/src/ # Python GUI
PCB/ # KiCad schematic and PCB layout
enclosure/ # 3D printable STL files
docs/ # Datasheets and reference manualsThe receiver firmware runs on an STM32F446RE at 168MHz. TIM1 generates a 1MHz update event that triggers DMA2 on each tick. The DMA reads the lower byte of GPIOC (PC0-PC7) into a 1024-byte circular ping-pong buffer. When the first half fills, an interrupt fires and the firmware packages bytes 0-511 into a 516-byte logic packet with a 2-byte header, sequence number, and XOR checksum, then sends it over USB CDC. The second half fires the same way. This design keeps sampling continuous with no gaps.
CAN is handled separately. The bxCAN peripheral runs at 500kbps and decodes incoming frames entirely in hardware, delivering a clean frame (ID, DLC, data bytes) to an RX interrupt handler. The firmware packages this into a variable-length CAN packet and sends it over USB CDC alongside the logic packets.
The transmitter firmware runs the same clock config and outputs test signals in a loop every second: UART at 115200 baud, SPI at ~164kHz, I2C to a dummy address (0x52), and a CAN frame with ID 0x123 and payload 0xCAFEBABEDEADBEEF.
Packet formats:
[0xAA][0xBB][seq][512 bytes][XOR checksum] = 516 bytes[0xCC][0xDD][seq][ID_H][ID_L][DLC][0-8 data bytes][XOR checksum] = variable lengthThe SignalDecoder reads the USB serial stream from the receiver. A ReadByteStream goroutine reads into a 1024-byte buffer and pushes raw byte slices into a buffered channel. A Run coordinator consumes from the channel, scans for 0xAA 0xBB or 0xCC 0xDD headers using a pending accumulation slice to handle packets that span across reads, validates XOR checksums, and detects dropped packets via sequence number wraparound. Logic packets go to the UART, SPI, and I2C decoders. CAN packets are forwarded directly to Python over TCP.
CLI flags: --port, --protocol, --pins, --duration
The GUI launches the Go binary as a subprocess with the appropriate CLI arguments, then connects to its TCP socket to receive decoded data. A background thread parses incoming packets and emits Qt signals to the main thread.
The waveform view shows 8 digital channels plus a synthetic CAN row reconstructed from decoded frame timestamps and DLC. Features include a crosshair cursor, a permanent multi-pair measurement tool with delta-time and frequency readout, a vertical scrollbar, protocol decode annotations color-coded by type, and a CAN decode table. Captures can be saved and loaded as JSON.
Run in simulator mode (no hardware needed, but a few tweaks might need to be made to the code):
python gui/src/gui.py --testThe PCB is a breakout shield that plugs onto both Nucleo boards simultaneously via their morpho headers. It carries a TXS0108E 8-channel bidirectional level shifter for the probe inputs, two SN65HVD230 CAN transceivers (one per Nucleo), per-channel 1kohm series resistors and BAT85 Schottky diodes for overvoltage protection, 4.7kohm I2C pull-ups, a 10-pin probe header, a CANH/CANL screw terminal, and 120ohm CAN termination resistors at each bus end. The schematic is split into receiver and transmitter sub-sheets under a hierarchical root sheet in KiCad.
3D-printable STL files for a custom enclosure are in enclosure/.
Python:
pip install -r gui/src/requirements.txtGo:
cd SignalDecoder && go build| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 5.1k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R3, R4 |
| 2 | NUCLEO-F446RE | Connector_PinHeader_2.54mm:PinHeader_2x19_P2.54mm_Vertical | U5, U6 |
| 2 | Screw_Terminal_01x02 | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mm | J1, J2 |
| 1 | 10k | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R2 |
| 1 | 150 | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R5 |
| 1 | 17k | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R1 |
| 1 | 1uF | Capacitor_THT:C_Disc_D7.5mm_W5.0mm_P5.00mm | C1 |
| 1 | CAN_BUS_TRANSCEIVER1 | Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_Vertical | U1 |
| 1 | CAN_BUS_TRANSCEIVER2 | Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_Vertical | U2 |
| 1 | Conn_01x12 | Connector_PinHeader_2.54mm:PinHeader_1x12_P2.54mm_Vertical | J2 |
| 1 | LED | LED_THT:LED_D5.0mm | D1 |
| 1 | LEVEL_SHIFTER | footprints:LEVEL_SHIFTER | U4 |
| 1 | LOD | Package_TO_SOT_SMD:SOT-23-5_HandSoldering | U3 |
| 1 | LOGO | footprints:Logo_v3_new | G*** |
| 1 | TYPE-C_16PIN_2MD__073_ | symbols1:SHOUHAN_TYPE-C_16PIN_2MD__073_ | J1 |
The 18 most common of 22 parts.

VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

abhishek-kakkar/BeagleLogic
A Software Suite that implements a logic analyzer with the PRU on the BeagleBone / BeagleBone Black.

Chrismettal/flipper-zero-backpacks
Backpack-style addon boards for the Flipper Zero!



CRImier/MyKiCad
My KiCad boards. Can't be bothered uploading individually anymore, so here you go.
It measures 71.9 × 85.6 mm and has 2 copper layers, 1.6 mm thick.
22 parts. 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 raghavbharath/usb-logic-analyzer repository on GitHub, at the commit this page was made from: the board is PCB/ECE692_3.kicad_pcb and its schematic PCB/ECE692.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).