Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Build a one-row keyboard as a small hand-wired switch matrix: decide the key count and keymap, choose switches, design a plate or case around their footprint, print and test-fit it, wire every switch and diode to a QMK-compatible controller, configure the physical and electrical layouts in QMK, and test every key before closing the case. The visible row is a mechanical arrangement; it does not dictate how the switches must be arranged electrically.

What a one-row keyboard actually is

A one-row keyboard can be a macro pad, a compact typing experiment, or a dedicated function row. Those uses can require very different numbers of keys and different layers, so the first decision is not the printer or the controller. Write down what each key should do, including shifted functions or alternate layers, before drawing the enclosure.

The build has two separate layouts:

  • Physical layout: the positions of the switches in the printed plate and the order in which a user sees them.
  • Electrical matrix: the row and column coordinates that the firmware scans through the controller pins.

QMK keeps these concepts separate. A straight physical row may use more than one electrical matrix row, and firmware maps each physical position to its matrix coordinate. Treating the two layouts as identical without checking the firmware configuration is a common cause of keys producing the wrong character.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

QMK Firmware’s Hand-Wiring Guide notes that “There are many ways to hand wire a PCB matrix, this guide will describe the fundamentals as well as some recommended ways to go about it.” Use that guidance for the matrix, diode, component, and testing fundamentals, while treating the exact geometry and controller pin assignment as decisions for your particular design.

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter | 4Pack Type C Female to A Male Cable Converter for Apple Duo 17 16 15 14 Plus,iWatch Watch 12 11 10,iPad 9 8 Air,Airpods 5 4
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Decide the key count and keymap first

Choose the job

List the key positions from left to right and assign a purpose to each one. For a macro pad, that might be application shortcuts; for a function row, it might be function keys and media controls; for a typing experiment, it could be a deliberately small alphabet or a chorded layout. There is no universally correct key count.

Plan layers before modeling

Record the base-layer keycodes and any layer-tap, momentary-layer, or alternate functions you intend to use. A printed keycap legend is optional, but the firmware plan is not: changing the key count or ordering after the plate is modeled can force you to redo the switch openings, matrix map, and keymap together.

Make a physical key list

Create a simple list such as position 0 through position 7, with the intended keycode beside each position. Keep this list as the single reference while you model, wire, and configure QMK. It prevents a physically correct build from receiving an incorrectly ordered keymap.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose switches before designing the print

The switch footprint determines the opening in the printed plate. Select the switch family before you finalize any geometry. QMK’s hand-wiring parts guidance covers keyswitches and recognizes several switch families; a plate made for one footprint should not be assumed to fit another.

Switch decision What it changes in the build
Footprint and mounting tabs The plate opening, retention method, and clearance around the switch.
Feel and sound How the finished row feels and sounds; these are personal preferences rather than a universal best choice.
Keycap compatibility Whether the keycaps you plan to use fit the selected switch stem and surrounding spacing.
Availability Whether you can obtain one switch for every key, plus a spare for a damaged part.

MX-style mechanical keyboard switches are a natural category for this project, but the important requirement is a matching printed opening and a switch that can be hand-wired. Do not print first and decide on switches later; a small footprint mismatch can prevent the switch from seating or leave it loose.

Parts and tools

Gather the components before modeling so the design reflects what you can actually assemble.

Rank #2
Sale
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Item Purpose Planning note
One mechanical switch per key Provides the key press. Use the selected family’s footprint when modeling the plate.
One through-hole diode per key Provides isolation between switches in the scanned matrix. Keep every diode in the same electrical direction.
QMK-compatible microcontroller Scans the matrix and communicates over USB or the chosen connector arrangement. Confirm that it exposes enough usable pins for your planned matrix.
Wire Connects switch legs, diode legs, and controller pins. Plan routes that remain accessible for inspection and repair.
3D-printed plate or case Holds the switches in the chosen physical layout. Allow room for solder joints, wires, and the controller.
Soldering iron and solder Creates the electrical joints. Use a tip and working method suitable for small through-hole joints.
Wire cutters Trims wire and component leads. Leave enough lead length to avoid stressing the joint.

A keyboard tester or a text editor is needed for the final functional check. A multimeter is useful for continuity checks, although the hand-wiring workflow can also be debugged by visual inspection and systematic key testing.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Design the 3D-printed plate or case

Start with the switch openings

Place the selected switch footprints in the intended left-to-right order. The opening shape, retention features, and clearance around each opening must match the switch family. If you use keycaps, account for their bodies and any edge interference when deciding the spacing.

Choose a plate, a case, or both

A plate holds the switches and leaves the wiring accessible. A case can add a bottom, walls, and controller protection, but it also makes inspection harder once assembled. For a first hand-wired build, a removable bottom or an open underside gives you better access to solder joints and the controller.

Approach Advantages Trade-offs
Open plate Fast to inspect, easy to route wires, and simple to rework. Offers less protection and may need a separate support for the controller.
Plate with removable bottom Protects the wiring while preserving service access. Requires clearance for screw heads, clips, or other retention features.
Closed case Gives the finished keyboard a contained form. Can trap wiring errors and make repairs difficult if the controller is inaccessible.

Reserve space for the electronics

Model a location for the controller, its connector, and the wire bundle. Keep the USB or other connector opening aligned with the case wall. Do not place a switch so close to the controller that solder joints or wire bends become impossible to reach.

Make a fit-check print

Print a small section containing representative switch openings before committing to the full plate. Press the actual switches into it and check retention, alignment, and keycap clearance. This reduces the risk of wasting a full print when the selected switch footprint or printer settings do not produce the expected fit.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

There is no universal one-row spacing, print material, or tolerance. Those values depend on the switch family, printer, material, and the retention method in your model. Measure your parts and adjust the design rather than copying an unverified dimension.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Use an existing project only as an example

Public 3D-printed hand-wired keyboard repositories can demonstrate how printable files, wiring, and firmware are organized. Treat any such project as an example, not as a specification for your switches, printer, controller pins, or keymap. Verify every dimension and connection against your own parts.

Draw the electrical matrix before soldering

Assign every key a matrix coordinate

Create a table that gives each physical position a matrix row and column. For example, a six-key physical row could be assigned to two electrical rows and three columns if that matches the pins available on your controller. The numbers below are only an illustration; your assignment must match your wiring and firmware.

Physical position Example matrix coordinate Example keycode
0 Row 0, Column 0 Key 0
1 Row 0, Column 1 Key 1
2 Row 0, Column 2 Key 2
3 Row 1, Column 0 Key 3
4 Row 1, Column 1 Key 4
5 Row 1, Column 2 Key 5

The table is a planning aid, not a required topology. A different key count may justify different row and column counts. What matters is that each switch has one unambiguous coordinate and that the controller has pins for all planned rows and columns.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose a diode direction

Each switch gets one diode on one leg. Choose the diode direction expected by your QMK matrix configuration, such as the direction represented by the firmware’s diode-direction setting, and use it consistently for every key. Diodes installed in mixed directions can make some keys invisible to the scan or create confusing combinations.

Draw controller pin assignments

Before making a joint, write down which controller pin serves each matrix row and column. Include the connector and ground or power connections required by your controller. This drawing becomes the bridge between the physical wiring and the QMK configuration; without it, swapping two similar-looking wires is easy.

Print, inspect, and prepare the hardware

  1. Print the fit-check section using the material and settings you expect to use for the final part.
  2. Test-fit several of the actual switches, not just an empty opening.
  3. Check that the switches sit at a consistent height and do not rock or pull out when a keycap is pressed.
  4. Print the full plate or case only after the fit is acceptable.
  5. Remove strings, blocked openings, and sharp edges that could damage wires or prevent a switch from seating.
  6. Dry-place the controller and route a few wires to confirm that the enclosure has enough clearance.

If the fit-check fails, correct the model and repeat it. Do not compensate for a poor opening by forcing the switch; that can crack the print or stress the switch housing.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Mount the switches and wire the matrix

  1. Install the switches. Press each switch into its designated opening and verify the left-to-right order against your physical key list.
  2. Mark the matrix. Label each switch with its row and column coordinate before soldering. A small paper diagram beside the work area is enough.
  3. Prepare the diodes. Trim or bend the leads as needed, keeping the marked polarity visible until the joint has been inspected.
  4. Connect one diode to each switch. Solder the diode to the chosen switch leg and repeat the same orientation for every key.
  5. Build the row and column connections. Group the appropriate switch or diode legs into the rows and columns shown on your diagram. Keep wires routed so each connection can be traced from a switch to a controller pin.
  6. Connect the matrix to the controller. Solder each row and column wire to its assigned pin. Avoid changing the pin map after firmware configuration begins; if a change is unavoidable, update the written diagram immediately.
  7. Inspect every joint. Look for solder bridges, cold or dull joints, loose strands, clipped leads touching adjacent conductors, and diodes installed opposite to the planned direction.

A neat wire bundle is not merely cosmetic. Clear routing makes it possible to follow a failed key back through its switch, diode, row, column, and controller pin.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure QMK for the custom keyboard

Represent the electrical matrix

In the keyboard configuration, define the matrix dimensions and the controller pins assigned to each row and column. Set the diode direction to match the orientation used in the physical wiring. The configuration must describe the electrical circuit you actually built, not the visual order of the printed switches.

Represent the physical layout

QMK’s layout information separates physical positions from matrix coordinates. Define the physical positions in the same left-to-right order used in your plate and key list, then map each position to the corresponding row and column. This is what lets the firmware know that a key at one physical location belongs to a particular electrical coordinate.

Assign keycodes and layers

Populate the base layer with the keycodes from your written plan. Add additional layers only after the base layer is producing the expected keys; debugging a matrix and a complex layer system simultaneously makes symptoms harder to interpret.

Build and flash cautiously

Use the QMK workflow appropriate to your controller and keyboard definition. Confirm that the selected keyboard target, matrix settings, physical layout, and keymap all refer to the same project. Keep the controller accessible while you flash and test so you do not have to reopen a closed case to correct a configuration error.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Test every key before closing the case

  1. Connect the controller and open a keyboard tester or a plain text editor.
  2. Press each key once, following the physical list from left to right.
  3. Confirm that the intended keycode appears for every position.
  4. Test any layer or modifier behavior separately after the base layer is correct.
  5. Repeat the test while gently moving the wire bundle; an intermittent joint can pass a stationary test and fail when the case is handled.

QMK specifically recommends a keyboard tester or text editor for confirming the result. Do not close the case until every key has passed and the controller connection remains stable.

Best Value
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Troubleshoot by symptom

Symptom Likely checks
One key never registers Inspect that switch’s solder joints, diode polarity, and continuity through its row and column. Confirm that the firmware coordinate matches the physical key.
A whole group of keys fails Check the shared row or column wire, its controller pin, and any solder bridge or broken connection affecting that group.
Two keys report the wrong functions Compare the physical order, matrix-coordinate table, and keymap. The switches may be wired correctly but assigned to the wrong positions in firmware.
Several combinations behave strangely Look for reversed or inconsistently oriented diodes, solder bridges, or a row/column direction setting that does not match the wiring.
Keys work until the case is closed Check for wires pinched by the bottom, a controller or connector touching the case, or a joint that is pulled when the wiring is compressed.

Change one variable at a time. First establish electrical continuity, then verify matrix coordinates, and only afterward investigate layer or keycode behavior.

Choose among design approaches

Decision Option A Option B How to choose
Switch family One family with the footprint and feel you prefer Another family with a different opening or keycap ecosystem Choose before modeling; fit and availability come first, then feel and sound.
Printed structure Open plate Protected case with service access Favor an open or removable design while learning to hand-wire; choose a closed case only when the wiring is proven.
Controller Board with ample accessible pins Smaller board with a tighter pin budget Compare QMK support, available row/column pins, connector arrangement, and configuration complexity.
Wire routing Short, direct runs Longer, labeled runs with extra service slack Direct runs minimize clutter; labeled, accessible runs are easier to inspect and repair.

No controller model, pinout, print material, spacing, or cost is universally correct for this project. Those values depend on the key count, switch family, printer, and firmware target you select.

Close the case and document the build

After testing, secure the controller so it cannot contact exposed solder joints or move into the switch mechanisms. Route wires away from edges that could abrade insulation, and leave enough slack that a future repair does not require desoldering the entire row. Install the bottom only after checking that it does not press on the matrix.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Save the final physical key list, matrix diagram, controller pin map, switch choice, and QMK configuration with the printable files. This documentation turns a one-off wiring puzzle into a repeatable build and makes a replacement switch or firmware change far easier.

What a successful build looks like

The finished keyboard has switches held securely by the printed layout, one consistently oriented diode per switch, traceable row and column wiring, and a QMK configuration that maps each physical position to the correct matrix coordinate and keycode. Every key has been checked in a tester or text editor while the enclosure was still open. That workflow is more reliable than trying to guess universal dimensions or copying a pinout that belongs to a different design.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.