Skip to the content
2 layers146 × 50 mmUFC, the printed circuit board in 3D

Universal Midi Controller

Size
146 × 50 mm
Copper layers
2
Thickness
1.6 mm
Parts
117
Nets
113
Pads
372
Tracks, vias
879, 70
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
11 Oct 2026
Updated
4 Nov 2026

Overview

UFC is an open-source printed circuit board by christoph-krionx, from the christoph-krionx/UFC repository on GitHub, published under the MIT licence. It is a 2-layer board of 146 × 50 mm with 117 parts on 113 nets, routed with 879 tracks and 70 vias.

It is built around the 74LS00SC. Its parts include 42 resistors, 32 connectors, 30 capacitors, 5 diodes and 3 ICs. It belongs with the audio and music boards of this library.

Main components

1

README

README.md

UFC – configurable MIDI foot controller

A MIDI foot controller for guitarists, built around an Arduino Mega 2560 Pro. Every switch can send program changes and control changes to amps, modellers and effects. The assignment is edited on the device itself or with a web editor over USB.

The same board and firmware are used in two builds:

VariantBOARDSwitchesLEDsDisplayPages
UFC1 (default)21 foot switches, 4 external switches2 per switch20x2 LCD with edit mode1
Stomp626 foot switches1 per switch20x2 LCD with the switch names, configured with the web editor2 (scenes, pedalboard)

Hardware

Board UFC rev. 1 (KiCad 10 project in hardware/UFC, schematic as PDF):

  • RobotDyn Mega 2560 Pro (ATmega2560, CH340 USB serial)
  • 21 foot switches in four rows (3 + 6 + 6 + 6), each with two WS2812 LEDs
  • 4 inputs for external switches, 2 inputs for expression pedals
  • 20x2 character LCD (HD44780)
  • 2 MIDI inputs and 2 MIDI outputs (5 pin DIN)

Board revisions

RevisionDateGit tagNotes
rev. 12026-10-12hw-rev1LCD pin 5 (R/W) connected to GND
rev. 02018-10-05hw-rev0manufactured, has a known error (see below)

Known error of rev. 0: pin 5 (R/W) of the LCD is connected to +5 V instead of GND. The display stays in read mode and shows nothing. Rework for existing boards: cut the connection between pin 5 and +5 V at the display connector and connect pin 5 to GND, for example to pin 1.

The firmware runs on both revisions without changes. The fabrication files of rev. 1 are in hardware/UFC/Gerber, those of rev. 0 in hardware/UFC/Gerber/rev00.

Pin assignment

The firmware takes the mapping from firmware/ufc/Board.h.

FunctionArduino pinConnectorNotes
LCD RS / END5 / D7DISP14 bit mode, R/W tied to GND (rev. 0: see board revisions)
LCD DB4 – DB7D9, D11, D13, D15DISP1contrast set with trimmer RV1
LED dataD6J22WS2812 chain, 220 Ω in series
LED power enableD12–active low, switches the LED supply
MIDI 1 out / inD18 (TX1) / D19 (RX1)J23 / J25Serial1, input with optocoupler
MIDI 2 out / inD16 (TX2) / D17 (RX2)J24 / J26Serial2, input with optocoupler
Expression pedal 1 / 2A0 / A1J27 / J28AREF is driven externally, the firmware has to use analogReference(EXTERNAL)
External switch 1 / 2D21 / D22J29active low
External switch 3 / 4D23 / D24J30active low
USB serial (editor, upload)D0 / D1USBCH340 on the Mega 2560 Pro
SupplyVIN / 5VJ32 / J31

Unused pins: D2, D3, D4, D8, D10, D14, D20, D25 – D32, A2 – A15.

Foot switches and LEDs

The switches are numbered from bottom left to top right as seen by the player. All switch inputs are active low with a 10 kΩ pull-up and 100 nF on the board. The LED chain starts at switch 19 and snakes down row by row, the table shows the position of the left and right LED in the chain (0 – 41).

RowSwitchArduino pinConnectorLED left / right
4 (top)19D51J10 / 1
20D49J22 / 3
21D45J34 / 5
313D40J917 / 16
14D37J815 / 14
15D35J713 / 12
16D33J611 / 10
17D41J59 / 8
18D44J47 / 6
27D39J1018 / 19
8D52J1120 / 21
9D50J1222 / 23
10D48J1324 / 25
11D47J1426 / 27
12D42J1528 / 29
1 (bottom)1D53J2141 / 40
2D46J2039 / 38
3D43J1937 / 36
4D38J1835 / 34
5D36J1733 / 32
6D34J1631 / 30

Stomp6 variant

Six foot switches in two rows of three, one WS2812 LED per switch. The 20x2 LCD (Fordata FC2002C, same connection as on the UFC) sits between the rows. MIDI 1 has input and output, MIDI 2 only the output. The mapping is in firmware/ufc/Board_Stomp6.h. The LED chain starts at switch 3 (bottom right), runs to the left and back through the top row.

RowSwitchArduino pinConnectorLED
top4D35J73
5D33J64
6D41J55
bottom1D44J42
2D45J31
3D49J20

Repository

FolderContent
firmware/ufccontroller firmware
firmware/ufc_hwteststand-alone hardware test
editorweb editor (plain HTML and JavaScript, no build step)
hardware/UFCschematic, layout, project libraries and Gerber files

Firmware

Features of the current version:

  • 8 presets with names, the last used preset is restored after power on
  • up to 3 messages per switch (Stomp6: 5), program change or control change, each with MIDI output and channel
  • switch modes: toggle, momentary and group (only one switch of the group on the same page is active)
  • global switches which keep their function in every preset, for example preset up / down or tuner; on boards with pages a switch is global per page (Stomp6: a global pedalboard block, the scene at the same place stays per preset)
  • messages which are sent when a preset is loaded
  • pages: every preset has its own switch assignment per page (Stomp6: page 1 scenes, page 2 pedalboard)
  • links: a switch sets the switches of the last page on or off when it is switched on, the LEDs follow (Stomp6: a scene sets the pedalboard blocks)
  • actions: long press of a switch or two switches pressed together, for example tuner, preset up / down or page change; a switch with an action reacts on release
  • Stomp6 display: line 1 shows the names of the top row, line 2 the names of the bottom row, each name above / below its switch; the names follow the page. Preset number, name and tempo, the page name and the tap tempo are shown in line 1 for 1.5 s, the name of an active MIDI action (for example TUNER) replaces line 1 while the action is on If the top left and the top middle switch have no function or no name, line 1 keeps showing preset number and name (with the tempo if the top right switch is free too)
  • optional pause after a program change, optionally a program change is only sent if it differs from the last one on the channel
  • MIDI clock with a tempo per preset (0: no clock until tapped), tap tempo on a switch with the function "Tap" or on the active group switch pressed again, the tap switch flashes in time
  • configuration stored in the internal EEPROM, every block protected by a checksum; a configuration of the other variant or an older format is replaced by the factory configuration

Build and upload

The firmware is a plain Arduino sketch. Required libraries: FastLED and LiquidCrystal.

bash
arduino-cli compile --fqbn arduino:avr:mega firmware/ufc
bash
arduino-cli upload --fqbn arduino:avr:mega -p <port> firmware/ufc

The Stomp6 variant is selected with BOARD=2, compile and upload in one step:

bash
arduino-cli compile --fqbn arduino:avr:mega --build-property "build.extra_flags=-DBOARD=2" --upload -p <port> firmware/ufc

The Arduino IDE works as well: open firmware/ufc/ufc.ino and select the board "Arduino Mega or Mega 2560". For the Stomp6 variant change the default of BOARD in firmware/ufc/Board.h.

Stomp6 with a Sonulab StompStation PRO

The factory configuration of the Stomp6 variant is made for the StompStation PRO on MIDI channel 1 (StompStation: Setting, Misc, MIDI Address 0). The StompStation has a 3.5 mm TRS jack, the MIDI cable needs a Type A adapter.

GestureFunction
switch 1 – 6scene (page 1) or block on / off (page 2)
active scene againtap tempo, the scene flashes in time while the MIDI clock runs
hold switch 1tuner on / off (CC 11), switch 1 lights red while it is on
hold switch 6change between scenes and pedalboard
switch 1 + 2previous preset
switch 2 + 3next preset

All presets are empty, the scenes are assigned in the editor. The pedalboard is global with Drive (CC 1), Comp (CC 8), Wah (CC 14), Mod post (CC 6), Delay (CC 10) and Reverb (CC 5). The actions above and tap tempo on the active scene are part of the factory configuration. Delay and modulation of the StompStation follow the MIDI clock if they are locked to the global tempo.

A setup used with the StompStation: presets 1 – 6 are one main sound each, the start message of the preset sends PC 0 – 5. The scenes (for example rhythm, solo, clean) send the same program change and set all six pedalboard blocks, so the LEDs always show the real state. Useful fixed control changes of the StompStation:

CCBlockCCBlock
1Drive9Gate
2Mod pre10Delay 1
3Amp11Tuner
4IR12Expr
5Reverb13Expr Boost
6Mod post14Wah
7Tremolo15EQ
8Comp16Pitch

Values 0 – 63 switch a block off, 64 – 127 on. CC 20 is the global volume, CC 21 / 22 select the next / previous preset. Other parameters are reached with the assignable controllers 1 – 3 of the StompStation (CC 32 – 127).

Tested behaviour of the StompStation (firmware of October 2026):

  • a program change switches presets without asking, unsaved changes of the active preset are discarded
  • a control change sent directly after a program change is applied
  • the program change of the active preset loads it again, switching within a bank of three is gapless
  • CC 21 / 22 select the next / previous preset (the troubleshooting chapter of the manual names CC 12 / 13 by mistake)
  • the StompStation sends no state, the controller cannot know changes made on the pedal itself

Edit mode on the device

Hold switch 19 and 20 (top row) for one second. The bottom row then works as keys:

SwitchFunction
1 / 2previous / next field
3 / 4value down / up, hold to repeat
5back, unsaved changes are discarded
6save

Stepping on any other switch selects it for editing.

Holding switch 19 and 21 during power on restores the factory configuration (Stomp6: switch 4 and 6). The Stomp6 variant has no edit mode.

Web editor

The editor talks to the controller with the Web Serial API and therefore needs Chrome or Edge on a desktop computer.

bash
python -m http.server 8137 --bind 127.0.0.1 --directory editor

Open http://localhost:8137, connect and select the serial port of the controller. The configuration can also be saved to and loaded from a file. The editor adapts to the connected variant, pages are selected above the switches, actions and the program change options are under "Global". Files of older firmware versions (0.3 and later) can be loaded: values the file does not have are taken from the connected device or set to defaults, a switch that was global keeps its global definition on every page, actions get an empty name. A file of the other variant (different number of switches) is rejected.

The serial protocol is described in firmware/ufc/Protocol.h, the data format in firmware/ufc/Config.h and firmware/ufc/Storage.h.

Hardware test

firmware/ufc_hwtest checks display, LEDs, switches and both MIDI ports and shows the result on the display. The MIDI test needs a DIN cable from each output to an input.

License

MIT, see LICENSE.

Parts

117
QtyValueFootprintReferences
28100NFUFC:C_0805_2012Metric_Pad1.29x1.40mm_HandSolderC2, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23, C25 +12
2810K0UFC:R_0805_2012Metric_Pad1.29x1.40mm_HandSolderR1, R2, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23 +12
23KF2510_02UFC:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_VerticalJ1, J2, J10, J11, J12, J13, J14, J15, J16, J17, J18, J19, J20, J21, J25, J26 +7
9220E0UFC:R_0805_2012Metric_Pad1.29x1.40mm_HandSolderR32, R33, R37, R38, R39, R40, R41, R42, R43
7KF2510_04UFC:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_VerticalJ22, J23, J24, J27, J28, J29, J30
2100uFUFC:CP_Radial_D10.0mm_P5.00mmC1, C31
21N4148UFC:D_DO-41_SOD81_P7.62mm_HorizontalD2, D3
24K70UFC:R_0805_2012Metric_Pad1.29x1.40mm_HandSolderR35, R36
26N136UFC:SMD-8U2, U3
2Conn_01x02UFC:TerminalBlock_Phoenix_PT-1,5-2-3.5-H_1x02_P3.50mm_HorizontalJ31, J32
2D_TVSUFC:D_SMA_HandsolderingD4, D5
2Q_PMOS_GSDUFC:SOT-23_HandsolderingQ1, Q2
10EUFC:R_0805_2012Metric_Pad1.29x1.40mm_HandSolderR30
110E0UFC:R_0805_2012Metric_Pad1.29x1.40mm_HandSolderR31
1220E0UFC:R_1206_3216Metric_Pad1.39x1.80mm_HandSolderR34
174LS00UFC:DIP-14_W7.62mmU1
1FDCC2002CUFC:FDCC2002CDISP1
1LM4040DBZ-5UFC:SOT-23D1
1Mega2560ProUFC:Mega2560CoreMD1
1POT_TRIMUFC:Potentiometer_Trimmer_Vishay_TS53YJRV1

Similar boards

  • 2 layers237.5 × 102.9 mmInstruction, the printed circuit board in 3D

    Instruction

    jes/scamp-cpu

    A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.

    112 parts301Unlicense
  • 2 layers125 × 98 mm3-in-1, the printed circuit board in 3D

    3-in-1

    mudmin/AnotherMaker

    This is where I will store code snippets for AnotherMaker Videos

    44 parts258
  • 2 layers177.8 × 127 mmScopetrex, the printed circuit board in 3D

    Scopetrex

    schlae/scopetrex

    SCOPETREX vector gaming on your oscilloscope!

    201 parts248
  • 2 layers365.1 × 203.2 mmDIAG, the printed circuit board in 3D

    DIAG

    Nakazoto/CenturionComputer

    This is just a simple backup of all the files related to the Centurion that I have stored on my HD. The Wiki itself has far more in-depth information about the Centurion and it's individual cards.

    150 parts172
  • 2 layers370.8 × 298.5 mm8 Bit Computer, the printed circuit board in 3D

    8 Bit Computer

    The-Invent0r/8-bit-Computer-PCB

    These are the KiCAD files for my 8-Bit Computer.

    323 parts142
  • 2 layers89.5 × 77.5 mmApple2-IO RPi, the printed circuit board in 3D

    Apple2-IO RPi

    tjboldt/Apple2-IO-RPi

    Apple II expansion card using a Raspberry Pi for I/O

    24 parts140MIT
  • 2 layers134.6 × 208.3 mmTs2, the printed circuit board in 3D

    Ts2

    jefftranter/68000

    Code related to the Motorola 68000 microprocessor.

    110 parts133
  • 4 layers149.9 × 110 mmSch, the printed circuit board in 3D

    Sch

    DownUnderCTF/Challenges_2024_Public

    Files + Solutions for DownUnderCTF 2024 Challenges

    47 parts116

Questions

How big is the UFC PCB?

It measures 146 × 50 mm and has 2 copper layers, 1.6 mm thick.

What parts does the UFC use?

117 parts, built around the 74LS00SC. 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 UFC KiCad files?

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

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