Skip to the content
2 layers52.9 × 35.9 mmADC Silence Detector, the printed circuit board in 3D

WCH CH32X033 based Silence detector for turntable to Toslink converter

Size
52.9 × 35.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
17
Nets
29
Pads
73
Tracks, vias
101, 126
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
10 May 2026
Updated
28 May 2026

Overview

ADC Silence Detector is an open-source printed circuit board by markusbichl, from the markusbichl/ADC_Silence_Detector repository on GitHub. It is a 2-layer board of 52.9 × 35.9 mm with 17 parts on 29 nets, routed with 101 tracks and 126 vias.

It is built around the AP2112K-3.3 and AP22804AW5. Its parts include 6 capacitors, 5 connectors, 3 ICs and 1 resistor.

Main components

2

README

README.md

PCB populated render

ADC Silence Detector

A compact embedded device that monitors analog audio input and automatically cuts power to a downstream USB ADC when silence is detected - eliminating idle noise and unnecessary power draw.


Overview

The ADC Silence Detector sits inline between your audio source and your USB ADC. It continuously monitors the analog audio signal on both left and right channels. As long as audio is present, the USB-A output port stays powered. Once silence is sustained, the device cuts USB power to the connected ADC, effectively turning it off without any manual intervention.

When audio resumes, power is restored and the downstream ADC comes back on automatically.


Hardware

Connectors

PortTypeFunction
Power InMini-USB5 V power supply input
Audio In/Out LRCA (double)Left channel analog passthrough
Audio In/Out RRCA (double)Right channel analog passthrough
Power OutUSB-ASwitched 5 V output for the controlled ADC

Signal Path

text
Audio Source ──► RCA In (L+R) ──► passthrough ──► RCA Out (L+R) ──► Downstream equipment
                      │
                      └──► ADC Level sensing (PA6 / PB0)
                                      │
                                      ▼
                              CH32X033 MCU
                                      │
                                      ▼
Mini-USB In ──────────────────► USB-A Out (switched via PB1)

The audio signal path is fully passive - the RCA inputs are wired straight through to the RCA outputs with no active components in the signal chain, preserving audio quality.


Firmware

Microcontroller

WCH CH32X033 - 32-bit RISC-V (rv32imacxw) running at 48 MHz from the internal HSI oscillator.

  • IDE: MounRiver Studio 2

Detection Logic

The firmware polls both ADC channels every 500 ms and takes the higher of the two readings as the current audio level. A hysteresis comparator prevents rapid toggling around the threshold:

Condition12-bit ADC valueAction
Output OFF, level rises above20Turn USB-A output ON
Output ON, level falls below10Turn USB-A output OFF

ADC channels:

PinADC ChannelSignal
PA6CH6Left channel level
PB0CH8Right channel level

Output pin: PB1 drives the USB-A power switch.

Source Layout

text
SW
  User/
    main.c                      - application logic (ADC poll loop, hysteresis, GPIO control)
    system_ch32x035.c           - clock initialisation
    ch32x035_it.c               - interrupt handlers (unused stubs)
  Core/
    core_riscv.c/h              - RISC-V core support
  Debug/
    debug.c/h                   - SDI printf (debug UART over single wire)
  Peripheral/
    src/  inc/                  - WCH standard peripheral library
  Startup/
    startup_ch32x035.S          - reset vector and startup code
  Ld/
    Link.ld                     - linker script
PCB/
  ADC_Silence_detecor.kicad_pcb - KiCAD PCB
  ADC_Silence_detecor.kicad_sch - KiCAD Schematic
  jlcpcb/                       - Gerber files
CAD/
  case.stl                      - STL file of a simple Case
  ADC_Silence_detector.step     - STEP file of the populated PCB
  ADC_Silence_detector.stl      - STL file of the populated PCB
Demo
  ADC_Silence_detector.jpg      - Photo of the finished build
  PCB_populated.png             - Rendering of the populated PCB

Building & Flashing

  1. Open the project in MounRiver Studio 2.
  2. Select the obj build configuration and click Build (or press Ctrl+B).
  3. Connect a WCH-Link programmer to the SWD/SDI header.
  4. Click Download to flash the .hex to the CH32X033.

Debug output is available over SDI (single-wire debug interface) at 115200 baud and prints the raw ADC level on every poll cycle.


License

Peripheral library files are copyright Nanjing Qinheng Microelectronics Co., Ltd. Application code is released under the same terms - see individual file headers for details.

Parts

17
QtyValueFootprintReferences
31uCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC1, C2, C4
2100nCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC3, C5
2Conn_Coaxial_x2Connector_Coaxial:BNC_Win_364A2x95_HorizontalJ1, J2
2MountingHole_3.2mm_M3_PadMountingHole:MountingHole_3.2mm_M3_PadMH1, MH2
110kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1
1120uCapacitor_SMD:CP_Elec_6.3x5.8C6
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5_HandSolderingU2
1AP22804AW5Package_TO_SOT_SMD:SOT-23-5U3
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ4
1USB_AConnector_USB:USB_A_Connfly_DS1095J5
1USB_B_MiniConnector_USB:USB_Mini-B_Wuerth_65100516121_HorizontalJ3
1~CH32X033:TSSOP-20_L6.5-W4.4-P0.65-LS6.4-BLU1

Similar boards

  • 4 layers59.6 × 85.6 mmRecorder, the printed circuit board in 3D

    Recorder

    zeeman-effect/pixel-snap-voice

    A simple audio recording device that magnetically attaches to the back of a Pixel device

    60 parts
  • 4 layers60 × 60 mmUsb switch, the printed circuit board in 3D

    Usb switch

    alvarop/debugotron

    Debugotron is a collection of debugging/automation tools I've wanted in the past but didn't have access to. Currently, the tools include:

    77 parts52BSD-3-Clause
  • 2 layers101.6 × 53.3 mmArduinoMega Ethernet, the printed circuit board in 3D

    ArduinoMega Ethernet

    dmanla/SecureConnectivityDevelopmentPlatform

    A development platform which provides secure connectivity and data logging support while maintaining compatibility with Arduino-Mega hardware and software.

    116 parts
  • 6 layers70 × 140 mmUsb3-hub, the printed circuit board in 3D

    Usb3-hub

    gumulka/usb3-hub

    My very own USB3 Hub with these features:

    229 parts
  • 6 layers120.9 × 90 mmSvayamV3 IIK, the printed circuit board in 3D

    SvayamV3 IIK

    si-nalsal/pcb-mantis

    A servo-based UAV flight controller built around the STM32H743IIK6 (Cortex-M7, UFBGA-201, 0.65 mm pitch). The board distributes power to a fixed-wing/multirotor airframe with 16 PWM servo outputs, redundant IMU and…

    290 partsCERN-OHL-S-2.0
  • 2 layers191.3 × 164 mmXYmatics E64, the printed circuit board in 3D

    XYmatics E64

    XyrusB2010/XYmatics-E64

    A 5-axis Klipper mainboard, powered by a Raspberry Pi Compute Module and STM32F407

    282 parts
  • 2 layers26 × 30 mmMicrocontroller, the printed circuit board in 3D

    Microcontroller

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    34 parts1.1kCC-BY-4.0
  • 2 layers53.2 × 24.8 mmPicoLink, the printed circuit board in 3D

    PicoLink

    ErichStyger/mcuoneclipse

    McuOnEclipse projects and examples

    46 parts765

Questions

How big is the ADC Silence Detector PCB?

It measures 52.9 × 35.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ADC Silence Detector use?

17 parts, built around the AP2112K-3.3 and AP22804AW5. 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 ADC Silence Detector KiCad files?

From the markusbichl/ADC_Silence_Detector repository on GitHub, at the commit this page was made from: the board is PCB/ADC_Silence_detector.kicad_pcb and its schematic PCB/ADC_Silence_detector.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ADC Silence Detector design in my own project?

Its repository states no licence, so its author keeps all rights: ask markusbichl before reusing the design.