
Instruction
jes/scamp-cpu
A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.

Universal Midi Controller
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.
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:
| Variant | BOARD | Switches | LEDs | Display | Pages |
|---|---|---|---|---|---|
| UFC | 1 (default) | 21 foot switches, 4 external switches | 2 per switch | 20x2 LCD with edit mode | 1 |
| Stomp6 | 2 | 6 foot switches | 1 per switch | 20x2 LCD with the switch names, configured with the web editor | 2 (scenes, pedalboard) |
Board UFC rev. 1 (KiCad 10 project in hardware/UFC, schematic as PDF):
| Revision | Date | Git tag | Notes |
|---|---|---|---|
| rev. 1 | 2026-10-12 | hw-rev1 | LCD pin 5 (R/W) connected to GND |
| rev. 0 | 2018-10-05 | hw-rev0 | manufactured, 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.
The firmware takes the mapping from firmware/ufc/Board.h.
| Function | Arduino pin | Connector | Notes |
|---|---|---|---|
| LCD RS / EN | D5 / D7 | DISP1 | 4 bit mode, R/W tied to GND (rev. 0: see board revisions) |
| LCD DB4 – DB7 | D9, D11, D13, D15 | DISP1 | contrast set with trimmer RV1 |
| LED data | D6 | J22 | WS2812 chain, 220 Ω in series |
| LED power enable | D12 | – | active low, switches the LED supply |
| MIDI 1 out / in | D18 (TX1) / D19 (RX1) | J23 / J25 | Serial1, input with optocoupler |
| MIDI 2 out / in | D16 (TX2) / D17 (RX2) | J24 / J26 | Serial2, input with optocoupler |
| Expression pedal 1 / 2 | A0 / A1 | J27 / J28 | AREF is driven externally, the firmware has to use analogReference(EXTERNAL) |
| External switch 1 / 2 | D21 / D22 | J29 | active low |
| External switch 3 / 4 | D23 / D24 | J30 | active low |
| USB serial (editor, upload) | D0 / D1 | USB | CH340 on the Mega 2560 Pro |
| Supply | VIN / 5V | J32 / J31 |
Unused pins: D2, D3, D4, D8, D10, D14, D20, D25 – D32, A2 – A15.
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).
| Row | Switch | Arduino pin | Connector | LED left / right |
|---|---|---|---|---|
| 4 (top) | 19 | D51 | J1 | 0 / 1 |
| 20 | D49 | J2 | 2 / 3 | |
| 21 | D45 | J3 | 4 / 5 | |
| 3 | 13 | D40 | J9 | 17 / 16 |
| 14 | D37 | J8 | 15 / 14 | |
| 15 | D35 | J7 | 13 / 12 | |
| 16 | D33 | J6 | 11 / 10 | |
| 17 | D41 | J5 | 9 / 8 | |
| 18 | D44 | J4 | 7 / 6 | |
| 2 | 7 | D39 | J10 | 18 / 19 |
| 8 | D52 | J11 | 20 / 21 | |
| 9 | D50 | J12 | 22 / 23 | |
| 10 | D48 | J13 | 24 / 25 | |
| 11 | D47 | J14 | 26 / 27 | |
| 12 | D42 | J15 | 28 / 29 | |
| 1 (bottom) | 1 | D53 | J21 | 41 / 40 |
| 2 | D46 | J20 | 39 / 38 | |
| 3 | D43 | J19 | 37 / 36 | |
| 4 | D38 | J18 | 35 / 34 | |
| 5 | D36 | J17 | 33 / 32 | |
| 6 | D34 | J16 | 31 / 30 |
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.
| Row | Switch | Arduino pin | Connector | LED |
|---|---|---|---|---|
| top | 4 | D35 | J7 | 3 |
| 5 | D33 | J6 | 4 | |
| 6 | D41 | J5 | 5 | |
| bottom | 1 | D44 | J4 | 2 |
| 2 | D45 | J3 | 1 | |
| 3 | D49 | J2 | 0 |
| Folder | Content |
|---|---|
firmware/ufc | controller firmware |
firmware/ufc_hwtest | stand-alone hardware test |
editor | web editor (plain HTML and JavaScript, no build step) |
hardware/UFC | schematic, layout, project libraries and Gerber files |
Features of the current version:
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)The firmware is a plain Arduino sketch. Required libraries: FastLED and LiquidCrystal.
arduino-cli compile --fqbn arduino:avr:mega firmware/ufcarduino-cli upload --fqbn arduino:avr:mega -p <port> firmware/ufcThe Stomp6 variant is selected with BOARD=2, compile and upload in one step:
arduino-cli compile --fqbn arduino:avr:mega --build-property "build.extra_flags=-DBOARD=2" --upload -p <port> firmware/ufcThe 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.
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.
| Gesture | Function |
|---|---|
| switch 1 – 6 | scene (page 1) or block on / off (page 2) |
| active scene again | tap tempo, the scene flashes in time while the MIDI clock runs |
| hold switch 1 | tuner on / off (CC 11), switch 1 lights red while it is on |
| hold switch 6 | change between scenes and pedalboard |
| switch 1 + 2 | previous preset |
| switch 2 + 3 | next 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:
| CC | Block | CC | Block |
|---|---|---|---|
| 1 | Drive | 9 | Gate |
| 2 | Mod pre | 10 | Delay 1 |
| 3 | Amp | 11 | Tuner |
| 4 | IR | 12 | Expr |
| 5 | Reverb | 13 | Expr Boost |
| 6 | Mod post | 14 | Wah |
| 7 | Tremolo | 15 | EQ |
| 8 | Comp | 16 | Pitch |
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):
Hold switch 19 and 20 (top row) for one second. The bottom row then works as keys:
| Switch | Function |
|---|---|
| 1 / 2 | previous / next field |
| 3 / 4 | value down / up, hold to repeat |
| 5 | back, unsaved changes are discarded |
| 6 | save |
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.
The editor talks to the controller with the Web Serial API and therefore needs Chrome or Edge on a desktop computer.
python -m http.server 8137 --bind 127.0.0.1 --directory editorOpen 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.
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.
MIT, see LICENSE.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 28 | 100NF | UFC:C_0805_2012Metric_Pad1.29x1.40mm_HandSolder | C2, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23, C25 +12 |
| 28 | 10K0 | UFC:R_0805_2012Metric_Pad1.29x1.40mm_HandSolder | R1, R2, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23 +12 |
| 23 | KF2510_02 | UFC:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_Vertical | J1, J2, J10, J11, J12, J13, J14, J15, J16, J17, J18, J19, J20, J21, J25, J26 +7 |
| 9 | 220E0 | UFC:R_0805_2012Metric_Pad1.29x1.40mm_HandSolder | R32, R33, R37, R38, R39, R40, R41, R42, R43 |
| 7 | KF2510_04 | UFC:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_Vertical | J22, J23, J24, J27, J28, J29, J30 |
| 2 | 100uF | UFC:CP_Radial_D10.0mm_P5.00mm | C1, C31 |
| 2 | 1N4148 | UFC:D_DO-41_SOD81_P7.62mm_Horizontal | D2, D3 |
| 2 | 4K70 | UFC:R_0805_2012Metric_Pad1.29x1.40mm_HandSolder | R35, R36 |
| 2 | 6N136 | UFC:SMD-8 | U2, U3 |
| 2 | Conn_01x02 | UFC:TerminalBlock_Phoenix_PT-1,5-2-3.5-H_1x02_P3.50mm_Horizontal | J31, J32 |
| 2 | D_TVS | UFC:D_SMA_Handsoldering | D4, D5 |
| 2 | Q_PMOS_GSD | UFC:SOT-23_Handsoldering | Q1, Q2 |
| 1 | 0E | UFC:R_0805_2012Metric_Pad1.29x1.40mm_HandSolder | R30 |
| 1 | 10E0 | UFC:R_0805_2012Metric_Pad1.29x1.40mm_HandSolder | R31 |
| 1 | 220E0 | UFC:R_1206_3216Metric_Pad1.39x1.80mm_HandSolder | R34 |
| 1 | 74LS00 | UFC:DIP-14_W7.62mm | U1 |
| 1 | FDCC2002C | UFC:FDCC2002C | DISP1 |
| 1 | LM4040DBZ-5 | UFC:SOT-23 | D1 |
| 1 | Mega2560Pro | UFC:Mega2560Core | MD1 |
| 1 | POT_TRIM | UFC:Potentiometer_Trimmer_Vishay_TS53YJ | RV1 |

jes/scamp-cpu
A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.

mudmin/AnotherMaker
This is where I will store code snippets for AnotherMaker Videos


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.

The-Invent0r/8-bit-Computer-PCB
These are the KiCAD files for my 8-Bit Computer.

tjboldt/Apple2-IO-RPi
Apple II expansion card using a Raspberry Pi for I/O


It measures 146 × 50 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
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).