Skip to the content
4 layers50 × 26 mmPSU, the printed circuit board in 3D

Custom 2-channel digital oscilloscope DAQ with 20MHz bandwidth. Built with a custom KiCad analog front-end (AFE) PCB, Gowin FPGA (Tang Nano 9K) for high-speed signal buffering (VHDL), and an RPi Pico MCU for SCPI-like control. Includes a simple Python GUI for data visualization.

Size
50 × 26 mm
Copper layers
4
Thickness
1.6 mm
Parts
29
Nets
16
Pads
84
Tracks, vias
100, 119
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
16 Nov 2025
Updated
7 Aug 2026

Overview

PSU is an open-source printed circuit board by Blaze-Pascal, from the Blaze-Pascal/Masters-Multi-Channel_DAQ repository on GitHub, published under the GPL-3.0 licence. It is a 4-layer board of 50 × 26 mm with 29 parts on 16 nets, routed with 100 tracks and 119 vias.

It is built around the TPS560430XDBVR-MS and LM27762DSS. Its parts include 14 capacitors, 8 resistors, 2 ICs, 2 connectors and 1 inductor. It belongs with the fPGA and programmable logic and sensors and measurement boards and the RP2040 and FPGA and CPLD boards of this library.

Main components

2

README

README.md

2-Channel Digital Oscilloscope

Hardware Setup

Project Overview

Goal: Build a custom data acquisition system capable of capturing and displaying fast analog signals with at least a 15 MHz bandwidth.

Project Scope:

  • Custom PCB & Analog Front-End (AFE): Designed and routed in KiCad.
  • FPGA Data Acquisition Engine (DAQ): Written in VHDL, deployed on a Tang Nano 9K (Gowin GW1NR-9).
  • MCU Control & Data Handling: Written in C (Arduino core) on a Raspberry Pi Pico, featuring a pseudo-SCPI command parser.
  • PC Software: A basic Python GUI for data visualization.

System Architecture

System Architecture Diagram

The system is divided into four main functional blocks:

  1. Analog Front-End: Conditions the input signal by applying attenuation/amplification, removing or shifting the DC offset, and applying AC/DC coupling.
  2. Digitization: An ADC converts the conditioned analog signal into the digital domain. Currently, a crystal oscillator and a clock buffer/splitter IC provide the clock to both the ADC and the FPGA.
  3. FPGA DAQ: Manages the high-speed digital logic, executing pre-filling, edge triggering, post-filling, and hardware-level memory buffering.
  4. MCU & PC Software: A microcontroller asynchronously reads the buffered data from the FPGA (two channels simultaneously via a custom parallel protocol). It then transmits this data to a PC for visualization while receiving SCPI commands to control the FPGA (horizontal scaling) and the AFE (vertical scaling).

Hardware Details

The Analog Front-End (AFE)

Frontend block schematic Frontend Photo

The AFE is a fully custom design inspired by commercial oscilloscope teardowns and open-source projects. The signal chain operates as follows:

  • Input Stage: The signal enters via a BNC connector, passes through an AC/DC coupling circuit, and reaches a relay that toggles between 1:1 and 10:1 attenuation.
  • Protection & Buffering: A BAV99 diode provides input protection before the signal hits an ADA4817 FET-input op-amp acting as a buffer.
  • Offset & Gain: The signal is routed to an AD8132 Fully Differential Amplifier (FDA), where the DC offset is applied. Finally, it is amplified by an AD8330 Variable Gain Amplifier (VGA), which also acts as the driver for the AD9288 100MSPS ADC.

The Offset Circuitry

Offset Photo ADC detail Photo

The offset adjustment is achieved by injecting a control voltage into one of the FDA pins. This voltage is generated by an MCP4728 quad-channel DAC, which simultaneously controls the VGA gain. By utilizing a summing amplifier connected to the negative rail, the offset voltage can swing approximately ±4.5V.


Digital & Firmware

The FPGA Engine (VHDL)

FPGA detailed diagram FPGA State Machine Diagram

The core of the DAQ engine is a state machine responsible for the pre-fill, trigger, and post-fill capture sequence. The VHDL architecture includes several key design features:

  • Clock Domain Crossing: Buffer memory is implemented using Gowin Semi Dual Port RAM IP cores. To safely cross from the high-frequency ADC clock domain to the slower MCU read clock domain, the state machine halts capture and enters a STOP state, preventing concurrent memory overwrites while the MCU reads the data.
  • Hardware Data Unwrapping: Instead of forcing the slower MCU to track indices and unwrap a circular buffer, the FPGA handles this natively. The logic automatically aligns the data so the trigger source sample is always properly positioned (e.g., in the exact middle for a 50/50 prefill/postfill ratio). The MCU simply reads and transmits raw, glued data for both channels.
  • Command Interface: An SPI read block receives and parses commands sent by the MCU.

Results & Verification

Testing was conducted in progressive stages to isolate the scope of potential problems:

Simulated Trigger Data
  1. Digital Simulation: The first round of testing was performed by feeding simulated digital data from a Raspberry Pi Pico into the FPGA. The logic was verified using the GoWin Analyzer Oscilloscope app.
1MHz ADC Sample
  1. ADC Verification: A real 1 MHz sinusoidal signal was then sampled by the ADC to confirm analog-to-digital conversion integrity.

1MHz Final Test 19MHz Bandwidth Test

  1. Full System Test: A PyQt5 visualization application was used to interface with the hardware. Final testing confirmed that the front-end analog bandwidth reaches approximately 19 MHz, successfully exceeding the 15 MHz project goal.

Future Improvements

While the current revision meets all initial project goals, several architectural improvements could be made in future iterations:

  • Simplify the AFE: The FDA is not strictly necessary; the front-end could be streamlined by merging the offset functionality directly into the VGA.
  • Improve Offset Stability: The offset section could be reworked to utilize a dedicated, high-stability voltage reference rather than relying on the main power rail.
  • Upgrade the VGA: The analog VGA could be swapped for a digitally controlled alternative, such as the LMH6518 or AD8370, for more precise gain stepping.
  • Adjust Clock Architecture: Instead of using an external crystal to clock the ADC and decimating samples on the FPGA to change the timebase, the FPGA could generate and drive the ADC clock directly, allowing for dynamic sampling rate adjustments. The PCB was designed with such a possibility in mind so it just needs necessary VHDL code and one jumper changeover.
  • Revise the PSU: Currently, the project is powered by a custom charge-pump-based PSU that introduces significant noise. While small-signal/high-gain performance analysis was outside the initial scope, it is likely hampered by this setup.
  • System Integration: Replacing the Tang Nano 9K development board with a discrete FPGA integrated directly onto the PCB could improve digital signal integrity, which is theorized to be the cause of some signal glitches observed during testing.
  • MCU Migration: Transitioning from the Raspberry Pi Pico dev board to an integrated STM32 chip on the PCB would streamline the design and eliminate the reliance on the RP2040's external flash memory dependencies.
  • Increase Memory Depth: The Gowin FPGA has limited BRAM, restricting the buffer memory size. This could be addressed by upgrading to a larger FPGA (e.g., the 20 series) or adding discrete RAM. Using a module like the Primer 20K (which features a SODIMM connector and onboard RAM) could bypass the complexities of routing high-speed memory interconnects on a custom PCB. Additionally, sourcing bare Gowin ICs can currently be challenging.
  • Interleaved Mode: Inspired by other open-source projects like ScopeFun, interleaving could effectively double the sampling rate. Bridging the signal from one channel to the other and forcing sampling 180 degrees out of phase is highly feasible thanks to the AD9288's two independent clock inputs.

Expansion Potential

Currently, the project has reached a successful proof-of-concept stage and sits at a crossroads. For simplicity, the captured data is currently sent to a PC app and visually represented as raw sample values. For the next version, there are two primary paths forward:

  1. PC-Attached Oscilloscope: Expand upon the PC app concept, turning it into a fully-featured interface with potential for robust data logging, advanced measurements, and network control.
  2. Standalone Benchtop Device: Pivot into a self-contained benchtop instrument by swapping the MCU for a more powerful processor and integrating a dedicated hardware UI (an LCD screen, rotary encoders, and physical buttons).

Parts

29
QtyValueFootprintReferences
44.7uPCM_Capacitor_SMD_AKL:C_0603_1608MetricC104, C106, C107, C108
30RPCM_Resistor_SMD_AKL:R_0603_1608MetricR102, R103, R108
322uCapacitor_SMD:CP_Elec_5x5.4C109, C110, C111
3DNPPCM_Capacitor_SMD_AKL:C_0603_1608MetricC112, C113, C114
2150kPCM_Resistor_SMD_AKL:R_0603_1608MetricR106, R107
222uPCM_Capacitor_SMD_AKL:C_0805_2012MetricC101, C103
2470kPCM_Resistor_SMD_AKL:R_0603_1608MetricR104, R105
1100nPCM_Capacitor_SMD_AKL:C_0603_1608MetricC102
110kPCM_Resistor_SMD_AKL:R_0603_1608MetricR101
115uInductor_SMD:L_Wuerth_MAPI-3015L101
1470nPCM_Capacitor_SMD_AKL:C_0603_1608MetricC105
150kPCM_Potentiometer_THT_AKL:Potentiometer_Bourns_3296W_VerticalRV101
1Barrel_Jack_SwitchConnector_BarrelJack:BarrelJack_HorizontalJ102
1LM27762Package_SON:WSON-12-1EP_3x2mm_P0.5mm_EP1x2.65_ThermalViasU102
1OUT_ConnConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ101
1TPS560430XDBVRPCM_Package_TO_SOT_SMD_AKL:SOT-23-6U101

The 28 most common of 29 parts.

More from Blaze-Pascal/Masters-Multi-Channel_DAQ

1
  • 4 layers100 × 100 mmAFE, the printed circuit board in 3D

    AFE

    Blaze-Pascal/Masters-Multi-Channel_DAQ

    Custom 2-channel digital oscilloscope DAQ with 20MHz bandwidth. Built with a custom KiCad analog front-end (AFE) PCB, Gowin FPGA (Tang Nano 9K) for high-speed signal buffering (VHDL), and an RPi Pico MCU for SCPI-like…

    216 parts2GPL-3.0

Similar boards

  • 4 layers223 × 95 mmAnalog i, the printed circuit board in 3D

    Analog i

    deimoscontrols/deimos

    Realtime data acquisition and controls ecosystem, including hardware, firmware, and software.

    568 parts44
  • 4 layers55.3 × 29 mmDrone current sensor board, the printed circuit board in 3D

    Drone current sensor board

    Kelvin-Ziqi-Zhao/drone-current-sensor-board

    High current sensor board for battery+capacitor power supply system

    66 parts7
  • 4 layers76 × 74.3 mmMCU PSU, the printed circuit board in 3D

    MCU PSU

    Blaze-Pascal/EKA-PiF-MCU_PSU

    2-phase synchronous digitally controlled buck converter (30V in, up to 10A out). Features a 4-layer custom KiCad PCB optimized for EMI.

    119 partsGPL-3.0
  • 4 layers100 × 100 mmSTM32 ESC HW, the printed circuit board in 3D

    STM32 ESC HW

    cej830/STM32_BLDC_ESC_Firmware

    STM32_BLDC_ESC_Firmware

    162 parts
  • 4 layers70 × 50 mmPD Smart Supply, the printed circuit board in 3D

    PD Smart Supply

    JaphD/USB-C-PD-Smart-Power-Supply

    A compact STM32-controlled USB-C Power Delivery supply providing selectable 5 V, 9 V, 12 V, and 20 V outputs up to 3 A.

    73 parts
  • 4 layers45 × 75 mmCamera Cooler, the printed circuit board in 3D

    Camera Cooler

    lukaslibar/Camera-Cooler

    Cooling solution for Svbony SV705C astronomy camera.

    118 parts
  • 2 layers179.3 × 128.6 mmHacKeys, the printed circuit board in 3D

    HacKeys

    velvia-fifty/AudioThings

    DIY audio-related projects of questionable quality and dubious utility; delivered in 30 minutes or less or the next one is free

    159 parts1
  • 4 layers100 × 100 mmCarradio peripheral rev05, the printed circuit board in 3D

    Carradio peripheral rev05

    gschuurman/android_vendor_gschuurman_vehicle_interfaces

    vehicle interfaces for android automotive for a custom headunit

    211 parts

Questions

How big is the PSU PCB?

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

What parts does the PSU use?

29 parts, built around the TPS560430XDBVR-MS and LM27762DSS. 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 PSU KiCad files?

From the Blaze-Pascal/Masters-Multi-Channel_DAQ repository on GitHub, at the commit this page was made from: the board is KiCad/PSU/PSU.kicad_pcb and its schematic KiCad/AFE/AFE.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the PSU design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).