How to Design and Build Your Own Keyboard
by robertferanec in Circuits > Electronics
191 Views, 3 Favorites, 0 Comments
How to Design and Build Your Own Keyboard




In this tutorial you will design and build your own keyboard. You will also learn all the essentials to design and build any electronics.
This project guides you through designing your own custom keyboard, from the initial concept to the final product. Even if you've never designed anything before, this tutorial will show you how to:
- draw schematic,
- design a custom PCB (Printed Circuit Board),
- design a box / case / enclosure,
- order and manufacture PCB, Assembly, 3D Printing, CNC.
Throughout this project, you'll gain essential skills for designing any electronic product. The end result will be a fully functional keyboard you can use daily. The keyboard is highly customizable—you can modify key shortcuts, create macros, or adjust colors directly in your web browser.
Supplies
This project is open-source. All necessary files are available on GitHub and other linked resources (mentioned below):
- Finished project (EasyEDA): https://oshwlab.com/robertferanec/custom-keyboard
- Github (HW + 3D + SW): https://github.com/FEDEVEL/custom-keyboard
- Thingiverse (3D): https://www.thingiverse.com/thing:6784228
Software apps and online services used in the project:
- EasyEDA - https://easyeda.com/
- VIA - https://www.caniusevia.com/
- QMK Firmware - https://qmk.fm/
Schematic + PCB + Case | RP2040

Introduction & Project Overview
In this tutorial, you will design and build your own custom keyboard from scratch. Even if you have no prior experience, you’ll learn the entire process—from schematic design to PCB layout and case creation.
Steps:
- Project Overview – Understand what we will design, including the PCB, custom key layout, and case.
- Required Tools & Software – Install and set up EasyEDA, the software we’ll use for designing the schematic and PCB.
- Creating a New Project – Learn how to start a new project and name the schematic, PCB, and project files.
Keyboard Schematic

Completing the Keyboard Schematic
Now, we’ll finish the schematic by adding switches, diodes, and essential components needed for a functioning keyboard.
Steps:
- Understanding the Keyboard Matrix – Learn how keys are connected using rows and columns.
- Adding Switch Sockets – Place switch sockets in the schematic to allow for hot-swappable switches.
- Connecting Components – Wire the switches, diodes, and microcontroller to ensure proper functionality.
PCB - Component Placement

Converting the Schematic to PCB
With the schematic complete, it's time to turn it into a physical PCB layout.
Steps:
- Placing Components on the PCB – Position switches, diodes, and the microcontroller on the board.
- Optimizing Traces – Route the connections between components to ensure proper signal flow.
- Adding Mounting Holes & Labels – Prepare the PCB for manufacturing by adding essential details.
PCB Layout

Manufacturing the PCB
Once the PCB design is complete, we’ll prepare it for production and order the necessary components.
Steps:
- Generating Gerber Files – Create the files needed to send to a PCB manufacturer.
- Ordering the PCB – Choose a manufacturer and submit your design.
- Purchasing Components – Get all the required parts for assembly.
PCB Layout Improvement

Assembling and Soldering the Keyboard
Now, it's time to bring the keyboard to life by assembling and soldering the components.
Steps:
- Soldering Surface-Mount Components (SMDs) – Learn how to place and solder the microcontroller and other small parts.
- Attaching Switch Sockets – Secure the sockets to allow for hot-swappable switches.
- Testing Connections – Check for continuity and troubleshoot any issues.
Case / Box Design

Programming the Keyboard with QMK
The hardware is ready—now we’ll install the firmware to make it functional.
Steps:
- Setting Up QMK Firmware – Download and configure the firmware for your keyboard.
- Customizing Key Mapping – Define your own key layouts and macros.
- Flashing the Firmware – Upload the firmware to the microcontroller and test the keyboard.
Manufacturing

Final Assembly & Testing
With everything working, it’s time to finalize the build and put it into a case.
Steps:
- 3D Printing the Case – Learn how to design and print a custom case.
- Installing the PCB and Switches – Secure everything inside the case.
- Final Testing & Adjustments – Ensure all keys and functions are working as expected.