From f8204c2525a070fa0f5abdecece4cf210f21cfb7 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 13 Jun 2022 19:26:03 +0530 Subject: new post: lotus58 --- docs/index.html | 16 ++--- docs/index.xml | 70 +++++++++++++++++++++ docs/posts/index.html | 17 ++++++ docs/posts/lotus58/index.html | 139 ++++++++++++++++++++++++++++++++++++++++++ posts/lotus58.md | 135 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 369 insertions(+), 8 deletions(-) create mode 100644 docs/posts/lotus58/index.html create mode 100644 posts/lotus58.md diff --git a/docs/index.html b/docs/index.html index 0c02387..70b5c06 100644 --- a/docs/index.html +++ b/docs/index.html @@ -42,15 +42,15 @@
- 26/01 — 2022 + 13/06 — 2022
- - Lightweight Linting + + Lotus58 - 8.5 + 4.7 min @@ -59,15 +59,15 @@
- 05/10 — 2021 + 26/01 — 2022
- - Novice Nix: Flake Templates + + Lightweight Linting - 5.5 + 8.5 min diff --git a/docs/index.xml b/docs/index.xml index c2ba3ca..e720103 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -12,6 +12,76 @@ en-us Creative Commons BY-NC-SA 4.0 +Lotus58 +<p>Earlier this month, I decided that I would laugh at Indian customs in the face by building a split-ergo mechanical keyboard from scratch rather than purchasing a Moonlander.</p> +<figure> +<img src="https://u.peppe.rs/i8k.jpg" alt="The finished product" /><figcaption aria-hidden="true">The finished product</figcaption> +</figure> +<h2 id="sourcing-the-parts">Sourcing the parts</h2> +<p>If you, like me, live in India, you might find this section useful. My approach to finding parts:</p> +<ul> +<li>Check reputed, local online stores</li> +<li>Check physical hardware stores</li> +<li>Import the part</li> +</ul> +<h3 id="pcbs">PCBs</h3> +<p>This was by far the hardest component to procure. Fabrication services have certain <em>capabilities</em>. Capabilities are the limitations of a fabrication service. For example, a service may be capable of drilling holes no smaller than 0.3mm in diameter. Most sites have a verification process to check if their capabilities meet your design’s requirements. I tried a few local PCB fabrication services:</p> +<ul> +<li>Lion PCB: Capabilities did not meet my requirements</li> +<li>PCBPower: Capabilities did not meet my requirements</li> +<li>Circuitwala: Capabilities did not meet my requirements</li> +</ul> +<p>I settled for JLCPCB, a Chinese service. PCBs themselves were 16 USD, shipping was another 35 USD, and customs was another 3.5K INR (ouch).</p> +<h3 id="case-material">Case material</h3> +<p>I don’t really have a case for the Lotus58, it is more of a “plastic sandwich”. I purchased acrylic plates from Robu. Cheap, fast, solid, and customizable. I cannot recommend Robu enough. A full set of plates (2 top plates and 2 bottom plates) cost me about 500 INR. I also bought a pair of laptop height raisers on Amazon to create a budget tenting setup.</p> +<h3 id="electronics">Electronics</h3> +<p>You’ll need a few rather specific electronic components such as hotswap sockets and TRRS mounts, the rest are commonly available:</p> +<ul> +<li>Hotswap sockets: StacksKB</li> +<li>TRRS mounts (PJ 320A): StacksKB</li> +<li>Diodes (1N4841): StacksKB</li> +<li>M2 screws: StacksKB</li> +<li>M2 spacers: ThinkRobotics</li> +<li>Arduino Pro Micro: Robu</li> +</ul> +<p>I skimped out on optional components such as OLEDs and rotary encoders.</p> +<h3 id="switches-and-keycaps">Switches and Keycaps</h3> +<p>Arguably the most fun part of the build:</p> +<ul> +<li>Gateron Oil King switches: Rectangles</li> +<li>DSA blanks: Meckeys</li> +</ul> +<h2 id="building-the-keyboard">Building the keyboard</h2> +<p>The the build is extremely straightforward. Through hole components are easy to solder. Be wary of component placement and orientation. Check thrice, solder once. Few debugging tips:</p> +<ul> +<li>if a single key does not actuate, check the hotswap for poor soldering (reflow the joint), and the switch pins for deformation during installation</li> +<li>if an entire column or row activates on a single key-press, a connection has been shorted</li> +<li>if only some of the keys on a given row actuate, a diode has been soldered on the wrong way</li> +</ul> +<h2 id="the-typing-experience">The typing experience</h2> +<p>I decidede to give QWERTY the boot and learn Colemak along with the new keyboard. The first few weeks were terrible because I could neither type QWERTY nor Colemak, but I got the hang of it pretty quickly. Typing websites do help, but it is best to simply use it in your daily workflow. No site can help you get accustomed to the various things you use your keyboard for such as switching windows or navigating vim/tmux.</p> +<h3 id="colemak">Colemak</h3> +<p>Alt layouts such as Colemak are definitely worth it. I find that Colemak reduces finger movement a lot, a good portion of the keys on the left hand are the same as QWERTY, it is fairly easy to pick up as well.</p> +<h3 id="vim">Vim</h3> +<p>Using an alt layout means most programs with keyboard shortcuts are not going to work as expected, <code>HJKL</code> on vim for movements being one of them. I took the short route out by creating a new layer with arrow keys on the home row:</p> +<pre><code>default homerow: +H N E I + +&quot;nav&quot; layer: +&lt; v ^ &gt;</code></pre> +<p>The remaining commands in vim are largely mnemonics. Navigating with home-row arrow keys also means that I can use “HJKL” globally, to scroll a website, for example.</p> +<h3 id="cutting-down-to-34-keys">Cutting down to 34 keys</h3> +<p>A couple months into my ergo journey, I realized that I could get away by moving my fingers even lesser. I moved modifiers such as <code>Super</code>, <code>Ctrl</code>, <code>Alt</code> and <code>Shift</code> to the home-row as QMK Mod Taps. The rest of the keys are cleverly placed in layers, not too much unlike the Miryoku layout. Even for someone that writes Rust (a symbol-heavy grammar), I find 34-keys to be sufficient.</p> +<h2 id="conclusion">Conclusion</h2> +<p>I have been bitten by the ergomech bug.</p> +<figure> +<img src="https://u.peppe.rs/XM3.jpg" alt="The Lotus58 in action" /><figcaption aria-hidden="true">The Lotus58 in action</figcaption> +</figure> +https://peppe.rs/posts/lotus58/ +Mon, 13 Jun 2022 13:55:00 +0000 +https://peppe.rs/posts/lotus58/ + + Lightweight Linting <p><a href="https://tree-sitter.github.io/tree-sitter/using-parsers#pattern-matching-with-queries">Tree-sitter</a> queries allow you to search for patterns in syntax trees, much like a regex would, in text. Combine that with some Rust glue to write simple, custom linters.</p> <h3 id="tree-sitter-syntax-trees">Tree-sitter syntax trees</h3> diff --git a/docs/posts/index.html b/docs/posts/index.html index 68d5d60..1b80e05 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -24,6 +24,23 @@
+ + + + +
+
+ 13/06 — 2022 +
+ + Lotus58 + +
+ + 4.7 + + min +
diff --git a/docs/posts/lotus58/index.html b/docs/posts/lotus58/index.html new file mode 100644 index 0000000..44a3c96 --- /dev/null +++ b/docs/posts/lotus58/index.html @@ -0,0 +1,139 @@ + + + + + + + + + + + + + + + Lotus58 · peppe.rs + +
+
+ Home + / + Posts + / + Lotus58 + View Raw +
+
+ 13/06 — 2022 +
+ + 53.95 + + cm +   + + 4.7 + + min +
+
+

+ Lotus58 +

+
+

Earlier this month, I decided that I would laugh at Indian customs in the face by building a split-ergo mechanical keyboard from scratch rather than purchasing a Moonlander.

+
+The finished product +
+

Sourcing the parts

+

If you, like me, live in India, you might find this section useful. My approach to finding parts:

+
    +
  • Check reputed, local online stores
  • +
  • Check physical hardware stores
  • +
  • Import the part
  • +
+

PCBs

+

This was by far the hardest component to procure. Fabrication services have certain capabilities. Capabilities are the limitations of a fabrication service. For example, a service may be capable of drilling holes no smaller than 0.3mm in diameter. Most sites have a verification process to check if their capabilities meet your design’s requirements. I tried a few local PCB fabrication services:

+
    +
  • Lion PCB: Capabilities did not meet my requirements
  • +
  • PCBPower: Capabilities did not meet my requirements
  • +
  • Circuitwala: Capabilities did not meet my requirements
  • +
+

I settled for JLCPCB, a Chinese service. PCBs themselves were 16 USD, shipping was another 35 USD, and customs was another 3.5K INR (ouch).

+

Case material

+

I don’t really have a case for the Lotus58, it is more of a “plastic sandwich”. I purchased acrylic plates from Robu. Cheap, fast, solid, and customizable. I cannot recommend Robu enough. A full set of plates (2 top plates and 2 bottom plates) cost me about 500 INR. I also bought a pair of laptop height raisers on Amazon to create a budget tenting setup.

+

Electronics

+

You’ll need a few rather specific electronic components such as hotswap sockets and TRRS mounts, the rest are commonly available:

+
    +
  • Hotswap sockets: StacksKB
  • +
  • TRRS mounts (PJ 320A): StacksKB
  • +
  • Diodes (1N4841): StacksKB
  • +
  • M2 screws: StacksKB
  • +
  • M2 spacers: ThinkRobotics
  • +
  • Arduino Pro Micro: Robu
  • +
+

I skimped out on optional components such as OLEDs and rotary encoders.

+

Switches and Keycaps

+

Arguably the most fun part of the build:

+
    +
  • Gateron Oil King switches: Rectangles
  • +
  • DSA blanks: Meckeys
  • +
+

Building the keyboard

+

The the build is extremely straightforward. Through hole components are easy to solder. Be wary of component placement and orientation. Check thrice, solder once. Few debugging tips:

+
    +
  • if a single key does not actuate, check the hotswap for poor soldering (reflow the joint), and the switch pins for deformation during installation
  • +
  • if an entire column or row activates on a single key-press, a connection has been shorted
  • +
  • if only some of the keys on a given row actuate, a diode has been soldered on the wrong way
  • +
+

The typing experience

+

I decidede to give QWERTY the boot and learn Colemak along with the new keyboard. The first few weeks were terrible because I could neither type QWERTY nor Colemak, but I got the hang of it pretty quickly. Typing websites do help, but it is best to simply use it in your daily workflow. No site can help you get accustomed to the various things you use your keyboard for such as switching windows or navigating vim/tmux.

+

Colemak

+

Alt layouts such as Colemak are definitely worth it. I find that Colemak reduces finger movement a lot, a good portion of the keys on the left hand are the same as QWERTY, it is fairly easy to pick up as well.

+

Vim

+

Using an alt layout means most programs with keyboard shortcuts are not going to work as expected, HJKL on vim for movements being one of them. I took the short route out by creating a new layer with arrow keys on the home row:

+
default homerow:
+H N E I
+
+"nav" layer:
+< v ^ >
+

The remaining commands in vim are largely mnemonics. Navigating with home-row arrow keys also means that I can use “HJKL” globally, to scroll a website, for example.

+

Cutting down to 34 keys

+

A couple months into my ergo journey, I realized that I could get away by moving my fingers even lesser. I moved modifiers such as Super, Ctrl, Alt and Shift to the home-row as QMK Mod Taps. The rest of the keys are cleverly placed in layers, not too much unlike the Miryoku layout. Even for someone that writes Rust (a symbol-heavy grammar), I find 34-keys to be sufficient.

+

Conclusion

+

I have been bitten by the ergomech bug.

+
+The Lotus58 in action +
+ +
+ +
+ Hi. + +

I'm Akshay, I go by nerd or nerdypepper on the internet.

+

+ I am a compsci undergrad, Rust programmer and an enthusiastic Vimmer. + I write open-source stuff to pass time. + I also design fonts: + scientifica, + curie. +

+

Send me a mail at nerdy@peppe.rs or a message at nerdypepper@irc.rizon.net.

+
+ + Home + / + Posts + / + Lotus58 + View Raw +
+
+ + diff --git a/posts/lotus58.md b/posts/lotus58.md new file mode 100644 index 0000000..2a83872 --- /dev/null +++ b/posts/lotus58.md @@ -0,0 +1,135 @@ +Earlier this month, I decided that I would laugh at Indian +customs in the face by building a split-ergo mechanical +keyboard from scratch rather than purchasing a Moonlander. + +![The finished product](https://u.peppe.rs/i8k.jpg) + +## Sourcing the parts + +If you, like me, live in India, you might find this section +useful. My approach to finding parts: + + - Check reputed, local online stores + - Check physical hardware stores + - Import the part + +### PCBs + +This was by far the hardest component to procure. +Fabrication services have certain _capabilities_. +Capabilities are the limitations of a fabrication service. +For example, a service may be capable of drilling holes no +smaller than 0.3mm in diameter. Most sites have a +verification process to check if their capabilities meet +your design's requirements. I tried a few local PCB +fabrication services: + + - Lion PCB: Capabilities did not meet my requirements + - PCBPower: Capabilities did not meet my requirements + - Circuitwala: Capabilities did not meet my requirements + +I settled for JLCPCB, a Chinese service. PCBs themselves +were 16 USD, shipping was another 35 USD, and customs was +another 3.5K INR (ouch). + + +### Case material + +I don't really have a case for the Lotus58, it is more of a +"plastic sandwich". I purchased acrylic plates from Robu. +Cheap, fast, solid, and customizable. I cannot recommend +Robu enough. A full set of plates (2 top plates and 2 bottom +plates) cost me about 500 INR. I also bought a pair of +laptop height raisers on Amazon to create a budget tenting +setup. + +### Electronics + +You'll need a few rather specific electronic components such +as hotswap sockets and TRRS mounts, the rest are commonly +available: + +- Hotswap sockets: StacksKB +- TRRS mounts (PJ 320A): StacksKB +- Diodes (1N4841): StacksKB +- M2 screws: StacksKB +- M2 spacers: ThinkRobotics +- Arduino Pro Micro: Robu + +I skimped out on optional components such as OLEDs and +rotary encoders. + +### Switches and Keycaps + +Arguably the most fun part of the build: + +- Gateron Oil King switches: Rectangles +- DSA blanks: Meckeys + +## Building the keyboard + +The the build is extremely straightforward. Through hole +components are easy to solder. Be wary of component +placement and orientation. Check thrice, solder once. Few +debugging tips: + +- if a single key does not actuate, check the hotswap for + poor soldering (reflow the joint), and the switch pins for + deformation during installation +- if an entire column or row activates on a single + key-press, a connection has been shorted +- if only some of the keys on a given row actuate, a diode + has been soldered on the wrong way + +## The typing experience + +I decidede to give QWERTY the boot and learn Colemak along +with the new keyboard. The first few weeks were terrible +because I could neither type QWERTY nor Colemak, but I got +the hang of it pretty quickly. Typing websites do help, but +it is best to simply use it in your daily workflow. No site +can help you get accustomed to the various things you use +your keyboard for such as switching windows or navigating +vim/tmux. + +### Colemak + +Alt layouts such as Colemak are definitely worth it. I find +that Colemak reduces finger movement a lot, a good portion +of the keys on the left hand are the same as QWERTY, it +is fairly easy to pick up as well. + +### Vim + +Using an alt layout means most programs with keyboard +shortcuts are not going to work as expected, `HJKL` on vim for +movements being one of them. I took the short route out by +creating a new layer with arrow keys on the home row: + +``` +default homerow: +H N E I + +"nav" layer: +< v ^ > +``` + +The remaining commands in vim are largely mnemonics. +Navigating with home-row arrow keys also means that I can +use "HJKL" globally, to scroll a website, for example. + +### Cutting down to 34 keys + +A couple months into my ergo journey, I realized that I +could get away by moving my fingers even lesser. I moved +modifiers such as `Super`, `Ctrl`, `Alt` and `Shift` to the +home-row as QMK Mod Taps. The rest of the keys are cleverly +placed in layers, not too much unlike the Miryoku layout. +Even for someone that writes Rust (a symbol-heavy grammar), +I find 34-keys to be sufficient. + +## Conclusion + +I have been bitten by the ergomech bug. + +![The Lotus58 in action](https://u.peppe.rs/XM3.jpg) -- cgit v1.2.3