Skip to the content
4 layers60 × 95 mmSTM32H7 GuitarPedal, the printed circuit board in 3D

STM32H7 GuitarPedal

GuitarML/GuitarPedalSTM32100

Guitar pedal using a stm32h7 microcontroller programmed with CubeIDE (PCB and Firmware)

Size
60 × 95 mm
Copper layers
4
Thickness
1.63 mm
Parts
101
Nets
131
Pads
393
Tracks, vias
986, 164
Pours
4
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
25 Sep 2026
Updated
28 Sep 2026

Overview

STM32H7 GuitarPedal is an open-source printed circuit board by GuitarML, from the GuitarML/GuitarPedalSTM32 repository on GitHub, published under the MIT licence. It is a 4-layer board of 60 × 95 mm with 101 parts on 131 nets, routed with 986 tracks and 164 vias.

It is built around the MCP6002-I/P, CS4270-CZZ and OPA1652AID, with the CPC1018N, ASMB-MTB0-0A3A2 and SS8050 among its other parts. Its parts include 44 capacitors, 23 resistors, 8 ICs, 5 diodes and 4 connectors. It belongs with the audio and music boards and the STM32 boards of this library.

Main components

6

README

README.md

STM32 Guitar Pedal

This is a custom STM32 digital guitar pedal with firmware programmed in c++ using STM32CubeIDE. It uses a STM32H7B0 Arm Cortex-M7 microcontroller running at 280MHz with 1.4MB SRAM and 128kb of flash. The PCB is designed using KiCad, and the JLCpcb Gerbers are included for easy ordering. This pedal is capable of reverbs, delays, granular, filtering, amp and cabsims, and anything else you can think up.

YouTube Walkthrough

app

Hardware Features:

  • Mono input/output audio
  • Expression input
  • 6 knobs, 2 three-way SPDT switches (or subset of these if desired)
  • Two Footswitches
  • Optional single footswitch and 3 color RGB led (5mm) configuration
  • 9v DC center negative (standard guitar pedal power)
  • Buffered input/output when effect active
  • True Bypass Relay with active muting for quiet switching
  • 48kHz/24 bit digital audio processing (adjustable in code up to 216kHz with CS4270)
  • 4 layer pcb with internal ground planes

Dev Features:

  • 280MHz core processing speed
  • 1.4MB SRAM (1MB contiguous block available)
  • 128KB of Flash for storing programs
  • Cirrus Logic CS4270 codec (24-bit, 216 kHz, 105 dB dynamic range)
  • Code set up to use STM32CubeIde with c++
  • Program/Debug over 10 pin JTAG header using ST-Link v3

Hardware

Typical build process:

  1. Order the assembled PCB from JLCpcb (or other manufacturer), minimum 2 assembled. I use ENIG finish and keep the other pcb options as default. (Typical two week order time)
  2. Order the soldered components (Six 16mm right angle potentiometers, 2 three way toggles, 2 Footswitches (and wire), Two 3mm LEDs, Two 3mm LED bezels) (Tayda, LoveMySwitches, Mouser, etc.) (Typical 1-2 week order time)
  3. Order the drilled enclosure from Tayda (powder coat / UV print optional). (Varies two weeks to a month order time depending on how busy they are)
  4. Solder potentiometers and switches (Ensure to insulate the toggle base using electrical tape, tight fit with potentiometers), and fit check with enclosure (use enclosure to ensure proper fit while soldering).
  5. Remove pcb from enclosure, solder LEDs using enclosure as guide for height. (Double check pcb layout for correct orientation)
  6. Solder wires to footswitches, solder footswitch wires to pcb.
  7. Final install of pcb with all components, bolt on all components to enclosure. Install knobs on potentiometers.

IMPORTANT: When ordering the pcb using the included Gerbers, you will need to change the orientation of certain parts (most of the ICs) using the visualization tool (during JLCPcb's ordering process). This is because the part data from Kicad exported to the .pos file are different from what JLCpcb expects. Compare part orientation from their online tool to the Kicad PCB layout. Double check all ICs, relays, transistors, LDOs, and diodes.

IMPORTANT: The control layout spacing for the potentiometers and toggles is very tight. The toggle switch base must be insulated from the neighboring potentiometer legs or it could create a short. I typically wrap the base of the toggles in electrical tape twice to ensure proper insulation.

IMPORTANT: The potentiometers require dust covers such as these to avoid shorting out connections on the backside of the pcb.

NOTE: The power jack is intended to protrude from the pcb edge, fitting slightly into the rectangle cutout in the enclosure. May take some adjustment once potentiometers are soldered, recommended to adjust prior to soldering potentiometers/toggles, using the three 1/4" jack mounts to hold in place.

Tayda Drill Templates: Two Footswitch, Two Single Color LED version Single Footswitch and RGB LED version

NOTE: If you want to use the Single Footswitch/RGB LED version, you will need to change the peripheral settings. One of the footswitches changes from a GPIO input to a GPIO output (use pcb layout and schematic for guidance). Alternatively, you can change the LED pins from on/off GPIO outputs to Timer based PWM for brightness control.

PCB from JLCpcb: app

Software

The effect in the main branch is an example delay/reverb using DaisySP. Other effects may be added as separate branches in this repo. I've found this to be the cleanest way to keep different configurations separate, rather than trying to comment out certain parts or use ifdef's. By default, the right footswitch is bypass, and the left footswitch is an aux function activated by holding the footswitch. This of course can be changed to whatever you want to do.

Connecting the pedal with ST-Link v3: app

Default Reverb/Delay

The example effect in the main branch is a Reverb/Delay using DaisySP.
Controls:
Knob1: Reverb Mix
Knob2: Reverb Time
Knob3: Reverb Filter (Damping)
Knob4: Delay Mix
Knob5: Delay Time
Knob6: Delay Feedback

Left Toggle is Routing
Up: Delay into Reverb
Center: Parallel Reverb/Delay
Down: Reverb into Delay

Right Toggle is Delay Mode
Up: Normal Forward Delay
Center: Octave Delay
Down: Reverse Delay

Right Footswitch is Bypass (pedal boots up in true bypass)
Left Footswitch is Hold/Freeze (Holds reverb/delay feedback, no new signal to effects)

Expression is an alternate control for Delay Time

Importing the Project

I use STM32CubeIDE version 2.2 for Windows. If you use a different version, migrating the code or updating your IDE may be required.

  1. Clone the repository
  2. Open STM32CubeIDE.
  3. Go to File > Import
  4. Select General > Existing Projects into Workspace and click Next.
  5. Browse to the Root Directory where you cloned the project. Ensure "Copy projects into workspace" is Unchecked.
  6. Click Finish.

Set the Boot Configuration Bytes (option bytes)

You may need to use STM32CubeProgrammer to set the boot configuration bytes, telling the MCU to boot from flash. If this is not set properly, it will work the first time after flashing from STM32CubeIDE, but after resetting power it will boot from the bootloader and not run your compiled program from flash memory.

Note: This can also be done in hardware, by pulling the boot pin low by connecting it to ground through a resistor. This wasn't required from my previous board using a different STM32H7, so I didn't do this on this hardware design. May be worth updating on future revisions.

  1. Download and install STM32CubeProgrammer.
  2. Connect the pedal via the 10 pin JTAG header using ST-Linkv3 and also apply power to the pedal from a 9v DC center negative adapter (the normal way you would power the pedal).
  3. Select the JTAG port from the menu in STM32CubeProgrammer and Connect.
  4. Navigate to "Boot address Option Bytes" and click drop down.
  5. Modify both BOOT_CM7_ADD0 and BOOT_CM7_ADD1 rows to Value: "0x800" and Address: "0x08000000" (no quotation marks)
  6. Click Apply to save settings.
  7. Verify the pedal boots from flash (runs your program) when cycling power.

Using c++ instead of c with STM32CubeIDE

This project has been set up as a c++ project, however, STM32CubeIDE still auto generates a .c when moving from the MX view to the code view. As a work-around, if changes are made to the .ioc file in MX view, you will need to rename "main.cpp" to "main.c" beforehand. Once it is renamed, make the changes in MX and save and generate code. The code will be generated in "main.c". You can then rename "main.c" to "main.cpp" to compile the program. If you don't rename, a "main.c" file will be generated with your changes, and no changes will be made to "main.cpp".

PCB Design Choices and Trade Offs

This particular pedal is intended as a platform for myself and others to design and test new guitar effect algorithms. As someone coming from using the Daisy Seed, I wanted to dive deeper into understanding how microcontrollers work, and how to design custom boards using STM32. I also wanted to do something different from my Daisy Seed based SoundSketch, rather than just try and recreate that same pedal without the Daisy Seed. The result is a more limited version of that pedal, using Mono processing, expression, no Midi, and a slower MCU. It does have more internal SRAM (1.4MB vs 1MB), with a 1MB contiguous block (vs Daisy Seed / H750 512KB contiguous block), that can be used for things like data arrays and audio buffers.

There were also practical considerations / trade offs such as part availability and price through JLCpcb parts library. I wanted to design a high quality board while maintaining a minimal cost for pcb manufacturing and assembly. If you were to design your own board for commercial use you may want to consider these trade-offs and make changes that best fit your needs:

  1. CS4270 codec (discontinued but still in circulation and available at JLCPcb) chosen for cheap price (~$2.50) vs. later CS4272 or more modern TAC5242 (used on Daisy Seed v3).
  2. Class 2 MLCC capacitors used in all locations except power filtering. For the audio path it's typically recommended to use Class 1 MLCC, Tantalum, or Electrolytic, due to Class 2 MLCCs being microphonic. Due to availability/price the Class 2 MLCCs are used in my design, but I haven't noticed lower quality audio or microphonic noise from the pedal.
  3. Stereo audio jacks are used even though I only use Mono here. These are the ones typically available by JLCpcb, I haven't seen the mono, 1/4" board mounted jacks. The ring connection is unused and grounded.
  4. Other improvements for manufacturing I've considered (but haven't gotten around to) is clip-in footswitches (ease of removing/installing if they go bad), and board mounted LEDs with light pipes (although this would require 2 sided assembly).

It was important to me that this design was a single board, with one sided assembly, to keep the price down, but a common practice in commercial pedals is to have a separate board for controls connected via a ribbon cable. This would allow for cheap repair if a potentiometer or switch goes bad.

When I ordered two assembled boards (with 3 blank pcbs due to minimum 5 at JLCpcb), the total price with shipping to USA was $250, with $90 of that being shipping/tariffs. The base price was around $160, which I think is reasonable. As the quantity goes up, the price per board decreases. This is due to the additional $3 per unique "Extended" part (as opposed to "Basic" parts) in the JLCpcb parts library. The $3 is a one time charge per unique Extended part in the BOM no matter how many pcbs you order. This fee is for manually loading the reels into the pick and place machine. The resistors/capacitors with standard values are "Basic", while pretty much everything else in this design is "Extended".

Acknowledgements

The pcb design and code rely heavily on what I learned from Phil's Lab YouTube channel, as well as his related open source repositories on Github. The final MCU/codec combination I use here is the same used in the guitar pedal shown in many of the Phil's Lab videos.

The reverbsc_in16 included here is a modified version of the DaisySp reverbsc that uses int16 instead of floats in the audio buffer. This halves the amount of RAM used for the reverb.

The reverse delay effect by Adam Fulford, used in util/delayline_reverse.h.

Parts

101
QtyValueFootprintReferences
15100nCapacitor_SMD:C_0603_1608MetricC5, C7, C8, C9, C10, C12, C13, C14, C16, C30, C35, C47, C48, C57, C58
710UFCapacitor_SMD:C_0805_2012MetricC3, C17, C21, C27, C34, C37, C41
72.2uCapacitor_SMD:C_0805_2012MetricC1, C2, C15, C49, C50, C55, C56
610KCustomFootprints:Pot_RightAngle_LongPin_16mmPOT1, POT2, POT3, POT4, POT5, POT6
62MResistor_SMD:R_0805_2012MetricR10, R13, R17, R18, R23, R33
5100NFCapacitor_SMD:C_0805_2012MetricC26, C31, C32, C39, C40
31KResistor_SMD:R_0805_2012MetricR1, R22, R25
35k1Resistor_SMD:R_0603_1608MetricR16, R27, R28
2100KResistor_SMD:R_0805_2012MetricR11, R14
2100u 35VCapacitor_SMD:CP_Elec_6.3x7.7C45, C46
210pCapacitor_SMD:C_0603_1608MetricC43, C44
21k5Resistor_SMD:R_0805_2012MetricR15, R26
21uCapacitor_SMD:C_0603_1608MetricC6, C11
22.2kResistor_SMD:R_0603_1608MetricR5, R6
22KResistor_SMD:R_0805_2012MetricR31, R32
2600Ω@100MHzInductor_SMD:L_0805_2012MetricFB1, FB2
2MCP6002Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU2, U6
2SW_SPDTCustomFootprints:SW_Toggle_SPDT_lugsSW3, SW4
1100RResistor_SMD:R_0805_2012MetricR21
110kResistor_SMD:R_0805_2012MetricR2
11N4007Diode_SMD:D_SOD-123FD2
11N5817Diode_SMD:D_SOD-123D1
1200Ω@100MHzInductor_SMD:L_0805_2012MetricFB3
1220pCapacitor_SMD:C_0805_2012MetricC52
12N7Capacitor_SMD:C_0805_2012MetricC53
13u3Capacitor_SMD:C_0805_2012MetricC28
1470RResistor_SMD:R_0805_2012MetricR7
147UFCapacitor_SMD:C_0805_2012MetricC36
1ASMB-MTB0-0A3A2LED_THT:LED_D5.0mm-4_RGBD3
1AUDIO_IN_TRSNMJ6HCD2:NEUTRIK_NMJ6HCD2J1
1AUDIO_OUT_TRSNMJ6HCD2:NEUTRIK_NMJ6HCD2J2
1Barrel_Jack_SwitchGuitarPedal125B:Generic_PowerJackJ3
1CPC1018NPackage_SO:SOP-4_3.8x4.1mm_P2.54mmU8
1CS4270Package_SO:TSSOP-24_4.4x7.8mm_P0.65mmU4
1Crystal_GND24 16MhzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1EXPRESSION JACKCustomSTM32h7Library:NEUTRIK_NMJ6HCD2J5
1Foot_Switch_1Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalFS1
1Foot_Switch_2Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalFS2
1G6K-2Relay_SMD:Relay_DPDT_Omron_G6K-2G-YK1
1LD1117S50TR_SOT223Package_TO_SOT_SMD:SOT-223-3_TabPin2U1
1LED_1Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalLED1
1LED_2Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalLED2
1M05X2MINIJTAGConnectorCustomLibrary:20021121-00010C4LF_JTAGJP1
1OPA1652AIDPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU3
1SS8050Package_TO_SOT_SMD:SOT-23-3Q1
1STM32H7B0VBTxPackage_QFP:LQFP-100_14x14mm_P0.5mmU9
1TLV76733QWDRBxQ1Package_SON:VSON-8-1EP_3x3mm_P0.65mm_EP1.65x2.4mmU7

Similar boards

  • 4 layers60 × 94 mmDaisySeedPedal125b, the printed circuit board in 3D

    DaisySeedPedal125b

    bkshepherd/DaisySeedProjects

    A collection of hardware and software projects based around the Electro-Smith Daisy Seed

    80 parts559MIT
  • 4 layers60 × 94 mmDaisySeedPedal125b, the printed circuit board in 3D

    DaisySeedPedal125b

    alxp1982/DaisySeedProjects

    A collection of hardware and software projects based around the Electro-Smith Daisy Seed

    79 partsMIT
  • 2 layers130 × 80 mmSmu main 1, the printed circuit board in 3D

    Smu main 1

    jaromir-sukuba/J-SMU

    DIY source-measure unit

    210 parts244
  • 2 layers150 × 53.5 mmDiy smu, the printed circuit board in 3D

    Diy smu

    sverrham/diy-smu

    DIY Source Measurement Unit, four quadrant powersupply and ?.? digit volt/current meter.

    209 parts2
  • 2 layers40.9 × 85 mmStudio mic, the printed circuit board in 3D

    Studio mic

    Spirit532/studio_mic

    A simple, easy to build preamplifier for any true condenser capsule, to make a condenser microphone

    63 parts150MIT
  • 2 layers240 × 194 mmInfinitas, the printed circuit board in 3D

    Infinitas

    freeDSP/freeDSP-INFINITAS

    USB Audio Class 2 compliant audio interface with up to 32 input and up to 32 output channels and optional ADAU1452 DSP.

    1,020 parts35
  • 2 layers100 × 100 mmFreeDSP Catamaran, the printed circuit board in 3D

    FreeDSP Catamaran

    freeDSP/FreeDSP_Catamaran_AB

    A mono contruction Differntial 1 Input 4 output ADAU1701 DSP board, 96kHz TDM8 interlink is available.

    257 parts12CC0-1.0

Questions

How big is the STM32H7 GuitarPedal PCB?

It measures 60 × 95 mm and has 4 copper layers, 1.63 mm thick.

What parts does the STM32H7 GuitarPedal use?

101 parts, built around the MCP6002-I/P, CS4270-CZZ, OPA1652AID and CPC1018N. 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 STM32H7 GuitarPedal KiCad files?

From the GuitarML/GuitarPedalSTM32 repository on GitHub, at the commit this page was made from: the board is hardware/STM32H7B0_GuitarPedal/STM32H7_GuitarPedal.kicad_pcb and its schematic hardware/STM32H7B0_GuitarPedal/Audio_Input_Buffer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the STM32H7 GuitarPedal 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).