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.

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
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.
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.
5 stations · build route
Design the layout and case geometry
Use CAD or vector software to plan switch positions, mounting holes, and enclosure layers.
Fabricate the switch plate and enclosure
Laser-cut aluminum or acrylic layers, CNC-machine a case, or 3D-print enclosure parts.
Solder the switch matrix
Hand-wire rows and columns with diodes, or populate and solder a custom PCB.
Install and flash the controller
Mount the Teensy 2 board, connect matrix wires, and upload keyboard firmware (QMK or TMK).
Assemble enclosure and install keycaps
Stack and fasten case layers, secure the PCB, snap switches into the plate, and press on keycaps.
Design the layout and case geometry
Use CAD or vector software to plan switch positions, mounting holes, and enclosure layers.
Fabricate the switch plate and enclosure
Laser-cut aluminum or acrylic layers, CNC-machine a case, or 3D-print enclosure parts.
Solder the switch matrix
Hand-wire rows and columns with diodes, or populate and solder a custom PCB.
Install and flash the controller
Mount the Teensy 2 board, connect matrix wires, and upload keyboard firmware (QMK or TMK).
Assemble enclosure and install keycaps
Stack and fasten case layers, secure the PCB, snap switches into the plate, and press on keycaps.
5 identified · 1 blocking
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.
8 weeks to first batch
Layout Design and CAD Freeze
wk 1–2PCB Fabrication and Component Procurement
wk 2–4Enclosure and Switch Plate Fabrication
wk 4–6PCB Assembly and Matrix Soldering
wk 6–7Controller Installation and Firmware Flashing
wk 7Final Assembly and Keycap Installation
wk 8QA, Packaging, and First Batch Release
wk 8Layout Design and CAD Freeze
PCB Fabrication and Component Procurement
Enclosure and Switch Plate Fabrication
PCB Assembly and Matrix Soldering
Controller Installation and Firmware Flashing
Final Assembly and Keycap Installation
QA, Packaging, and First Batch Release
wk 2–4 is the longest stretch — PCB Fabrication and Component Procurement takes 2 weeks of the 8 weeks on this build.
10 materials · 9 processes
Materials
Processes
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.
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.
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
7 companies from the atlas
Braga
PCB fabrication and SMT assembly
Main keyboard PCB with hot-swap sockets
Aveiro
SMT and through-hole assembly with test
Small-batch PCB assembly and functional test
Celorico de Basto
CNC machining with anodizing
CNC aluminium case with anodised finish
Vila Nova de Famalicão
Laser cutting and sheet metal
Laser-cut steel or aluminium switch plate
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
Paços de Ferreira
Wood products
Wooden case or wrist rest
547 Portuguese manufacturers matched
None cover the whole build — it splits across steps.
547 matched · 8 shown, ranked by coverage
Services each manufacturer can handle for this build.
Manufacturer
Location
Covers
Certifications
People
Ovar
ISO 13485, EFQM
1100
Aveiro
ISO 9001, ISO 14001, ISO 27001, ISO 45001, IATF 16949, IPC-A-610, RoHS Compliance
—
Braga
ISO 9001, RoHS Compliance
32
Portuguese producers per required step
Final Assembly
369
CNC Machining
212
SMT Assembly
36
FDM 3D Printing
33
Laser Cutting
13
Soldering
13
Through-Hole Assembly
7
PCB Fabrication
6
Wire Harness
5
How many cover more than one step
The gap
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.
Send one RFQ to the top 4
Keenfinity EMS, Uartrónica, Proto-Electronics, 3DWays — same package, one click.
10 tasks · 8 weeks to first batch
Week 1
2 tasks
Finalize 61-key layout and generate PCB Gerbers
Complete KiCad schematic and PCB layout for 61-key matrix with Teensy 2.0 pinout, diode placement, and USB connector. Export Gerber files, drill files, and BOM. Validate switch spacing (19.05 mm) and mounting holes.
Design and export enclosure CAD files (switch plate + case)
Model aluminum or acrylic sandwich-style enclosure in Fusion 360. Generate DXF for laser-cut switch plate (1.5 mm aluminum) and case layers. Specify screw positions, standoff heights, and USB cutout. Export STEP files for CNC shop.
Weeks 2–3
3 tasks
Order PCBs from Portuguese or EU fabricator
waits on Finalize 61-key layout and generate PCB Gerbers
Submit Gerbers to CICOREL (Portugal) or Eurocircuits (Belgium) for 2-layer FR4 PCBs, ENIG finish, 1.6 mm thickness. Order 10 boards (5 production + 5 spares). Lead time 7–10 days.
Procure switches, diodes, Teensy controllers, and keycaps
Order 61× Cherry MX or Gateron switches, 61× 1N4148 diodes, 5× Teensy 2.0 boards, USB cables, and keycap set from TME Poland or Mouser Europe. Confirm stock availability and place order; expect 5–7 day delivery.
Fabricate switch plate and enclosure with local CNC/laser shop
waits on Design and export enclosure CAD files (switch plate + case)
Send DXF/STEP files to Portuguese CNC or laser-cutting shop (e.g., LaserProto, MetalCNC PT). Order 10× switch plates (1.5 mm aluminum) and 10 sets of enclosure layers (aluminum or acrylic). Request clear anodize or bead-blast finish. Lead time 10–14 days.
Weeks 4–7
3 tasks
Assemble and solder first 5 PCBs with matrix and Teensy
waits on Order PCBs from Portuguese or EU fabricator, Procure switches, diodes, Teensy controllers, and keycaps
Populate PCBs with diodes (verify cathode orientation), solder Teensy 2.0 headers, and hand-solder switch sockets or direct-mount switches. Use magnification and inspection jigs to ensure clean joints. Test continuity on matrix rows/columns.
Flash QMK firmware and test matrix functionality
waits on Assemble and solder first 5 PCBs with matrix and Teensy
Configure QMK firmware with correct pinout for Teensy 2.0. Flash via QMK Toolbox. Short each switch position on PCB and verify keycode registration in VIA or online key tester. Debug any non-responsive keys or ghosting issues.
Assemble enclosures, install switches and keycaps
waits on Fabricate switch plate and enclosure with local CNC/laser shop, Flash QMK firmware and test matrix functionality
Insert switches into plates, snap into PCBs. Stack case layers with standoffs and screws. Route USB cable through case cutout. Press keycaps onto switch stems. Perform mechanical fit check (no wobble, proper plate alignment).
Weeks 8–16
2 tasks
Conduct full functional and typing QA on 5 units
waits on Assemble enclosures, install switches and keycaps
Test each keyboard for key rollover (NKRO), modifier combinations, typing feel, and firmware stability. Inspect for cosmetic defects (scratches, loose keycaps). Document any assembly or design issues for iteration.
Prepare compliance documentation and self-certify CE/RoHS
waits on Conduct full functional and typing QA on 5 units
Compile Technical Construction File: schematics, BOM, RoHS declarations from suppliers, risk analysis, and Declaration of Conformity. Engage EU EMC consultant if budget allows for pre-compliance advice (optional for prototype).
3 roles to fill before month one
Contract electronics engineer with KiCad and QMK firmware experience
João Pereira – PCB Layout & Firmware Engineer
You need an experienced engineer to finalize the PCB layout, validate the Teensy 2.0 matrix wiring, and configure/debug QMK firmware. João can also train your team on firmware flashing and key testing protocols.
Local precision fabrication shop for switch plates and enclosures
LaserProto (Lisbon) – CNC & Laser Cutting Shop
LaserProto can laser-cut aluminum switch plates and acrylic case layers with tight tolerances (±0.1 mm) and fast turnaround (7–10 days). They offer anodizing and edge polishing, critical for a premium feel.
Portuguese PCB manufacturer with EU compliance and quick turnaround
CICOREL (Portugal) – PCB Fabricator
CICOREL provides local 2-layer PCB fabrication with ENIG finish, RoHS compliance, and 7-day lead times. Keeping PCB production in Portugal ensures IP control and rapid iteration if design changes are needed.
5 things to avoid in this plan
supply
Watch for component stock-outs: Cherry MX switches and Teensy 2.0 boards have unpredictable availability. Secure orders early and pre-qualify Gateron switches and Pro Micro controllers as drop-in alternatives.
quality
Lock in enclosure tolerances: Switch plate cutouts must be 14×14 mm (±0.1 mm) for Cherry MX stems. Request sample plates from the CNC shop before ordering the full batch to verify fit.
cost
Plan for soldering rework: Hand-soldering 61 switches and diodes is error-prone. Budget 10% spare components and 2–3 days of rework time. Use a qualified assembler or train in-house with pilot boards.
certification
Prepare for CE self-certification: Keyboards are electrical equipment and need CE marking. Start the Technical Construction File early and gather RoHS declarations from all suppliers to avoid marketplace compliance blocks.
lead time
Manage lead-time variability in enclosure finishing: Anodizing and powder coating can add 7–10 days and are often outsourced by CNC shops. Specify standard finishes (clear anodize, bead-blast) to avoid delays.
2 tasks in week 1
Finalize 61-key layout and generate PCB Gerbers