Skip to the content
2 layers154.6 × 96.5 mmKeyboard v1, the printed circuit board in 3D

Custom 4x4 mechanical keyboard PCB featuring USB HID firmware on RP2040, addressable RGB LEDs (SK6812) driven via PIO state machine, rotary encoder brightness control, and HSV color animation functions.

Size
154.6 × 96.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
77
Nets
89
Pads
320
Tracks, vias
768, 116
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
15 Jun 2026
Updated
12 Sep 2026

Overview

Keyboard v1 is an open-source printed circuit board by mitec-06, from the mitec-06/Custom-4x4-Mechanical-Keyboard repository on GitHub. It is a 2-layer board of 154.6 × 96.5 mm with 77 parts on 89 nets, routed with 768 tracks and 116 vias.

It is built around the SN74LV1T34DBV, UUP1H0R1MCL1GS and RC0805FR-0710KL. Its parts include 32 diodes, 18 capacitors, 17 switches, 4 resistors and 1 IC. It belongs with the keyboards and input and lEDs and displays boards and the RP2040 boards of this library.

Main components

3

README

README.md

Custom 4x4 Keyboard PCB Design

This project is a custom 4x4 mechanical keyboard PCB featuring USB HID firmware on RP2040, addressable RGB LEDs (SK6812) driven via PIO state machine, rotary encoder brightness control, and HSV color animation functions.

Functions

Core Functions

  • 16 keys arranged in a 4 x 4 matrix pattern.

  • 6 key rollover - up to 6 simultaneous keypresses registered.

  • USB HID keyboard output - It can work as a plug-and-play keyboard on any computer.

  • Debouncing key detection - Prevents false or double triggers from a mechanical switch bounce.

  • Diode per key - Diodes were included for every key in order to prevent ghosting.

LED Functions

  • Idle RGB ripple animation - Outward ripple effect starting from center rings cycling through the entire HSV color spectrum.

  • Keypress-reactive LEDS - Animation switches to keypress mode when any key is pressed, returns to idle afterwards.

  • Full HSV color transition - Smooth transition between red, orange, yellow, green, cyan, blue, magenta and back.

  • Ring based animation - Three concentric rings with slight phase offset creating a ripple appearance.

  • Brightness control - Using a rotary encoder, smooth brightness scaling from 0-100% applied uniformly to all LEDs.

  • Brightness preserved across all animation modes, whether its idle or a key is being pressed.

Encoder Functions

  • Clockwise rotation increases brightness, counterclockwise rotation decreases brightness.

  • Hardware debouncing edge detection - Prevents any skips when rotating the encoder.

Hardware Features

  • 3.3V to 5V level shifting for LED data signal via SN74LV1T34

  • Daisy-chained SK6812 MINI-E LEDs driven via RP2040 PIO state machine.

  • RP2040 PIO state machine - Dedicated programmable Input/Output handles precise WS2812 timing independent of CPU timing.

  • WS2812 protocol followed to ensure correct latch reset timing.

  • USB powered - single cable for both HID and power communication.

Timeline

April 2026 - May 2026

Primarily worked on keyboard research, and drafting the schematic and pcb. Once the pcb was finished, spent some time revising the placement of parts on the board to make sure that there were no shorts or awkward placements that would make assembly difficult.

Schematic

PCB Layout

May 2026 - June 2026

Ordered the first batch of PCBs from PCBWay, and begun soldering the first prototype, however several hardware bugs prevented the LEDs from functioning properly, causing odd behavior, and allowing only the typing to work.

First Prototype

June 2026 - July 2026

Managed to get the first four LEDs of the board working, with the other 12 not functioning properly.

Extensively debugged several iterations of the board, ultimately finding that the DIN and DOUT pins on the SK6812 MINI-Es were swapped on the 5th-8th LEDs.

Because the keyboard follows a serpentine transmission of data where the signal of the next LED depends on the signal of the last LED, this broke the sequence for the rest of the LEDs.

Ultimately, the DIN/DOUT pins were finally oriented correctly, and a new batch of PCBs were ordered.

July 2026 - August 2026

Assembled and soldered the new functioning PCBs, which finally had all 16 LEDs turn on properly. In this time period, the rest of the firmware was added, including the logic for the HSV color transition, the ring-like HSV color animation, the logic for the LED brightness dimming, etc.

In this time period, the case of the PCB was modelled using OnShape, and 3D printed, being assembled towards the end of this project, and ultimately yielding the final keyboard product. :)

Keyboard Front

Future Improvements

  • Most notably, while assembling/soldering check more frequently whether the parts assembled have the right voltage/behavior using tools such as oscilloscopes or multimeters.

  • When hardware debugging, record previous symptoms of the build to ensure that the user assembling the PCB has the full picture, and might not confuse the actual cause of the bug for something else.

  • Exercise more caution right before ordering PCBs, ensuring several times that the parts on the PCB have been wired correctly, even if it may pass the Design Rule Check.

Parts

77
QtyValueFootprintReferences
18UUP1H0R1MCL1GS0.1 uF Capacitor:CAP_UCD_4X5P8_NCHC1, C2, C3, C4, C5, C6, C7, C10, C11, C12, C13, C14, C15, C16, C17, C18 +2
161N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD13, D33, D34, D35, D36, D37, D38, D39, D40, D41, D42, D43, D44, D45, D46, D47
16MX_SK6812MINI-EPCM_marbastlib-mx:LED_MX_6028RLED1, LED2, LED3, LED4, LED5, LED6, LED7, LED8, LED9, LED10, LED11, LED12, LED13, LED14, LED15, LED16
16SW_SPSTButton_Switch_Keyboard:SW_Cherry_MX_1.00u_PCBSW2, SW3, SW4, SW5, SW6, SW7, SW8, SW9, SW10, SW11, SW12, SW13, SW14, SW15, SW16, SW17
4MountingHoleMountingHole:MountingHole_3.2mm_M3REF1, REF2, REF3, REF4
4RC0805FR-0710KLBigger 10K Ohm Resistor:RC0805N_YAGR1, R2, R3, R5
1RaspberryPi_PicoModule:RaspberryPi_Pico_Common_UnspecifiedA1
1RotaryEncoder_SwitchRotary_Encoder:RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mmSW1
1SN74LV1T34DBVPackage_TO_SOT_SMD:SOT-23-5U1

Similar boards

  • 6 layers235.1 × 213.7 mmQuiver PT3 Main PCB rounded, the printed circuit board in 3D

    Quiver PT3 Main PCB rounded

    Arrow-air/project-quiver

    Project Quiver documentation, designs, and project artifacts.

    164 parts617CERN-OHL-S-2.0
  • 6 layers178 × 211 mmCBC PCB, the printed circuit board in 3D

    CBC PCB

    Arrow-air/project-caribou

    Project Caribou documentation, designs, and project artifacts.

    319 parts177CERN-OHL-S-2.0
  • 2 layers30 × 94 mmBigass 7 segment, the printed circuit board in 3D

    Bigass 7 segment

    CoolNamesAllTaken/radar-speed-sign

    How much zoom is too much zoom?

    37 parts46
  • 2 layers119.9 × 57 mm1v2boost, the printed circuit board in 3D

    1v2boost

    benkrasnow/1v2-boost-converter

    Schematics and PCB layout for a boost converter 0.9V minimum input, 30A maximum input current

    77 parts7MIT
  • 2 layers120 × 80 mmReference, the printed circuit board in 3D

    Reference

    dshills/KiCadAI

    AI-assisted KiCad design toolkit with Go CLI, direct schematic/PCB writers, validation, and pinmap checks.

    17 parts7MIT
  • 2 layers40 × 125 mmMoisture sensor, the printed circuit board in 3D

    Moisture sensor

    friedrich/soil-moisture-sensor

    Capacitive moisture sensor

    35 parts7
  • 4 layers119 × 95.4 mmRight, the printed circuit board in 3D

    Right

    sub-arctic/keyboard

    Skardel (not sure why/how I landed on that name, or what it means really) is a low profile (ish) split wireless keyboard, with a 3x5+3 layout inspired by the likes of Corne and similar.

    50 parts4
  • 2 layers90 × 100 mmMeshcore NaIon, the printed circuit board in 3D

    Meshcore NaIon

    Alksndr55/mesh-repeater

    Mesh Repeater v1 — одноплатный LoRa-репитер для MeshCore и Meshtastic, 90×100 мм. Упор на максимальное энергосбережение и работу в суровых сибирских зимах. Солнечный зарядник, Na-ion 1S / LTO 2S.

    154 parts3

Questions

How big is the Keyboard v1 PCB?

It measures 154.6 × 96.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Keyboard v1 use?

77 parts, built around the SN74LV1T34DBV, UUP1H0R1MCL1GS and RC0805FR-0710KL. 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 Keyboard v1 KiCad files?

From the mitec-06/Custom-4x4-Mechanical-Keyboard repository on GitHub, at the commit this page was made from: the board is hardware/keyboard_v1.kicad_pcb and its schematic hardware/keyboard_v1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Keyboard v1 design in my own project?

Its repository states no licence, so its author keeps all rights: ask mitec-06 before reusing the design.