# PCB Designer Guide Learn how to make mech keyboard PCBs. # PCB Guide Part 1 - Preparations This guide is intended as a direct replacement for the aging [Ruiqi Mao's guide](https://github.com/ruiqimao/keyboard-pcb-guide). Credits go to that guide for serving as a base for this writeup. If you spot any mistakes, please let me know either through Discord (ai03#2725) or email (ai03.public@gmail.com), and I will fix it to the best of my abilities. ## ai03's Keyboard PCB Design Guide So you want to design keyboard PCBs, or to make sure that you are doing things correctly. We will build a similar 2x2 macropad in this introduction, but will do so in a more future-proof way compared to the other guides. ### Step 1. Grab the requirements We will be using KiCad for making the PCB. Download version 5.1.4 from the previous releases folder. Windows: [https://kicad-downloads.s3.cern.ch/index.html?prefix=windows/stable/](https://kicad-downloads.s3.cern.ch/index.html?prefix=windows/stable/) Mac: [https://kicad-downloads.s3.cern.ch/index.html?prefix=osx/stable/](https://kicad-downloads.s3.cern.ch/index.html?prefix=osx/stable/) Why specifically 5.1.4? - 5.1.5 has an issue with the router which makes it extremely difficult to edit PCBs. - 5.1.6 has an issue with part position output which can cause issues during production.
There are various stories about KiCad being counter-intuitive and crashing often. However, most of these stories are a relic of ancient KiCad 4.0 variants, and the program runs very stable and smooth with recent updates. However, just in case, you should always save often and use revision control (see below). |
If you already work with git, use whichever implementation you prefer, and replace all mentions of GitHub in this guide with your preferred methods. |
**Library** | **Footprint** | **Component** |
Diode\_SMD | D\_SOD-123 | All diodes |
Resistor\_SMD | R\_0805\_2012Metric | All resistors |
Fuse | Fuse\_1206\_3216Metric | Polyfuse |
MX\_Alps\_Hybrid | MX-NoLED | All MX switches |
Crystal | Crystal\_SMD\_3225-4pin\_3.2x2.5mm | Crystal |
random-keyboard-parts | SKQG-1155865 | Reset switch |
random-keyboard-parts | Molex-0548190589-Assembly | USB connector |
Packages-QFP | TQFP-44\_10x10mm\_Pitch0.8mm | Atmega32u4 |
**Component** | **Quantity** | **Package** | **Sample Part** |
Ceramic Capacitor, 0.1uF | 3 | 0805 | [1276-2450-1-ND](https://www.digikey.com/product-detail/en/samsung-electro-mechanics/CL21B104MBCNNNC/1276-2450-1-ND/3890536) |
Ceramic Capacitor, 10uF | 1 | 0805 | [1276-6455-1-ND](https://www.digikey.com/product-detail/en/samsung-electro-mechanics/CL21A106KOQNNNG/1276-6455-1-ND/5958083) |
Ceramic Capacitor, 1uF | 1 | 0805 | [1276-1066-1-ND](https://www.digikey.com/product-detail/en/samsung-electro-mechanics/CL21B105KAFNNNE/1276-1066-1-ND/3889152) |
Ceramic Capacitor, 22pF | 2 | 0805 | [1276-2605-1-ND](https://www.digikey.com/product-detail/en/samsung-electro-mechanics/CL21C220JB61PNC/1276-2605-1-ND/3890691) |
Diode, Generic | 4 | SOD-123 | [1N4148WTPMSCT-ND](https://www.digikey.com/product-detail/en/micro-commercial-co/1N4148W-TP/1N4148WTPMSCT-ND/717311) |
Polyfuse, 500mA hold, 1A trip | 1 | 1206 | [507-1803-1-ND](https://www.digikey.com/product-detail/en/bel-fuse-inc/0ZCJ0050AF2E/507-1803-1-ND/4156312) |
Resistor, 10k | 2 | 0805 | [P10KDACT-ND](https://www.digikey.com/product-detail/en/panasonic-electronic-components/ERA-6AEB103V/P10KDACT-ND/1465971) |
Resistor, 22 | 2 | 0805 | [P22ACT-ND](https://www.digikey.com/product-detail/en/panasonic-electronic-components/ERJ-6GEYJ220V/P22ACT-ND/87316) |
Low Profile Tactile Switch | 1 | 5.2x5.2mm | [CKN10361CT-ND](https://www.digikey.com/product-detail/en/c-k/RS-187R05A2-DS-MT-RT/CKN10361CT-ND/2747199) |
ATMEGA32U4 Microcontroller | 1 | 44TQFP 10x10mm | [ATMEGA32U4-AU-ND](https://www.digikey.com/product-detail/en/microchip-technology/ATMEGA32U4-AU/ATMEGA32U4-AU-ND/1914602) |
Molex Mini-B USB C Receptacle | 1 | Molex-0548190589 | [WM3895CT-ND](https://www.digikey.com/product-detail/en/molex-llc/0548190589/WM3895CT-ND/2421963) |
Crystal, 16MHz | 1 | 3.2x2.5mm, 4 pad | [1253-1698-1-ND](https://www.digikey.com/product-detail/en/CX3225SB16000D0GZJC1/1253-1698-1-ND/5995245/?itemSeq=264931473) |