Author Topic: Gap between keys  (Read 7720 times)

0 Members and 1 Guest are viewing this topic.

Offline mrbobbles

  • Thread Starter
  • Posts: 5
Gap between keys
« on: Fri, 06 September 2019, 00:23:56 »
Gday, I'm designing my first keyboard, to be CNC'd from plywood. I'm currently designing in Fusion 360, trying to lay out the keys correctly.

From what I understand, the keys have standard sizes (multiples of a "unit"), so, for example, a 60% keyboard is 15 units wide. However, there is a different number of keys on each row. Therefore, the gaps between keys on each row must be different. Otherwise, each row would have a different width.

Is my understanding correct?

It doesn't seem right though, since it would mean that the gaps in the bottom row are more than twice as large as the gaps as the top row, since there are fewer gaps. Any help would be much appreciated!

Offline ErgoMacros

  • Posts: 313
  • Location: SF Bay Area
Re: Gap between keys
« Reply #1 on: Fri, 06 September 2019, 01:05:38 »
Hi,
1U (1 standard key width and height) = 0.75 inch.
Keys some in sizes like:
  1U
  1.25U
  1.5U
  1.75U
  2U
  etc...
6+ U for most space bars.

The spacing between the keys is, for planing purposes, 0.0. The keycaps are a bit less that 1U in both directions so the don't rub against each other.
Enclosing a typical 60% keyboard. The top row is a total of 15U side to side.
As are all the other rows.

Some keys are wider than 1U so fewer fit on a row.

So, in order to get the alpha, number, and modifiers all to come out even (15U) some keys are wider, some narrower. The spaces between are the same.
Today's quote: '...“but then the customer successfully broke that.”

Offline mrbobbles

  • Thread Starter
  • Posts: 5
Re: Gap between keys
« Reply #2 on: Fri, 06 September 2019, 01:16:20 »
Ok, thanks. So, the number of units is not actually the width of the key *cap*. It's more the space taken up by the key, with the actual cap being smaller to provide a gap.

So, I can create a grid of rectangles, with no gaps between them, and each rectangle being it's proper unit size.
Then if I place the centre of the switch at the centre of each rectangle, it should all work out?  (the gaps will be even, and the edges of the rows will line up)

Offline Findecanor

  • Posts: 5036
  • Location: Koriko
Re: Gap between keys
« Reply #3 on: Fri, 06 September 2019, 02:45:12 »
Precisely. The edge of a keycap is about 1/2 mm in from the rectangle's edge. If you measure a 1×1u keycap's width, you will find that it is not 0.75" (=19.05 mm) wide, but rather very close to 18 mm.

BTW, in your case design, if you have a border around the keys that is raised above the mounting plate) then you should widen the opening by 1/2 mm in every direction so that you would get similarly spaced gaps around the keycaps as between them.
« Last Edit: Fri, 06 September 2019, 02:50:55 by Findecanor »

Offline mrbobbles

  • Thread Starter
  • Posts: 5
Re: Gap between keys
« Reply #4 on: Fri, 06 September 2019, 04:16:58 »
Great, thanks! That makes perfect sense.

Offline funderburker

  • * Exquisite Elder
  • Posts: 1396
  • Location: Latvia, Riga
Re: Gap between keys
« Reply #5 on: Fri, 06 September 2019, 05:29:39 »
I recommend using something like plate generator so you don't have to struggle with the measurements yourself. First, make a layout in KLE (keyboard layout editor) and then use the raw data (or download it in JSON) and just import that into something like swillkb or ai03 plate generator.

That'll help you with getting the right dimensions for switch cutouts, distance between switches and it'll add the "default" gap between keycaps as well.

Just some measurements I've written down for my own designs are:
  • standard MX cutout - 14×14mm
  • distance between switches (center to center) - 19.05mm (both vertically and horizontally)
  • distance between caps - 0.95mm
  • distance between cap and case side - 0.475mm

Calculation example (60% case):
width of a case: 6 + (19.05 * 15) + (0.475 * 2) = 3mm bezel on each side, gap between case side and caps on each side, 15 keys in row.

Edit: 19.05mm distance between switches are only correct if they are two 1u keys. So for something like a 1.5u and 1u key distance between their centers would be (19.05 * 1.5)mm.
« Last Edit: Fri, 06 September 2019, 16:25:46 by funderburker »
Keyboard design by Skepur

My boards: TMO50 FE:06 | LAGOM Groda-T | TMOv2 R1 prototype | Onyx FRL TKL prototype | Stege TKL prototype | Ellipse prototype | Cyberstar

Offline nevin

  • Posts: 1646
  • Location: US
Re: Gap between keys
« Reply #6 on: Fri, 06 September 2019, 13:16:50 »
@funderburker - well done.
Keeb.io Viterbi, Apple m0110, Apple m0120, Apple m0110a, Apple 658-4081, Apple M1242, Apple AEK II, MK96, GH60/Pure, Cherry g84-4100, Adesso AKP-220B, Magicforce 68

Offline funderburker

  • * Exquisite Elder
  • Posts: 1396
  • Location: Latvia, Riga
Re: Gap between keys
« Reply #7 on: Fri, 06 September 2019, 16:26:18 »
@funderburker - well done.

Thank you, I keep a "cheat sheet" so I don't forget these things.
Keyboard design by Skepur

My boards: TMO50 FE:06 | LAGOM Groda-T | TMOv2 R1 prototype | Onyx FRL TKL prototype | Stege TKL prototype | Ellipse prototype | Cyberstar

Offline mrbobbles

  • Thread Starter
  • Posts: 5
Re: Gap between keys
« Reply #8 on: Fri, 06 September 2019, 20:59:08 »
Thanks funderburker, that's really helpful!

I've seen the online layout generators, but I'm trying to do it from scratch to make sure I understand everything.

Also, since I'm cutting out of wood, to give it enough strength, I'm leaving a lot of material behind the "plate". So it won't just be a flat plate, it'll have a profile on the inside to make way for the switches, wiring, controller, etc. If that makes any sense...

My next mental roadblock is the spacebar cutout. More specifically, what is the distance between stabiliser cutouts for a 6.25U spacebar.

Offline Tom_Kazansky

  • Posts: 409
  • Location: Vietnam
  • Oblivion Knight
Re: Gap between keys
« Reply #9 on: Fri, 06 September 2019, 22:23:17 »
horizontal distance between two switches (vary size, center to center)

19.05 * (A + B) / 2

A: size of switch 1
B: size of switch 2.

the same apply for vertical distance.

I think you should use plate generator, I use swillkb's a lot.  :D

Offline funderburker

  • * Exquisite Elder
  • Posts: 1396
  • Location: Latvia, Riga
Re: Gap between keys
« Reply #10 on: Sat, 07 September 2019, 08:46:52 »
Thanks funderburker, that's really helpful!

I've seen the online layout generators, but I'm trying to do it from scratch to make sure I understand everything.

Also, since I'm cutting out of wood, to give it enough strength, I'm leaving a lot of material behind the "plate". So it won't just be a flat plate, it'll have a profile on the inside to make way for the switches, wiring, controller, etc. If that makes any sense...

My next mental roadblock is the spacebar cutout. More specifically, what is the distance between stabiliser cutouts for a 6.25U spacebar.

Yeah, I totally get the idea behind a thicker plate with thinner cuts where switches clip in. With wood that's probably best. Mmm, a good place to start and just to double-check everything is by using a Cherry MX datasheet.
Keyboard design by Skepur

My boards: TMO50 FE:06 | LAGOM Groda-T | TMOv2 R1 prototype | Onyx FRL TKL prototype | Stege TKL prototype | Ellipse prototype | Cyberstar

Offline Findecanor

  • Posts: 5036
  • Location: Koriko
Re: Gap between keys
« Reply #11 on: Sat, 07 September 2019, 09:43:49 »
Mmm, a good place to start and just to double-check everything is by using a Cherry MX datasheet.
Hmm.. That datasheet lacks the specs for a 6.25u space bar.

The centre of each stabiliser mount is 0.5 units from the left and right edge of the space bar's rectangle respectively. (key, not keycap ;) )
You could fit a 1×1u key on each stabiliser mount and either would be right next to its corresponding Alt key.
This rule applies to all space bars from 3.0 units and up to 8 units.

Stabiliser mounts for 2u, 2.25u and 2.275u keycaps are all 1.25u apart.

Offline mrbobbles

  • Thread Starter
  • Posts: 5
Re: Gap between keys
« Reply #12 on: Sun, 08 September 2019, 01:55:18 »
Thanks everyone. I'd measured the length of the space bar wire, and got 100mm.

Using the rule provided by Findecanor, I get 5.25 x 19.05 = 100.0125, which is pretty much the same. This kind of information should definitely be more easily found!

I made a test cut for a regular non-stabilised key with a 1/8 inch bit, and it came out really well. I had to push the bit into the corners, to make the switch fit, which made some gaps near the corners. However, the lip of the Gateron switch just covered up the gaps, so it looks really good. I anticipate having more trouble with the stabiliser mounts though. I might need to do some manual cutting in the corners...

Offline Sintpinty

  • Carbon Based Life Form
  • Posts: 1667
  • Location: A can of beans in the cupboard
  • she/her/they/them/any except he him
    • My Roblox Profile
Re: Gap between keys
« Reply #13 on: Sun, 08 September 2019, 10:55:51 »
But at the same time You don't want the gap to be too short, because that could make you accidentally type a key you didn't want to press.