
DaisySeedPedal125b
bkshepherd/DaisySeedProjects
A collection of hardware and software projects based around the Electro-Smith Daisy Seed

Guitar pedal using a stm32h7 microcontroller programmed with CubeIDE (PCB and Firmware)
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.
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.

Hardware Features:
Dev Features:
Typical build process:
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:

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:

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
I use STM32CubeIDE version 2.2 for Windows. If you use a different version, migrating the code or updating your IDE may be required.
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.
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".
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:
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".
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.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 15 | 100n | Capacitor_SMD:C_0603_1608Metric | C5, C7, C8, C9, C10, C12, C13, C14, C16, C30, C35, C47, C48, C57, C58 |
| 7 | 10UF | Capacitor_SMD:C_0805_2012Metric | C3, C17, C21, C27, C34, C37, C41 |
| 7 | 2.2u | Capacitor_SMD:C_0805_2012Metric | C1, C2, C15, C49, C50, C55, C56 |
| 6 | 10K | CustomFootprints:Pot_RightAngle_LongPin_16mm | POT1, POT2, POT3, POT4, POT5, POT6 |
| 6 | 2M | Resistor_SMD:R_0805_2012Metric | R10, R13, R17, R18, R23, R33 |
| 5 | 100NF | Capacitor_SMD:C_0805_2012Metric | C26, C31, C32, C39, C40 |
| 3 | 1K | Resistor_SMD:R_0805_2012Metric | R1, R22, R25 |
| 3 | 5k1 | Resistor_SMD:R_0603_1608Metric | R16, R27, R28 |
| 2 | 100K | Resistor_SMD:R_0805_2012Metric | R11, R14 |
| 2 | 100u 35V | Capacitor_SMD:CP_Elec_6.3x7.7 | C45, C46 |
| 2 | 10p | Capacitor_SMD:C_0603_1608Metric | C43, C44 |
| 2 | 1k5 | Resistor_SMD:R_0805_2012Metric | R15, R26 |
| 2 | 1u | Capacitor_SMD:C_0603_1608Metric | C6, C11 |
| 2 | 2.2k | Resistor_SMD:R_0603_1608Metric | R5, R6 |
| 2 | 2K | Resistor_SMD:R_0805_2012Metric | R31, R32 |
| 2 | 600Ω@100MHz | Inductor_SMD:L_0805_2012Metric | FB1, FB2 |
| 2 | MCP6002 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U2, U6 |
| 2 | SW_SPDT | CustomFootprints:SW_Toggle_SPDT_lugs | SW3, SW4 |
| 1 | 100R | Resistor_SMD:R_0805_2012Metric | R21 |
| 1 | 10k | Resistor_SMD:R_0805_2012Metric | R2 |
| 1 | 1N4007 | Diode_SMD:D_SOD-123F | D2 |
| 1 | 1N5817 | Diode_SMD:D_SOD-123 | D1 |
| 1 | 200Ω@100MHz | Inductor_SMD:L_0805_2012Metric | FB3 |
| 1 | 220p | Capacitor_SMD:C_0805_2012Metric | C52 |
| 1 | 2N7 | Capacitor_SMD:C_0805_2012Metric | C53 |
| 1 | 3u3 | Capacitor_SMD:C_0805_2012Metric | C28 |
| 1 | 470R | Resistor_SMD:R_0805_2012Metric | R7 |
| 1 | 47UF | Capacitor_SMD:C_0805_2012Metric | C36 |
| 1 | ASMB-MTB0-0A3A2 | LED_THT:LED_D5.0mm-4_RGB | D3 |
| 1 | AUDIO_IN_TRS | NMJ6HCD2:NEUTRIK_NMJ6HCD2 | J1 |
| 1 | AUDIO_OUT_TRS | NMJ6HCD2:NEUTRIK_NMJ6HCD2 | J2 |
| 1 | Barrel_Jack_Switch | GuitarPedal125B:Generic_PowerJack | J3 |
| 1 | CPC1018N | Package_SO:SOP-4_3.8x4.1mm_P2.54mm | U8 |
| 1 | CS4270 | Package_SO:TSSOP-24_4.4x7.8mm_P0.65mm | U4 |
| 1 | Crystal_GND24 16Mhz | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | EXPRESSION JACK | CustomSTM32h7Library:NEUTRIK_NMJ6HCD2 | J5 |
| 1 | Foot_Switch_1 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | FS1 |
| 1 | Foot_Switch_2 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | FS2 |
| 1 | G6K-2 | Relay_SMD:Relay_DPDT_Omron_G6K-2G-Y | K1 |
| 1 | LD1117S50TR_SOT223 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U1 |
| 1 | LED_1 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | LED1 |
| 1 | LED_2 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | LED2 |
| 1 | M05X2MINIJTAG | ConnectorCustomLibrary:20021121-00010C4LF_JTAG | JP1 |
| 1 | OPA1652AID | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U3 |
| 1 | SS8050 | Package_TO_SOT_SMD:SOT-23-3 | Q1 |
| 1 | STM32H7B0VBTx | Package_QFP:LQFP-100_14x14mm_P0.5mm | U9 |
| 1 | TLV76733QWDRBxQ1 | Package_SON:VSON-8-1EP_3x3mm_P0.65mm_EP1.65x2.4mm | U7 |

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

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


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


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

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.

freeDSP/FreeDSP_Catamaran_AB
A mono contruction Differntial 1 Input 4 output ADAU1701 DSP board, 96kHz TDM8 interlink is available.
It measures 60 × 95 mm and has 4 copper layers, 1.63 mm thick.
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.
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.
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).