Skip to the content
2 layers58 × 40 mmG29 flap xiao, the printed circuit board in 3D

Open-source controller for the exhaust flap of the BMW Z4 G29 M40i: open the flap on demand (even in Comfort mode) while keeping full factory behaviour the rest of the time.

Size
58 × 40 mm
Copper layers
2
Thickness
1.6 mm
Parts
36
Nets
21
Pads
97
Tracks, vias
243, 15
Pours
6
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
2 Oct 2026
Updated
12 Oct 2026

Overview

G29 flap xiao is an open-source printed circuit board by fdebrus, from the fdebrus/g29-exhaust-flap-controller repository on GitHub, published under the MIT licence. It is a 2-layer board of 58 × 40 mm with 36 parts on 21 nets, routed with 243 tracks and 15 vias.

It is built around the SYN480R, M2.5 and S8050, with the SS14, 1N4148W and SMAJ20A among its other parts. Its parts include 8 resistors, 7 capacitors, 4 ICs, 4 diodes and 2 transistors.

Main components

6

README

README.md

G29 Exhaust Flap Controller

Open-source controller for the exhaust flap of the BMW Z4 G29 M40i: open the flap on demand (even in Comfort mode) while keeping full factory behaviour the rest of the time.

Commercial kits exist, but the cheap ones replace the factory control entirely (their "AUTO" mode does not hand control back to the car). This project fixes that with a fail-safe relay design.

How it works

text
                       +------------------+
Engine computer (DME) -| NC              |
                       |   DPDT relay    COM|--- Exhaust flap actuator (signal wire)
ESP32-C3 PWM driver ---| NO              |
                       +------------------+
  • AUTO (default, relay released): the car drives the flap exactly as from the factory.
  • ON / OFF: the ESP32-C3 energizes the relay and sends its own PWM signal (flap open / closed).
  • Fail-safe: if the board loses power, resets or crashes, the relay drops and the car is back in control.
  • Only the signal wire is cut. The actuator's +12 V and ground stay on the original harness. The board takes its own power from a fused source in the trunk, not from the actuator wires.
  • The relay's second pole connects a dummy load to the DME while the ESP32-C3 is in control, to try to avoid an open-circuit fault code.

Controls: the original 433 MHz key fob (ON / AUTO / OFF) and the kit's dashboard button, whose cabin box also transmits on 433 MHz. Nothing is wired from the dashboard to the board.

Hardware

Board v3: Seeed XIAO ESP32-C3 on socket strips, on-board 433 MHz receiver (JSMSEMI SYN480R + 13.52127 MHz crystal, wire antenna pad), SMT passives (0603/0805, SMA, SOD-123, SOT-23, DPAK), Omron G5V-2 DPDT relay, two 2-pin screw terminals. 58 x 40 mm, 2 layers, 29 placed parts, designed for JLCPCB assembly (hardware/v3-xiao-esp32c3/jlcpcb/). No RXB6 module any more.

Earlier boards are in the git history only: v2 (same circuit with through-hole parts, an RXB6 module and a wired dashboard input, 60 x 46 mm) before the v2-removed tag, v1 (ESP32-DevKitC) before the v1-removed tag.

Project status

  • Teardown and analysis of the commercial kit (docs/findings.md)
  • Firmware (AUTO / ON / OFF over 433 MHz: fob + dashboard button, fail-safe start)
  • PCB v3 (XIAO ESP32-C3, on-board SYN480R receiver, SMT, 58 x 40 mm, 3 mounting holes, DRC clean)
  • 3D-printed enclosure (OpenSCAD, 62.8 x 44.8 x 26 mm, not yet test-printed)
  • Receiver sensitivity check against an RXB6 (first board)
  • Harness survey on the car: tap point and wire identification (docs/harness.md)
  • Bench measurement of the kit's output signal (docs/measurement.md)
  • Measurement on the car (DME signal, actuator input impedance)
  • Set PWM frequency / duty cycles in the firmware
  • Verify XIAO footprint (1:1 print) and order the assembled PCB
  • Assembly, bench test, installation (docs/installation.md)
  • Check fault memory after a few drives

Repository layout

PathContent
firmware/g29_exhaust_flap_xiao/Firmware (Seeed XIAO ESP32-C3)
hardware/v3-xiao-esp32c3/KiCad board, Gerbers, previews, DRC report, JLCPCB BOM + CPL, 3D-printed enclosure
tools/pcb-generator/Scripts that regenerate the board (KiCad 7 + freerouting)
docs/Findings, harness survey, measurement, installation, shopping list

Important values still to confirm

The firmware PWM values are placeholders until measured:

ParameterCurrent valueSource
PWM_FREQ_HZ100guess - must be measured
DUTY_OPEN_PCT95 %BMW F30 measurement, not verified on G29
DUTY_CLOSED_PCT5 %BMW F30 measurement, not verified on G29

Disclaimer

Personal project, provided as-is. Modifying the exhaust behaviour may affect road legality (noise approval), the vehicle inspection, warranty and insurance. The DME may log fault codes while the controller is in ON/OFF mode. Measure before connecting anything to the car. Use at your own risk.

License

MIT - see LICENSE.

Parts

36
QtyValueFootprintReferences
3M2.5H1, H2, H3
2100kR_0805_2012MetricR6, R8
2100nC_0805_2012MetricC2, C3
21kR_0805_2012MetricR5, R7
2S8050SOT-23Q1, Q2
2SS14D_SMAD1, D6
10RR_0603_1608MetricR12
11.8p C0GC_0603_1608MetricC7
1100u 35VCP_Elec_6.3x7.7C1
110uC_0805_2012MetricC4
113.52127MHzCrystal_SMD_HC49-SDY1
11N4148WD_SOD-123D5
11k optR_0805_2012MetricR9
11uC_0603_1608MetricC9
127nHL_0603_1608MetricL1
147nHL_0603_1608MetricL2
16.8p C0GC_0603_1608MetricC8
178M05TO-252-2U2
1ANT 17cmTestPoint_THTPad_D2.0mm_Drill1.0mmANT1
1DUM-12VR_1206_3216MetricR11
1DUM-GNDR_1206_3216MetricR10
1FLAPTerminalBlock_Phoenix_PT-1,5-2-3.5-H_1x02_P3.50mm_HorizontalJ3
1G5V-2-H1 DC12Relay_DPDT_Omron_G5V-2K1
1PTC 0.5AFuse_1812_4532MetricF1
1PWRTerminalBlock_Phoenix_PT-1,5-2-3.5-H_1x02_P3.50mm_HorizontalJ1
1SMAJ20AD_SMAD2
1SYN480RSOIC-8_3.9x4.9mm_P1.27mmU3
1XIAO leftPinSocket_1x07_P2.54mm_VerticalU1A
1XIAO rightPinSocket_1x07_P2.54mm_VerticalU1B

Similar boards

  • 2 layers60 × 47 mmAstro driver, the printed circuit board in 3D

    Astro driver

    rudnik275/astronaut-lamp

    Ночник «космонавт на луне» → нативное HomeKit-устройство на ESP32 + HAA: разбор родной платы, схема драйвера, конфиг, корпус

    51 parts
  • 2 layers50 × 50 mmShutter RF, the printed circuit board in 3D

    Shutter RF

    bklemencz/Shutter_RF

    STM8 Shutter Controller with RS485 and EV1527 433Mhz interface

    30 parts4
  • 2 layers40 × 40 mmFancyLight V2, the printed circuit board in 3D

    FancyLight V2

    Glebka/FancyLight

    FancyLight - an LED lamp powered by a Li-Ion battery, which can be found in used electronic cigarettes. It charges via a micro USB connector and is turned on and off using a touch button.

    52 parts1
  • 2 layers63.4 × 83.1 mmWO30109 FreshAir, the printed circuit board in 3D

    WO30109 FreshAir

    WOOWTECH/Woow_zigbee_fresh_air_pcb

    WO_30109 Zigbee 新風控制器 PCB(KiCad 10,git 版控;V1.3 重繪 + V2.0 安規改版)

    76 parts
  • 2 layers85 × 56 mmVisionAid Carrier, the printed circuit board in 3D

    VisionAid Carrier

    silentaf/viswa_id1

    It is the interface and safety-island board that sits on top of the Raspberry Pi 5 in the chest pod.

    58 parts
  • 2 layers60 × 65 mmLED driver2, the printed circuit board in 3D

    LED driver2

    xtompok/LED_driver

    3x5A PWM driver for LED strips

    98 partsMIT

Questions

How big is the G29 flap xiao PCB?

It measures 58 × 40 mm and has 2 copper layers, 1.6 mm thick.

What parts does the G29 flap xiao use?

36 parts, built around the SYN480R, M2.5, S8050 and SS14. 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 G29 flap xiao KiCad files?

From the fdebrus/g29-exhaust-flap-controller repository on GitHub, at the commit this page was made from: the board is hardware/v3-xiao-esp32c3/jlcpcb/g29_flap_xiao.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the G29 flap xiao 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).