<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>samienr - Keyboards</title>
    <subtitle>Electrical Nerd + Digital Artist</subtitle>
    <link rel="self" type="application/atom+xml" href="https://samienr.com/tags/keyboards/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://samienr.com"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2024-06-14T00:00:00+00:00</updated>
    <id>https://samienr.com/tags/keyboards/atom.xml</id>
    <entry xml:lang="en">
        <title>How I Designed My First Custom Keyboard</title>
        <published>2024-06-14T00:00:00+00:00</published>
        <updated>2024-06-14T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Samien Rahman
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://samienr.com/blog/keyboard/"/>
        <id>https://samienr.com/blog/keyboard/</id>
        
        <content type="html" xml:base="https://samienr.com/blog/keyboard/">&lt;p&gt;I&#x27;ve been into custom mechanical keyboards for a while, but the absurdly high costs and long wait times for parts pushed me towards a different solution: designing and building a keyboard myself. As a college student, affordability and quick access are key, and the custom keyboard is just the opposite of that, so I decided to take on this project myself.&lt;&#x2F;p&gt;
&lt;p&gt;I figured if I were going to design the keyboard entirely myself, I might as well make it as &lt;em&gt;custom&lt;&#x2F;em&gt; as possible. I was going to design this keyboard something &lt;em&gt;just for myself&lt;&#x2F;em&gt;.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;design&quot;&gt;Design&lt;&#x2F;h1&gt;
&lt;p&gt;Within a few weeks of &lt;a href=&quot;https:&#x2F;&#x2F;reddit.com&#x2F;r&#x2F;ErgoMechKeyboards&quot;&gt;snooping around online&lt;&#x2F;a&gt;, I discovered a whole world of bizarrely-shaped, split keyboards. I very quickly became inspired by the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;kata0510&#x2F;Lily58&quot;&gt;Lily58&lt;&#x2F;a&gt; and the &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;foostan&#x2F;crkbd&quot;&gt;Corne&lt;&#x2F;a&gt;. I learned that the  motivation behind these strange layouts came from two goals that I had myself:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Reducing finger movement&lt;&#x2F;li&gt;
&lt;li&gt;Enhanced typing comfort&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Both of these goals are achieved by two design choices:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Less keys = less places for my fingers to go&lt;&#x2F;li&gt;
&lt;li&gt;Key placement matching the natural positioning of fingers— meaning a split layout&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;To start, I mapped out a rough layout by tracing my finger movements using a painting app on an iPad.

	&lt;img class=&quot;
			
			
			
			no-hover
                        
		&quot;
		alt=&quot;Traced finger positions&quot;
		src=&quot;finger_paint.png&quot; &#x2F;&gt;
	

&lt;&#x2F;p&gt;
&lt;figcaption&gt;Super basic, I know.&lt;&#x2F;figcaption&gt;
&lt;p&gt;That gave a basic idea of the where each finger naturally goes as I extend them.&lt;&#x2F;p&gt;
&lt;p&gt;As for hardware, I chose:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Seeed Studio XIAO nRF52840&lt;&#x2F;strong&gt; microcontroller for its Bluetooth Low Energy capability, affordable price, and ARM architecture.&lt;&#x2F;li&gt;
&lt;li&gt;&lt;strong&gt;Kalih Choc Red switches&lt;&#x2F;strong&gt; for their low profile and because I like linear switches&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;hr &#x2F;&gt;
&lt;h1 id=&quot;ergogen&quot;&gt;Ergogen&lt;&#x2F;h1&gt;
&lt;p&gt;I needed a tool to design the layout and found &lt;a href=&quot;https:&#x2F;&#x2F;ergogen.cache.works&#x2F;&quot;&gt;Ergogen&lt;&#x2F;a&gt;. , which uses a simple YAML format to create layouts. Thanks to &lt;a href=&quot;https:&#x2F;&#x2F;flatfootfox.com&#x2F;ergogen-introduction&#x2F;&quot;&gt;a helpful blog series by FlatFootFox&lt;&#x2F;a&gt;, I defined a 3x6 grid for keys on each hand, matching the finger positions I had determined on the iPad. The flexibility of YAML allowed me to easily tweak the layout until it felt and looked right. Here&#x27;s a snippet of my Ergogen config:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;yaml&quot; style=&quot;background-color:#212733;color:#ccc9c2;&quot; class=&quot;language-yaml &quot;&gt;&lt;code class=&quot;language-yaml&quot; data-lang=&quot;yaml&quot;&gt;&lt;span&gt;      &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;columns&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;outer&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;          &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;key&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;splay&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;10
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;pinky&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;          &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;key&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;stagger&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;3
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;ring&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;          &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;key&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;stagger&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;8
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;splay&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;-4&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;.&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;1
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;spread&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bae67e;&quot;&gt;1.035kx
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;middle&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;          &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;key&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;stagger&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bae67e;&quot;&gt;.25*ky
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;splay&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;-5
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;spread&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bae67e;&quot;&gt;1.04kx
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;index&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;          &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;key&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;stagger&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bae67e;&quot;&gt;-.65*ky
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;splay&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;-1
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;inner&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;          &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;key&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;stagger&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bae67e;&quot;&gt;-.5*ky
&lt;&#x2F;span&gt;&lt;span&gt;      &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;rows&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;bottom&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;home&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;top&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;    &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;thumb&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;      &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;key&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;padding&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bae67e;&quot;&gt;ky
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;spread&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bae67e;&quot;&gt;kx
&lt;&#x2F;span&gt;&lt;span&gt;      &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;anchor&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;ref&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#bae67e;&quot;&gt;matrix_index_bottom
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;shift&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span&gt;[&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;2&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;,&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;-28&lt;&#x2F;span&gt;&lt;span&gt;]
&lt;&#x2F;span&gt;&lt;span&gt;      &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;columns&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;left&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;          &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;key&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;shift&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span&gt;[&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;-1&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;,&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;0&lt;&#x2F;span&gt;&lt;span&gt;]
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;splay&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;-15
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;middle&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;          &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;key&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;splay&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;-7&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;.&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;5
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;right&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;          &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;key&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;splay&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;-15
&lt;&#x2F;span&gt;&lt;span&gt;            &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;shift&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;: &lt;&#x2F;span&gt;&lt;span&gt;[&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;2&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;.&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;6&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;,&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ffcc66;&quot;&gt;-2&lt;&#x2F;span&gt;&lt;span&gt;]
&lt;&#x2F;span&gt;&lt;span&gt;      &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;rows&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;span&gt;        &lt;&#x2F;span&gt;&lt;span style=&quot;color:#73d0ff;&quot;&gt;cluster&lt;&#x2F;span&gt;&lt;span style=&quot;color:#ccc9c2cc;&quot;&gt;:
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;I used &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;ceoloide&#x2F;ergogen-footprints&#x2F;tree&#x2F;main&quot;&gt;Ceoloide&#x27;s&lt;&#x2F;a&gt; footprint for the switch footprints, which are reversible, meaning that both halves of the board can use the same PCB design.&lt;&#x2F;p&gt;

	&lt;img class=&quot;
			
			
			
			no-hover
                        
		&quot;
		alt=&quot;Preview of layout in ergogen online tool&quot;
		src=&quot;ergogen_preview.png&quot; &#x2F;&gt;
	

&lt;figcaption&gt;Preview of layout generated in Ergogen&lt;&#x2F;figcaption&gt;
&lt;hr &#x2F;&gt;
&lt;h1 id=&quot;pcb-design&quot;&gt;PCB Design&lt;&#x2F;h1&gt;
&lt;p&gt;Ergogen generated a KiCad file with the board outline and switch footprints. I had to create and route the traces. Additionally, the footprint I used for the nRF52840 didn&#x27;t account for its battery pads, so I had to modify the footprint by adding a small cutout to route battery wires through. I haven&#x27;t messed around with PCBs before this besides some basic designs from school, so that was a nice learning experience. The supportive community on the &lt;a href=&quot;https:&#x2F;&#x2F;discord.gg&#x2F;kk4rXYkp4H&quot;&gt;Absolem Club Discord server&lt;&#x2F;a&gt; helped me through the process.&lt;&#x2F;p&gt;

	&lt;img class=&quot;
			
			
			
			no-hover
                        
		&quot;
		
		src=&quot;KiCad_before.png&quot; &#x2F;&gt;
	

&lt;figcaption&gt;The PCB Ergogen generated&lt;&#x2F;figcaption&gt;

	&lt;img class=&quot;
			
			
			
			no-hover
                        
		&quot;
		
		src=&quot;KiCad_after.png&quot; &#x2F;&gt;
	

&lt;figcaption&gt;After adding traces and adjusting the microcontroller footprint&lt;&#x2F;figcaption&gt;
&lt;p&gt;Once all the electronics were in place, I decided to add some decorative patterns to the pcb, as I decided not to use a plate on this keyboard.

	&lt;img class=&quot;
			
			
			
			no-hover
                        
		&quot;
		
		src=&quot;final_pcb.png&quot; &#x2F;&gt;
	


And with that, the PCB design was pretty much done. All that was left was ordering everything and putting it all together.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;assembly-and-firmware&quot;&gt;Assembly and Firmware&lt;&#x2F;h1&gt;
&lt;p&gt;I ordered my PCB from &lt;a href=&quot;https:&#x2F;&#x2F;jlcpcb.com&#x2F;&quot;&gt;JLCPCB&lt;&#x2F;a&gt; in black and white for about 20 USD, the microcontroller from &lt;a href=&quot;https:&#x2F;&#x2F;www.seeedstudio.com&#x2F;&quot;&gt;SeeedStudio&lt;&#x2F;a&gt;, and the other components from &lt;a href=&quot;https:&#x2F;&#x2F;typeractive.xyz&#x2F;&quot;&gt;Typeractive&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;I used my university&#x27;s makerspace for soldering, learning about reflow soldering for smaller components.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;keymap&quot;&gt;Keymap&lt;&#x2F;h2&gt;
&lt;p&gt;First, I defined the keymap. I opted for Colemak-DH, as it was designed to be a more ergonomic layout that also allows for faster typing speeds. The other layers were designed by seeing various designs online and then just iterating.&lt;&#x2F;p&gt;
&lt;p&gt;I had initially set out to write the keymap directly to the ZMK keymap file, but I quickly found &lt;a href=&quot;https:&#x2F;&#x2F;nickcoutsos.github.io&#x2F;keymap-editor&#x2F;&quot;&gt;Keymap Editor&lt;&#x2F;a&gt;, an online tool that can connect to a ZMK repository on GitHub and manage the keymaps with a very easy to use GUI. I used the tool to create these keymaps:&lt;&#x2F;p&gt;

	&lt;img class=&quot;
			
			
			
			no-hover
                        
		&quot;
		
		src=&quot;default_layer.png&quot; &#x2F;&gt;
	

&lt;figcaption&gt;Default layer&lt;&#x2F;figcaption&gt;

	&lt;img class=&quot;
			
			
			
			no-hover
                        
		&quot;
		
		src=&quot;symbol_layer.png&quot; &#x2F;&gt;
	

&lt;figcaption&gt;Symbol layer&lt;&#x2F;figcaption&gt;

	&lt;img class=&quot;
			
			
			
			no-hover
                        
		&quot;
		
		src=&quot;number_layer.png&quot; &#x2F;&gt;
	

&lt;figcaption&gt;Number layer&lt;&#x2F;figcaption&gt;

	&lt;img class=&quot;
			
			
			
			no-hover
                        
		&quot;
		
		src=&quot;tri_layer.png&quot; &#x2F;&gt;
	

&lt;figcaption&gt;Function layer&lt;&#x2F;figcaption&gt;

	&lt;img class=&quot;
			
			
			
			no-hover
                        
		&quot;
		
		src=&quot;gaming_layer.png&quot; &#x2F;&gt;
	

&lt;figcaption&gt;Gaming layer&lt;&#x2F;figcaption&gt;
&lt;p&gt;I also decided to make another layer for gaming to keep the WASD layout, but I haven’t been able to test how effective this is.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;firmware&quot;&gt;Firmware&lt;&#x2F;h2&gt;
&lt;p&gt;I then opted for the ZMK Firmware, namely because QMK does not support wireless boards due to some licensing issues with Bluetooth, and because I do intend on learning Zephyr eventually, which ZMK is based on.&lt;&#x2F;p&gt;
&lt;p&gt;I began by mapping the pins on the microcontroller to the corresponding columns and rows of the keyboard matrix. I probably should’ve planned these before designing the PCB, but I chose these pins retroactively, as the PCB traces were already routed.&lt;&#x2F;p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Pin Number&lt;&#x2F;th&gt;&lt;th&gt;Digital&lt;&#x2F;th&gt;&lt;th&gt;Matrix mapping&lt;&#x2F;th&gt;&lt;&#x2F;tr&gt;&lt;&#x2F;thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;P0.02&lt;&#x2F;td&gt;&lt;td&gt;0&lt;&#x2F;td&gt;&lt;td&gt;Outer Column&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;P0.03&lt;&#x2F;td&gt;&lt;td&gt;1&lt;&#x2F;td&gt;&lt;td&gt;Pinky Column&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;P0.28&lt;&#x2F;td&gt;&lt;td&gt;2&lt;&#x2F;td&gt;&lt;td&gt;Middle Column + outerthumb&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;P0.29&lt;&#x2F;td&gt;&lt;td&gt;3&lt;&#x2F;td&gt;&lt;td&gt;Index Column + middlethumb&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;P0.04&lt;&#x2F;td&gt;&lt;td&gt;4&lt;&#x2F;td&gt;&lt;td&gt;Inner Column + innerthumb&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;P1.12&lt;&#x2F;td&gt;&lt;td&gt;7&lt;&#x2F;td&gt;&lt;td&gt;Upper Row&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;P1.13&lt;&#x2F;td&gt;&lt;td&gt;8&lt;&#x2F;td&gt;&lt;td&gt;Middle Row&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;P1.14&lt;&#x2F;td&gt;&lt;td&gt;9&lt;&#x2F;td&gt;&lt;td&gt;Lower Row&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;P1.15&lt;&#x2F;td&gt;&lt;td&gt;10&lt;&#x2F;td&gt;&lt;td&gt;Thumb Row&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;&#x2F;tbody&gt;&lt;&#x2F;table&gt;
&lt;h3 id=&quot;creating-the-shield&quot;&gt;Creating the shield&lt;&#x2F;h3&gt;
&lt;p&gt;Because this keyboard was completely original, there wasn’t a pre-existing shield, so I had to make my own. That wasn’t so bad. The &lt;a href=&quot;https:&#x2F;&#x2F;zmk.dev&#x2F;docs&#x2F;development&#x2F;new-shield&quot;&gt;ZMK documentation&lt;&#x2F;a&gt; is very well written and easy to follow.&lt;&#x2F;p&gt;
&lt;p&gt;All that was left was to compile and flash the firmware! &lt;small&gt;Not Really&lt;&#x2F;small&gt;&lt;&#x2F;p&gt;
&lt;h1 id=&quot;trouble-in-paradise&quot;&gt;Trouble in Paradise&lt;&#x2F;h1&gt;
&lt;p&gt;Despite the careful planning and assembly, I ran into a significant issue: the left half of the keyboard worked perfectly and paired with my devices, but the right half was unresponsive.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;initial-diagnosis&quot;&gt;Initial Diagnosis&lt;&#x2F;h3&gt;
&lt;p&gt;I tried resetting the firmware, suspecting an issue with the pairing process. This fixed the issue in that the right half now connected, but it also led me to find another problem: most keys on the right half were unresponsive, and pressing the top key in each column caused all keys in that column to ghost.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;physical-troubleshooting&quot;&gt;Physical Troubleshooting&lt;&#x2F;h3&gt;
&lt;p&gt;I grabbed a multimeter to test each diode, as my soldering job for the right half was particularly ugly, but each diode was functioning correctly. Next, I tested each diode-switch pair, where I did find an inconsistency in voltages. I then tried flipping all the diodes, as perhaps the direction needed to be flipped because the board was flipped, but this yielded no change. It was time to take a look at the PCB.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;pcb-analysis&quot;&gt;PCB Analysis&lt;&#x2F;h3&gt;
&lt;p&gt;I next decided to take a look at the PCB layout. This is where I found the culprit. I discovered that I had forgotten to route one of the pads on the backside (the front for the right side of the board). Fortunately, because the left and right halves of the board use the same PCB, I was able to simply resolder the microcontroller to the back side of the right half. I knew this would work because the left side worked flawlessly, and although the diode pads were on the other side, all the switch connections were through-holes, so the side on which they were installed would not matter. All that was left was to compensate with software by reversing the order of the pins. This finally worked.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;conclusion&quot;&gt;Conclusion&lt;&#x2F;h1&gt;
&lt;p&gt;This project was a bit challenging but very rewarding, providing me with a custom mechanical keyboard tailored to my preferences. It was also my first truly original electronics project, and it taught me a lot about PCB design and soldering, all through practical hands-on experience. This project also helped in refining my independent problem-solving skills, as I am used to having either documentation or peers to take help from. I hope this inspires others to try their hand at DIY keyboard building!&lt;&#x2F;p&gt;
&lt;h2 id=&quot;open-source&quot;&gt;Open Source (?)&lt;&#x2F;h2&gt;
&lt;p&gt;I&#x27;ve finally open sourced the keyboard design files on &lt;a class=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;samienr&#x2F;SOR-Hydrogen&quot;&gt;this Github repository.&lt;&#x2F;a&gt; I haven&#x27;t yet fixed the PCB routing mistake, though I do plan on getting to it eventually. It&#x27;s just not a high priority at the moment. Feel free to do whatever you want with the designs, this project was more for the learning experience.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;next-steps&quot;&gt;Next Steps&lt;&#x2F;h1&gt;
&lt;p&gt;I&#x27;m probably going to work on a case for the boards next. The goal as it stands now is to create a model for 3D printing just to protect the boards (and the surfaces I put them on), then to eventually design a case for either CNC milling or resin printing that holds the boards at the most comfortable angles for me.&lt;&#x2F;p&gt;

	&lt;img class=&quot;
			
			
			
			
                        
		&quot;
		
		src=&quot;keyboard.jpg&quot; &#x2F;&gt;
	

&lt;figcaption&gt;The completed product&lt;&#x2F;figcaption&gt;
</content>
        
    </entry>
</feed>
