

Infinite keyboard
Infinite Keyboard is a portable musical scratchpad. It continously captures of every note played on the integrated keyboard as MIDI data, saved directly to an SD card.
- Size
- 284 × 46.3 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 116
- Nets
- 108
- Pads
- 433
- Tracks, vias
- 1,060, 122
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 9 May 2025
- Updated
- 2 Jun 2025
Overview
Infinite keyboard is an open-source printed circuit board by LastZactionHero, from the LastZactionHero/infinite-keyboard repository on GitHub. It is a 2-layer board of 284 × 46.3 mm with 116 parts on 108 nets, routed with 1,060 tracks and 122 vias.
It is built around the ESP32-S3-WROOM-1-N8, TPA6130A2RTJR and MSD-1-A, with the AP2112K-3.3TRG1, 1N4148WS and TS04-66-75-BK-160-SMT among its other parts. Its parts include 27 capacitors, 26 resistors, 24 diodes, 24 switches and 4 ICs. It belongs with the keyboards and input and audio and music boards and the ESP32 boards of this library.
Main components
8ESP32-S3-WROOM-1-N8
SMD,25.5x18mm-40℃~+85℃ -98.2dBm 2.4GHz 20.5dBm 355mA 3V~3.6V 95mA Bluetooth5.0 ESP32-S3 Chip On-board PCB Antenna UART、SPI、I2C、I2S、USB SMD,25.5x18mm WiFi Modules ROHSEspressif SystemsWiFi ModulesTPA6130A2RTJR
QFN-20-EP(4x4)-40℃~+85℃ -90dB 0.0055% 2 Pairs Differential Inputs 2-Channel 2.5V~5.5V 290mWx1@16Ω 4mA 98dB Automatic mute/no-noise switch、Enable/shutdown function、ESD protection、Digitally programmable gain Class AB QFN-20-EP(4x4) Audio Amplifiers ROHSTexas InstrumentsAudio AmplifiersMSD-1-A
SMD-40℃~+85℃ 2mm 30V Connector and Ejector MicroSD Card (TF Card) Push-Push With Locating Pins SMD SD Card / Memory Card Connector ROHSCUISD Card / Memory Card ConnectorAP2112K-3.3TRG1
SOT-25-5-40℃~+85℃@(Ta) 1 250mV@(600mA) 3.3V 50uVrms 55uA 600mA 65dB@(1kHz) 6V Fixed Over Current Protection、Thermal Shutdown、Enable control Positive SOT-25-5 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSDiodes IncorporatedVoltage Regulators - Linear, Low Drop Out (LDO) Regulators1N4148WS
SOD-3231.25V@150mA 100V 150mA 1uA@75V 200mW 2A 4ns Independent SOD-323 Switching Diodes ROHSJiangsu Changjing Electronics Technology (CJ)Switching DiodesTS04-66-75-BK-160-SMT
--30℃~+80℃ 1.6N 12V 50mA 80,000 cycles Gull Wing Round Button SPST Surface Mount,Vertical - Tactile Switches ROHSCUITactile SwitchesSJ-43617-SMT-TR
--20℃~+85℃ 12V 1A Copper alloy Gold - Audio Connectors ROHSCUIAudio Connectors (Headphones)UJ20-C-H-G-SMT-5-P16-TR
SMD-25℃~+85℃ 1 10,000 cycles 16P 20V 5A Female Surface Mount, Right Angle Type-C USB 2.0 SMD USB Connectors ROHSCUIUSB Connectors
README
README.mdInfinite Keyboard is a portable musical scratchpad. It continously captures of every note played on the integrated keyboard as MIDI data, saved directly to an SD card. This allows you to freely play ideas as they occur, knowing they can always revisit the performance later. The system uses an ESP32-S3 microcontroller, with aPCM5102 DAC and TPA6130A2 headphone amplifier, and supports USB connectivity for potential MIDI output or other functions.
- ESP32-S3 Module (ESP32-S3-WROOM-1-N8) [ ] Power (3.3V): [X] Connect module Pin 2 (3V3) to the main 3.3V power rail. [X] Connect module Pin 1 and Pin 40 (GND) and EPAD (Pin 41) to the main ground plane. [ ] Place bulk decoupling capacitor (10µF - 22µF) near the module between 3.3V and GND. [ ] Place local decoupling capacitor (0.1µF - 1µF) very close to Pin 2 (3V3) and GND. [X] Enable/Reset Circuit: [X] Connect an RC delay circuit to the EN pin (Pin 3): 10kΩ resistor to 3.3V, 1µF capacitor to GND. [X] Connect a momentary push button (Reset Switch) between EN (Pin 3) and GND. [X] Boot Mode Circuit: [X] Connect a 10kΩ pull-up resistor from GPIO0 (Pin 27) to 3.3V. [X] Connect a momentary push button (Boot Switch) between GPIO0 (Pin 27) and GND. [X] Crystal Oscillator: 40 MHz crystal is integrated within the module. No external crystal needed. [X] Antenna: Use onboard PCB antenna (WROOM-1). Ensure proper keep-out zones on your PCB as per layout guidelines. [cite: uploaded:esp32_s3_wroom_1_wroom_1u_datasheet_en-2930317.pdf]
- USB Interface (Native OTG) [-] Connections: [X] Connect ESP32-S3 GPIO19 (Module Pin 13) to USB Connector D-. [X] Connect ESP32-S3 GPIO20 (Module Pin 14) to USB Connector D+. [X] Connect USB Connector VBUS to 5V supply (if host mode power required, consider power switching). [X] Connect USB Connector GND to main ground. [-] Connect USB Connector Shield to main ground. [-] Optional Components: [X] Place 0Ω series resistors/jumpers on D+/D- lines if desired. [-] Place ESD protection diodes (TVS array) near the connector on D+/D- lines. [] Layout: Route D+/D- as a 90Ω differential pair.
- I2S Interface (ESP32-S3 to PCM5102) [X] Connections: [X] Connect ESP32-S3 GPIO (Select Pin) -> PCM5102 BCK (Pin 13). [X] Connect ESP32-S3 GPIO (Select Pin) -> PCM5102 LRCK (Pin 15). [X] Connect ESP32-S3 GPIO (Select Pin) -> PCM5102 DIN (Pin 14). [X] PCM5102 SCK: Ensure PCM5102 SCK (Pin 12) is connected to GND (to enable internal PLL). [cite: uploaded:pcm5102.pdf]
- PCM5102 DAC Module [X] Power (3.3V): [X] Connect CPVDD (Pin 1), AVDD (Pin 8), DVDD (Pin 20) to 3.3V rail. [X] Connect CPGND (Pin 3), AGND (Pin 9), DGND (Pin 19) to ground plane (ensure proper analog/digital ground separation if needed, though often a single solid plane works well with careful layout). [X] Place 1µF decoupling capacitors close to pins 1, 8, 20 (to GND). [X] Place 1µF decoupling capacitor close to pin 18 (LDOO) (to DGND). [X] Charge Pump: [X] Connect 1µF ceramic capacitor between CAPP (Pin 2) and CAPM (Pin 4). [X] Connect 1µF ceramic capacitor from VNEG (Pin 5) to AGND. [X] Configuration Pins: [X] Connect FMT (Pin 16) to GND (I2S Format). [X] Connect FLT (Pin 11) to GND (Normal Latency Filter). [X] Connect DEMP (Pin 10) to GND (De-emphasis OFF). [X] Connect XSMT (Pin 17) to a selected ESP32-S3 GPIO pin for soft mute control. [X] Output Filter (Per Channel): [X] Connect 470Ω resistor in series with OUTL (Pin 6). [X] Connect 2.2nF capacitor from the output of the 470Ω resistor to AGND. [X] Repeat for OUTR (Pin 7).
- I2C Interface (ESP32-S3 to TPA6130A2) [X] Connections: [X] Connect ESP32-S3 GPIO (Select SCL Pin) -> TPA6130A2 SCL (Pin 8 on QFN). [X] Connect ESP32-S3 GPIO (Select SDA Pin) -> TPA6130A2 SDA (Pin 7 on QFN). [X] Pull-up Resistors: [X] Connect 4.7kΩ pull-up resistor from SCL line to 3.3V rail. [X] Connect 4.7kΩ pull-up resistor from SDA line to 3.3V rail.
- TPA6130A2 Headphone Amplifier Module [X] Power (5V): [X] Connect TPA6130A2 pins (e.g., Pin 12, Pin 20 on QFN) to 5V rail. [X] Connect TPA6130A2 GND pins (e.g., Pin 3, 9, 10, 13, 19 on QFN) and Thermal Pad (if QFN) to ground plane. [X] Place 1µF decoupling capacitors close to pins (to GND). [X] Charge Pump: [X] Connect 1µF low-ESR ceramic capacitor between CPP (Pin 18 on QFN) and CPN (Pin 17 on QFN). [X] Connect 1µF low-ESR ceramic capacitor from (Pin 15/16 on QFN) to GND. [X] Input Coupling (Single-Ended): [X] Connect PCM5102 Left Output (after filter) -> 0.47µF capacitor -> TPA6130A2 LEFTINM (Pin 1 on QFN). [X] Connect TPA6130A2 LEFTINP (Pin 2 on QFN) -> 0.47µF capacitor -> GND. [X] Connect PCM5102 Right Output (after filter) -> 0.47µF capacitor -> TPA6130A2 RIGHTINM (Pin 5 on QFN). [X] Connect TPA6130A2 RIGHTINP (Pin 4 on QFN) -> 0.47µF capacitor -> GND. [ ] Output: [X] Connect TPA6130A2 HPLEFT (Pin 14 on QFN) -> 3.5mm Jack Tip. [X] Connect TPA6130A2 HPRIGHT (Pin 11 on QFN) -> 3.5mm Jack Ring. [X] Connect 3.5mm Jack Sleeve -> GND. [X] Control Pins: [X] Connect SD (Shutdown) pin (Pin 6 on QFN) -> 10kΩ pull-up resistor -> 5V rail (Hardware Enabled).
- SD Card Interface (SPI) [ ] Connections: [X] Connect ESP32-S3 GPIO (Select MOSI Pin) -> MicroSD Socket CMD (Pin 3). [X] Connect ESP32-S3 GPIO (Select MISO Pin) -> MicroSD Socket DAT0 (Pin 7). [X] Connect ESP32-S3 GPIO (Select SCK Pin) -> MicroSD Socket CLK (Pin 5). [X] Connect ESP32-S3 GPIO (Select CS Pin) -> MicroSD Socket DAT3/CS (Pin 2). [X] Connect MicroSD Socket VDD (Pin 4) -> 3.3V rail. [X] Connect MicroSD Socket VSS (Pin 6) -> GND. [ ] Supporting Components: [X] Place 0.1µF - 1µF decoupling capacitor near the socket VDD pin (to GND). [X] Connect 10kΩ - 50kΩ pull-up resistors from CS, MOSI, MISO, SCK lines to 3.3V rail. [ ] Optional: Connect Card Detect (CD) pin from socket (e.g., Pin Cd on MSD-1-A) to an ESP32-S3 GPIO if detection is desired. [cite: uploaded:msd_1_a-3510386.pdf]
- User Interface [X] Keyboard Matrix (6x4): [X] Connect 6 Rows to 6 selected ESP32-S3 GPIOs. [X] Connect 4 Columns to 4 selected ESP32-S3 GPIOs. [X] Ensure diodes are included in the matrix design if required for ghosting prevention. [X] Push Buttons (x2): [X] Connect each button between a selected ESP32-S3 GPIO and GND. [X] Enable internal pull-up resistors on the ESP32-S3 GPIOs or add external pull-up resistors (e.g., 10kΩ to 3.3V). [X] LEDs (x2): [X] Connect each LED's anode to 3.3V (or other suitable supply). [X] Connect each LED's cathode through a current-limiting resistor (e.g., 220Ω - 1kΩ, value depends on LED specs and desired brightness) to a selected ESP32-S3 GPIO.
- Power Supplies [ ] Input: Assume 5V input (e.g., from USB VBUS or external supply). [ ] 3.3V Regulator (LDO): [ ] Use MIC5504-3.3YM5-TR (SOT23-5 package). [ ] Connect LDO VIN pin to 5V input rail. [ ] Connect LDO GND pin to main ground plane. [ ] Connect LDO EN (Enable) pin to VIN (for always-on operation) or to an ESP32-S3 GPIO for software control. [ ] Connect LDO VOUT pin to the 3.3V power rail (supplying ESP32-S3, PCM5102, SD Card, UI pull-ups, etc.). [ ] Place input decoupling capacitor (e.g., 1µF ceramic) close to LDO VIN pin (to GND). [ ] Place output decoupling capacitor (e.g., 1µF ceramic) close to LDO VOUT pin (to GND). Check MIC5504 datasheet for specific capacitor requirements. [ ] 5V Rail: Ensure 5V rail is available for TPA6130A2 and LDO input. [ ] Layout: Employ good power supply layout practices (e.g., separate power planes or wide traces, proper decoupling placement).
Parts
116| Qty | Value | Footprint | References |
|---|---|---|---|
| 24 | 1N4148WS | Diode_SMD:D_SOD-323F | D1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +8 |
| 24 | ~ | libraries:CherryMX_1.00u_PCB | SW1, SW2, SW10, SW11, SW12, SW13, SW14, SW15, SW16, SW17, SW18, SW19, SW20, SW21, SW22, SW23 +8 |
| 12 | 10k | Resistor_SMD:R_0805_2012Metric | R1, R2, R7, R10, R11, R12, R13, R18, R19, R23, R25, R26 |
| 11 | 1uF | Capacitor_SMD:C_0805_2012Metric | C1, C3, C16, C17, C18, C19, C24, C25, C26, C27, C28 |
| 4 | 0.1uF | Capacitor_SMD:C_0805_2012Metric | C4, C5, C6, C12 |
| 4 | 0.47uF | Capacitor_SMD:C_0805_2012Metric | C20, C21, C22, C23 |
| 4 | 10uF | Capacitor_SMD:C_0805_2012Metric | C7, C8, C9, C13 |
| 4 | 22 | Resistor_SMD:R_0805_2012Metric | R20, R21, R22, R24 |
| 4 | 330 | Resistor_SMD:R_0805_2012Metric | R14, R15, R16, R17 |
| 4 | LED | LED_SMD:LED_0805_2012Metric | MODE_A1, MODE_B1, POWER1, RUNNING1 |
| 4 | TS04-66-75-BK-160-SMT | libraries:TS046675BK160SMT | BOOT1, MODE_A2, MODE_B2, RESET1 |
| 2 | 2.2nF | Capacitor_SMD:C_0805_2012Metric | C14, C15 |
| 2 | 2.2uF | Capacitor_SMD:C_0805_2012Metric | C10, C11 |
| 2 | 4.7k | Resistor_SMD:R_0805_2012Metric | R8, R9 |
| 2 | 470 | Resistor_SMD:R_0805_2012Metric | R5, R6 |
| 2 | 5.1k | Resistor_SMD:R_0805_2012Metric | R3, R4 |
| 1 | AP2112K-3.3TRG1 | libraries:SOT95P285X140-5N | IC5 |
| 1 | ESP32-S3-WROOM-1-N8 | libraries:ESP32S3WROOM1N8R2 | IC1 |
| 1 | MSD-1-A | libraries:MSD1A | J2 |
| 1 | PCM5100APWR | libraries:SOP65P640X120-20N | IC3 |
| 1 | SJ-43617-SMT-TR | libraries:SJ43617SMTTR | J3 |
| 1 | TPA6130A2RTJR | libraries:QFN50P400X400X80-21N-D | IC4 |
| 1 | UJ20-C-H-G-SMT-5-P16-TR | libraries:UJ20CHGSMT5P16TR | J1 |
Similar boards
- 4 layers180 × 35 mm

- 2 layers128 × 16.9 mm

- 4 layers55 × 97 mm

Melodio SelfMate V2
zeeblaze/Melodio-SelfMate
Your Ultimate Portable Music Companion For Home Automation.
121 parts53 - 2 layers44.3 × 33.5 mm

Audio iface rev1
bnahill/audiopulse-embedded
Miniature DPOAE infant hearing loss screening device
129 parts3 - 2 layers30 × 30 mm

Pocketradio
alx-alexpark/radio-keychain
It uses the connected headphones as an antenna, and is powered off a CR2032 coin cell. The FM tuner used is the Si4702, which supports the 76-108MHz frequency range.
36 parts - 4 layers2 × 24.9 mm

- 4 layers70 × 45 mm

Usb audio interface
tracelabs-pcb/usb-audio-interface
USB-C Audio Interface PCB — UAC2, Headset, Mic Preamp — KiCad 4-Layer
110 parts - 4 layers100 × 64.9 mm

Questions
How big is the Infinite keyboard PCB?
It measures 284 × 46.3 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Infinite keyboard use?
116 parts, built around the ESP32-S3-WROOM-1-N8, TPA6130A2RTJR, MSD-1-A and AP2112K-3.3TRG1. 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 Infinite keyboard KiCad files?
From the LastZactionHero/infinite-keyboard repository on GitHub, at the commit this page was made from: the board is infinite_keyboard/infinite_keyboard.kicad_pcb and its schematic infinite_keyboard/infinite_keyboard.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Infinite keyboard design in my own project?
Its repository states no licence, so its author keeps all rights: ask LastZactionHero before reusing the design.