New spec
Electronicshardgeneral

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.

EU localization
6/10
Per unit
$15–200
Starter batch
1units
To first batch
8weeks
Budget
€8,000–15,000 (covers design freeze, PCB fabrication, enclosure tooling for 5–10 units, component procurement, assembly labor, firmware development, and first-batch QA)

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

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.

Recommended path

What we suggest, based on the analysis.

Produce in Portugal

Local Production in Portugal

Best fit
Lead time
7 weeks
Cost / unit
€80–150
Confidence
8/10

Design and integrate the keyboard locally using Portuguese PCB fabricators, CNC/laser-cutting shops for enclosures, and electronics assemblers for soldering and final assembly. Source mechanical switches, keycaps, and Teensy controllers from EU distributors (TME, Mouser, Digi-Key). Firmware customization and QA performed in-house.

Suggested companies

Neutrik (Liechtenstein)Local Portuguese PCB fabricators (e.g., CICOREL, Placa Electrónica)Portuguese CNC and laser-cutting job shops (e.g., LaserProto, MetalCNC PT)TME Poland (component distribution)
Why this path?5 pros · 4 cautions

Pros

  • Shortest lead time (6–8 weeks) with rapid iteration for design changes
  • Full IP control over firmware, layout, and enclosure designs
  • No MOQ constraints; ideal for one-off prototypes or small batches (1–50 units)
  • Direct oversight of quality, soldering, and firmware flashing
  • EU compliance (CE, RoHS, REACH) straightforward with local partners

Cautions

  • Higher per-unit cost (€80–150) due to low-volume CNC, laser cutting, and hand assembly
  • Reliance on importing switches, keycaps, and controllers from Asia or specialty EU vendors
  • Limited scalability; difficult to ramp to >500 units without significant cost penalties
  • Enclosure finishes (anodizing, powder coating) may require outsourcing to specialized shops
Compare alternatives3

Other paths weighed against the recommendation

White-label EUWhite-Label from EU Vendor
Lead
5w
Cost
€50–90
Confidence
6/10
Details

Purchase pre-assembled mechanical keyboard kits or finished keyboards from an EU-based contract manufacturer or keyboard specialist, then rebrand with custom keycaps, firmware, and packaging. Suppliers may offer semi-custom layouts (60%, TKL, full-size) with choice of switch type and case finish.

Faster time-to-market (4–6 weeks) with proven designs and existing tooling
Lower risk; vendor handles PCB, assembly, enclosure manufacturing, and base QA
Moderate cost (€50–90/unit) for batches of 50–200 units
EU compliance and RoHS/REACH already certified by vendor
Limited design flexibility; stuck with vendor's layout, case geometry, and switch mounting
Less differentiation; many competitors can access the same white-label platforms
Firmware may be locked or require vendor cooperation to customize (QMK/VIA support unclear)
Vendor may impose MOQs (50–100 units) that don't suit ultra-low-volume or one-off builds
EU Co-DevelopmentCo-Development with EU Partner
Lead
12w
Cost
€60–100
Confidence
7/10
Details

Collaborate with a specialized EU electronics design house or keyboard OEM to co-develop a custom PCB, enclosure, and firmware stack. Partner provides PCB layout, component sourcing, enclosure tooling (injection mold or CNC fixture), and assembly line setup. Suitable for medium volumes (200+ units) or productized designs requiring ongoing manufacturing.

Full design control with professional PCB layout, firmware engineering, and mechanical CAD
Scalable to medium-high volumes (200–5,000 units) with repeatable quality
Partner handles regulatory testing (CE, RoHS, EMC) and certification documentation
Access to EU-based supply chain for switches, keycaps, and controller ICs
Longer lead time (10–14 weeks) for initial design, prototyping, and tooling
Higher upfront NRE (€5,000–15,000) for custom PCB, firmware, and enclosure tooling
Per-unit cost (€60–100) still elevated compared to Asian mass production
IP sharing with partner; need clear contractual terms on firmware and design ownership
China (Baseline)Import from China (Price Baseline)
Lead
10w
Cost
€25–50
Confidence
9/10
Details

Source fully assembled mechanical keyboards or complete DIY kits from Chinese OEMs specializing in custom keyboards (Shenzhen ecosystem). Vendors offer wide switch selection, aluminum CNC cases, hot-swap PCBs, and pre-flashed QMK firmware. Intended as cost/lead-time reference only; not recommended for localized IP control or rapid iteration.

Lowest per-unit cost (€25–50) for batches of 100+ units
Mature supply chain with access to all switch types, keycap profiles, and case finishes
Proven designs with extensive community support (QMK firmware, open-source PCBs)
Can scale to very high volumes (1,000+ units) with established tooling
Long lead times (8–12 weeks) including ocean freight and customs clearance
IP exposure; designs and firmware may be copied or resold without authorization
Quality variability; need rigorous incoming QA and sample approval
Regulatory risk; must self-certify CE, RoHS, REACH compliance and manage customs documentation
Communication and iteration cycles slow; time-zone and language barriers

What it does

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

  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

  • Component Supply Chain Concentrationmedium

    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.

  • Firmware and Design IP Exposuremedium

    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.

  • CE Marking and EMC Compliance for USB Keyboardshigh

    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.

  • Enclosure Fabrication and Finishing Delaysmedium

    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.

  • Soldering and Assembly Defects in Low-Volume Buildsmedium

    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 · 7 steps

Step-by-step plan7

Full description of every production step

  1. 1

    Layout Design and CAD Freeze

    1.5w

    Finalize the keyboard layout (61-key, ANSI or ISO), switch positions, and enclosure geometry using CAD software (KiCad for PCB, Fusion 360 or FreeCAD for mechanical). Generate Gerber files for PCB fabrication, DXF/STEP files for switch plate and enclosure layers. Define switch type (Cherry MX, Gateron), keycap profile (Cherry, OEM, SA), and controller pinout (Teensy 2.0). Lock BOM and firmware configuration (QMK layout JSON).

  2. 2

    PCB Fabrication and Component Procurement

    2w

    Submit Gerber files to EU PCB house (e.g., Eurocircuits, CICOREL) for 2-layer FR4 board with ENIG or HASL finish. Order mechanical switches (61× Cherry MX or Gateron), diodes (61× 1N4148 through-hole or SOD-123 SMD), Teensy 2.0 controller, USB cable, and passive components (resistors, capacitors if needed) from EU distributors (TME, Mouser). Receive PCBs in 7–10 days and components in 5–7 days.

    Needs: Layout Design and CAD Freeze

  3. 3

    Enclosure and Switch Plate Fabrication

    2w

    CNC-machine aluminum top and bottom case halves, or laser-cut acrylic/FR4 layers for a layered sandwich-style enclosure. Laser-cut or waterjet-cut the switch plate (1.5 mm aluminum or stainless steel) with 14×14 mm square cutouts for Cherry MX switches. Apply surface finish (anodize, powder coat, or bead blast for aluminum; edge polishing for acrylic). Tap screw holes and install threaded inserts or standoffs.

    Needs: Layout Design and CAD Freeze

  4. 4

    PCB Assembly and Matrix Soldering

    1w

    Populate the PCB with diodes (solder in correct orientation, cathode toward column), through-hole sockets or direct-solder pads for switches, and header pins or direct-solder pads for Teensy 2.0. If using SMT components, perform reflow or hand-solder. Hand-wire the matrix if no PCB is used: solder rows and columns of wire to switch pins with diodes inline. Inspect all solder joints for cold joints, bridges, or loose connections.

    Needs: PCB Fabrication and Component Procurement

  5. 5

    Controller Installation and Firmware Flashing

    0.5w

    Mount the Teensy 2.0 controller to the PCB (socket or direct solder). Connect matrix rows and columns to the appropriate Teensy GPIO pins per the firmware pinout. Flash QMK or TMK firmware via USB using QMK Toolbox or Teensy Loader. Test the matrix by shorting each switch position and verifying keycode output in a key tester (VIA, QMK Configurator test mode, or online key tester). Debug any non-responsive keys or ghosting.

    Needs: PCB Assembly and Matrix Soldering

  6. 6

    Final Assembly and Keycap Installation

    0.5w

    Insert mechanical switches into the switch plate and snap or solder them into the PCB. Stack enclosure layers (bottom case, PCB with standoffs, switch plate, top case) and secure with screws. Route and dress internal wiring if hand-wired. Install USB cable (detachable or fixed). Press keycaps onto switch stems, ensuring proper alignment and seating. Perform final functional test: verify all keys register, test modifier combinations, check for any mechanical wobble or loose screws.

    Needs: Enclosure and Switch Plate Fabrication, Controller Installation and Firmware Flashing

  7. 7

    QA, Packaging, and First Batch Release

    0.5w

    Conduct full QA: key rollover test (6KRO or NKRO), typing feel assessment, firmware stability check, and visual inspection for cosmetic defects (scratches, misaligned keycaps). Clean enclosure and keycaps. Package each keyboard with USB cable, user manual (firmware flashing guide, layout map), and any spare parts (extra switches, keycap puller). Box and label for shipment. Release first batch (1–50 units).

    Needs: Final Assembly and Keycap Installation

  1. 1Layout Design and CAD Freeze· 1.5w
  2. 2PCB Fabrication and Component Procurement· 2w
  3. 3Enclosure and Switch Plate Fabrication· 2w
  4. 4PCB Assembly and Matrix Soldering· 1w
  5. 5Controller Installation and Firmware Flashing· 0.5w
  6. 6Final Assembly and Keycap Installation· 0.5w
  7. 7QA, Packaging, and First Batch Release· 0.5w
Technical specs

9 processes · 10 materials · 8 parts

Processes

PCB FabricationSMT AssemblyThrough-Hole AssemblyCNC MachiningLaser CuttingFDM 3D PrintingSolderingWire HarnessFinal Assembly

Materials

FR4 PCB substrate

FR4 PCB substrate

aluminum plate

aluminum plate

acrylic

wood

stainless steel

stainless steel

polycarbonate

polycarbonate

PLA or ABS plastic

PLA or ABS plastic

copper wire

copper wire

solder

electronic components

Key requirements

  • Matrix wiring (rows and columns) connecting all switches to controller
  • Teensy 2 or equivalent Atmega32u4-based controller for firmware
  • Mechanical switches (Cherry MX, Gateron, Kailh, or Alps) with proper mounting
  • Diodes for each switch to prevent ghosting
  • Enclosure that accommodates switch plate and PCB stack-up

Bill of materials

  • 1
    Mechanical switches×61

    Registers each key press with a tactile or linear mechanism that closes an electrical circuit when pressed.

  • 2
    Switch plate

    Holds all the switches in precise alignment and provides rigidity and a stable typing feel.

  • 3
    PCB or hand-wired matrix

    Connects switches in rows and columns so the controller can scan which keys are pressed.

  • 4
    Teensy 2 controller board

    Reads the switch matrix and translates key presses into USB keyboard signals for the computer.

  • 5
    Diodes×61

    Prevents ghosting by ensuring current flows in only one direction through each switch.

  • 6
    Enclosure case

    Houses and protects all internal components while providing weight and aesthetic finish.

  • 7
    Keycaps×61

    Provides the labeled typing surface for each key and attaches to the switch stem.

  • 8
    Screws and standoffs×8

    Secures the layered or assembled enclosure and holds the PCB in place.

Compliance checklist7

Regulations and certifications to clear

  • CE marking (Low Voltage Directive 2014/35/EU, EMC Directive 2014/30/EU)
  • RoHS Directive 2011/65/EU (Restriction of Hazardous Substances in electrical equipment)
  • REACH Regulation (EC) 1907/2006 (SVHC declaration for all components and materials)
  • EN 55032 (Electromagnetic compatibility of multimedia equipment – Emission requirements)
  • EN 55035 (Electromagnetic compatibility of multimedia equipment – Immunity requirements)
  • EN IEC 63000:2018 (Technical documentation for the assessment of electrical and electronic products with respect to RoHS)
  • USB-IF compliance (optional; USB 2.0 HID device class – ensures interoperability)