-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmenura.yaml
548 lines (544 loc) · 13 KB
/
menura.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
units:
# for the key matrix
# mx spacing
kx: u
ky: u
edge_padding: 1
preview_key_adj: 0.5 # how much to shrink the keys in the preview, so boxes aren't overlapping
# stagger and splay
ring_stagger: ky/2 + 2.5
middle_stagger: 5
index_stagger: -5
inner_stagger: -2.5
thumb_splay: -5
thumb_spread: 0.525kx
thumb_drop_offset: -1.2ky
# for the case
sw_hole: 14 # size of hole for switch in plate
keycap_padding: 0.5 # extra room to account for keycap
inner_wall_offset: 1 # manufacturing tolerance around pcb outline
outer_wall_offset: 3 # main case wall thickness
shadow_inner_offset: 1.2 # offset from inner wall for shadow line inner piece
shadow_outer_offset: outer_wall_offset - shadow_inner_offset # offset for shadow line outer piece
# for other components
# nb: mcu footprint has the port pointing to the left
mcu_x: 33
mcu_y: 18
mcu_padding: 2.11 # extra buffer between mcu to make bottom edge cut straight with thumbs
mcu_adj: 7 # adjustment to align mcu (but not the port) and switch
diode_adj_x: -8.6 # diode adjustment in main switch matrix
diode_adj_y: -1.9
diode_adj_thumb: -8.2 # diode adjustment in thumb cluster
m3: 3.2 # m3 hole diameter (for an m2 standoff)
m2cs: 4.4 # m2 countersunk hole clearance diameter
# MSK-12C02 type power switch
pwr_x: 5.85
pwr_y: 8.8
pwr_adj: 1.12 # align edge cut to pads (not physical toggle switch)
pwr_mcu_x_offset: 5
pwr_mcu_y_offset: -0.5mcu_y - mcu_padding + 0.5pwr_x - pwr_adj
# generic through hole 2 pin 3x6x4.3mm button/switch e.g. MJTP1243
rst_x: 9
rst_y: 3.5
rst_pwr_x_offset: 2
rst_pwr_y_offset: -2.5 + mcu_padding + 0.2
jst_x: 8.9
jst_y: 8.6
jst_x_adj: 0.1
jst_y_adj: 2.2
vik_x: 11
vik_y: 9.1
vik_adj_x: 4.5
vik_adj_y: 3 - vik_adj_x
vik_tht_x: 17
vik_tht_y: 16
vik_tht_adj_x: 2.5
vik_tht_adj_y: 15
hole_x_adj: 7
logo_x: 33
logo_y: 10.5
logo_rst_x_offset: 25
points:
zones:
matrix:
key:
padding: 0.5ky
spread: kx
bind: [0, 0, 0, 0]
anchor:
shift: [100, -100]
rows:
bottom:
bird_bottom:
home:
bird_top:
top:
columns:
pinky:
rows.bottom.tags: [pinky_3x5]
rows.bird_bottom.skip: true
rows.home.tags: [matrix_common]
rows.bird_top.skip: true
rows.top.tags: [matrix_common]
ring:
key:
stagger: ring_stagger
tags: [matrix_common]
rows.bird_bottom.skip: true
rows.bird_top.skip: true
middle:
key:
stagger: middle_stagger
tags: [matrix_common]
rows.bird_bottom.skip: true
rows.bird_top.skip: true
index:
key:
stagger: index_stagger
tags: [matrix_common]
rows.bird_bottom.skip: true
rows.bird_top.skip: true
inner:
key:
stagger: inner_stagger
rows.bottom.tags: [inner_3x5]
rows.bottom.bind: [0, 0, 4, 0]
rows.home.tags: [inner_3x5]
rows.top.tags: [inner_3x5]
rows.bird_bottom.tags: [inner_bird]
rows.bird_bottom.bind: [0, 0, 14, 0]
rows.bird_top.tags: [inner_bird]
thumbs:
key:
padding: ky
spread: thumb_spread
bind: [0, 0, 0, 0]
splay: thumb_splay
origin: [-0.5thumb_spread, -0.5ky]
anchor:
ref: matrix_index_bottom
shift: [0, thumb_drop_offset]
rows:
cluster:
columns:
tucky:
key:
splay: 0
tags: [3thumb]
bind: [4, 2, 0, 0]
midtucky:
key.tags: [2thumb]
key.bind: [4, 2, 0, 0]
home:
key.tags: [3thumb]
key.bind: [0, 2, 0, 2]
midreachy:
key.tags: [2thumb]
key.bind: [0, 0, 0, 2]
reachy:
key.tags: [3thumb]
key.bind: [0, 0, 0, 2]
mcu:
key:
width: mcu_x
height: mcu_y
anchor:
ref: matrix_pinky_bottom
shift: [mcu_adj, -0.5ky - 0.5mcu_y - mcu_padding]
jst:
key:
width: jst_x
height: jst_y
rotate: 90
anchor:
ref: matrix_ring_bottom
shift: [-jst_x_adj, -0.5ky - 0.5jst_y - jst_y_adj]
pwr:
key:
width: pwr_x
height: pwr_y
rotate: 270
anchor:
ref: mcu
shift: [0.5mcu_x + 0.5pwr_x + pwr_mcu_x_offset, pwr_mcu_y_offset]
rst:
key:
width: rst_x
height: rst_y
anchor:
ref: pwr
shift: [rst_pwr_y_offset, 0.5pwr_y + 0.5rst_x + rst_pwr_x_offset]
rotate: 90
vik:
key:
width: vik_x
height: vik_y
anchor:
ref: matrix_inner_bottom
shift: [0.5kx + 0.5vik_x + vik_adj_x, -0.5ky + vik_adj_y]
rotate: 135
vik_tht:
key:
width: vik_tht_x
height: vik_tht_y
anchor:
ref: matrix_middle_bottom
shift: [-vik_tht_adj_x, -0.5ky - 0.5vik_tht_y - vik_tht_adj_y]
rotate: 270
mount_1:
key:
width: m3
height: m3
anchor:
ref: matrix_ring_top
shift: [-hole_x_adj, -0.5ky]
mount_2:
key:
width: m3
height: m3
anchor:
ref: matrix_ring_bottom
shift: [-hole_x_adj, -0.5ky]
mount_3:
key:
width: m3
height: m3
anchor:
ref: matrix_index_top
shift: [hole_x_adj, -0.5ky]
mount_4:
key:
width: m3
height: m3
anchor:
ref: thumbs_home_cluster
shift: [0, 0.5ky]
logo:
key:
width: logo_x
height: logo_y
anchor:
ref: rst
shift: [logo_rst_x_offset, -0.5rst_y + 0.5logo_y]
outlines:
_preview_keys36:
- what: rectangle
size: [kx-preview_key_adj, ky-preview_key_adj]
where:
- matrix_common
- /.*_3x5/
- 3thumb
_preview_keys30:
- what: rectangle
size: [kx-preview_key_adj, ky-preview_key_adj]
where:
- matrix_common
- inner_bird
- 2thumb
_preview_components:
- what: rectangle
size: [mcu_x, mcu_y]
where: mcu
- what: rectangle
size: [jst_x, jst_y]
where: jst
- what: rectangle
size: [pwr_x, pwr_y]
where: pwr
- what: rectangle
size: [rst_x, rst_y]
where: rst
- what: rectangle
size: [vik_x, vik_y]
where: vik
- what: rectangle
size: [vik_tht_x, vik_tht_y]
where: vik_tht
- what: rectangle
size: [logo_x, logo_y]
where: logo
_mounting_holes:
- what: circle
radius: m3 / 2
where: /mount_.*/
_mounting_screws:
- what: circle
radius: m2cs / 2
where: /mount_.*/
_board:
- what: polygon
operation: stack
points:
- ref: matrix_pinky_bottom
shift: [-0.5kx - edge_padding, -0.5ky - mcu_y - 2*mcu_padding]
- ref: matrix_pinky_top
shift: [-0.5kx - edge_padding, 0.5 ky + edge_padding]
- ref: matrix_ring_top
shift: [-0.5kx - edge_padding, 0.5ky + edge_padding]
- ref: matrix_middle_top
shift: [-0.5kx, 0.5ky + edge_padding]
- ref: matrix_middle_top
shift: [0.5kx, 0.5ky + edge_padding]
- ref: matrix_inner_top
shift: [0.5kx + edge_padding, 0.5ky + edge_padding]
- ref: matrix_inner_bottom
shift: [0.5kx + edge_padding, 0.25ky]
- ref: thumbs_reachy_cluster
shift: [0.5kx + edge_padding, 0.5ky + edge_padding]
- ref: thumbs_reachy_cluster
shift: [0.5kx + edge_padding, -0.5ky - edge_padding]
_pcb:
- what: outline
name: _board
fillet: 2
preview_36:
- _pcb
- ^_preview_keys36
- ^_preview_components
- ^_mounting_holes
preview_30:
- _pcb
- ^_preview_keys30
- ^_preview_components
- ^_mounting_holes
_board_inner_wall:
- what: outline
name: _board
expand: inner_wall_offset
joints: 1
_board_outer_wall:
- what: outline
name: _board
expand: inner_wall_offset + outer_wall_offset
joints: 1
_shadow_inner_wall:
- what: outline
name: _board
expand: inner_wall_offset + shadow_inner_offset
joints: 1
_shadow_outer_wall:
- what: outline
name: _board
expand: inner_wall_offset + shadow_outer_offset
joints: 1
_board_outlines:
- _board_inner_wall
- ^_board_outer_wall
- ^_shadow_inner_wall
- ^_shadow_outer_wall
_case_components:
- what: rectangle
size: [mcu_x, mcu_y]
where: mcu
- what: rectangle
size: [pwr_x, pwr_y]
where: pwr
- what: rectangle
size: [rst_x, rst_y]
where: rst
- what: rectangle
size: [vik_x, vik_y]
where: vik
- what: rectangle
size: [jst_x, jst_y]
where: jst
case_bottom:
- _board_outlines
- ^_mounting_screws
- ^_case_components
_plate_3x5_3_switches:
- what: rectangle
size: sw_hole
where:
- matrix_common
- /.*_3x5/
- 3thumb
_plate_3x5_3_keycaps:
- what: rectangle
bound: true
size: [kx + keycap_padding, ky + keycap_padding]
where:
- matrix_common
- /.*_3x5/
- 3thumb
case_plate_3x5_3:
- case_bottom
- ^_plate_3x5_3_switches
- ^_plate_3x5_3_keycaps
_plate_23332_2_switches:
- what: rectangle
size: sw_hole
where:
- matrix_common
- inner_bird
- 2thumb
_plate_23332_2_keycaps:
- what: rectangle
bound: true
size: [kx + keycap_padding, ky + keycap_padding]
where:
- matrix_common
- inner_bird
- 2thumb
case_plate_23332_2:
- case_bottom
- ^_plate_23332_2_switches
- ^_plate_23332_2_keycaps
_plate_23332_3_switches:
- what: rectangle
size: sw_hole
where:
- matrix_common
- inner_bird
- 3thumb
_plate_23332_3_keycaps:
- what: rectangle
bound: true
size: [kx + keycap_padding, ky + keycap_padding]
where:
- matrix_common
- inner_bird
- 3thumb
case_plate_23332_3:
- case_bottom
- ^_plate_23332_3_switches
- ^_plate_23332_3_keycaps
_plate_3x5_2_switches:
- what: rectangle
size: sw_hole
where:
- matrix_common
- /.*_3x5/
- 2thumb
_plate_3x5_2_keycaps:
- what: rectangle
bound: true
size: [kx + keycap_padding, ky + keycap_padding]
where:
- matrix_common
- /.*_3x5/
- 2thumb
case_plate_3x5_2:
- case_bottom
- ^_plate_3x5_2_switches
- ^_plate_3x5_2_keycaps
_plate_33332_3_switches:
- what: rectangle
size: sw_hole
where:
- matrix_common
- pinky_3x5
- inner_bird
- 3thumb
_plate_33332_3_keycaps:
- what: rectangle
bound: true
size: [kx + keycap_padding, ky + keycap_padding]
where:
- matrix_common
- pinky_3x5
- inner_bird
- 3thumb
case_plate_33332_3:
- case_bottom
- ^_plate_33332_3_switches
- ^_plate_33332_3_keycaps
pcbs:
menura:
outlines:
main:
outline: _pcb
footprints:
sw_hotswap:
what: mx
where:
- /matrix_.*/
- 3thumb
params:
designator: "SW"
from: ""
to: ""
sw_hotswap_2thumb:
what: mx
where: 2thumb
params:
designator: "SW"
from: ""
to: ""
adjust.rotate: 180
diode_matrix:
what: diode
where: /matrix_.*/
params:
from: ""
to: ""
adjust:
shift: [diode_adj_x, diode_adj_y]
rotate: 90
diode_3thumb:
what: diode
where: 3thumb
params:
from: ""
to: ""
adjust:
shift: [0, diode_adj_thumb]
rotate: 180 # point to the right
diode_2thumb:
what: diode
where: 2thumb
params:
from: ""
to: ""
adjust:
shift: [0, diode_adj_thumb]
rotate: 180
mcu:
what: promicro
where: mcu
params:
designator: "MCU"
jst:
what: jstph
where: jst
params:
pos: ""
neg: ""
pwr:
what: slider
where: pwr
params:
designator: "PWR"
from: ""
to: ""
rst:
what: button
where: rst
params:
designator: "RSW"
from: ""
to: ""
vik:
what: pad
where: vik
params:
designator: "VIK"
net: ""
vik_tht:
what: pad
where: vik_tht
params:
designator: "VIK"
net: ""
mounting_holes:
what: pad
where: /mount_.*/
params:
designator: "H"
net: ""
logo:
what: pad
where: logo
params:
designator: "LOGO"
net: ""