
Routing Board
Bad-Dog-Designs/ESP32-S3-Synthesizer
Source code and KiCad Files for the build of an ESP32 S3 Based synthesizer. CAN bus is used extensively to collect all the pots and switch data and send to the ESP32 engine

Source code and KiCad Files for the build of an ESP32 S3 Based synthesizer. CAN bus is used extensively to collect all the pots and switch data and send to the ESP32 engine
Oscillator Board is an open-source printed circuit board by Bad-Dog-Designs, from the Bad-Dog-Designs/ESP32-S3-Synthesizer repository on GitHub. It is a 2-layer board of 229 × 96 mm with 138 parts on 179 nets, routed with 1,132 tracks and 212 vias.
It is built around the ATMEGA328P-AU, CD74HC4067SM96 and MCP2515T-I/ST-HX. Its parts include 53 resistors, 22 diodes, 16 capacitors, 16 switches and 6 ICs. It belongs with the audio and music and interfaces and adapters boards and the AVR (ATmega, ATtiny) boards of this library.
Project overview: A custom polyphonic synthesizer built around an ESP32-S3 audio engine communicating with multiple ATmega328p control boards via CAN bus at 500kbps. All boards share synth_params.h as the single source of truth for CAN message definitions. Hardware boards:
ESP32-S3 — audio engine, MIDI input, I2S DAC output, CAN master Oscillator boards (ATmega328p, up to 4) — dual oscillator control per board, board ID set by hardware jumpers (both open = board 0) Commons board (ATmega328p) — filter, envelope, LFO, ring mod, play mode controls Routing board (ATmega328p) — modulation matrix UI, 12 routes, LED matrix display Patch board (ATmega328p, pending) — SD card patch storage UI, keypad, VFD/starburst display
ESP32-S3 pin assignments:
I2S: GPIO 4(BCK), 5(WS), 6(DOUT) CAN TX/RX: GPIO 7/8 MIDI RX: GPIO 16 SD card: GPIO 9(CD), 10(CS), 11(MOSI), 12(SCK), 13(MISO)
Current file set (V11.0):
synth_v11.ino — setup(), loop(), task spawn only synth_engine.h — all type/struct definitions, extern globals, function prototypes synth_engine.cpp — globals, voice management, oscillator, filter, LFO, FM, audio task synth_midi.h/.cpp — MIDI byte processing, noteOn/Off, voice allocation synth_can.h/.cpp — TWAI setup, systemStartup, processCanMessages, sendCanAck synth_params.h — shared CAN parameter definitions, all boards
Architecture:
Audio runs on Core 1 via audioTask(), CAN+MIDI runs on Core 0 via loop() portMUX_TYPE voiceMux protects voice array cross-core access NUM_VOICES_ACTIVE set dynamically from detected oscillator boards at startup (2 per board) TWAI rx_queue_len=64 to handle full parameter dumps
Voice model:
Up to 8 voices (MAX_VOICES), typically 6 active (3 oscillator boards) Even voices (0,2,4,6) are FM/sync masters per board pair Odd voices (1,3,5,7) are FM/sync slaves — can sync to or be FM-modulated by their partner FM: OSC_A (even) modulates OSC_B (odd) phase. fmEnabled, fmDepth on even voice. fmRatio on odd voice Hard sync: per-board-pair, not global. syncEnabled only valid on odd voices Solo: toggle per voice, restricts noteOn to soloed voices only Clone: copies all timbre params including fmEnabled, fmDepth, fmRatio to all other voices. cloneActive global drives all clone LEDs on all boards simultaneously. Second press clears LEDs, cloned params remain
Signal chain per voice: S+H → phaseInc | FM phase offset | Oscillator → Wavefold → SVF Filter → × envLevel × level × velocity Waveforms: SAW, SINE, TRI, PULSE, CHAOS (logistic map), NOISE Modifiers:
FOLD: post-oscillator waveshaper. foldEnabled, foldAmount (0-1), foldBias (-1 to +1) S+H: independent pitch randomiser clock. shEnabled, shRate (0.5-40Hz), shRange (1-48 semitones) FM: fmEnabled, fmDepth (0-1), fmRatio (0.5-8.0)
Play modes: POLY, DUO (half voices per note), UNISON (all voices per note) Gain scaling by mode: UNISON=1.8f, DUO=2.0f, POLY=4.0f (tuned by ear) SVF Filter: Low/Band/High pass. cutoffHz, resonance, envAmount (envelope→cutoff), keyTracking. Coefficients updated on each filter parameter change and at noteOn. Envelope: ADSR. Times stored as float seconds. Coefficients (attackCoeff etc.) computed by updateEnvelopeRates() — must be called at startup and on any time change. LFOs: 2× LFOs. 4 waveforms (SINE/TRI/CHAOS/S&H). Rate, delay, retrigger. No depth — depth is per-route. RETRIGGER is toggle: each CAN message flips state. Ring modulator: 4 voice pair options. level, modMute. Modulation routing (V11 — implementation pending):
| Qty | Value | Footprint | References |
|---|---|---|---|
| 22 | 330R | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23, R26, R27 +6 |
| 22 | LED | LED_THT:LED_D3.0mm_FlatTop | D1, D2, D3, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22 +6 |
| 20 | 4k7 | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R2, R3, R35, R36, R37, R38, R39, R40, R41, R42, R43, R44, R45, R46, R47, R48 +4 |
| 12 | TL2285OA | TMS Parts:TL2285OA | S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16 |
| 7 | 100nF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C3, C4, C5, C8, C9, C10, C11 |
| 6 | MountingHole_Pad | MountingHole:MountingHole_3.2mm_M3_DIN965_Pad | H1, H2, H3, H4, H5, H6 |
| 4 | 10k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R1, R25, R29, R30 |
| 4 | 22pf | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C1, C2, C6, C7 |
| 4 | Link | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R31, R32, R33, R34 |
| 2 | 1k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R24, R53 |
| 2 | 1uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C12, C13 |
| 2 | ChaosR_1 | TMS Parts:RK09K1130AAU | VR3, VR9 |
| 2 | Detune_1 | TMS Parts:RK09K1130AAU | VR1, VR7 |
| 2 | Folds_1 | TMS Parts:RK09K1130AAU | VR4, VR10 |
| 2 | Level_1 | TMS Parts:RK09K1130AAU | VR6, VR12 |
| 2 | MCP23017-E_SO | TMS Parts:SOIC127P1030X265-28N | IC3, IC4 |
| 2 | PulseW_1 | TMS Parts:RK09K1130AAU | VR2, VR8 |
| 2 | S&H_1 | TMS Parts:RK09K1130AAU | VR5, VR11 |
| 1 | 100uF | Capacitor_THT:CP_Radial_D4.0mm_P2.00mm | C15 |
| 1 | 10R | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | FB1 |
| 1 | 10nF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C16 |
| 1 | 120R | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R28 |
| 1 | 16Mhz | Crystal:Crystal_HC49-4H_Vertical | Y2 |
| 1 | 4.7uF | Capacitor_THT:CP_Radial_D4.0mm_P2.00mm | C14 |
| 1 | 8Mhz | Crystal:Crystal_HC49-4H_Vertical | Y1 |
| 1 | ATmega328P-A | Package_QFP:TQFP-32_7x7mm_P0.8mm | U1 |
| 1 | CD74HC4067SM | Package_SO:SSOP-24_5.3x8.2mm_P0.65mm | U2 |
| 1 | ICP Header | Connector_PinSocket_2.54mm:PinSocket_2x03_P2.54mm_Vertical | J1 |
| 1 | Input | Connector_JST:JST_EH_S4B-EH_1x04_P2.50mm_Horizontal | J4 |
| 1 | MCP2515T-I_ST | TMS Parts:SOP65P640X120-20N | IC2 |
| 1 | Output | Connector_JST:JST_EH_S4B-EH_1x04_P2.50mm_Horizontal | J3 |
| 1 | Range_0 | TMS Parts:SR1712F010820F0AN9N027 | S2 |
| 1 | Range_1 | TMS Parts:SR1712F010820F0AN9N027 | S4 |
| 1 | Serial Mon | Connector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_Vertical | J2 |
| 1 | TJA1050T_CM,118 | TMS Parts:SOIC127P600X175-8N | IC1 |
| 1 | Waveform_0 | TMS Parts:SR1712F010820F0AN9N027 | S1 |
| 1 | Waveform_1 | TMS Parts:SR1712F010820F0AN9N027 | S3 |

Bad-Dog-Designs/ESP32-S3-Synthesizer
Source code and KiCad Files for the build of an ESP32 S3 Based synthesizer. CAN bus is used extensively to collect all the pots and switch data and send to the ESP32 engine

Bad-Dog-Designs/ESP32-S3-Synthesizer
Source code and KiCad Files for the build of an ESP32 S3 Based synthesizer. CAN bus is used extensively to collect all the pots and switch data and send to the ESP32 engine

Bad-Dog-Designs/ESP32-S3-Synthesizer
Source code and KiCad Files for the build of an ESP32 S3 Based synthesizer. CAN bus is used extensively to collect all the pots and switch data and send to the ESP32 engine

johnb302/cmu-embedded
Repo for distributed embedded systems at CMU, 18-449




heiso/macrolev
Macrolev is an open source analog keyboard powered by Hall Effect switches



It measures 229 × 96 mm and has 2 copper layers, 1.6 mm thick.
138 parts, built around the ATMEGA328P-AU, CD74HC4067SM96 and MCP2515T-I/ST-HX. 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.
From the Bad-Dog-Designs/ESP32-S3-Synthesizer repository on GitHub, at the commit this page was made from: the board is Oscillator_Board/Oscillator_Board.kicad_pcb and its schematic Commons_Board/Commons_Board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask Bad-Dog-Designs before reusing the design.