

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
7OPA1678IDRGR
WSON-8-EP(3x3)-18V~-2.25V、2.25V~18V -40℃~+85℃ 10pA 10pA 110dB 16MHz 2 2mA 2uV/℃ 4.5V~36V 4.5nV/√Hz@1kHz 500uV 50mA 9V/us Built-in compensation、ESD protection Rail-to-rail output WSON-8-EP(3x3) Operational Amplifier ROHSTexas InstrumentsAudio AmplifiersPCM1808PW
TSSOP-14-40℃~+85℃ 1uA、150uA 2 24 4.5V~5.5V 49.152MHz 96000Hz Audio Analog-to-Digital Converter I2S TSSOP-14 ADCs/DACs - Special Purpose ROHSTexas InstrumentsADCs/DACs - Special PurposeAP2112K-3.3TRG1
SOT-25-5-40℃~+85℃@(Ta) 1 250mV@(600mA) 3.3V 50uVrms 55uA 600mA 65dB@(1kHz) 6V Fixed Over Current Protection、Thermal Shutdown、Enable control Positive SOT-25-5 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSDiodes IncorporatedVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsL78M05CDT-TR
TO-252-2(DPAK)0℃~+150℃ 1 2V 35V 40uV 500mA 5V 62dB@(120Hz) 6mA Fixed、Adjustable Over Current Protection、Over Temperature Protection、Short Circuit Protection Positive TO-252-2(DPAK) Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSSTMicroelectronicsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsPCM5102APW
TSSOP-20-25℃~+85℃ 1.8V~3.3V 2 32 384kHz 500uA 50MHz Audio Decoder Digital filtering、Power-down mode I2S TSSOP-20 ADCs/DACs - Special Purpose ROHSTexas InstrumentsADCs/DACs - Special PurposeSS14
SMA(DO-214AC)-55℃~+150℃ 1A 25A 300uA@40V 40V 550mV@1A Independent SMA(DO-214AC) Schottky Diodes ROHSMDDSchottky DiodesSS34
SMA(DO-214AC)-55℃~+125℃ 3A 40V 500uA@40V 550mV@3A Independent SMA(DO-214AC) Schottky Diodes ROHSMDDSchottky Diodes
README
README.mdGuitar 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.
guitar -> input buffer -> ADC (PCM1808) -> STM32F411 (DSP) -> DAC (PCM5102A) -> output stage -> amp
op-amp 24-bit C firmware 32-bit op-amp| Effect | Knobs | Footswitch / LED |
|---|---|---|
| Overdrive | DRIVE (gain 1x to 151x), TONE (800 Hz to 8 kHz) | OD, red LED |
| Tremolo | RATE (0.5 to 12 Hz), DEPTH (0 to 100 %) | TREM, yellow LED blinks at the rate |
| Delay | TIME (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
| Choice | Why |
|---|---|
| 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 DAC | The 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 supply | Low noise, rail-to-rail output. Works from the pedal's 9 V with a 4.3 V "virtual ground" (VBIAS). |
| 9 V DC, centre-negative | The normal guitar-pedal power supply. |
| KiCad 7 | Free, 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 only | All 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
| Part | Status | How it was checked |
|---|---|---|
| DSP effects (C) | Done | 9 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 STM32 | Done, builds | Compiles 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 circuits | Done | ngspice 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/). |
| Schematic | Done | 9 sheets, 66 nets. A script checks every pin against the design list: 271 pins, 0 errors. |
| PCB | Done | 85 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 files | Done | Gerbers + drill, BOM and pick-and-place for JLCPCB, a list of the parts you buy yourself. |
| Enclosure | Done | 1:1 printable drilling template, hole positions taken from the PCB. |
Things I could not check from here
- Nothing has been built or powered yet. The firmware has not run on hardware, and the board has not been made.
- 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.
- 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).
- Box size. The template is drawn for a 1590XX. Measure your own box.
Files
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 stagesRebuilding 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 19 | 100nF | Capacitor_SMD:C_0805_2012Metric | C2, C17, C19, C20, C25, C26, C27, C31, C33, C34, C35, C36, C37, C38, C39, C40 +3 |
| 12 | 1k | Resistor_SMD:R_0805_2012Metric | R4, R8, R14, R19, R20, R21, R22, R23, R24, R25, R26, R27 |
| 10 | 10uF | Capacitor_SMD:C_0805_2012Metric | C4, C7, C12, C14, C16, C18, C24, C29, C30, C32 |
| 5 | 10k | Resistor_SMD:R_0805_2012Metric | R1, R2, R7, R9, R12 |
| 4 | 1uF | Capacitor_SMD:C_0805_2012Metric | C3, C6, C15, C23 |
| 4 | 33 | Resistor_SMD:R_0805_2012Metric | R15, R16, R17, R18 |
| 4 | 470 | Resistor_SMD:R_0805_2012Metric | R10, R28, R29, R30 |
| 2 | 100pF | Capacitor_SMD:C_0805_2012Metric | C10, C11 |
| 2 | 1M | Resistor_SMD:R_0805_2012Metric | R3, R5 |
| 2 | 2.2nF | Capacitor_SMD:C_0805_2012Metric | C13, C28 |
| 2 | 2.2uF | Capacitor_SMD:C_0805_2012Metric | C21, C22 |
| 2 | GND | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP5, TP6 |
| 1 | +3V3A | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP3 |
| 1 | +5V | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP2 |
| 1 | +9V | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP1 |
| 1 | 100k | Resistor_SMD:R_0805_2012Metric | R13 |
| 1 | 100uF 25V | Capacitor_SMD:CP_Elec_6.3x7.7 | C1 |
| 1 | 22k | Resistor_SMD:R_0805_2012Metric | R11 |
| 1 | 47uF 25V | Capacitor_SMD:CP_Elec_6.3x5.4 | C8 |
| 1 | 5.1k | Resistor_SMD:R_0805_2012Metric | R6 |
| 1 | 600R@100MHz | Inductor_SMD:L_0805_2012Metric | FB1 |
| 1 | 9V_DC_IN | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J1 |
| 1 | AP2112K-3.3 | Package_TO_SOT_SMD:SOT-23-5 | U2 |
| 1 | B10k DEPTH | Potentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_Vertical | RV4 |
| 1 | B10k DRIVE | Potentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_Vertical | RV1 |
| 1 | B10k RATE | Potentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_Vertical | RV3 |
| 1 | B10k REPEATS | Potentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_Vertical | RV6 |
| 1 | B10k TIME | Potentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_Vertical | RV5 |
| 1 | B10k TONE | Potentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_Vertical | RV2 |
| 1 | BCK | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP8 |
| 1 | DAC_OUTL | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP11 |
| 1 | FOOTSWITCHES | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J6 |
| 1 | GUITAR_IN | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J2 |
| 1 | IN_BUF | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP10 |
| 1 | L78M05 | Package_TO_SOT_SMD:TO-252-2 | U1 |
| 1 | LED DELAY green | LED_THT:LED_D3.0mm | D5 |
| 1 | LED OD red | LED_THT:LED_D3.0mm | D3 |
| 1 | LED TREM yellow | LED_THT:LED_D3.0mm | D4 |
| 1 | LRCK | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP9 |
| 1 | MCLK | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP7 |
| 1 | OPA1678 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U3 |
| 1 | OUT | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J3 |
| 1 | OUT_BUF | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP12 |
| 1 | PCM1808 | Package_SO:TSSOP-14_4.4x5mm_P0.65mm | U4 |
| 1 | PCM5102A | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U5 |
| 1 | SS14 | Diode_SMD:D_SMA | D2 |
| 1 | SS34 | Diode_SMD:D_SMA | D1 |
| 1 | UART | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J5 |
| 1 | VBIAS | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP4 |
| 1 | WeAct BlackPill STM32F411CEU6 | pedal:BlackPill_Sockets | U6 |
Similar boards
- 2 layers82 × 98 mm

- 2 layers110 × 69 mm

- 4 layers192 × 315.1 mm

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 mm

Raven
agranlund/raven
Homemade MC68060 + DSP56303 Atari-compatible computer. Hardware, firmware, and software stack
331 parts87 - 2 layers128 × 70.5 mm

- 2 layers138 × 114 mm

- 4 layers100 × 100 mm

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 mm

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.