Skip to the content
4 layers172 × 172 mmSysEx Patcher, the printed circuit board in 3D

Arduino Mega MIDI controller for the Korg Z3 FM synthesizer

Size
172 × 172 mm
Copper layers
4
Thickness
1.6 mm
Parts
86
Nets
78
Pads
305
Tracks, vias
420, 3
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
5 Jun 2026
Updated
17 Sep 2026

Overview

SysEx Patcher is an open-source printed circuit board by GAUDVIBE, from the GAUDVIBE/KorgZ3_SysEx repository on GitHub. It is a 4-layer board of 172 × 172 mm with 86 parts on 78 nets, routed with 420 tracks and 3 vias.

It is built around the CD74HC4067M. Its parts include 26 resistors, 19 capacitors, 6 diodes, 6 connectors and 4 switches. It belongs with the audio and music boards of this library.

Main components

1

README

README.md

Korg Z3 SysEx Controller

An Arduino Mega 2560-based MIDI controller for the Korg Z3 FM synthesizer, allowing real-time editing of all internal FM parameters via 16 analog potentiometers, organized across 5 pages.

The Korg Z3 only accepts complete SysEx parameter dumps — this controller handles that constraint transparently, sending a full 96-byte dump on every parameter change.


Features

  • 16 potentiometers × 5 pages = up to 80 parameters mapped to the Z3's FM engine
  • Live Dump Request — fetch the current preset directly from the Z3 over MIDI
  • Up to 8 preset slots stored in RAM, persisted to EEPROM (survives power-off)
  • Factory preset (SynLead) loaded on first boot
  • Pickup mode — pots are inactive until moved, preventing value jumps on page change
  • Adaptive filtering — exponential smoothing + proportional deadband, tuned per parameter range
  • 128×32 OLED display — shows preset name, slot index, page, and live parameter values with auto-scroll
  • 4 LEDs with distinct behaviors for navigation, dump request, and memory operations

Hardware

ComponentDetail
MicrocontrollerArduino Mega 2560
Potentiometers16× analog, pins A0–A15
Button − (page prev)Digital pin 7
Button + (page next)Digital pin 8
Button cycle/saveDigital pin 5
Button Dump RequestDigital pin 6
LED page −Digital pin 12
LED page +Digital pin 11
LED Dump RequestDigital pin 10
LED slotDigital pin 9
OLED display128×32 I2C, SDA=20, SCL=21, address 0x3C

Tip: Adding a 100nF ceramic capacitor between each pot's wiper and GND significantly reduces ADC noise and improves parameter stability.

PCB / KiCad design

A full KiCad reconstruction of the board (schematic + PCB) lives in hardware/, rebuilt from the original Gerbers. It also includes an extension: a CD74HC4067 analog multiplexer (extra analog input via a 6.35 mm remote-pot jack + spare channels) and RC anti-noise filters (1 kΩ + 100 nF) on every analog input. See hardware/RECONSTRUCTION_SCHEMA.md and hardware/ATTRIBUTION.md (hardware is CC BY-NC-SA, derived from baritonomarchetto's design).


Button Behavior

ButtonAction
Pin 7 (−)Previous page (I → V → IV → …)
Pin 8 (+)Next page (I → II → … → V → I)
Pin 5 short pressCycle through stored preset slots
Pin 5 long press ≥3sSave current dump to memory (RAM + EEPROM)
Pin 6 long press ≥3sSend Dump Request to Z3, receive and load the response

LED Behavior

LEDPinBehavior
LED_PREV12Flashes 300ms on page − click
LED_NEXT11Flashes 300ms on page + click
LED_DUMP_REQ10Blinks continuously during Dump Request, off on receive/timeout
LED_SLOT9Solid = preset loaded from memory / Blinks 3× = save confirmed

Pages & Parameters

Page I — Global & Levels

PotParameterRangeSysEx offset
A0Algorithm0–713
A5Feedback0–714
A8LFO Wave0–315
A12LFO Rate0–25516 (hi) + 17 (lo)
A1PMD0–12718
A4PMS0–719
A9AMD0–12720
A13AMS0–321
A2M1 Wave0–722
A6C1 Wave0–723
A10M2 Wave0–724
A14C2 Wave0–725
A3M1 Level0–12742
A7C1 Level0–12743
A11M2 Level0–12744
A15C2 Level0–12745

Page II — Envelopes (Attack / Decay / Sustain / Decay2)

M1, C1, M2, C2 — Attack (0–31), Decay1 (0–31), Sustain (0–15), Decay2 (0–31) — offsets 46–61

Page III — Release, EG Bias, Detune

M1, C1, M2, C2 — Release (0–15), EG Bias (0–3), Detune1 (0–7), Detune2 (0–3) — offsets 34–41, 62–65, 74–77

Page IV — Multiply, AMS Enable, Key Scale

M1, C1, M2, C2 — Multiply1 (0–15), Multiply2 (0–15), AMS Enable (0–1), Key Scale (0–3) — offsets 26–33, 66–73

Page V — Velocity, Keyboard Track, Reverb, Rate/op

M1, C1, M2, C2 — Velocity Int (0–15), Keyboard Track (0–15), Reverb (0–1), Rate (0–7) — offsets 78–93


MIDI / SysEx Details

  • Baud rate: 31250 (standard MIDI)
  • Dump Request: F0 42 30 1D 10 F7
  • Dump header: F0 42 30 1D 40 + 8 bytes ASCII name + parameters + F7
  • Dump size: 95–96 bytes
  • Send guard: 300ms minimum between consecutive SysEx transmissions

LFO Rate — 2-byte parameter

LFO Rate is the only 2-byte parameter in the Z3 dump:

  • Offset 16 (hi-byte) = val / 128 → 0x00 or 0x01
  • Offset 17 (lo-byte) = val % 128 → 0x00–0x7F

EEPROM Layout

AddressContent
0Magic byte 0xA5 (initialized flag)
1Preset count
2Current slot index
3 + n×108Slot n: 2B size + 10B name + 96B data

Total used: 867 bytes out of 4096 available on the Mega.


Filtering & Stability

The controller uses a multi-stage approach to eliminate ADC noise without sacrificing responsiveness:

  1. Exponential smoothing — coefficient 7/8 for large ranges (≥31 values), 3/4 for small ranges
  2. Proportional deadband — 10% of step width around each boundary, minimum 1 LSB
  3. Stability validation — 8 consecutive identical readings required for ranges ≥127, 6 for smaller ranges
  4. Relative pickup — on page/preset change, a pot must move ≥2 steps from its resting position before becoming active (prevents false triggers without requiring the pot to find an exact value)

Libraries Required

Install via Arduino Library Manager:

  • Adafruit GFX Library
  • Adafruit SSD1306
  • Wire (built-in)
  • EEPROM (built-in)

Project Background

Built around a custom board inspired by baritonomarchetto's Arduino SysEx Patcher. The Z3's FM engine requires complete parameter dumps for every edit — this controller manages that constraint internally, giving the user a seamless knob-per-function experience.


License

MIT

Parts

86
QtyValueFootprintReferences
211kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23, R24, R25 +5
18100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC1, C2, C3, C4, C5, C6, C7, C10, C11, C12, C13, C14, C15, C16, C17, C18 +2
1610kPotentiometer_THT:Potentiometer_Alps_RK09K_Single_VerticalRV1, RV2, RV3, RV4, RV5, RV6, RV7, RV8, RV9, RV10, RV11, RV12, RV13, RV14, RV15, RV16
4LEDLED_THT:LED_D3.0mmD3, D4, D5, D6
4SWButton_Switch_THT:SW_PUSH_6mmSW2, SW3, SW4, SW5
3220Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3
3MEGAConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJMA1, JMA2, JMA3
2MEGAConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJMD3, JMD4
1100uFCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC19
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR5
11N4004Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD2D
11N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD1
1330Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR4
16N138Package_DIP:DIP-8_W7.62mmU1
1BAT_PWRConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ4
1CD74HC4067Package_DIP:DIP-24_W15.24mmU2
1DC_5VConnector_BarrelJack:BarrelJack_HorizontalJ3
1JACK6.35Connector_Audio:Jack_6.35mm_Neutrik_NRJ6HF-1_HorizontalJ10
1MEGAConnector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJMD1
1MEGAConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJMD2
1MIDI_INSysEx_Patcher:MIDI_DIN5_180degJ1
1MIDI_OUTSysEx_Patcher:MIDI_DIN5_180degJ2
1OLEDConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ5

Similar boards

  • 2 layers312 × 140 mmTsynth2 Rev1.3, the printed circuit board in 3D

    Tsynth2 Rev1.3

    Electrotechnique/TSynth-Teensy4.1

    TSynth for Teensy 4.1

    108 parts182
  • 2 layers422.4 × 118.2 mmMidiMood (tht), the printed circuit board in 3D

    MidiMood (tht)

    silveirago/MidiMood

    This repository contains the code for a custom MIDI controller project called MidiMood, built using an ATmega32U4 microcontroller (or similar).

    53 parts82
  • 2 layers248.9 × 120.7 mm16nx, the printed circuit board in 3D

    16nx

    16n-faderbank/16nx

    16nx is a controller for musical instruments. Sixteen faders,MIDI over USB and jack, CV out, and I2C out. Based around RP2040.

    171 parts76
  • 4 layers100 × 100 mmOPDM, the printed circuit board in 3D

    OPDM

    brenonsantos/OpenPDM

    OpenPDM is an open-source programable Power Distribution Module for your car

    156 parts75MIT
  • 2 layers215.9 × 101.6 mmIps20, the printed circuit board in 3D

    Ips20

    gzweigle/open-hybrid-piano

    Building a hybrid MIDI digital piano

    135 parts61GPL-3.0
  • 2 layers152.4 × 95.3 mmControl board, the printed circuit board in 3D

    Control board

    carsonrobles/fpga-guitar-pedal

    FPGA based guitar effect station.

    51 parts36
  • 2 layers100 × 100 mmEavesdrum module, the printed circuit board in 3D

    Eavesdrum module

    tobigun/EavesDrum

    EavesDrum is an e-drum trigger module project, designed for musicians and makers. It allows you to connect drum pads or piezo triggers and converts their signals into MIDI events.

    103 parts25GPL-3.0
  • 4 layers33 × 65.5 mmOM FlexGrid Rigid PCB, the printed circuit board in 3D

    OM FlexGrid Rigid PCB

    Open-Muscle/OpenMuscle-FlexGrid

    60-sensor wearable with flexible PCB and pressure matrix

    65 parts19CERN-OHL-S-2.0

Questions

How big is the SysEx Patcher PCB?

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

What parts does the SysEx Patcher use?

86 parts, built around the CD74HC4067M. 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 SysEx Patcher KiCad files?

From the GAUDVIBE/KorgZ3_SysEx repository on GitHub, at the commit this page was made from: the board is hardware/kicad_project/SysEx_Patcher.kicad_pcb and its schematic hardware/kicad_project/SysEx_Patcher.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the SysEx Patcher design in my own project?

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