Skip to the content
2 layers73.7 × 78.7 mmMidi fader, the printed circuit board in 3D

Expandable USB MIDI device with faders and buttons

Size
73.7 × 78.7 mm
Copper layers
2
Thickness
1.6 mm
Parts
167
Nets
87
Pads
433
Tracks, vias
857, 113
Pours
20
Routed
Yes
KiCad
KiCad 4
Created
13 Nov 2018
Updated
24 Nov 2023

Overview

Midi fader is an open-source printed circuit board by kcuzner, from the kcuzner/midi-fader repository on GitHub, published under the Apache-2.0 licence. It is a 2-layer board of 73.7 × 78.7 mm with 167 parts on 87 nets, routed with 857 tracks and 113 vias.

It is built around the STP08DP05M, 74HC165D and MIC2776L-YM5, with the USBLC6-2P6 and TR2-21-L5 among its other parts. Its parts include 48 resistors, 26 capacitors, 7 ICs, 4 connectors and 2 switches. It belongs with the audio and music boards and the STM32 boards of this library.

Main components

5

README

README.md

Simple MIDI Fader

By Kevin Cuzner

Project Status

  • PCB complete and working (with an additional load added to reduce regulator noise)
  • Firmware feature-complete and mostly working
    • Emulates as HID and USB-MIDI devices
    • Not tested on Windows yet
  • Case OpenSCAD in progress
  • Configuration host software in progress

Featureset

  • Two 60mm analog fader inputs
  • USB Audio Class interface, aiming for driverless on Windows 7 and 10
  • Driverless HID interface for configuration
    • It might be trivially simple to echo the fader status in the HID reports...

Main Component Options

  • Faders (note that they have different footprints and different levers):
    • Expensive faders ($4.74, very light movement force): PTB6053-2010APB103-ND
    • Cheap faders ($1.73): PTA6043-2015CPB103-ND
  • Microcontrollers:
    • 497-17354-1-ND: STM32F070F6P6, $1.48, 32K flash, 6K RAM, 20-TSSOP.
      • No CRS, external XTAL required.
    • 497-15099-ND: STM32F070CBT6, $2.52, 128K flash, 16K RAM, 48-LQFP
      • No CRS, exteranl XTAL required.
    • 497-17344-ND: STM32042F6P6, $2.25, 32K flash, 6K RAM, 20-TSSOP.
      • Has a CRS
      • 24.6mA with all peripherals and HSI48 enabled
  • 609-4052-1-ND: Micro-USB, $0.76
  • 455-1790-1-ND: JST-SH header for programming, $0.63
  • Power supply solution:
    • MCP1603T-330I/OSCT-ND: Cheap buck regulator, but not too cheap. $1.01, TSOT-23
      • Noise issues at low currents (leaves PWM mode and skips pulses).
    • 576-4764-1-ND: MIC5504 buck regulator, $0.11, SOT23-5.
      • At a 100mA load, the case will heat 42.6C. Not over the top, but really quite hot.
      • We could do this AND the buck regulator, but just have this for the analog.

Notes

Notes about the logical MIDI protocol

  • MIDI has two types of bytes STATUS and DATA.
  • A STATUS byte has its MSB set
  • A DATA byte has its MSB cleared (hence why there are only ever 0 to 127 data values)
  • Usually, the lower nybble of the STATUS byte is a channel number (there are 16 channels).
  • The number of data bytes to follow varies by which STATUS byte preceded them.
  • Interesting STATUS commands (upper nybble shown) for this project:
    • 0xB: Control Change. Followed by a controller number (1 data byte) and a controller value (1 data byte). Although there are possibly 127 controller numbers, numbers 120-127 are reserved for "Channel Mode Messages". Several of these are commonly used.
    • 0xE: Pitch Bend. Followed by two DATA bytes encoding a 14-bit value, LSB first. 0x2000 is center.
  • https://www.cs.cmu.edu/~music/cmsip/readings/MIDI%20tutorial%20for%20programmers.html
  • https://www.midi.org/specifications-old/item/table-1-summary-of-midi-message

Notes about USB and MIDI

Parts

167
QtyValueFootprintReferences
170Resistors_SMD:R_0402R1, R2, R3, R5, R6, R7, R8, R10, R13, R20, R37, R41, R45, R46, R47, R48 +1
1210KResistors_SMD:R_0402R15, R21, R28, R29, R30, R31, R32, R33, R34, R35, R36, R40
9SPRCapacitors_SMD:C_0402C5, C6, C7, C8, C9, C10, C11, C12, C13
833Resistors_SMD:R_0402R11, R12, R24, R25, R26, R27, R38, R42
70.1uCapacitors_SMD:C_0402C1, C2, C16, C19, C23, C25, C26
7SPRResistors_SMD:R_0402R4, R16, R19, R22, R23, R39, R43
61uCapacitors_SMD:C_0603C3, C15, C17, C20, C21, C24
34.7uCapacitors_SMD:C_0805C14, C18, C22
210Kmidi-fader:BOURNS_PTA60X3RV1, RV2
2TR2-21-L5midi-fader:Nidec_Copal_TR2SW1, SW2
10.01uCapacitors_SMD:C_0402C4
110uResistors_SMD:R_0805L1
11KResistors_SMD:R_0805R14
1220Resistors_SMD:R_1206R17
12K2Resistors_SMD:R_0402R44
14.7umidi-fader:Wurth_TPC_3816L2
174HC165Housings_SSOP:TSSOP-16_4.4x5mm_Pitch0.65mmU6
1750Resistors_SMD:R_0402R18
1EXTERNAL_INSocket_Strips:Socket_Strip_Angled_2x08_Pitch2.54mmJ3
1EXTERNAL_OUTPin_Headers:Pin_Header_Angled_2x08_Pitch2.54mmJ2
1MCP1603TO_SOT_Packages_SMD:TSOT-23-5U3
1MIC2776LTO_SOT_Packages_SMD:SOT-23-5U4
1MIC5501-XYM5TO_SOT_Packages_SMD:SOT-23-5U5
1STM32F042KxTHousings_QFP:LQFP-32_7x7mm_Pitch0.8mmU1
1STP08DP05midi-fader:HTSSOP-16-1EP_4.4x5mm_Pitch0.65mm_ThermalVias_HandSolderU7
1SWDmidi-fader:JST-SH-4J1
1USBLC6-2midi-fader:SOT-666U2
1USB_OTGmidi-fader:AMP-10104110-USBJ4

The 91 most common of 167 parts.

Similar boards

  • 2 layers123.3 × 79.8 mmSchematics, the printed circuit board in 3D

    Schematics

    aperfectcypher/KSP-Launchpad

    A controller for Kerbal Space Program

    85 partsUnlicense
  • 2 layers181 × 97 mmOpenDeck r3.1.2, the printed circuit board in 3D

    OpenDeck r3.1.2

    shanteacontrols/OpenDeck

    A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.

    262 parts960Apache-2.0
  • 2 layers245.1 × 160 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-64x4-Home-Computer

    My DIY TTL home computer with VGA and PS/2 and 4x the processing power of a Commodore C64 or Apple II.

    139 parts326
  • 2 layers191.8 × 121.3 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-UART-Computer-1-2

    Legacy: Version 1 and 2 of my TTL-only CPU featuring UART I/O, an expansion port, 512KB SSD at up to 10MHz clock speed

    109 parts184
  • 2 layers135.9 × 87 mmPfm3 ctrl, the printed circuit board in 3D

    Pfm3 ctrl

    Ixox/preenfm3

    Official repo of the preenfm3 FM synth

    65 parts127
  • 2 layers171.5 × 106.7 mmSequencer, the printed circuit board in 3D

    Sequencer

    westlicht/performer-hardware

    PER|FORMER Eurorack Sequencer - Hardware Design Files

    435 parts110
  • 2 layers306.1 × 130.2 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-64-Home-Computer

    Legacy: Full TTL-only home computer with VGA and PS/2 and twice the processing power of a Commodore 64

    132 parts94
  • 2 layers215.9 × 20.3 mmKeybed, the printed circuit board in 3D

    Keybed

    friggeri/keyboard

    28 parts69

Questions

How big is the Midi fader PCB?

It measures 73.7 × 78.7 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Midi fader use?

167 parts, built around the STP08DP05M, 74HC165D, MIC2776L-YM5 and USBLC6-2P6. 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 Midi fader KiCad files?

From the kcuzner/midi-fader repository on GitHub, at the commit this page was made from: the board is kicad/midi-fader.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Midi fader design in my own project?

Its repository publishes it under the Apache-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).