Jeroen's Project Journals

Introduction

2023-04-07

KLEPCBGEN is short for “Keyboard Layout Editor Printed Circuit Board Generator”. The Keyboard Layout Editor is a web application that lets users design their own keyboard layouts:

screenshot of the keyboard layout editor

It has been around for quite a few years by now and it is used by mechanical keyboard enthousiasts to design their own keyboard layouts, often for the purpose of turning such a design into a real, physical keyboard. Creating the PCB for a keyboard by placing each key-switch individually is very tedious and error prone though. For that reason I created klepcbgen, which takes a layout file from KLE and turns it into a kicad project with a completely connected schematic and a PCB layout with the switch footprints placed correctly:

screenshot of the partially routed PCB layout produced by the script

I actually made my own keyboard with this tool, which I still use to this day (I made identical ones for my kids too):

Mechanical keyboard with beige/gray keycap set (and a red escape key), installed in a 3D printed case

The design is available as an example application of klepcbgen, as is the accompanying 3D printed case.

This is actually my most popular OSS application so far with over 320 stars and 42 forks. This is still modest compared to other projects of course.