Custom Mechanical Keyboard

A DIY custom mechanical keyboard built from individual components including switches, controller, PCB or hand-wired matrix, enclosure, and keycaps. Typically designed for 60% to full-size layouts with Cherry MX or Alps-compatible switches. Build approach ranges from prototype-quality hand-wiring to fully designed PCBs with CNC-machined or layered enclosures.

complexity: hardtolerance: general
Custom Mechanical Keyboard

Snapshot

Feasibility at a glance

PT localization

6/10

Partial

Most steps can be localised in Portugal.

Per unit

$15–200

at 1-unit volume

Starter batch

1units

minimum viable run

To first batch

8weeks

7 phases, design to ship

Budget

€8–15k

all-in estimate

Bottom line

Custom mechanical keyboards are fundamentally a systems-integration challenge rather than a high-volume commodity product. The value lies in design flexibility, firmware customization (QMK/VIA), and rapid prototyping of enclosures (CNC aluminum, laser-cut acrylic, 3D-printed cases). Portugal has a strong network of PCB houses, precision CNC shops, and electronics assemblers who can handle mixed SMT + through-hole builds with Teensy microcontrollers and hand-wired matrices. The main imported components—mechanical switches, keycaps, and MCU boards—are commodity items available from EU distributors (TME, Mouser EU, Digi-Key EU) with 1–2 week delivery. By keeping final integration, firmware flashing, enclosure fabrication, and QA in-house, you retain full IP control over the layout and firmware, reduce iteration cycles to days instead of weeks, and can offer bespoke one-off or small-batch builds that differentiate from mass-market keyboards. The localizationScore of 6 reflects this hybrid model: core electronics are commodity imports, but the value-added assembly, customization, and design are highly localizable.
Read full insight

A custom mechanical keyboard is well-suited to Portuguese local production because it relies on widely available PCB fabrication, SMT assembly, CNC machining, laser cutting, and basic through-hole soldering—all of which are standard capabilities in Portugal's electronics and precision manufacturing ecosystem. The relatively low volume (often single-unit or small batch) and high customization requirement favor local prototyping shops and contract manufacturers who can iterate designs quickly, avoid MOQ constraints, and provide hands-on firmware flashing and QA. While keycaps, switches, and the Teensy controller will still be sourced from specialist suppliers (Gateron, Cherry, PJRC), final assembly and integration can be localized. This approach minimizes lead time to 6–8 weeks, ensures EU compliance (CE, RoHS, REACH), and supports iterative design changes without the overhead of cross-border tooling or IP exposure.

What it does

3 capabilities

Registers every key press and sends the correct letter or command to your computer over USB.

Allows customization of layout, key feel, and appearance to match personal typing preferences.

Provides a durable, repairable input device that can be upgraded or modified over time.

How it's made

5 stations · build route

  1. 1

    Design the layout and case geometry

    Use CAD or vector software to plan switch positions, mounting holes, and enclosure layers.

  2. 2

    Fabricate the switch plate and enclosure

    Laser-cut aluminum or acrylic layers, CNC-machine a case, or 3D-print enclosure parts.

  3. 3

    Solder the switch matrix

    Hand-wire rows and columns with diodes, or populate and solder a custom PCB.

  4. 4

    Install and flash the controller

    Mount the Teensy 2 board, connect matrix wires, and upload keyboard firmware (QMK or TMK).

  5. 5

    Assemble enclosure and install keycaps

    Stack and fasten case layers, secure the PCB, snap switches into the plate, and press on keycaps.

Risks to watch

5 identified · 1 blocking

1 high
4 medium

High

CE Marking and EMC Compliance for USB Keyboards

Mechanical keyboards are electrical equipment sold in the EU and must carry CE marking under the Low Voltage Directive (2014/35/EU), EMC Directive (2014/30/EU), and RoHS Directive (2011/65/EU). USB devices can emit electromagnetic interference (especially with long unshielded cables or poorly grounded enclosures), and poorly designed PCBs may fail radiated emissions tests (EN 55032, EN 55035). The Teensy 2.0 controller itself is not CE-certified as a finished product—only as a component—so the integrator (you) is responsible for system-level compliance. If keyboards are sold without CE marking or fail market surveillance testing, you face fines, product recalls, and marketplace (Amazon, eBay) suspensions.

Mitigation — Engage an EU-based EMC test lab (e.g., SGS, TÜV Rheinland, Applus+) early in the design phase to pre-test prototypes for radiated/conducted emissions and immunity. Design the PCB with proper ground planes, ferrite beads on USB power lines, and shielded USB cables. Use metal or conductive-coated enclosures (aluminum, powder-coated steel) to provide Faraday shielding and reduce EMI. Prepare a Technical Construction File (TCF) with schematics, BOM, test reports, risk analysis, and Declaration of Conformity. If producing <1,000 units/year, consider self-certification with consultancy support; for higher volumes, invest in full third-party testing (€2,000–5,000). Ensure all components (switches, keycaps, PCB) are RoHS-compliant and REACH SVHC-free by requesting declarations from suppliers.

Medium

Component Supply Chain Concentration

Mechanical switches (Cherry MX, Gateron, Kailh), keycaps (PBT double-shot), and Teensy 2.0 controller boards are predominantly manufactured in Asia (China, Taiwan, Germany for Cherry). Lead times for switches can stretch to 4–8 weeks during high demand (e.g., pandemic-era gaming peripheral boom), and stock-outs of popular switch types (tactile browns, linear reds) are common. Keycap sets, especially custom legends or exotic profiles (SA, MT3), often have 8–12 week lead times. Teensy boards are single-sourced from PJRC (USA) with occasional stock shortages. A delay in any of these components halts final assembly, and there are few EU-based alternatives for mechanical switches or Teensy-compatible controllers.

Mitigation — Maintain safety stock (2–4 weeks' worth) of the top 3 switch types and Teensy controllers. Establish accounts with multiple EU distributors (TME Poland, Mouser Europe, Digi-Key Europe) to spread risk. Pre-qualify alternative controllers (Pro Micro, Elite-C, nice!nano) that are pin-compatible and QMK-supported, so firmware can be ported if Teensy stock runs out. For keycaps, partner with EU-based keycap vendors (e.g., Signature Plastics EU resellers, GMK in Germany) and offer a core set of in-stock profiles while positioning custom sets as premium add-ons with longer lead times. Buffer production schedules by 2 weeks to absorb component delays.

Medium

Firmware and Design IP Exposure

Custom keyboard designs are highly replicable: PCB layouts, enclosure CAD files, and QMK firmware configurations are often shared in open-source communities (GitHub, GeekHack, r/MechanicalKeyboards). If production is outsourced to a low-trust partner or if design files are uploaded to an online PCB house without NDA, there is risk that the design will be cloned and sold by competitors—especially in China where enforcement of design rights is weak. Firmware source code, if not properly licensed, can be forked and rebranded. Even within the EU, small CNC shops or PCB houses may reuse your enclosure design for other clients unless contractual IP protections are in place.

Mitigation — Use NDAs and IP ownership clauses with all contract manufacturers, PCB houses, and CNC shops. For PCBs, work with trusted EU fabricators (e.g., CICOREL, Eurocircuits) that have strong IP policies. Keep firmware repositories private or use permissive open-source licenses (MIT, GPL) that require attribution and derivative disclosure. Watermark or serialize PCBs with unique revision codes and batch numbers to trace leaks. For high-value custom enclosures, retain CAD files in-house and only share manufacturing-ready STEP or DXF files with minimal design intent. Consider filing for EU design rights (Registered Community Design) if the enclosure or PCB layout has commercial novelty.

Medium

Enclosure Fabrication and Finishing Delays

Custom enclosures—whether CNC-machined aluminum, laser-cut acrylic layers, or 3D-printed cases—are often the longest-lead and highest-cost items in a mechanical keyboard build. CNC machining for a single aluminum case can take 3–7 days per unit, and anodizing or powder-coating adds another 5–10 days. Laser-cutting acrylic is faster (1–2 days) but requires design iteration to ensure proper switch plate tolerances and screw hole alignment. 3D printing (FDM or SLA) is quick for prototypes but may not deliver production-quality surface finish or strength. If the enclosure vendor is overbooked or encounters tooling issues (broken end mills, acrylic cracking), the entire production run can slip by 2–4 weeks, delaying delivery even if all electronics are ready.

Mitigation — Dual-source enclosure fabrication: maintain relationships with both a primary CNC/laser shop and a backup (either another local shop or an online service like Xometry, Hubs). Front-load enclosure design and order sample cases 2 weeks before PCB assembly begins, so any fit issues (switch plate tolerance, standoff height) can be corrected. For aluminum cases, specify standard finishes (clear anodize, bead-blast) that most shops stock, avoiding custom colors that require batch minimums. For acrylic, order 10% extra layers to buffer against cracking or misalignment. If lead time is critical, design a modular enclosure that can be assembled from off-the-shelf extrusions or sheet stock, reducing custom machining.

Medium

Soldering and Assembly Defects in Low-Volume Builds

Mechanical keyboards require precise through-hole soldering (switches, diodes) and delicate SMT work (if using a custom PCB with controller, USB connector, and passives). Hand-soldering 61 switches and 61 diodes is error-prone: cold solder joints, bridged pads, reversed diode polarity, and loose switch pins are common in prototype or low-volume builds. If the assembler lacks experience with keyboard matrices or QMK firmware, they may not catch wiring errors until final testing—at which point rework is time-consuming and may damage the PCB. For hand-wired builds, wire routing and strain relief are critical; poor wire management can cause intermittent key failures or shorts.

Mitigation — Qualify your assembly partner with a pilot build of 5–10 units before committing to larger batches. Provide detailed assembly instructions, including diode orientation diagrams, switch insertion depth, and firmware flashing checklist. Use a PCB design with clear silkscreen labels for diode polarity and switch orientation. Implement 100% electrical testing: flash test firmware (QMK or VIA) and use a key tester script to verify every switch registers correctly. For hand-wired builds, specify wire gauge (24–26 AWG), stripping length, and solder joint inspection criteria (shiny, concave fillet). Train or hire assemblers with hobbyist keyboard-building experience (e.g., from local makerspaces or mechanical keyboard communities). Budget 10% rework time and spare components (switches, diodes, Teensy boards) to replace any defective parts.

Production timeline

8 weeks to first batch

wk 1wk 8

Layout Design and CAD Freeze

wk 1–2

PCB Fabrication and Component Procurement

wk 2–4

Enclosure and Switch Plate Fabrication

wk 4–6

PCB Assembly and Matrix Soldering

wk 6–7

Controller Installation and Firmware Flashing

wk 7

Final Assembly and Keycap Installation

wk 8

QA, Packaging, and First Batch Release

wk 8

wk 2–4 is the longest stretch — PCB Fabrication and Component Procurement takes 2 weeks of the 8 weeks on this build.

What goes into it

10 materials · 9 processes

Materials

FR4 PCB substratealuminum plateacrylicwoodstainless steelpolycarbonatePLA or ABS plasticcopper wiresolderelectronic components

Processes

pcb_fabricationsmt_assemblythrough_hole_assemblycnc_machininglaser_cuttingfdm_printingsolderingwire_harnessfinal_assembly

Design philosophy and best practices

5 principles

A custom mechanical keyboard is a stack of PCB, plate, case and keycaps. Typing feel, sound and reliability come from how those layers are mounted and how the firmware handles the switch matrix.

1

Pick the mounting style first

Tray, top, gasket and leaf-spring mounts give very different feel and sound. The choice fixes the case geometry, plate tabs and screw positions.

2

Design the PCB for hot-swap and USB robustness

Hot-swap sockets let users change switches without soldering. USB-C needs ESD protection, correct CC resistors and good shielding to pass EMC testing for CE marking.

3

Match plate material to target feel

Aluminium is stiff and bright, polycarbonate flexes and sounds softer, steel is firm. Plate thickness near 1.5 mm is the common switch clip-in standard.

4

Use open firmware

QMK or VIA-compatible firmware with a common microcontroller lets owners remap keys and eases support.

5

Tune acoustics with dampening layers

Foam between PCB and case, and case foam, reduce hollow sound. Plan their thickness in the stack from the start.

Common pitfalls

Avoid

Stabiliser rattle on long keys from poor fit or no lubrication.

Avoid

Case tolerance stack-up that pinches the gasket and kills the flex it was designed for.

Avoid

Ignoring RoHS and CE EMC requirements for the PCB when selling in the EU.

Avoid

Ordering keycaps with a profile that does not match the layout's bottom row.

10-year evolution forecast (2026-2036)

4 phases

The enthusiast keyboard market has matured from group buys to steady retail products. These are trend directions, not forecasts.

2026–2028

Magnetic switches spread

Trend: Hall-effect switches with adjustable actuation move from gaming into mainstream custom boards.

2028–2031

Wireless as standard

Trend: low-latency tri-mode wireless with long battery life becomes expected rather than premium.

2031–2034

Repairable and modular cases

Trend: right-to-repair rules and buyer interest favour boards with replaceable PCBs, batteries and plates.

2034–2036

Lower-impact materials

Trend: recycled aluminium and bio-based polymers appear more often in cases and keycaps.

Outlook

Products that combine open firmware, repairable design and a clear acoustic character should hold up best.

Materials intelligence

10 materials

FR4 laminate

Low supply risk

PCB substrate

Sourced from: China, Taiwan and Southeast Asia

Aluminium 6061/6063

Low supply risk

Case and plate

Sourced from: Europe, Middle East and China

Polycarbonate

Low supply risk

Plate or case

Sourced from: Europe, US and Asia petrochemical producers

PBT

Low supply risk

Keycaps

Sourced from: Asia and Europe

ABS

Low supply risk

Keycaps or prototype parts

Sourced from: Asia and Europe

Stainless steel

Low supply risk

Plate and screws

Sourced from: China, Europe, India

Acrylic (PMMA)

Low supply risk

Layered or translucent case

Sourced from: Europe and Asia

Poron or EVA foam

Low supply risk

Dampening layers

Sourced from: US, Japan, China

Microcontroller (ARM Cortex-M)

Medium supply risk

Keyboard controller

Sourced from: Fabs in Taiwan and Asia; designers in EU and US

Hardwood

Low supply risk

Case or wrist rest

Sourced from: Europe and North America

Prototyping and rapid manufacturing in Portugal

7 companies from the atlas

PCB fabrication and SMT assembly

Main keyboard PCB with hot-swap sockets

SMT and through-hole assembly with test

Small-batch PCB assembly and functional test

Adlanext, Unipessoal Lda

Celorico de Basto

CNC machining with anodizing

CNC aluminium case with anodised finish

ROQ Laser

Vila Nova de Famalicão

Laser cutting and sheet metal

Laser-cut steel or aluminium switch plate

3DWays

Oeiras

CNC, anodizing, SLA and laser sintering prototypes

SLA and CNC prototype cases and plates

Rapid moulds and injection moulding

Injection-moulded case or keycap tooling for volume

c.8 Wewood

Paços de Ferreira

Wood products

Wooden case or wrist rest

547 Portuguese manufacturers matched

None cover the whole build — it splits across steps.