Keyboard Builders' Digest
Comfort and wellness in day-to-day typing. Save 20% at X-Bows!
Keyboard Builders' Digest / Tips & Tricks

Keyboard layout STL generator

This piece of code by anduril_tfotw generates 3D-printable STL files from a keyboard-layout-editor layout.

KBD.news
Published February 14, 2022
Creators! Feel free to tip me off about your keyboard related projects to bring them to 100K readers.

This piece of Python code is meant to generate a SCAD and/or STL file from a keyboard-layout-editor layout file. Additionally, the model can be automatically segmented so that the parts will fit within the build area of your 3D printer.

The program takes a keyboard-layout-editor json file as one of the inputs along with an optional parameter json file to customize other parts of the resulting model.

The program can then generate a number of different items. The entire case can be generated as a single model or the case can be broken up so that parts will fit within the build size of your 3D printer. The build size is one of the values that can be places in the optional parameters file.

The program generates code for OpenSCAD – the script-based CAD program. You can choose to just generate the scad script file or have OpenSCAD render the file into an STL to be used on a 3D printer.

Python, SolidPython and OpenSCAD are required to run this script.

GitHub repo: https://github.com/jeffminton/keyboard_stl_generator

I may look into hosting something online if there is enough interest to justify it similar to the way the swillkb case builder works – Jeff Minton.

As a note about printing, the author suggests printing the top or plate upside down so the top of the case/plate is resting on the build plate. This will give the best results and the best accuracy for the switch holes.

Do you like this post? Share, donate, subscribe, tip me off!

Published on Mon 14th Feb 2022. Featured in KBD #65 (source).


Related

Modkipz40

Sporewoh's modkipz40 is a monoblock split pocket keyboard using mouse switches.

ScottoLoooooooooong

Joe Scotto released ScottoLoooooooooong, a new 10u version of his original handwired ScottoLong with a 7u spacebar.

wEnki44

wEnki44 is a wireless version of the split Enki42, published by aroum.

Corne/crkbd AFA case

EurKoi shared a 3D-printed case for the Corne in the style of Angrymiao's AFA.

Kolibrimini

Kolibrimini is a 40% Alice-style keyboard with arrow cluster – designed by kreme11.

Rolio V0.1

MickiusMousius made the design of the Rolio available – a 46-key split with horizontal encoder.

×
top