Skip to the content
2 layers85 × 76 mmPedal, the printed circuit board in 3D

A digital guitar pedal. Guitar in, an STM32 microcontroller runs three effects (overdrive, then tremolo, then delay), and the sound comes out to your amp. It has six knobs, three footswitches and three LEDs.

Size
85 × 76 mm
Copper layers
2
Thickness
1.6 mm
Parts
106
Nets
66
Pads
303
Tracks, vias
906, 322
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
16 Oct 2026
Updated
16 Oct 2026

Overview

Pedal is an open-source printed circuit board by GasimovDev, from the GasimovDev/guitar-pedal repository on GitHub. It is a 2-layer board of 85 × 76 mm with 106 parts on 66 nets, routed with 906 tracks and 322 vias.

It is built around the OPA1678IDRGR, PCM1808PW and AP2112K-3.3TRG1, with the L78M05CDT-TR, PCM5102APW and SS14 among its other parts. Its parts include 41 capacitors, 30 resistors, 6 ICs, 5 diodes and 5 connectors. It belongs with the audio and music boards and the STM32 boards of this library.

Main components

7

README

README.md

Guitar effects pedal: overdrive, tremolo and delay on your own PCB

A digital guitar pedal. Guitar in, an STM32 microcontroller runs three effects (overdrive, then tremolo, then delay), and the sound comes out to your amp. It has six knobs, three footswitches and three LEDs.

text
guitar -> input buffer -> ADC (PCM1808) -> STM32F411 (DSP) -> DAC (PCM5102A) -> output stage -> amp
              op-amp          24-bit          C firmware          32-bit            op-amp
EffectKnobsFootswitch / LED
OverdriveDRIVE (gain 1x to 151x), TONE (800 Hz to 8 kHz)OD, red LED
TremoloRATE (0.5 to 12 Hz), DEPTH (0 to 100 %)TREM, yellow LED blinks at the rate
DelayTIME (40 to 800 ms), REPEATS (0 to 90 % feedback)DELAY, green LED

What you do next is in the build guide. It covers only the jobs that need your hands: ordering, soldering, flashing, measuring and drilling.

Parts I picked, and why

ChoiceWhy
WeAct Black Pill, STM32F411CEU6 (plugs into sockets)Cheap, very well documented, has a hardware floating-point unit and full-duplex I2S. On sockets, so you can unplug it to flash it and the factory never touches it.
PCM1808 ADC + PCM5102A DACThe standard hobby I2S audio pair. Few support parts, cheap, and the DAC makes its own negative supply, so its output is centred on 0 V.
OPA1678 op-amp, single 9 V supplyLow noise, rail-to-rail output. Works from the pedal's 9 V with a 4.3 V "virtual ground" (VBIAS).
9 V DC, centre-negativeThe normal guitar-pedal power supply.
KiCad 7Free, and the factory accepts its files.
Bare-metal C (CMSIS registers, no HAL)Small, and every line is readable. Builds with arm-none-eabi-gcc and make.
JLCPCB assembly, bottom side onlyAll 79 small surface-mount parts are soldered by the factory. You solder only big through-hole parts.
Hammond 1590XX box (145 x 121 x 39 mm)Room for 6 knobs and 3 footswitches.

What is done, and how it was checked

PartStatusHow it was checked
DSP effects (C)Done9 automated tests on the PC, all pass: bypass is exact, overdrive THD goes from 0.6 % to 38 %, tremolo rate and depth, delay echo lands at 420.00 ms, maximum repeats die out, no clicks when switching. Run make test in firmware/.
Firmware for the STM32Done, buildsCompiles with no warnings: 8.8 KB flash, 81 KB RAM (most of it is the 0.83 s delay memory). Not yet run on a real chip.
Analog circuitsDonengspice simulation: input stage gain x1.45 with -3 dB points at 2.2 Hz and 59.6 kHz; output stage x0.308 with -3 dB at 1 Hz and 150 kHz. A hard strum (1 V peak) uses about 2.9 V of the ADC's 3 V range. See sim/analog_sim.png (also in docs/img/).
SchematicDone9 sheets, 66 nets. A script checks every pin against the design list: 271 pins, 0 errors.
PCBDone85 x 76 mm, 2 layers, ground pour on both sides. KiCad design-rule check: 0 errors, 0 unconnected. 3 warnings remain: three through-hole ground pads have 1 thermal spoke instead of 2 (still connected; harmless).
Factory filesDoneGerbers + drill, BOM and pick-and-place for JLCPCB, a list of the parts you buy yourself.
EnclosureDone1:1 printable drilling template, hole positions taken from the PCB.

Things I could not check from here

  1. Nothing has been built or powered yet. The firmware has not run on hardware, and the board has not been made.
  2. LCSC part numbers are blank in the BOM. I can't reach the JLCPCB parts catalogue from here, so you pick each part in their BOM tool. The guide shows how.
  3. Black Pill pin order. I took it from the stm32-base.org pin tables. Check it against your module before you order (the guide's first step).
  4. Box size. The template is drawn for a 1590XX. Measure your own box.

Files

text
guitar-pedal/
  README.md                     this file
  docs/design-notes.md          how every stage works, with the numbers
  docs/img/                     simulation plot, effect plots, PCB pictures
  firmware/
    build/pedal.bin, pedal.hex  ready to flash
    src/                        main.c, audio_io.c (I2S + DMA), controls.c (knobs, switches, LEDs), clock.c, uart.c, startup.c, board.h (pin map)
    dsp/effects.c               the three effects (plain C, also runs on a PC)
    host/                       PC test bench: `make test` runs the tests and writes demo WAVs to host/out/
    Makefile                    make / make flash-dfu / make flash-stlink / make test
  hardware/
    pedal.kicad_pro             open this in KiCad 7
    fab/pedal-gerbers.zip       upload to JLCPCB
    fab/bom_jlc.csv, cpl_jlc.csv   factory assembly files
    fab/hand_parts.csv          what you buy and solder yourself
    fab/schematic.pdf           the schematic, 9 pages
    fab/enclosure-drill-template.pdf   print at 100 %
    fab/pcb_top.png, pcb_bottom.png
    gen/                        Python scripts that generate the whole KiCad project
  sim/analog.cir, run_sim.py    ngspice simulation of the analog stages

Rebuilding from the scripts (optional)

Everything in hardware/ is generated by the scripts in hardware/gen/, run in this order: gen_libs.py, gen_sch.py, check_netlist.py, gen_pcb.py, gen_pro.py, route.py, drc.py, export.py, enclosure.py. They need KiCad 7's Python module, and route.py also needs Java and freerouting.jar (Freerouting 2.5, not included because it is 65 MB).

Parts

106
QtyValueFootprintReferences
19100nFCapacitor_SMD:C_0805_2012MetricC2, C17, C19, C20, C25, C26, C27, C31, C33, C34, C35, C36, C37, C38, C39, C40 +3
121kResistor_SMD:R_0805_2012MetricR4, R8, R14, R19, R20, R21, R22, R23, R24, R25, R26, R27
1010uFCapacitor_SMD:C_0805_2012MetricC4, C7, C12, C14, C16, C18, C24, C29, C30, C32
510kResistor_SMD:R_0805_2012MetricR1, R2, R7, R9, R12
41uFCapacitor_SMD:C_0805_2012MetricC3, C6, C15, C23
433Resistor_SMD:R_0805_2012MetricR15, R16, R17, R18
4470Resistor_SMD:R_0805_2012MetricR10, R28, R29, R30
2100pFCapacitor_SMD:C_0805_2012MetricC10, C11
21MResistor_SMD:R_0805_2012MetricR3, R5
22.2nFCapacitor_SMD:C_0805_2012MetricC13, C28
22.2uFCapacitor_SMD:C_0805_2012MetricC21, C22
2GNDTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP5, TP6
1+3V3ATestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP3
1+5VTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP2
1+9VTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP1
1100kResistor_SMD:R_0805_2012MetricR13
1100uF 25VCapacitor_SMD:CP_Elec_6.3x7.7C1
122kResistor_SMD:R_0805_2012MetricR11
147uF 25VCapacitor_SMD:CP_Elec_6.3x5.4C8
15.1kResistor_SMD:R_0805_2012MetricR6
1600R@100MHzInductor_SMD:L_0805_2012MetricFB1
19V_DC_INConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U2
1B10k DEPTHPotentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_VerticalRV4
1B10k DRIVEPotentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_VerticalRV1
1B10k RATEPotentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_VerticalRV3
1B10k REPEATSPotentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_VerticalRV6
1B10k TIMEPotentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_VerticalRV5
1B10k TONEPotentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_VerticalRV2
1BCKTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP8
1DAC_OUTLTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP11
1FOOTSWITCHESConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ6
1GUITAR_INConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ2
1IN_BUFTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP10
1L78M05Package_TO_SOT_SMD:TO-252-2U1
1LED DELAY greenLED_THT:LED_D3.0mmD5
1LED OD redLED_THT:LED_D3.0mmD3
1LED TREM yellowLED_THT:LED_D3.0mmD4
1LRCKTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP9
1MCLKTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP7
1OPA1678Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU3
1OUTConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ3
1OUT_BUFTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP12
1PCM1808Package_SO:TSSOP-14_4.4x5mm_P0.65mmU4
1PCM5102APackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU5
1SS14Diode_SMD:D_SMAD2
1SS34Diode_SMD:D_SMAD1
1UARTConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ5
1VBIASTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP4
1WeAct BlackPill STM32F411CEU6pedal:BlackPill_SocketsU6

Similar boards

  • 2 layers82 × 98 mmCalkaBot PCB, the printed circuit board in 3D

    CalkaBot PCB

    JakubKivi/CalkaBot3K0

    Minisumo robot with an opponent-lifting system

    39 partsMIT
  • 2 layers110 × 69 mmSolenoid main board, the printed circuit board in 3D

    Solenoid main board

    krimarty/pcbs_kriz

    Repository for all of Martin's PCBs

    17 parts
  • 4 layers192 × 315.1 mmAesa, the printed circuit board in 3D

    Aesa

    tieziyun/ultrasonic-aesa

    A 40 kHz in-air phased array, an acoustic "AESA". It has 64 transducers in an 8 × 8 grid, and each one can transmit or listen under FPGA control, element by element and ping by ping.

    2,139 parts
  • 6 layers243.8 × 243.8 mmRaven, the printed circuit board in 3D

    Raven

    agranlund/raven

    Homemade MC68060 + DSP56303 Atari-compatible computer. Hardware, firmware, and software stack

    331 parts87
  • 4 layers100 × 100 mmCat a hack, the printed circuit board in 3D

    Cat a hack

    rimio/cat-a-hack

    Prototyping board for PC/μC to transceiver isolation.

    175 partsCC-BY-SA-4.0
  • 2 layers34.3 × 31.8 mmLight trainer, the printed circuit board in 3D

    Light trainer

    Forestierr/Light_trainer

    Light pour l'entrainement sportif, physique et mental.

    30 parts1Apache-2.0

Questions

How big is the Pedal PCB?

It measures 85 × 76 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Pedal use?

106 parts, built around the OPA1678IDRGR, PCM1808PW, AP2112K-3.3TRG1 and L78M05CDT-TR. 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 Pedal KiCad files?

From the GasimovDev/guitar-pedal repository on GitHub, at the commit this page was made from: the board is hardware/pedal.kicad_pcb and its schematic hardware/adc.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Pedal design in my own project?

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