Skip to the content
2 layers56 × 47 mmReceiver, the printed circuit board in 3D

Wireless steering-wheel audio controls for a car head unit.

Size
56 × 47 mm
Copper layers
2
Thickness
1.6 mm
Parts
26
Nets
46
Pads
114
Tracks, vias
136, 1
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
15 Jun 2026
Updated
20 Oct 2026

Overview

Receiver is an open-source printed circuit board by abhijithvijayan, from the abhijithvijayan/wireless-steering-wheel-controls repository on GitHub, published under the MIT licence. It is a 2-layer board of 56 × 47 mm with 26 parts on 46 nets, routed with 136 tracks and 1 via.

It is built around the 74HC4051 and AQY212EH. Its parts include 3 connectors and 1 IC. It belongs with the audio and music boards and the ESP32 and RISC-V boards of this library.

Main components

2

README

README.md

wireless-steering-wheel-controls

⚠️ Work in progress

Wireless steering-wheel audio controls for a car head unit.

The steering-wheel buttons can't be wired through to the dash, and the head unit only accepts commands over its wired SWC (steering-wheel-control) resistor input. So the link is split in two over BLE:

text
[steering wheel]                         [behind dash, car-powered]
 buttons → XIAO nRF52840  ──BLE──▶  ESP32-C3  ──resistor codes──▶  head unit SWC input
 (coin-cell powered)                (always on, scans)

Subprojects

DirBoardRole
transmitter/Seeed XIAO nRF52840On the wheel, battery powered. Reads the button cluster and broadcasts presses over connectionless BLE advertising.
receiver/ESP32-C3Behind the dash, always powered. Scans for the broadcasts and drives the head unit's SWC input.

Each subproject is a self-contained PlatformIO project — open the subdirectory (not this root) in your IDE, or build from inside it:

bash
cd transmitter && pio run    # or: pio run -t upload
cd receiver     && pio run

How it works

Signal path: button resistance → ADC voltage → BLE packet → mux channel selection → resistance on the SWC wire → voltage read by the head unit.

Transmitter (wheel side)

The wheel's 9 buttons form a resistor ladder on a single analog wire: each button connects a different cumulative resistance (360 Ω–16.46 kΩ) to ground. The XIAO idles in sleep (~20 µA) and wakes on a button press via a GPIO PORT event. It then drives the ladder through a 5.1 k series resistor, samples the node with the ADC (median of 3), and classifies the button by comparing the resistance against a threshold table.

Button events are broadcast as connectionless BLE advertisements (no pairing, no connection) carrying 7 bytes of manufacturer data:

text
[FF FF] [42]  [01]    [button] [event]              [seq]
company magic version 0-8      PRESS/HOLD/RELEASE   +1 per event

Repeatable buttons (VOL±/SRC±) re-send HOLD every 200 ms while held. Every frame is re-broadcast unchanged until the next event, which serves as a heartbeat. The chip returns to sleep 1 s after release.

Receiver (dash side)

An ESP32-C3 scans passively at 100% duty cycle. The BLE callback filters on company + magic + version, deduplicates by sequence number (each frame arrives many times), and writes the newest event into a single-slot mailbox (overwrite, not a FIFO: queued stale PRESS/RELEASE events would no longer describe the current button state). A local rotary encoder (volume knob) is decoded by a quadrature state machine; each detent enqueues one tap into a ring buffer.

Both inputs are consumed by a single output state machine — the only code that drives the output pins. A held wheel button is mirrored: its code is asserted while the button is held, re-asserted only when the button changes, and released on RELEASE or after 500 ms without a heartbeat (failsafe against a dead transmitter). Encoder detents are counted and emitted as 50 ms press pulses with 50 ms spacing between pulses.

Output stage → head unit

Asserting a button: two 74HC4051 analog multiplexers (shared S0–S2 select lines; per-mux active-low enables with 10 k pull-ups so both muxes are off until the firmware initializes) connect one of nine fixed resistors between a head-unit SWC wire and ground. Each mux common reaches its SWC wire through a photoMOS solid-state relay (see power-fail isolation below). Electrically this is identical to a wired OEM button press.

The head unit holds each SWC input at 3.335 V through an internal ~650 Ω pull-up and reads the divider voltage produced by the pressed button's resistance (V = 3.335 · (R + R_on) / (R + R_on + 650), with mux R_on ≈ 130 Ω). In learning mode it stores one voltage per button and later matches live readings within roughly ±50 mV.

Installed codes:

RefButtonMux/channelResistorWire voltage
R1VOL_UPM1 / Y0100 Ω0.87 V
R2SRC_PUSHM1 / Y1220 Ω1.16 V
R3SRC_UPM1 / Y2330 Ω1.38 V
R4SRC_DOWNM1 / Y3470 Ω1.60 V
R7CALL_ENDM2 / Y2680 Ω1.85 V
R8VOICEM2 / Y11 k2.11 V
R5VOL_DOWNM1 / Y42 k2.55 V
R9ANSWERM2 / Y03.3 k2.80 V
R6MUTEM1 / Y56.8 k3.05 V
—idle—open3.335 V

(M1 common → SSR → SWC wire 1, M2 common → SSR → SWC wire 2, shared ground. Support parts: R10/R11 = 10 k pull-ups on the mux enables, C1/C2 = 100 nF decoupling at each mux VCC, U3/U5 = AQY212EH photoMOS relays with R12/R13 = 680 Ω LED resistors.)

The nine values are chosen for voltage spacing on the head unit's divider — minimum ~215 mV between any two codes on the combined axis (placed on the rarely-used SRC pair), ≥ 245 mV around the volume/mute/call buttons, and the set is collision-free even if the head unit compares both wires against one learned list. They are unrelated to the wheel's own ladder values: a resistance code is only meaningful relative to the pull-up that reads it, and the two sides have different pull-ups (5.1 k vs ~650 Ω) — the wheel's 16.46 kΩ top value would compress to unusably small voltage steps on a 650 Ω divider.

Power-fail isolation

The receiver is powered from the head unit's own USB port, and the head unit can be on while the receiver is dead — during engine cranking (the head unit sheds its USB load for a few seconds) or with the cable unplugged. An unpowered 74HC4051 is not an open circuit: like most CMOS parts it has ESD protection diodes from every signal pin to VCC, so the head unit's 650 Ω pull-up back-feeds through the mux common into the dead 3.3 V rail. The SWC wires sag from 3.335 V to ~2.2 V — right at a learned code's window, with others swept through on the way — so a dead receiver used to press phantom buttons. No firmware can help, because none is running.

As defense in depth, the button assignment accounts for this: the ~2.1 V slot nearest the back-feed voltage belongs to VOICE (a phantom there only pokes the voice assistant), while the phone-critical ANSWER sits at 2.80 V, far from every measured fault voltage.

The fix is a normally-open photoMOS relay (Panasonic AQY212EH) in series between each mux common and its SWC wire. The relay's input side is an internal infrared LED fed from the raw USB 5 V rail through 680 Ω (~5.5 mA, inside the datasheet's recommended 5–10 mA band; still ≥4 mA above the 3 mA guaranteed trigger at the worst-case corner of USB's 4.4 V floor, max LED Vf, and resistor tolerance). The only coupling to the output MOSFETs is light: when USB power dies the LED goes dark and the outputs become a genuinely open circuit, so the wires float at the 3.335 V idle exactly as if nothing were connected. The LED resistors tap the 5 V node ahead of the module's regulator and bulk capacitance so the relays open before the 3.3 V rail can sag into the back-feed region.

Cost of the extra series element: ~0.85 Ω on-resistance, which shifts the most sensitive code (VOL_UP) by ~3 mV and the gaps between codes by even less — re-running the head unit's learning mode after installation absorbs it entirely.

Third-party code & assets

Everything not listed below is original work under MIT.

Code

  • receiver/src/rotary_encoder.{h,cpp} — quadrature state tables derived from Ben Buxton's rotary library, Copyright 2011 Ben Buxton, GPL v3. These two files remain under GPL v3 (it cannot be relicensed to MIT); fine for private/personal use, but they carry GPL terms if this repo is ever distributed.

Hardware / CAD

  • circuit/custom/Seeed_Studio_XIAO_Series.kicad_sym and circuit/custom/XIAO-nRF52840-DIP.kicad_mod — KiCad schematic symbol and footprint from Seeed Studio's official XIAO KiCad libraries (symbols, footprints), © Seeed Studio, CC BY-SA 4.0 (Seeed wiki resources license). The footprint has local modifications; as CC BY-SA derivatives, these two files remain CC BY-SA 4.0.

  • circuit/custom/ESP32-C3_SUPERMINI_TH.kicad_sym, circuit/custom/MODULE_ESP32-C3_SUPERMINI_TH.kicad_mod, and circuit/custom/ESP32-C3_SUPERMINI_TH.step — symbol, footprint, and 3D model from SnapMagic Search (SnapEDA), CC BY-SA 4.0 with Design Exception 1.0 (the exception lets designs and boards built with these files be licensed freely; the files themselves remain CC BY-SA with attribution).

  • circuit/custom/XIAO-nRF52840 v15.step — 3D board model from the GrabCAD Community Library: Seeed Studio XIAO nRF52840 (Sense). ⚠️ GrabCAD community models are licensed for private use; public redistribution requires the uploader's permission.

  • 3d models/battery_case.FCStd and 3d models/Battery Enclosure - cr2450.stl — CR2450 battery holder: FreeCAD project created to modify, and the modified STL exported from, the CRxxxx battery holder generator output by shusy on Cults3D, CC BY-NC — both files remain CC BY-NC. 3d models/transmitter_case.FCStd is original work but embeds the modified holder, so it is not usable commercially as a whole.

Tools

Designed with KiCad (PCB) and FreeCAD (enclosure); the PCB was brought into the FreeCAD enclosure project with kicadStepUp (easyw, AGPL-3.0). Firmware built with PlatformIO. Tool licenses do not apply to this repo's content.

Parts

26
QtyValueFootprintReferences
3680Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal680, 680 R1, 680 R2
3MountingHole_2.2mm_M2MountingHole:MountingHole_2.2mm_M21, 2, 3
2100nFCapacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mm104 C1, 104 C2
210kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal10k, 10K
274HC405101 Custom:MUX_74HC4051_ModuleMUX 1, MUX 2
2AQY212EHPackage_DIP:DIP-4_W7.62mmphotoMOS 1, photoMOS 2
1100Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal100
11kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal1k
1220Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal220
12kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal2k
13.3kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal3.3k
1330Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal330
1470Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal470
16.8kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal6.8k
1Conn_01x03_PinConnector_JST:JST_XH_B3B-XH-A_1x03_P2.50mm_VerticalJ1
1Conn_01x04_PinConnector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ2
1Conn_02x06_Top_BottomConnector_PinHeader_2.54mm:PinHeader_2x06_P2.54mm_VerticalJ3
1ESP32-C3_SUPERMINI_TH01 Custom:MODULE_ESP32-C3_SUPERMINI_THU4

More from abhijithvijayan/wireless-steering-wheel-controls

1
  • 2 layers34.5 × 23 mmTransmitter, the printed circuit board in 3D

    Transmitter

    abhijithvijayan/wireless-steering-wheel-controls

    Wireless steering-wheel audio controls for a car head unit.

    8 partsMIT

Similar boards

  • 2 layers44.5 × 35.7 mmPaddle bridge, the printed circuit board in 3D

    Paddle bridge

    mlsorensen/Apollo2

    Second generation Micra remote and brew by weight

    23 parts13MIT
  • 2 layers64.1 × 40 mmWALKIN PIR IF, the printed circuit board in 3D

    WALKIN PIR IF

    ThunderSloth/walkin-pir-interface

    Battery-Powered PIR Motion Interface (Isolated Dry Contact)

    24 partsMIT
  • 4 layers99 × 53.3 mmPSLab, the printed circuit board in 3D

    PSLab

    fossasia/pslab-hardware

    PSLab Hardware Design and Schematics https://pslab.io

    199 parts1.7kApache-2.0
  • 4 layers113.5 × 105.5 mmMultistepper, the printed circuit board in 3D

    Multistepper

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    243 parts208
  • 4 layers230.7 × 97.8 mmTako, the printed circuit board in 3D

    Tako

    ssbb/tako

    34 key EC split keyboard

    146 parts200MIT
  • 2 layers100 × 45.3 mmOpeNITHM, the printed circuit board in 3D

    OpeNITHM

    Yona-W/OpeNITHM

    Open-Source hardware Seaurchin/Qnithm/Laverita controller

    26 parts196GPL-3.0
  • 4 layers100 × 100 mmPCBA OCTV, the printed circuit board in 3D

    PCBA OCTV

    intechstudio/grid-hardware

    403 parts59GPL-3.0
  • 4 layers227.3 × 85 mmLe capybara, the printed circuit board in 3D

    Le capybara

    sporkus/le_capybara_keyboard

    Capactive sensing (EC) pcb for Le Chiffre keyboard

    118 parts58CERN-OHL-W-2.0

Questions

How big is the Receiver PCB?

It measures 56 × 47 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Receiver use?

26 parts, built around the 74HC4051 and AQY212EH. 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 Receiver KiCad files?

From the abhijithvijayan/wireless-steering-wheel-controls repository on GitHub, at the commit this page was made from: the board is circuit/receiver/receiver.kicad_pcb and its schematic circuit/receiver/receiver.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Receiver design in my own project?

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).