

Midi fader
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
5STP08DP05M
SOIC-16-40℃~+125℃ 100mA 20V 30MHz 3V~5.5V 5% 8 Built-in Over-Temperature Protection (OTP)、Short-Circuit Protection SOIC-16 LED Drivers ROHSSTMicroelectronicsLED Drivers74HC165D
SO-16-40℃~+125℃ 1 28ns@6V,50pF 2V~6V 35MHz 500mW 74HC 8 Parallel or Serial to Serial SOIC-16 Shift Registers ROHSNexperiaShift RegistersMIC2776L-YM5
SOT-23-5SOT-23-5 Power Management - Specialized ROHSMicrochip TechnologyPower Management - SpecializedUSBLC6-2P6
SOT-666-6-40℃~+125℃ 150nA 17V 2 3.5pF 5.25V 5A@8/20us 6V ESD IEC 61000-4-2 Unidirectional SOT-666-6 ESD and Surge Protection (TVS/ESD) ROHSSTMicroelectronicsESD And Surge Protection (TVS/ESD)TR2-21-L5
插件-25℃~+70℃ 10mA PC Pin Round Plunger SPST-NO Through Hole 插件 Pushbutton Switches ROHSNidecPushbutton Switches
README
README.mdSimple 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
- 497-17354-1-ND: STM32F070F6P6, $1.48, 32K flash, 6K RAM, 20-TSSOP.
- 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.
- MCP1603T-330I/OSCT-ND: Cheap buck regulator, but not too cheap. $1.01,
TSOT-23
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
- Windows XP and above seem to support USB MIDI except Elements.
- "Elements" are things that process MIDI
- "Jacks" are supported, and they are exactly what they sound like. This will implement a Jack.
- Elements and Jacks are "Entities"
- http://www.usb.org/developers/docs/devclass_docs/midi10.pdf
Parts
167| Qty | Value | Footprint | References |
|---|---|---|---|
| 17 | 0 | Resistors_SMD:R_0402 | R1, R2, R3, R5, R6, R7, R8, R10, R13, R20, R37, R41, R45, R46, R47, R48 +1 |
| 12 | 10K | Resistors_SMD:R_0402 | R15, R21, R28, R29, R30, R31, R32, R33, R34, R35, R36, R40 |
| 9 | SPR | Capacitors_SMD:C_0402 | C5, C6, C7, C8, C9, C10, C11, C12, C13 |
| 8 | 33 | Resistors_SMD:R_0402 | R11, R12, R24, R25, R26, R27, R38, R42 |
| 7 | 0.1u | Capacitors_SMD:C_0402 | C1, C2, C16, C19, C23, C25, C26 |
| 7 | SPR | Resistors_SMD:R_0402 | R4, R16, R19, R22, R23, R39, R43 |
| 6 | 1u | Capacitors_SMD:C_0603 | C3, C15, C17, C20, C21, C24 |
| 3 | 4.7u | Capacitors_SMD:C_0805 | C14, C18, C22 |
| 2 | 10K | midi-fader:BOURNS_PTA60X3 | RV1, RV2 |
| 2 | TR2-21-L5 | midi-fader:Nidec_Copal_TR2 | SW1, SW2 |
| 1 | 0.01u | Capacitors_SMD:C_0402 | C4 |
| 1 | 10u | Resistors_SMD:R_0805 | L1 |
| 1 | 1K | Resistors_SMD:R_0805 | R14 |
| 1 | 220 | Resistors_SMD:R_1206 | R17 |
| 1 | 2K2 | Resistors_SMD:R_0402 | R44 |
| 1 | 4.7u | midi-fader:Wurth_TPC_3816 | L2 |
| 1 | 74HC165 | Housings_SSOP:TSSOP-16_4.4x5mm_Pitch0.65mm | U6 |
| 1 | 750 | Resistors_SMD:R_0402 | R18 |
| 1 | EXTERNAL_IN | Socket_Strips:Socket_Strip_Angled_2x08_Pitch2.54mm | J3 |
| 1 | EXTERNAL_OUT | Pin_Headers:Pin_Header_Angled_2x08_Pitch2.54mm | J2 |
| 1 | MCP1603 | TO_SOT_Packages_SMD:TSOT-23-5 | U3 |
| 1 | MIC2776L | TO_SOT_Packages_SMD:SOT-23-5 | U4 |
| 1 | MIC5501-XYM5 | TO_SOT_Packages_SMD:SOT-23-5 | U5 |
| 1 | STM32F042KxT | Housings_QFP:LQFP-32_7x7mm_Pitch0.8mm | U1 |
| 1 | STP08DP05 | midi-fader:HTSSOP-16-1EP_4.4x5mm_Pitch0.65mm_ThermalVias_HandSolder | U7 |
| 1 | SWD | midi-fader:JST-SH-4 | J1 |
| 1 | USBLC6-2 | midi-fader:SOT-666 | U2 |
| 1 | USB_OTG | midi-fader:AMP-10104110-USB | J4 |
The 91 most common of 167 parts.
Similar boards
- 2 layers123.3 × 79.8 mm

- 2 layers181 × 97 mm

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 mm

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 mm

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 mm

- 2 layers171.5 × 106.7 mm

Sequencer
westlicht/performer-hardware
PER|FORMER Eurorack Sequencer - Hardware Design Files
435 parts110 - 2 layers306.1 × 130.2 mm

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 mm

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).