@rulecad/rules 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/README.md +28 -2
- package/jlcpcb.json +86 -0
- package/m2.json +11 -0
- package/mx.json +238 -0
- package/oem.json +18 -0
- package/package.json +26 -4
- package/pico.json +196 -0
- package/promicro.json +15 -0
- package/sod123.json +30 -0
- package/wiring.json +7 -0
- package/x1c.json +94 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
CC0 1.0 Universal (public domain dedication)
|
|
2
|
+
|
|
3
|
+
The rule sets in this package are dedicated to the public domain. To the extent possible under law, the authors have
|
|
4
|
+
waived all copyright and related or neighboring rights to them. You can copy, modify and distribute them, even for
|
|
5
|
+
commercial purposes, all without asking permission. Each value names its source: credit the source where you can.
|
|
6
|
+
|
|
7
|
+
Full text: https://creativecommons.org/publicdomain/zero/1.0/legalcode
|
package/README.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @rulecad/rules
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Researched facts for designing printed parts, as open data (CC0, public domain). Every value says what it is, where
|
|
4
|
+
it comes from and when it was checked, so a design built on it can be traced and corrected.
|
|
5
|
+
|
|
6
|
+
```json
|
|
7
|
+
"bed": { "value": 256, "unit": "mm", "rule": "Build volume is 256 × 256 × 256 mm", "kind": "spec",
|
|
8
|
+
"source": "https://…", "checked": "2026-10-11" }
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
| Set | What | Values |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `x1c` | Bambu Lab X1 Carbon: bed, line width, layer, overhang, bridges, fits and hole compensation | 11 |
|
|
14
|
+
| `mx` | Cherry MX switches: plate cut-out, stem, housing, travel, key pitch | 29 |
|
|
15
|
+
| `oem` | OEM keycap profile: heights and top tilt per row (from KeyV2) | 12 |
|
|
16
|
+
| `m2` | M2 heat-set inserts and screws | 5 |
|
|
17
|
+
| `pico` | Raspberry Pi Pico: outline, headers, the GPIO on each pin | 18 |
|
|
18
|
+
| `promicro` | Pro Micro controller | 9 |
|
|
19
|
+
| `sod123` | SOD-123 diode footprint | 3 |
|
|
20
|
+
| `jlcpcb` | JLCPCB's limits for two-layer boards | 10 |
|
|
21
|
+
| `wiring` | Room for hand wiring | 1 |
|
|
22
|
+
|
|
23
|
+
`kind` says how far to trust a value: **spec** (a datasheet or manufacturer), **community** (a widely used figure, such
|
|
24
|
+
as KiCad's library or KeyV2), **default** (a setting that works), or **estimate** (nobody has published it: measure it
|
|
25
|
+
and correct it). Use them with `@rulecad/variables` (`uses: ['x1c']`, then `x1c.line * 3` in any expression), or read
|
|
26
|
+
the JSON from anywhere.
|
|
27
|
+
|
|
28
|
+
**Corrections are the most useful contribution.** If you measured something, open a pull request with the value,
|
|
29
|
+
`"kind": "measured"`, how you measured it, and the date.
|
package/jlcpcb.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "JLCPCB's limits for standard two-layer FR-4 boards (1 oz copper). Fab limits, not targets: designs keep a margin over them (a board's own variables). kind as in x1c.json.",
|
|
3
|
+
"name": "jlcpcb",
|
|
4
|
+
"rules": {
|
|
5
|
+
"track_min": {
|
|
6
|
+
"value": 0.1,
|
|
7
|
+
"unit": "mm",
|
|
8
|
+
"rule": "Narrowest track",
|
|
9
|
+
"kind": "spec",
|
|
10
|
+
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
11
|
+
"checked": "2026-10-14"
|
|
12
|
+
},
|
|
13
|
+
"gap_min": {
|
|
14
|
+
"value": 0.1,
|
|
15
|
+
"unit": "mm",
|
|
16
|
+
"rule": "Smallest gap between tracks",
|
|
17
|
+
"kind": "spec",
|
|
18
|
+
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
19
|
+
"checked": "2026-10-14"
|
|
20
|
+
},
|
|
21
|
+
"drill_min": {
|
|
22
|
+
"value": 0.15,
|
|
23
|
+
"unit": "mm",
|
|
24
|
+
"rule": "Smallest drilled hole on a two-layer board",
|
|
25
|
+
"kind": "spec",
|
|
26
|
+
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
27
|
+
"checked": "2026-10-14"
|
|
28
|
+
},
|
|
29
|
+
"via_hole": {
|
|
30
|
+
"value": 0.15,
|
|
31
|
+
"unit": "mm",
|
|
32
|
+
"rule": "Smallest via hole",
|
|
33
|
+
"kind": "spec",
|
|
34
|
+
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
35
|
+
"checked": "2026-10-14"
|
|
36
|
+
},
|
|
37
|
+
"via_pad": {
|
|
38
|
+
"value": 0.25,
|
|
39
|
+
"unit": "mm",
|
|
40
|
+
"rule": "Smallest via pad diameter",
|
|
41
|
+
"kind": "spec",
|
|
42
|
+
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
43
|
+
"checked": "2026-10-14"
|
|
44
|
+
},
|
|
45
|
+
"annular": {
|
|
46
|
+
"value": 0.25,
|
|
47
|
+
"unit": "mm",
|
|
48
|
+
"rule": "Annular ring, recommended (0.18 mm absolute minimum)",
|
|
49
|
+
"kind": "spec",
|
|
50
|
+
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
51
|
+
"checked": "2026-10-14"
|
|
52
|
+
},
|
|
53
|
+
"silk_line": {
|
|
54
|
+
"value": 0.15,
|
|
55
|
+
"unit": "mm",
|
|
56
|
+
"rule": "Thinnest silkscreen line",
|
|
57
|
+
"kind": "spec",
|
|
58
|
+
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
59
|
+
"checked": "2026-10-14"
|
|
60
|
+
},
|
|
61
|
+
"silk_text": {
|
|
62
|
+
"value": 1.0,
|
|
63
|
+
"unit": "mm",
|
|
64
|
+
"rule": "Smallest silkscreen text height",
|
|
65
|
+
"kind": "spec",
|
|
66
|
+
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
67
|
+
"checked": "2026-10-14"
|
|
68
|
+
},
|
|
69
|
+
"thickness": {
|
|
70
|
+
"value": 1.6,
|
|
71
|
+
"unit": "mm",
|
|
72
|
+
"rule": "Board thickness: the usual choice of 0.4 to 2.0 mm, and what MX switches are made for",
|
|
73
|
+
"kind": "spec",
|
|
74
|
+
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
75
|
+
"checked": "2026-10-14"
|
|
76
|
+
},
|
|
77
|
+
"cheap_size": {
|
|
78
|
+
"value": 100,
|
|
79
|
+
"unit": "mm",
|
|
80
|
+
"rule": "Two-layer boards up to 100 × 100 mm get JLCPCB's lowest price; past that it rises steeply",
|
|
81
|
+
"kind": "community",
|
|
82
|
+
"source": "https://hwdocs.hackclub.dev/user-contrib-guides/jlc-cost-optimizing/",
|
|
83
|
+
"checked": "2026-10-14"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
package/m2.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "M2 screws and brass heat-set inserts, for holding printed parts together. kind as in x1c.json.",
|
|
3
|
+
"name": "m2",
|
|
4
|
+
"rules": {
|
|
5
|
+
"clearance": { "value": 2.4, "unit": "mm", "rule": "Clearance hole for an M2 screw, medium fit", "kind": "spec", "source": "ISO 273", "checked": "2026-10-12" },
|
|
6
|
+
"head": { "value": 3.8, "unit": "mm", "rule": "M2 socket head cap screw head diameter", "kind": "spec", "source": "ISO 4762", "checked": "2026-10-12" },
|
|
7
|
+
"head_height": { "value": 2, "unit": "mm", "rule": "M2 socket head cap screw head height", "kind": "spec", "source": "ISO 4762", "checked": "2026-10-12" },
|
|
8
|
+
"insert_hole": { "value": 3.2, "unit": "mm", "rule": "Printed hole for an M2 heat-set insert (already sized for printing: no hole compensation)", "kind": "spec", "source": "Heat-set insert specs, https://www.albanycountyfasteners.com/media/64/3d/5a/1764619189/heat-set-insert-specs.pdf", "checked": "2026-10-12" },
|
|
9
|
+
"insert_length": { "value": 3, "unit": "mm", "rule": "CNC Kitchen M2 × 3 heat-set insert length", "kind": "spec", "source": "https://west3d.com/products/cnc-kitchen-heat-set-inserts-various-sizes", "checked": "2026-10-12" }
|
|
10
|
+
}
|
|
11
|
+
}
|
package/mx.json
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "Cherry MX switches and keycaps. Cherry publishes the keycap's slot; no official spec exists for the switch stem, so stem sizes are measured by the community. kind as in x1c.json, plus estimate: a reasoned guess nothing confirms yet. Measure it, then make it measured.",
|
|
3
|
+
"name": "mx",
|
|
4
|
+
"rules": {
|
|
5
|
+
"pitch": {
|
|
6
|
+
"value": 19.05,
|
|
7
|
+
"unit": "mm",
|
|
8
|
+
"rule": "Key spacing, 1u = 0.75 in",
|
|
9
|
+
"kind": "spec",
|
|
10
|
+
"source": "Cherry MX keyboard layout convention",
|
|
11
|
+
"checked": "2026-10-11"
|
|
12
|
+
},
|
|
13
|
+
"slot": {
|
|
14
|
+
"value": 4.1,
|
|
15
|
+
"unit": "mm",
|
|
16
|
+
"rule": "Keycap cross slot is 4.1 (+0.05) mm across",
|
|
17
|
+
"kind": "spec",
|
|
18
|
+
"source": "Cherry MX keycap spec, via https://deskthority.net/viewtopic.php?p=245862",
|
|
19
|
+
"checked": "2026-10-11"
|
|
20
|
+
},
|
|
21
|
+
"slot_arm": {
|
|
22
|
+
"value": 1.17,
|
|
23
|
+
"unit": "mm",
|
|
24
|
+
"rule": "Keycap cross slot arms are 1.17 ± 0.02 mm wide",
|
|
25
|
+
"kind": "spec",
|
|
26
|
+
"source": "Cherry MX keycap spec, via https://deskthority.net/viewtopic.php?p=245862",
|
|
27
|
+
"checked": "2026-10-11"
|
|
28
|
+
},
|
|
29
|
+
"stem": {
|
|
30
|
+
"value": 4.0,
|
|
31
|
+
"unit": "mm",
|
|
32
|
+
"rule": "Switch stem cross is about 4 × 4 mm",
|
|
33
|
+
"kind": "community",
|
|
34
|
+
"source": "User measurements, https://deskthority.net/viewtopic.php?p=245862",
|
|
35
|
+
"checked": "2026-10-11"
|
|
36
|
+
},
|
|
37
|
+
"post": {
|
|
38
|
+
"value": 5.5,
|
|
39
|
+
"unit": "mm",
|
|
40
|
+
"rule": "Round post around the keycap's slot, as on most MX keycaps",
|
|
41
|
+
"kind": "community",
|
|
42
|
+
"source": "Common keycap designs",
|
|
43
|
+
"checked": "2026-10-11"
|
|
44
|
+
},
|
|
45
|
+
"slot_depth": {
|
|
46
|
+
"value": 4.0,
|
|
47
|
+
"unit": "mm",
|
|
48
|
+
"rule": "Depth of the cross slot in the post",
|
|
49
|
+
"kind": "community",
|
|
50
|
+
"source": "Common keycap designs",
|
|
51
|
+
"checked": "2026-10-11"
|
|
52
|
+
},
|
|
53
|
+
"cap_base": {
|
|
54
|
+
"value": 18.2,
|
|
55
|
+
"unit": "mm",
|
|
56
|
+
"rule": "1u keycap width at the bottom: leaves about 0.85 mm between neighbours",
|
|
57
|
+
"kind": "community",
|
|
58
|
+
"source": "DSA and Cherry profile keycaps",
|
|
59
|
+
"checked": "2026-10-11"
|
|
60
|
+
},
|
|
61
|
+
"stem_arm_h": {
|
|
62
|
+
"value": 1.275,
|
|
63
|
+
"unit": "mm",
|
|
64
|
+
"rule": "Switch stem's horizontal cross arm: 1.25 to 1.30 mm thick (middle of the range)",
|
|
65
|
+
"kind": "community",
|
|
66
|
+
"source": "https://deskthority.net/wiki/Cherry_MX",
|
|
67
|
+
"checked": "2026-10-11"
|
|
68
|
+
},
|
|
69
|
+
"stem_arm_v": {
|
|
70
|
+
"value": 1.075,
|
|
71
|
+
"unit": "mm",
|
|
72
|
+
"rule": "Switch stem's vertical cross arm: 1.05 to 1.10 mm thick (middle of the range)",
|
|
73
|
+
"kind": "community",
|
|
74
|
+
"source": "https://deskthority.net/wiki/Cherry_MX",
|
|
75
|
+
"checked": "2026-10-11"
|
|
76
|
+
},
|
|
77
|
+
"stem_height": {
|
|
78
|
+
"value": 3.7,
|
|
79
|
+
"unit": "mm",
|
|
80
|
+
"rule": "Switch stem stands about 3.7 mm above its slider",
|
|
81
|
+
"kind": "community",
|
|
82
|
+
"source": "https://deskthority.net/wiki/Cherry_MX",
|
|
83
|
+
"checked": "2026-10-11"
|
|
84
|
+
},
|
|
85
|
+
"travel": {
|
|
86
|
+
"value": 4,
|
|
87
|
+
"unit": "mm",
|
|
88
|
+
"rule": "Total key travel",
|
|
89
|
+
"kind": "spec",
|
|
90
|
+
"source": "https://deskthority.net/wiki/Cherry_MX",
|
|
91
|
+
"checked": "2026-10-11"
|
|
92
|
+
},
|
|
93
|
+
"height_pcb": {
|
|
94
|
+
"value": 15.2,
|
|
95
|
+
"unit": "mm",
|
|
96
|
+
"rule": "Switch top (stem) is 15.2 mm above the PCB, with no keycap",
|
|
97
|
+
"kind": "spec",
|
|
98
|
+
"source": "https://deskthority.net/wiki/Cherry_MX",
|
|
99
|
+
"checked": "2026-10-11"
|
|
100
|
+
},
|
|
101
|
+
"plate_to_pcb": {
|
|
102
|
+
"value": 5,
|
|
103
|
+
"unit": "mm",
|
|
104
|
+
"rule": "Plate top to PCB top",
|
|
105
|
+
"kind": "spec",
|
|
106
|
+
"source": "https://wiki.ai03.com/books/case-and-plate-design/page/switch-dimensions-and-physical-specifications/revisions/97",
|
|
107
|
+
"checked": "2026-10-11"
|
|
108
|
+
},
|
|
109
|
+
"cutout": {
|
|
110
|
+
"value": 14,
|
|
111
|
+
"unit": "mm",
|
|
112
|
+
"rule": "Plate cutout, square",
|
|
113
|
+
"kind": "spec",
|
|
114
|
+
"source": "https://wiki.ai03.com/books/case-and-plate-design/page/switch-dimensions-and-physical-specifications/revisions/97",
|
|
115
|
+
"checked": "2026-10-11"
|
|
116
|
+
},
|
|
117
|
+
"plate": {
|
|
118
|
+
"value": 1.5,
|
|
119
|
+
"unit": "mm",
|
|
120
|
+
"rule": "Plate thickness",
|
|
121
|
+
"kind": "spec",
|
|
122
|
+
"source": "https://wiki.ai03.com/books/case-and-plate-design/page/switch-dimensions-and-physical-specifications/revisions/97",
|
|
123
|
+
"checked": "2026-10-11"
|
|
124
|
+
},
|
|
125
|
+
"housing": {
|
|
126
|
+
"value": 15.6,
|
|
127
|
+
"unit": "mm",
|
|
128
|
+
"rule": "Top housing width where it sits on the plate",
|
|
129
|
+
"kind": "community",
|
|
130
|
+
"source": "Common MX switch drawings",
|
|
131
|
+
"checked": "2026-10-11"
|
|
132
|
+
},
|
|
133
|
+
"housing_top": {
|
|
134
|
+
"value": 11.5,
|
|
135
|
+
"unit": "mm",
|
|
136
|
+
"rule": "Top housing width at its top surface (it tapers): not found in any source",
|
|
137
|
+
"kind": "estimate",
|
|
138
|
+
"source": "Estimate: measure a switch with calipers",
|
|
139
|
+
"checked": "2026-10-11"
|
|
140
|
+
},
|
|
141
|
+
"below_plate": {
|
|
142
|
+
"value": 8.5,
|
|
143
|
+
"unit": "mm",
|
|
144
|
+
"rule": "Switch and its pins reach this far below the plate's top: a case under a handwired plate must clear it",
|
|
145
|
+
"kind": "community",
|
|
146
|
+
"source": "https://adamws.github.io/3d-printed-keyboard-prototype-with-freecad/ (\"anything above 8.5 mm should cover switch pins\")",
|
|
147
|
+
"checked": "2026-10-12"
|
|
148
|
+
},
|
|
149
|
+
"relief": {
|
|
150
|
+
"value": 15,
|
|
151
|
+
"unit": "mm",
|
|
152
|
+
"rule": "Opening under the 1.5 mm clip layer of a thicker plate, so the switch's latches can spring out: nobody publishes a size",
|
|
153
|
+
"kind": "estimate",
|
|
154
|
+
"source": "Estimate: thick plates are undercut to 1.5 mm (https://www.keebtalk.com/t/fat-plates/2787); test that a switch clicks in",
|
|
155
|
+
"checked": "2026-10-12"
|
|
156
|
+
},
|
|
157
|
+
"pcb_pin1_x": {
|
|
158
|
+
"value": 2.54,
|
|
159
|
+
"unit": "mm",
|
|
160
|
+
"rule": "PCB footprint: pin 1, right of the switch's centre (seen from above, the back of the board up)",
|
|
161
|
+
"kind": "community",
|
|
162
|
+
"source": "KiCad footprint library, Button_Switch_Keyboard.pretty/SW_Cherry_MX_1.00u_PCB.kicad_mod (from Cherry's MX catalogue, http://cherryamericas.com/wp-content/uploads/2014/12/mx_cat.pdf), https://gitlab.com/kicad/libraries/kicad-footprints",
|
|
163
|
+
"checked": "2026-10-14"
|
|
164
|
+
},
|
|
165
|
+
"pcb_pin1_y": {
|
|
166
|
+
"value": 5.08,
|
|
167
|
+
"unit": "mm",
|
|
168
|
+
"rule": "PCB footprint: pin 1, behind the switch's centre",
|
|
169
|
+
"kind": "community",
|
|
170
|
+
"source": "KiCad footprint library, Button_Switch_Keyboard.pretty/SW_Cherry_MX_1.00u_PCB.kicad_mod (from Cherry's MX catalogue, http://cherryamericas.com/wp-content/uploads/2014/12/mx_cat.pdf), https://gitlab.com/kicad/libraries/kicad-footprints",
|
|
171
|
+
"checked": "2026-10-14"
|
|
172
|
+
},
|
|
173
|
+
"pcb_pin2_x": {
|
|
174
|
+
"value": -3.81,
|
|
175
|
+
"unit": "mm",
|
|
176
|
+
"rule": "PCB footprint: pin 2, left of the centre",
|
|
177
|
+
"kind": "community",
|
|
178
|
+
"source": "KiCad footprint library, Button_Switch_Keyboard.pretty/SW_Cherry_MX_1.00u_PCB.kicad_mod (from Cherry's MX catalogue, http://cherryamericas.com/wp-content/uploads/2014/12/mx_cat.pdf), https://gitlab.com/kicad/libraries/kicad-footprints",
|
|
179
|
+
"checked": "2026-10-14"
|
|
180
|
+
},
|
|
181
|
+
"pcb_pin2_y": {
|
|
182
|
+
"value": 2.54,
|
|
183
|
+
"unit": "mm",
|
|
184
|
+
"rule": "PCB footprint: pin 2, behind the centre",
|
|
185
|
+
"kind": "community",
|
|
186
|
+
"source": "KiCad footprint library, Button_Switch_Keyboard.pretty/SW_Cherry_MX_1.00u_PCB.kicad_mod (from Cherry's MX catalogue, http://cherryamericas.com/wp-content/uploads/2014/12/mx_cat.pdf), https://gitlab.com/kicad/libraries/kicad-footprints",
|
|
187
|
+
"checked": "2026-10-14"
|
|
188
|
+
},
|
|
189
|
+
"pcb_pin_drill": {
|
|
190
|
+
"value": 1.5,
|
|
191
|
+
"unit": "mm",
|
|
192
|
+
"rule": "PCB footprint: drill for the two electrical pins",
|
|
193
|
+
"kind": "community",
|
|
194
|
+
"source": "KiCad footprint library, Button_Switch_Keyboard.pretty/SW_Cherry_MX_1.00u_PCB.kicad_mod (from Cherry's MX catalogue, http://cherryamericas.com/wp-content/uploads/2014/12/mx_cat.pdf), https://gitlab.com/kicad/libraries/kicad-footprints",
|
|
195
|
+
"checked": "2026-10-14"
|
|
196
|
+
},
|
|
197
|
+
"pcb_pin_pad": {
|
|
198
|
+
"value": 2.2,
|
|
199
|
+
"unit": "mm",
|
|
200
|
+
"rule": "PCB footprint: copper pad around each electrical pin",
|
|
201
|
+
"kind": "community",
|
|
202
|
+
"source": "KiCad footprint library, Button_Switch_Keyboard.pretty/SW_Cherry_MX_1.00u_PCB.kicad_mod (from Cherry's MX catalogue, http://cherryamericas.com/wp-content/uploads/2014/12/mx_cat.pdf), https://gitlab.com/kicad/libraries/kicad-footprints",
|
|
203
|
+
"checked": "2026-10-14"
|
|
204
|
+
},
|
|
205
|
+
"pcb_centre_hole": {
|
|
206
|
+
"value": 4.0,
|
|
207
|
+
"unit": "mm",
|
|
208
|
+
"rule": "PCB footprint: unplated hole for the switch's centre post",
|
|
209
|
+
"kind": "community",
|
|
210
|
+
"source": "KiCad footprint library, Button_Switch_Keyboard.pretty/SW_Cherry_MX_1.00u_PCB.kicad_mod (from Cherry's MX catalogue, http://cherryamericas.com/wp-content/uploads/2014/12/mx_cat.pdf), https://gitlab.com/kicad/libraries/kicad-footprints",
|
|
211
|
+
"checked": "2026-10-14"
|
|
212
|
+
},
|
|
213
|
+
"pcb_peg_x": {
|
|
214
|
+
"value": 5.08,
|
|
215
|
+
"unit": "mm",
|
|
216
|
+
"rule": "PCB footprint: the two fixing pegs (PCB-mount switches), either side of the centre",
|
|
217
|
+
"kind": "community",
|
|
218
|
+
"source": "KiCad footprint library, Button_Switch_Keyboard.pretty/SW_Cherry_MX_1.00u_PCB.kicad_mod (from Cherry's MX catalogue, http://cherryamericas.com/wp-content/uploads/2014/12/mx_cat.pdf), https://gitlab.com/kicad/libraries/kicad-footprints",
|
|
219
|
+
"checked": "2026-10-14"
|
|
220
|
+
},
|
|
221
|
+
"pcb_peg_hole": {
|
|
222
|
+
"value": 1.7,
|
|
223
|
+
"unit": "mm",
|
|
224
|
+
"rule": "PCB footprint: unplated holes for the fixing pegs",
|
|
225
|
+
"kind": "community",
|
|
226
|
+
"source": "KiCad footprint library, Button_Switch_Keyboard.pretty/SW_Cherry_MX_1.00u_PCB.kicad_mod (from Cherry's MX catalogue, http://cherryamericas.com/wp-content/uploads/2014/12/mx_cat.pdf), https://gitlab.com/kicad/libraries/kicad-footprints",
|
|
227
|
+
"checked": "2026-10-14"
|
|
228
|
+
},
|
|
229
|
+
"pcb_body": {
|
|
230
|
+
"value": 14,
|
|
231
|
+
"unit": "mm",
|
|
232
|
+
"rule": "The switch's bottom housing sits on the PCB in this square: nothing taller than a pad goes under it on the top side",
|
|
233
|
+
"kind": "community",
|
|
234
|
+
"source": "https://wiki.ai03.com/books/case-and-plate-design/page/switch-dimensions-and-physical-specifications/revisions/97",
|
|
235
|
+
"checked": "2026-10-14"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
package/oem.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "OEM keycap profile: the sculpted profile on most prebuilt keyboards. Each row has its own height and top tilt; rows count from the top (R1, the number row) to R4 (the bottom two rows). Tilt is degrees, positive raising the top's front edge, about the top's centre. The values are KeyV2's (rsheldiii/KeyV2, src/key_profiles/oem.scad), a keycap library made for 3D printing; OEM varies a little between makers. kind as in x1c.json.",
|
|
3
|
+
"name": "oem",
|
|
4
|
+
"rules": {
|
|
5
|
+
"r1_height": { "value": 9.45, "unit": "mm", "rule": "Row 1 (number row) height at the top's centre", "kind": "community", "source": "https://github.com/rsheldiii/KeyV2/blob/master/src/key_profiles/oem.scad", "checked": "2026-10-13" },
|
|
6
|
+
"r1_tilt": { "value": 1, "unit": "°", "rule": "Row 1 top tilt", "kind": "community", "source": "KeyV2 oem.scad", "checked": "2026-10-13" },
|
|
7
|
+
"r2_height": { "value": 9, "unit": "mm", "rule": "Row 2 (Q row) height", "kind": "community", "source": "KeyV2 oem.scad", "checked": "2026-10-13" },
|
|
8
|
+
"r2_tilt": { "value": 6, "unit": "°", "rule": "Row 2 top tilt", "kind": "community", "source": "KeyV2 oem.scad", "checked": "2026-10-13" },
|
|
9
|
+
"r3_height": { "value": 9.25, "unit": "mm", "rule": "Row 3 (home row) height", "kind": "community", "source": "KeyV2 oem.scad", "checked": "2026-10-13" },
|
|
10
|
+
"r3_tilt": { "value": 9, "unit": "°", "rule": "Row 3 top tilt", "kind": "community", "source": "KeyV2 oem.scad", "checked": "2026-10-13" },
|
|
11
|
+
"r4_height": { "value": 9.25, "unit": "mm", "rule": "Row 4 (Shift and bottom rows) height", "kind": "community", "source": "KeyV2 oem.scad; modern boards use the row 4 profile on both bottom rows (https://deskthority.net/wiki/Keyboard_profile)", "checked": "2026-10-13" },
|
|
12
|
+
"r4_tilt": { "value": 10, "unit": "°", "rule": "Row 4 top tilt", "kind": "community", "source": "KeyV2 oem.scad", "checked": "2026-10-13" },
|
|
13
|
+
"top_narrower": { "value": 5.8, "unit": "mm", "rule": "The top is this much narrower than the base", "kind": "community", "source": "KeyV2 oem.scad ($width_difference)", "checked": "2026-10-13" },
|
|
14
|
+
"top_shorter": { "value": 4, "unit": "mm", "rule": "The top is this much shorter, front to back, than the base", "kind": "community", "source": "KeyV2 oem.scad ($height_difference)", "checked": "2026-10-13" },
|
|
15
|
+
"top_skew": { "value": 1.75, "unit": "mm", "rule": "The top sits this far back from the base's centre", "kind": "community", "source": "KeyV2 oem.scad ($top_skew)", "checked": "2026-10-13" },
|
|
16
|
+
"dish": { "value": 1, "unit": "mm", "rule": "Cylindrical dish depth: the top curves side to side, straight front to back", "kind": "community", "source": "KeyV2 oem.scad ($dish_type cylindrical, $dish_depth 1)", "checked": "2026-10-13" }
|
|
17
|
+
}
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulecad/rules",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Researched rule sets as open data: a Bambu Lab X1C, Cherry MX switches, OEM keycaps, M2 inserts, the Raspberry Pi Pico and more, each value with its source.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./*": "./*"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"*.json",
|
|
11
|
+
"README.md",
|
|
12
|
+
"LICENSE"
|
|
13
|
+
],
|
|
14
|
+
"license": "CC0-1.0",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"3d-printing",
|
|
17
|
+
"cherry-mx",
|
|
18
|
+
"keycaps",
|
|
19
|
+
"raspberry-pi-pico",
|
|
20
|
+
"bambu-lab",
|
|
21
|
+
"open-data"
|
|
22
|
+
],
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/JoniBach/rulecad.git",
|
|
26
|
+
"directory": "packages/rules"
|
|
27
|
+
}
|
|
28
|
+
}
|
package/pico.json
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "Raspberry Pi Pico (the base model: RP2040, micro-USB), and the cable that plugs into it. kind as in x1c.json.",
|
|
3
|
+
"name": "pico",
|
|
4
|
+
"rules": {
|
|
5
|
+
"length": {
|
|
6
|
+
"value": 51,
|
|
7
|
+
"unit": "mm",
|
|
8
|
+
"rule": "Board length",
|
|
9
|
+
"kind": "spec",
|
|
10
|
+
"source": "Raspberry Pi Pico datasheet, 2. Mechanical specification, https://datasheets.raspberrypi.com/pico/pico-datasheet.pdf",
|
|
11
|
+
"checked": "2026-10-13"
|
|
12
|
+
},
|
|
13
|
+
"width": {
|
|
14
|
+
"value": 21,
|
|
15
|
+
"unit": "mm",
|
|
16
|
+
"rule": "Board width",
|
|
17
|
+
"kind": "spec",
|
|
18
|
+
"source": "Raspberry Pi Pico datasheet, 2. Mechanical specification",
|
|
19
|
+
"checked": "2026-10-13"
|
|
20
|
+
},
|
|
21
|
+
"pcb": {
|
|
22
|
+
"value": 1,
|
|
23
|
+
"unit": "mm",
|
|
24
|
+
"rule": "Board thickness",
|
|
25
|
+
"kind": "spec",
|
|
26
|
+
"source": "Raspberry Pi Pico datasheet: a 1 mm thick PCB",
|
|
27
|
+
"checked": "2026-10-13"
|
|
28
|
+
},
|
|
29
|
+
"usb_overhang": {
|
|
30
|
+
"value": 1.3,
|
|
31
|
+
"unit": "mm",
|
|
32
|
+
"rule": "The micro-USB socket overhangs the board's top edge (the datasheet says it does, in a drawing)",
|
|
33
|
+
"kind": "estimate",
|
|
34
|
+
"source": "Estimate from the datasheet's Figure 3: measure your Pico",
|
|
35
|
+
"checked": "2026-10-13"
|
|
36
|
+
},
|
|
37
|
+
"usb_width": {
|
|
38
|
+
"value": 7.5,
|
|
39
|
+
"unit": "mm",
|
|
40
|
+
"rule": "Micro-USB B socket shell width",
|
|
41
|
+
"kind": "community",
|
|
42
|
+
"source": "Common micro-USB B receptacles (about 7.5 mm wide)",
|
|
43
|
+
"checked": "2026-10-13"
|
|
44
|
+
},
|
|
45
|
+
"usb_height": {
|
|
46
|
+
"value": 3,
|
|
47
|
+
"unit": "mm",
|
|
48
|
+
"rule": "Micro-USB socket height above the board, rounded up",
|
|
49
|
+
"kind": "estimate",
|
|
50
|
+
"source": "Estimate: common micro-USB B receptacles are 2.5 to 3 mm tall; measure your Pico",
|
|
51
|
+
"checked": "2026-10-13"
|
|
52
|
+
},
|
|
53
|
+
"usb_depth": {
|
|
54
|
+
"value": 5.5,
|
|
55
|
+
"unit": "mm",
|
|
56
|
+
"rule": "Micro-USB socket length, front to back",
|
|
57
|
+
"kind": "community",
|
|
58
|
+
"source": "Common micro-USB B receptacles",
|
|
59
|
+
"checked": "2026-10-13"
|
|
60
|
+
},
|
|
61
|
+
"plug_width": {
|
|
62
|
+
"value": 11,
|
|
63
|
+
"unit": "mm",
|
|
64
|
+
"rule": "A micro-USB cable's plug housing is about this wide: the case opening must let it in",
|
|
65
|
+
"kind": "estimate",
|
|
66
|
+
"source": "Estimate: micro-USB plug housings are typically 10 to 11 mm wide; measure your cable",
|
|
67
|
+
"checked": "2026-10-13"
|
|
68
|
+
},
|
|
69
|
+
"plug_height": {
|
|
70
|
+
"value": 8,
|
|
71
|
+
"unit": "mm",
|
|
72
|
+
"rule": "A micro-USB cable's plug housing is about this tall",
|
|
73
|
+
"kind": "estimate",
|
|
74
|
+
"source": "Estimate: typical housings are 6 to 8 mm tall; measure your cable",
|
|
75
|
+
"checked": "2026-10-13"
|
|
76
|
+
},
|
|
77
|
+
"pin_pitch": {
|
|
78
|
+
"value": 2.54,
|
|
79
|
+
"unit": "mm",
|
|
80
|
+
"rule": "The 40 main pins are on a 0.1 in grid",
|
|
81
|
+
"kind": "spec",
|
|
82
|
+
"source": "Raspberry Pi Pico datasheet (RP-008307-DS, release 21, 2026-07-03), 2. Mechanical specification, https://datasheets.raspberrypi.com/pico/pico-datasheet.pdf",
|
|
83
|
+
"checked": "2026-10-14"
|
|
84
|
+
},
|
|
85
|
+
"pin_rows": {
|
|
86
|
+
"value": 17.78,
|
|
87
|
+
"unit": "mm",
|
|
88
|
+
"rule": "Between the two rows of pins: one 0.1 in pitch wider than a standard 40-pin DIP (0.6 in), so 0.7 in",
|
|
89
|
+
"kind": "spec",
|
|
90
|
+
"source": "Raspberry Pi Pico datasheet (RP-008307-DS, release 21, 2026-07-03), 2. Mechanical specification, https://datasheets.raspberrypi.com/pico/pico-datasheet.pdf",
|
|
91
|
+
"checked": "2026-10-14"
|
|
92
|
+
},
|
|
93
|
+
"pin_hole": {
|
|
94
|
+
"value": 1.0,
|
|
95
|
+
"unit": "mm",
|
|
96
|
+
"rule": "The Pico's pin holes are 1 mm; a host board's holes for its header pins match",
|
|
97
|
+
"kind": "spec",
|
|
98
|
+
"source": "Raspberry Pi Pico datasheet (RP-008307-DS, release 21, 2026-07-03), 2. Mechanical specification, https://datasheets.raspberrypi.com/pico/pico-datasheet.pdf",
|
|
99
|
+
"checked": "2026-10-14"
|
|
100
|
+
},
|
|
101
|
+
"pin_pad": {
|
|
102
|
+
"value": 1.7,
|
|
103
|
+
"unit": "mm",
|
|
104
|
+
"rule": "Copper pad around each header pin hole on the host board: the 1 mm hole plus a 0.35 mm ring",
|
|
105
|
+
"kind": "community",
|
|
106
|
+
"source": "KiCad's 0.1 in pin headers use a 1.0 mm drill and a 1.7 mm pad (Connector_PinHeader_2.54mm)",
|
|
107
|
+
"checked": "2026-10-14"
|
|
108
|
+
},
|
|
109
|
+
"mount_hole": {
|
|
110
|
+
"value": 2.1,
|
|
111
|
+
"unit": "mm",
|
|
112
|
+
"rule": "The Pico's four mounting holes",
|
|
113
|
+
"kind": "spec",
|
|
114
|
+
"source": "Raspberry Pi Pico datasheet (RP-008307-DS, release 21, 2026-07-03), 2. Mechanical specification, https://datasheets.raspberrypi.com/pico/pico-datasheet.pdf",
|
|
115
|
+
"checked": "2026-10-14"
|
|
116
|
+
},
|
|
117
|
+
"gpio_left": {
|
|
118
|
+
"value": 16,
|
|
119
|
+
"rule": "Pins 1 to 20 run down the left edge (USB at the top, seen from above); value: how many carry GPIO, listed in pins, the rest (3, 8, 13, 18) are ground",
|
|
120
|
+
"kind": "community",
|
|
121
|
+
"source": "The Pico pinout (datasheet Figure 2, an image); ground pins and pins 30 to 40 confirmed in the datasheet's text. Check against your Pico's silkscreen",
|
|
122
|
+
"checked": "2026-10-14",
|
|
123
|
+
"unit": "pins",
|
|
124
|
+
"pins": {
|
|
125
|
+
"1": "GP0",
|
|
126
|
+
"2": "GP1",
|
|
127
|
+
"4": "GP2",
|
|
128
|
+
"5": "GP3",
|
|
129
|
+
"6": "GP4",
|
|
130
|
+
"7": "GP5",
|
|
131
|
+
"9": "GP6",
|
|
132
|
+
"10": "GP7",
|
|
133
|
+
"11": "GP8",
|
|
134
|
+
"12": "GP9",
|
|
135
|
+
"14": "GP10",
|
|
136
|
+
"15": "GP11",
|
|
137
|
+
"16": "GP12",
|
|
138
|
+
"17": "GP13",
|
|
139
|
+
"19": "GP14",
|
|
140
|
+
"20": "GP15"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"gpio_right": {
|
|
144
|
+
"value": 10,
|
|
145
|
+
"rule": "Pins 21 to 40 run up the right edge; value: how many carry GPIO, listed in pins (23, 28, 38 ground; 30 RUN, 33 AGND, 35 ADC_VREF, 36 3V3, 37 3V3_EN, 39 VSYS, 40 VBUS)",
|
|
146
|
+
"kind": "community",
|
|
147
|
+
"source": "As gpio_left; pins 30, 33 and 35 to 40 are named in the datasheet's text",
|
|
148
|
+
"checked": "2026-10-14",
|
|
149
|
+
"unit": "pins",
|
|
150
|
+
"pins": {
|
|
151
|
+
"21": "GP16",
|
|
152
|
+
"22": "GP17",
|
|
153
|
+
"24": "GP18",
|
|
154
|
+
"25": "GP19",
|
|
155
|
+
"26": "GP20",
|
|
156
|
+
"27": "GP21",
|
|
157
|
+
"29": "GP22",
|
|
158
|
+
"31": "GP26",
|
|
159
|
+
"32": "GP27",
|
|
160
|
+
"34": "GP28"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"other_pins": {
|
|
164
|
+
"value": 14,
|
|
165
|
+
"unit": "pins",
|
|
166
|
+
"rule": "The pins that aren't GPIO, listed in pins: ground, power, run and the ADC reference",
|
|
167
|
+
"kind": "spec",
|
|
168
|
+
"source": "Raspberry Pi Pico datasheet (RP-008307-DS, release 21), 2.1. Raspberry Pi Pico pinout: PIN40 VBUS, PIN39 VSYS, PIN37 3V3_EN, PIN36 3V3, PIN35 ADC_VREF, PIN33 AGND, PIN30 RUN; ground pins as gpio_left and gpio_right",
|
|
169
|
+
"checked": "2026-10-14",
|
|
170
|
+
"pins": {
|
|
171
|
+
"3": "GND",
|
|
172
|
+
"8": "GND",
|
|
173
|
+
"13": "GND",
|
|
174
|
+
"18": "GND",
|
|
175
|
+
"23": "GND",
|
|
176
|
+
"28": "GND",
|
|
177
|
+
"38": "GND",
|
|
178
|
+
"30": "RUN",
|
|
179
|
+
"33": "AGND",
|
|
180
|
+
"35": "ADC_VREF",
|
|
181
|
+
"36": "3V3",
|
|
182
|
+
"37": "3V3_EN",
|
|
183
|
+
"39": "VSYS",
|
|
184
|
+
"40": "VBUS"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"header_spacer": {
|
|
188
|
+
"value": 2.5,
|
|
189
|
+
"unit": "mm",
|
|
190
|
+
"rule": "The plastic body of a 0.1 in pin header: a Pico on headers stands this far off the board it's soldered to",
|
|
191
|
+
"kind": "community",
|
|
192
|
+
"source": "Standard 2.54 mm pitch male headers have a 2.5 mm tall plastic body (e.g. KiCad's Connector_PinHeader_2.54mm models)",
|
|
193
|
+
"checked": "2026-10-14"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
package/promicro.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "Pro Micro footprint controllers with USB-C (SparkFun Pro Micro RP2040 and the clones that copy it), and the cable that plugs into them. kind as in x1c.json.",
|
|
3
|
+
"name": "promicro",
|
|
4
|
+
"rules": {
|
|
5
|
+
"length": { "value": 33, "unit": "mm", "rule": "Board length, 1.3 in", "kind": "spec", "source": "https://learn.sparkfun.com/tutorials/pro-micro-rp2040-hookup-guide", "checked": "2026-10-12" },
|
|
6
|
+
"width": { "value": 17.8, "unit": "mm", "rule": "Board width, 0.7 in", "kind": "spec", "source": "https://learn.sparkfun.com/tutorials/pro-micro-rp2040-hookup-guide", "checked": "2026-10-12" },
|
|
7
|
+
"pcb": { "value": 1.6, "unit": "mm", "rule": "Board thickness", "kind": "community", "source": "Standard PCB thickness; hotswap_pcb_generator mcu_pcb_thickness, https://github.com/50an6xy06r6n/hotswap_pcb_generator", "checked": "2026-10-12" },
|
|
8
|
+
"usb_overhang": { "value": 1.27, "unit": "mm", "rule": "The USB-C socket sticks out past the board's edge by about 0.05 in", "kind": "spec", "source": "https://learn.sparkfun.com/tutorials/pro-micro-rp2040-hookup-guide", "checked": "2026-10-12" },
|
|
9
|
+
"usb_width": { "value": 8.94, "unit": "mm", "rule": "USB-C socket shell width", "kind": "community", "source": "Common top-mount USB-C receptacles (8.94 × 3.26 mm shell)", "checked": "2026-10-12" },
|
|
10
|
+
"usb_height": { "value": 3.26, "unit": "mm", "rule": "USB-C socket shell height above the board", "kind": "community", "source": "Common top-mount USB-C receptacles (8.94 × 3.26 mm shell)", "checked": "2026-10-12" },
|
|
11
|
+
"usb_depth": { "value": 7.35, "unit": "mm", "rule": "USB-C socket shell length, front to back", "kind": "community", "source": "Common top-mount USB-C receptacles", "checked": "2026-10-12" },
|
|
12
|
+
"plug_width": { "value": 13, "unit": "mm", "rule": "A USB-C cable's plug housing is about this wide: the case opening must let it in", "kind": "community", "source": "hotswap_pcb_generator mcu_connector_width, https://github.com/50an6xy06r6n/hotswap_pcb_generator", "checked": "2026-10-12" },
|
|
13
|
+
"plug_height": { "value": 8, "unit": "mm", "rule": "A USB-C cable's plug housing is about this tall", "kind": "community", "source": "hotswap_pcb_generator mcu_connector_height, https://github.com/50an6xy06r6n/hotswap_pcb_generator", "checked": "2026-10-12" }
|
|
14
|
+
}
|
|
15
|
+
}
|
package/sod123.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "SOD-123 diodes (such as the 1N4148W), the surface-mount package for a keyboard's matrix diodes: easy to hand-solder, and JLCPCB can place them. kind as in x1c.json.",
|
|
3
|
+
"name": "sod123",
|
|
4
|
+
"rules": {
|
|
5
|
+
"pad_x": {
|
|
6
|
+
"value": 1.65,
|
|
7
|
+
"unit": "mm",
|
|
8
|
+
"rule": "Each pad's centre from the diode's centre",
|
|
9
|
+
"kind": "community",
|
|
10
|
+
"source": "KiCad footprint library, Diode_SMD.pretty/D_SOD-123.kicad_mod, https://gitlab.com/kicad/libraries/kicad-footprints (tscircuit's sod123 footprint has the same pads)",
|
|
11
|
+
"checked": "2026-10-14"
|
|
12
|
+
},
|
|
13
|
+
"pad_w": {
|
|
14
|
+
"value": 0.9,
|
|
15
|
+
"unit": "mm",
|
|
16
|
+
"rule": "Pad width, along the diode",
|
|
17
|
+
"kind": "community",
|
|
18
|
+
"source": "KiCad footprint library, Diode_SMD.pretty/D_SOD-123.kicad_mod, https://gitlab.com/kicad/libraries/kicad-footprints (tscircuit's sod123 footprint has the same pads)",
|
|
19
|
+
"checked": "2026-10-14"
|
|
20
|
+
},
|
|
21
|
+
"pad_h": {
|
|
22
|
+
"value": 1.2,
|
|
23
|
+
"unit": "mm",
|
|
24
|
+
"rule": "Pad height, across the diode",
|
|
25
|
+
"kind": "community",
|
|
26
|
+
"source": "KiCad footprint library, Diode_SMD.pretty/D_SOD-123.kicad_mod, https://gitlab.com/kicad/libraries/kicad-footprints (tscircuit's sod123 footprint has the same pads)",
|
|
27
|
+
"checked": "2026-10-14"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
package/wiring.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "Handwiring: a 1N4148 diode on each switch and bare wires along the rows and columns, soldered to the switch pins. kind as in x1c.json.",
|
|
3
|
+
"name": "wiring",
|
|
4
|
+
"rules": {
|
|
5
|
+
"room": { "value": 3, "unit": "mm", "rule": "Room below the switch pins for diode legs and row and column wires soldered across them, and the wires going to the controller", "kind": "estimate", "source": "Estimate: a DO-35 diode body is about 2 mm across, plus a wire. Measure the deepest point once wired", "checked": "2026-10-12" }
|
|
6
|
+
}
|
|
7
|
+
}
|
package/x1c.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "Bambu Lab X1 Carbon with the stock 0.4 mm nozzle and Bambu Studio defaults. kind: spec (manufacturer), default (slicer setting), community (widely used rule of thumb), measured (your own test print; beats the rest), estimate (a reasoned guess: measure it).",
|
|
3
|
+
"name": "x1c",
|
|
4
|
+
"rules": {
|
|
5
|
+
"bed": {
|
|
6
|
+
"value": 256,
|
|
7
|
+
"unit": "mm",
|
|
8
|
+
"rule": "Build volume is 256 \u00d7 256 \u00d7 256 mm",
|
|
9
|
+
"kind": "spec",
|
|
10
|
+
"source": "https://dyer.lafayette.edu/makerspace/bambu-lab-x1-carbon/",
|
|
11
|
+
"checked": "2026-10-11"
|
|
12
|
+
},
|
|
13
|
+
"nozzle": {
|
|
14
|
+
"value": 0.4,
|
|
15
|
+
"unit": "mm",
|
|
16
|
+
"rule": "Stock hardened steel nozzle",
|
|
17
|
+
"kind": "spec",
|
|
18
|
+
"source": "https://dyer.lafayette.edu/makerspace/bambu-lab-x1-carbon/",
|
|
19
|
+
"checked": "2026-10-11"
|
|
20
|
+
},
|
|
21
|
+
"line": {
|
|
22
|
+
"value": 0.42,
|
|
23
|
+
"unit": "mm",
|
|
24
|
+
"rule": "Bambu Studio's default line width for a 0.4 mm nozzle: walls are whole numbers of lines",
|
|
25
|
+
"kind": "default",
|
|
26
|
+
"source": "Bambu Studio 0.4 mm nozzle process profile",
|
|
27
|
+
"checked": "2026-10-11"
|
|
28
|
+
},
|
|
29
|
+
"layer": {
|
|
30
|
+
"value": 0.2,
|
|
31
|
+
"unit": "mm",
|
|
32
|
+
"rule": "Default layer height; heights that matter should be whole numbers of layers",
|
|
33
|
+
"kind": "default",
|
|
34
|
+
"source": "Bambu Studio 0.20 mm Standard profile",
|
|
35
|
+
"checked": "2026-10-11"
|
|
36
|
+
},
|
|
37
|
+
"wall_min": {
|
|
38
|
+
"value": "line * 2",
|
|
39
|
+
"unit": "mm",
|
|
40
|
+
"rule": "Thinnest wall worth printing: two lines",
|
|
41
|
+
"kind": "community",
|
|
42
|
+
"source": "Common FDM practice",
|
|
43
|
+
"checked": "2026-10-11"
|
|
44
|
+
},
|
|
45
|
+
"hole_comp": {
|
|
46
|
+
"value": 0.1,
|
|
47
|
+
"unit": "mm",
|
|
48
|
+
"rule": "Printed holes and slots come out small: widen them by this much",
|
|
49
|
+
"kind": "community",
|
|
50
|
+
"source": "Common FDM practice; tune with a test print",
|
|
51
|
+
"checked": "2026-10-11"
|
|
52
|
+
},
|
|
53
|
+
"fit": {
|
|
54
|
+
"value": 0.2,
|
|
55
|
+
"unit": "mm",
|
|
56
|
+
"rule": "Gap between parts that slide together",
|
|
57
|
+
"kind": "community",
|
|
58
|
+
"source": "Common FDM practice; tune with a test print",
|
|
59
|
+
"checked": "2026-10-11"
|
|
60
|
+
},
|
|
61
|
+
"overhang": {
|
|
62
|
+
"value": 45,
|
|
63
|
+
"unit": "\u00b0",
|
|
64
|
+
"rule": "Steepest overhang from vertical that prints without supports",
|
|
65
|
+
"kind": "community",
|
|
66
|
+
"source": "Common FDM practice",
|
|
67
|
+
"checked": "2026-10-11"
|
|
68
|
+
},
|
|
69
|
+
"bridge": {
|
|
70
|
+
"value": 5,
|
|
71
|
+
"unit": "mm",
|
|
72
|
+
"rule": "Widest gap a flat underside can span with no support (the widest circle that fits in it)",
|
|
73
|
+
"kind": "community",
|
|
74
|
+
"source": "https://grandavehousing.calpoly.edu/news/iibambu-lab-x1-carbon-support",
|
|
75
|
+
"checked": "2026-10-11"
|
|
76
|
+
},
|
|
77
|
+
"support_gap": {
|
|
78
|
+
"value": "layer",
|
|
79
|
+
"unit": "mm",
|
|
80
|
+
"rule": "Gap between a built-in breakaway support and the part: one layer, so it snaps off",
|
|
81
|
+
"kind": "community",
|
|
82
|
+
"source": "dmote-keycap printing advice (0.2 mm lift), https://cljdoc.org/d/dmote-keycap/dmote-keycap/0.8.0/doc/printing-advice",
|
|
83
|
+
"checked": "2026-10-11"
|
|
84
|
+
},
|
|
85
|
+
"chamfer": {
|
|
86
|
+
"value": 0.4,
|
|
87
|
+
"unit": "mm",
|
|
88
|
+
"rule": "Chamfer bottom edges instead of rounding them, against first-layer squish",
|
|
89
|
+
"kind": "community",
|
|
90
|
+
"source": "Common FDM practice",
|
|
91
|
+
"checked": "2026-10-11"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|