@rulecad/rules 0.3.18 → 0.3.19
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/CHANGELOG.md +16 -0
- package/README.md +3 -1
- package/magnets.json +244 -0
- package/package.json +1 -1
- package/pins.json +53 -0
- package/x1c.json +48 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
What changed in each release, for someone upgrading a workspace. A rule set's **values** are the figures designs
|
|
4
4
|
read (`m3.clearance`, `x1c.hole_comp`). Each release says whether any value changed, and why.
|
|
5
5
|
|
|
6
|
+
## 0.3.19: pins, magnets and the printer's new fits (Fixings 4)
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- `pins`: steel dowel diameters and lengths sold to ISO 8734 (community, a seller's listing), its m6 tolerance, a
|
|
11
|
+
dowel's shear strength (estimate: S275's yield over √3, which understates a hardened pin), and 1.75 mm filament's
|
|
12
|
+
diameter (Bambu Lab's PLA Basic data sheet) and its ±0.03 mm (community).
|
|
13
|
+
- `magnets`: six disc magnets (6 x 2, 6 x 3, 8 x 3, 10 x 2, 10 x 3, 12 x 3) and two blocks, each with its seller's
|
|
14
|
+
pull straight off steel and the grade it was sold in (community, supermagnete's product pages), the remanence of
|
|
15
|
+
each grade N35 to N52, the default grade N35, the size tolerance, the density, and the on-axis field formula.
|
|
16
|
+
- `x1c`: `snap_clearance` (0.2 mm), `pin_press` (0.05 mm), `pin_slip` (0.2 mm), `magnet_press` (0.1 mm),
|
|
17
|
+
`magnet_glue` (0.1 mm) and `magnet_crush` (0.2 mm), all estimates until the holds coupon measures them
|
|
18
|
+
(examples/bench/projects/benchmarks/MEASURE.md, rows 40 to 47).
|
|
19
|
+
|
|
20
|
+
No existing value changed.
|
|
21
|
+
|
|
6
22
|
## 0.3.18: Kailh Choc v1, DO-35 diodes
|
|
7
23
|
|
|
8
24
|
### Added
|
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ it comes from and when it was checked, so a design built on it can be traced and
|
|
|
11
11
|
| Set | What | Values |
|
|
12
12
|
|---|---|---|
|
|
13
13
|
| `wire` | Hook-up wire by gauge: current density, service loop | 4 |
|
|
14
|
-
| `x1c` | Bambu Lab X1 Carbon: bed, line width, layer, overhang, bridges, fits, the gap parts printed in place need (and how far the first layer spreads), hole compensation, the gap a printed screw thread leaves its mate (`thread_gap`, an estimate), and the measured pilot for an M3 screw in PLA (`pilot_m3`) |
|
|
14
|
+
| `x1c` | Bambu Lab X1 Carbon: bed, line width, layer, overhang, bridges, fits, the gap parts printed in place need (and how far the first layer spreads), hole compensation, the gap a printed screw thread leaves its mate (`thread_gap`, an estimate), the fits of pins (`snap_clearance` round a snap pin's peg, `pin_press` and `pin_slip` for a plain pin, estimates until the fixings coupon measures them), the fits of magnets in their pockets (`magnet_press`, `magnet_glue`, and `magnet_crush` for crush ribs, estimates too), and the measured pilot for an M3 screw in PLA (`pilot_m3`) | 24 |
|
|
15
15
|
| `mx` | Cherry MX switches: plate cut-out, stem, housing, travel, key pitch | 29 |
|
|
16
16
|
| `choc` | Kailh Choc v1 (PG1350) switches: the PCB footprint (pins, centre post, pegs), housing, height | 13 |
|
|
17
17
|
| `oem` | OEM keycap profile: heights and top tilt per row (from KeyV2) | 12 |
|
|
@@ -33,6 +33,8 @@ it comes from and when it was checked, so a design built on it can be traced and
|
|
|
33
33
|
| `unc_4_40`, `unc_6_32`, `unc_8_32`, `unc_10_24`, `unf_10_32`, `unc_1_4_20`, `unc_5_16_18`, `unc_3_8_16` | Unified inch threads 4-40 to 3/8-16 to the same names, in millimetres, each rule's text giving its inch figure: ASME B1.1 threads, ASME B18.3 socket screws, with holes, nuts, washers and lengths | 39 to 49 each |
|
|
34
34
|
| `pt_k22`, `pt_k25`, `pt_k30`, `pt_k35`, `pt_k40`, `pt_k50` | Thread-forming screws for plastic (the PT type, WN 1412), 2.2 to 5 mm: thread, pan head with a Torx variant, and the maker's pilot, depth and boss for ABS. Community until measured in printed plastic | 11 each |
|
|
35
35
|
| `engagement` | How much thread a screw needs in what it screws into, in screw diameters: steel, aluminium, plastic | 3 |
|
|
36
|
+
| `magnets` | Disc and block neodymium magnets: six common discs (6 x 2 to 12 x 3 mm) and two blocks, each with its seller's pull straight off thick steel and its grade, the remanence of each grade from N35 to N52 to scale a pull between them, the size tolerance, the density, and the formula a pull across a gap is estimated by | 28 |
|
|
37
|
+
| `pins` | Plain pins for joining printed parts: the diameters and lengths an ISO 8734 steel dowel is sold in, its m6 tolerance, the shear strength a steel pin is taken to have (an estimate), and 1.75 mm filament as a pin with its tolerance | 6 |
|
|
36
38
|
| `hexkey` | Hex keys (ISO 2936): sizes, width across corners, long and short arms, how far a ball end tilts, and a socket's wall: what a key needs to reach a screw's head | 6 |
|
|
37
39
|
| `packs` | How small fixings are bought: the pack a shopping list rounds a count up to (an estimate) | 1 |
|
|
38
40
|
| `rp2040` | The RP2040 microcontroller: which package pins carry which GPIO | 2 |
|
package/magnets.json
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "Disc and block neodymium (NdFeB) magnets for printed parts: the sizes held, each with its seller's pull straight off thick steel and its grade, the remanence of each grade (to scale a pull to another grade), the size tolerance, the density, and the formula a pull across a gap is taken from. A magnet's pocket takes its fit from the printer's rules (x1c.magnet_press, x1c.magnet_glue, x1c.magnet_crush). Read by @rulecad/fixings' magnetModel. kind as in x1c.json.",
|
|
3
|
+
"name": "magnets",
|
|
4
|
+
"rules": {
|
|
5
|
+
"disc_6x2_pull": {
|
|
6
|
+
"value": 7.26,
|
|
7
|
+
"unit": "N",
|
|
8
|
+
"rule": "A 6 x 2 mm disc magnet of grade N45 pulls this hard, straight off, on a thick plate of mild steel it touches: the seller's adhesive force. Another grade is scaled from it by the square of its remanence; a gap or a thin steel strike takes less",
|
|
9
|
+
"kind": "community",
|
|
10
|
+
"source": "supermagnete (Webcraft GmbH), disc magnet 6 x 2 mm, item S-06-02-N, N45, nickel-plated: adhesive force approx. 0.74 kg (approx. 7.26 N), 0.43 g, https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-6mm-2mm_S-06-02-N",
|
|
11
|
+
"checked": "2026-11-21"
|
|
12
|
+
},
|
|
13
|
+
"disc_6x2_grade": {
|
|
14
|
+
"value": "N45",
|
|
15
|
+
"rule": "The grade of the 6x2 disc magnet whose pull is held (disc_6x2_pull)",
|
|
16
|
+
"kind": "community",
|
|
17
|
+
"source": "supermagnete (Webcraft GmbH), disc magnet 6 x 2 mm, item S-06-02-N, N45, nickel-plated: adhesive force approx. 0.74 kg (approx. 7.26 N), 0.43 g, https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-6mm-2mm_S-06-02-N",
|
|
18
|
+
"checked": "2026-11-21"
|
|
19
|
+
},
|
|
20
|
+
"disc_6x3_pull": {
|
|
21
|
+
"value": 9.71,
|
|
22
|
+
"unit": "N",
|
|
23
|
+
"rule": "A 6 x 3 mm disc magnet of grade N45 pulls this hard, straight off, on a thick plate of mild steel it touches: the seller's adhesive force. Another grade is scaled from it by the square of its remanence; a gap or a thin steel strike takes less",
|
|
24
|
+
"kind": "community",
|
|
25
|
+
"source": "supermagnete (Webcraft GmbH), disc magnet 6 x 3 mm, item S-06-03-N, N45, nickel-plated: adhesive force approx. 0.99 kg (approx. 9.71 N), 0.64 g, https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-6mm-3mm_S-06-03-N",
|
|
26
|
+
"checked": "2026-11-21"
|
|
27
|
+
},
|
|
28
|
+
"disc_6x3_grade": {
|
|
29
|
+
"value": "N45",
|
|
30
|
+
"rule": "The grade of the 6x3 disc magnet whose pull is held (disc_6x3_pull)",
|
|
31
|
+
"kind": "community",
|
|
32
|
+
"source": "supermagnete (Webcraft GmbH), disc magnet 6 x 3 mm, item S-06-03-N, N45, nickel-plated: adhesive force approx. 0.99 kg (approx. 9.71 N), 0.64 g, https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-6mm-3mm_S-06-03-N",
|
|
33
|
+
"checked": "2026-11-21"
|
|
34
|
+
},
|
|
35
|
+
"disc_8x3_pull": {
|
|
36
|
+
"value": 14.7,
|
|
37
|
+
"unit": "N",
|
|
38
|
+
"rule": "A 8 x 3 mm disc magnet of grade N45 pulls this hard, straight off, on a thick plate of mild steel it touches: the seller's adhesive force. Another grade is scaled from it by the square of its remanence; a gap or a thin steel strike takes less",
|
|
39
|
+
"kind": "community",
|
|
40
|
+
"source": "supermagnete (Webcraft GmbH), disc magnet 8 x 3 mm, item S-08-03-N, N45, nickel-plated: adhesive force approx. 1.5 kg (approx. 14.7 N), 1.1 g, https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-8mm-3mm_S-08-03-N",
|
|
41
|
+
"checked": "2026-11-21"
|
|
42
|
+
},
|
|
43
|
+
"disc_8x3_grade": {
|
|
44
|
+
"value": "N45",
|
|
45
|
+
"rule": "The grade of the 8x3 disc magnet whose pull is held (disc_8x3_pull)",
|
|
46
|
+
"kind": "community",
|
|
47
|
+
"source": "supermagnete (Webcraft GmbH), disc magnet 8 x 3 mm, item S-08-03-N, N45, nickel-plated: adhesive force approx. 1.5 kg (approx. 14.7 N), 1.1 g, https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-8mm-3mm_S-08-03-N",
|
|
48
|
+
"checked": "2026-11-21"
|
|
49
|
+
},
|
|
50
|
+
"disc_10x2_pull": {
|
|
51
|
+
"value": 12.7,
|
|
52
|
+
"unit": "N",
|
|
53
|
+
"rule": "A 10 x 2 mm disc magnet of grade N42 pulls this hard, straight off, on a thick plate of mild steel it touches: the seller's adhesive force. Another grade is scaled from it by the square of its remanence; a gap or a thin steel strike takes less",
|
|
54
|
+
"kind": "community",
|
|
55
|
+
"source": "supermagnete (Webcraft GmbH), disc magnet 10 x 2 mm, item S-10-02-N, N42, nickel-plated: adhesive force approx. 1.3 kg (approx. 12.7 N), 1.2 g, https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-10mm-2mm_S-10-02-N",
|
|
56
|
+
"checked": "2026-11-21"
|
|
57
|
+
},
|
|
58
|
+
"disc_10x2_grade": {
|
|
59
|
+
"value": "N42",
|
|
60
|
+
"rule": "The grade of the 10x2 disc magnet whose pull is held (disc_10x2_pull)",
|
|
61
|
+
"kind": "community",
|
|
62
|
+
"source": "supermagnete (Webcraft GmbH), disc magnet 10 x 2 mm, item S-10-02-N, N42, nickel-plated: adhesive force approx. 1.3 kg (approx. 12.7 N), 1.2 g, https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-10mm-2mm_S-10-02-N",
|
|
63
|
+
"checked": "2026-11-21"
|
|
64
|
+
},
|
|
65
|
+
"disc_10x3_pull": {
|
|
66
|
+
"value": 17.7,
|
|
67
|
+
"unit": "N",
|
|
68
|
+
"rule": "A 10 x 3 mm disc magnet of grade N42 pulls this hard, straight off, on a thick plate of mild steel it touches: the seller's adhesive force. Another grade is scaled from it by the square of its remanence; a gap or a thin steel strike takes less",
|
|
69
|
+
"kind": "community",
|
|
70
|
+
"source": "supermagnete (Webcraft GmbH), disc magnet 10 x 3 mm, item S-10-03-N, N42, nickel-plated: adhesive force approx. 1.8 kg (approx. 17.7 N), 1.8 g, https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-10mm-3mm_S-10-03-N",
|
|
71
|
+
"checked": "2026-11-21"
|
|
72
|
+
},
|
|
73
|
+
"disc_10x3_grade": {
|
|
74
|
+
"value": "N42",
|
|
75
|
+
"rule": "The grade of the 10x3 disc magnet whose pull is held (disc_10x3_pull)",
|
|
76
|
+
"kind": "community",
|
|
77
|
+
"source": "supermagnete (Webcraft GmbH), disc magnet 10 x 3 mm, item S-10-03-N, N42, nickel-plated: adhesive force approx. 1.8 kg (approx. 17.7 N), 1.8 g, https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-10mm-3mm_S-10-03-N",
|
|
78
|
+
"checked": "2026-11-21"
|
|
79
|
+
},
|
|
80
|
+
"disc_12x3_pull": {
|
|
81
|
+
"value": 23.5,
|
|
82
|
+
"unit": "N",
|
|
83
|
+
"rule": "A 12 x 3 mm disc magnet of grade N45 pulls this hard, straight off, on a thick plate of mild steel it touches: the seller's adhesive force. Another grade is scaled from it by the square of its remanence; a gap or a thin steel strike takes less",
|
|
84
|
+
"kind": "community",
|
|
85
|
+
"source": "supermagnete (Webcraft GmbH), disc magnet 12 x 3 mm, item S-12-03-N, N45, nickel-plated: adhesive force approx. 2.4 kg (approx. 23.5 N), 2.6 g, https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-12mm-3mm_S-12-03-N",
|
|
86
|
+
"checked": "2026-11-21"
|
|
87
|
+
},
|
|
88
|
+
"disc_12x3_grade": {
|
|
89
|
+
"value": "N45",
|
|
90
|
+
"rule": "The grade of the 12x3 disc magnet whose pull is held (disc_12x3_pull)",
|
|
91
|
+
"kind": "community",
|
|
92
|
+
"source": "supermagnete (Webcraft GmbH), disc magnet 12 x 3 mm, item S-12-03-N, N45, nickel-plated: adhesive force approx. 2.4 kg (approx. 23.5 N), 2.6 g, https://www.supermagnete.de/eng/disc-magnets-neodymium/disc-magnet-12mm-3mm_S-12-03-N",
|
|
93
|
+
"checked": "2026-11-21"
|
|
94
|
+
},
|
|
95
|
+
"block_10x5x2_pull": {
|
|
96
|
+
"value": 11.8,
|
|
97
|
+
"unit": "N",
|
|
98
|
+
"rule": "A 10 x 5 x 2 mm block magnet of grade N50, magnetised through its last size, pulls this hard straight off a thick plate of mild steel it touches: the seller's adhesive force",
|
|
99
|
+
"kind": "community",
|
|
100
|
+
"source": "supermagnete (Webcraft GmbH), block magnet 10 x 5 x 2 mm, item Q-10-05-02-N, N50, nickel-plated, magnetised through its height: adhesive force approx. 1.2 kg (approx. 11.8 N), 0.76 g, https://www.supermagnete.de/eng/block-magnets-neodymium/block-magnet-10mm-5mm-2mm_Q-10-05-02-N",
|
|
101
|
+
"checked": "2026-11-21"
|
|
102
|
+
},
|
|
103
|
+
"block_10x5x2_grade": {
|
|
104
|
+
"value": "N50",
|
|
105
|
+
"rule": "The grade of the 10x5x2 block magnet whose pull is held (block_10x5x2_pull)",
|
|
106
|
+
"kind": "community",
|
|
107
|
+
"source": "supermagnete (Webcraft GmbH), block magnet 10 x 5 x 2 mm, item Q-10-05-02-N, N50, nickel-plated, magnetised through its height: adhesive force approx. 1.2 kg (approx. 11.8 N), 0.76 g, https://www.supermagnete.de/eng/block-magnets-neodymium/block-magnet-10mm-5mm-2mm_Q-10-05-02-N",
|
|
108
|
+
"checked": "2026-11-21"
|
|
109
|
+
},
|
|
110
|
+
"block_20x10x2_pull": {
|
|
111
|
+
"value": 20.6,
|
|
112
|
+
"unit": "N",
|
|
113
|
+
"rule": "A 20 x 10 x 2 mm block magnet of grade N45, magnetised through its last size, pulls this hard straight off a thick plate of mild steel it touches: the seller's adhesive force",
|
|
114
|
+
"kind": "community",
|
|
115
|
+
"source": "supermagnete (Webcraft GmbH), block magnet 20 x 10 x 2 mm, item Q-20-10-02-N, N45, nickel-plated, magnetised through its height: adhesive force approx. 2.1 kg (approx. 20.6 N), 3 g, https://www.supermagnete.de/eng/block-magnets-neodymium/block-magnet-20mm-10mm-2mm_Q-20-10-02-N",
|
|
116
|
+
"checked": "2026-11-21"
|
|
117
|
+
},
|
|
118
|
+
"block_20x10x2_grade": {
|
|
119
|
+
"value": "N45",
|
|
120
|
+
"rule": "The grade of the 20x10x2 block magnet whose pull is held (block_20x10x2_pull)",
|
|
121
|
+
"kind": "community",
|
|
122
|
+
"source": "supermagnete (Webcraft GmbH), block magnet 20 x 10 x 2 mm, item Q-20-10-02-N, N45, nickel-plated, magnetised through its height: adhesive force approx. 2.1 kg (approx. 20.6 N), 3 g, https://www.supermagnete.de/eng/block-magnets-neodymium/block-magnet-20mm-10mm-2mm_Q-20-10-02-N",
|
|
123
|
+
"checked": "2026-11-21"
|
|
124
|
+
},
|
|
125
|
+
"remanence_N35": {
|
|
126
|
+
"value": [
|
|
127
|
+
1.17,
|
|
128
|
+
1.21
|
|
129
|
+
],
|
|
130
|
+
"unit": "T",
|
|
131
|
+
"rule": "The remanence Br of grade N35 NdFeB, least and most: a magnet's pull is scaled between grades by the square of the middle of this range",
|
|
132
|
+
"kind": "community",
|
|
133
|
+
"source": "supermagnete, physical magnet data (remanence Br of each NdFeB grade, min to max), https://www.supermagnete.de/eng/physical-magnet-data",
|
|
134
|
+
"checked": "2026-11-21"
|
|
135
|
+
},
|
|
136
|
+
"remanence_N38": {
|
|
137
|
+
"value": [
|
|
138
|
+
1.22,
|
|
139
|
+
1.26
|
|
140
|
+
],
|
|
141
|
+
"unit": "T",
|
|
142
|
+
"rule": "The remanence Br of grade N38 NdFeB, least and most: a magnet's pull is scaled between grades by the square of the middle of this range",
|
|
143
|
+
"kind": "community",
|
|
144
|
+
"source": "supermagnete, physical magnet data (remanence Br of each NdFeB grade, min to max), https://www.supermagnete.de/eng/physical-magnet-data",
|
|
145
|
+
"checked": "2026-11-21"
|
|
146
|
+
},
|
|
147
|
+
"remanence_N40": {
|
|
148
|
+
"value": [
|
|
149
|
+
1.26,
|
|
150
|
+
1.29
|
|
151
|
+
],
|
|
152
|
+
"unit": "T",
|
|
153
|
+
"rule": "The remanence Br of grade N40 NdFeB, least and most: a magnet's pull is scaled between grades by the square of the middle of this range",
|
|
154
|
+
"kind": "community",
|
|
155
|
+
"source": "supermagnete, physical magnet data (remanence Br of each NdFeB grade, min to max), https://www.supermagnete.de/eng/physical-magnet-data",
|
|
156
|
+
"checked": "2026-11-21"
|
|
157
|
+
},
|
|
158
|
+
"remanence_N42": {
|
|
159
|
+
"value": [
|
|
160
|
+
1.29,
|
|
161
|
+
1.32
|
|
162
|
+
],
|
|
163
|
+
"unit": "T",
|
|
164
|
+
"rule": "The remanence Br of grade N42 NdFeB, least and most: a magnet's pull is scaled between grades by the square of the middle of this range",
|
|
165
|
+
"kind": "community",
|
|
166
|
+
"source": "supermagnete, physical magnet data (remanence Br of each NdFeB grade, min to max), https://www.supermagnete.de/eng/physical-magnet-data",
|
|
167
|
+
"checked": "2026-11-21"
|
|
168
|
+
},
|
|
169
|
+
"remanence_N45": {
|
|
170
|
+
"value": [
|
|
171
|
+
1.32,
|
|
172
|
+
1.37
|
|
173
|
+
],
|
|
174
|
+
"unit": "T",
|
|
175
|
+
"rule": "The remanence Br of grade N45 NdFeB, least and most: a magnet's pull is scaled between grades by the square of the middle of this range",
|
|
176
|
+
"kind": "community",
|
|
177
|
+
"source": "supermagnete, physical magnet data (remanence Br of each NdFeB grade, min to max), https://www.supermagnete.de/eng/physical-magnet-data",
|
|
178
|
+
"checked": "2026-11-21"
|
|
179
|
+
},
|
|
180
|
+
"remanence_N48": {
|
|
181
|
+
"value": [
|
|
182
|
+
1.37,
|
|
183
|
+
1.42
|
|
184
|
+
],
|
|
185
|
+
"unit": "T",
|
|
186
|
+
"rule": "The remanence Br of grade N48 NdFeB, least and most: a magnet's pull is scaled between grades by the square of the middle of this range",
|
|
187
|
+
"kind": "community",
|
|
188
|
+
"source": "supermagnete, physical magnet data (remanence Br of each NdFeB grade, min to max), https://www.supermagnete.de/eng/physical-magnet-data",
|
|
189
|
+
"checked": "2026-11-21"
|
|
190
|
+
},
|
|
191
|
+
"remanence_N50": {
|
|
192
|
+
"value": [
|
|
193
|
+
1.4,
|
|
194
|
+
1.46
|
|
195
|
+
],
|
|
196
|
+
"unit": "T",
|
|
197
|
+
"rule": "The remanence Br of grade N50 NdFeB, least and most: a magnet's pull is scaled between grades by the square of the middle of this range",
|
|
198
|
+
"kind": "community",
|
|
199
|
+
"source": "supermagnete, physical magnet data (remanence Br of each NdFeB grade, min to max), https://www.supermagnete.de/eng/physical-magnet-data",
|
|
200
|
+
"checked": "2026-11-21"
|
|
201
|
+
},
|
|
202
|
+
"remanence_N52": {
|
|
203
|
+
"value": [
|
|
204
|
+
1.42,
|
|
205
|
+
1.47
|
|
206
|
+
],
|
|
207
|
+
"unit": "T",
|
|
208
|
+
"rule": "The remanence Br of grade N52 NdFeB, least and most: a magnet's pull is scaled between grades by the square of the middle of this range",
|
|
209
|
+
"kind": "community",
|
|
210
|
+
"source": "supermagnete, physical magnet data (remanence Br of each NdFeB grade, min to max), https://www.supermagnete.de/eng/physical-magnet-data",
|
|
211
|
+
"checked": "2026-11-21"
|
|
212
|
+
},
|
|
213
|
+
"grade": {
|
|
214
|
+
"value": "N35",
|
|
215
|
+
"rule": "The grade a magnet is taken to be where its name gives none: N35, the commonest and weakest sold, so a pull is not overstated",
|
|
216
|
+
"kind": "default",
|
|
217
|
+
"source": "A working figure of @rulecad/fixings: N35 is the lowest grade the sellers list",
|
|
218
|
+
"checked": "2026-11-21"
|
|
219
|
+
},
|
|
220
|
+
"tolerance": {
|
|
221
|
+
"value": 0.1,
|
|
222
|
+
"unit": "mm",
|
|
223
|
+
"rule": "A sintered disc or block magnet is within this of its nominal size, each way: so a press pocket is a close call and crush ribs take up the spread",
|
|
224
|
+
"kind": "community",
|
|
225
|
+
"source": "supermagnete S-08-03-N and ALB Materials D-D8H3-N35 both give a tolerance of ±0.1 mm, https://www.albmaterials.com/disc-magnets/3989-8mm-dia-x-3mm-thick-round-disc-magnets-d-d8h3-n35.html",
|
|
226
|
+
"checked": "2026-11-21"
|
|
227
|
+
},
|
|
228
|
+
"density": {
|
|
229
|
+
"value": 7.5,
|
|
230
|
+
"unit": "g/cm³",
|
|
231
|
+
"rule": "Density of sintered NdFeB, for a magnet's mass",
|
|
232
|
+
"kind": "derived",
|
|
233
|
+
"source": "Worked from sellers' weights: an 8 x 3 mm disc is 150.8 mm³ and weighs 1.131 g (ALB D-D8H3-N35) and 1.1 g (supermagnete S-08-03-N), 7.5 and 7.3 g/cm³",
|
|
234
|
+
"checked": "2026-11-21"
|
|
235
|
+
},
|
|
236
|
+
"field_formula": {
|
|
237
|
+
"value": "B(z) = Br/2 [(D+z)/sqrt(R²+(D+z)²) - z/sqrt(R²+z²)]",
|
|
238
|
+
"rule": "The flux density on the axis of a disc magnet, at z from its face (D its thickness, R its radius); a block's is Br/π [atan(LW / (2z sqrt(4z²+L²+W²))) - atan(LW / (2(D+z) sqrt(4(D+z)²+L²+W²)))]. The pull across a gap is taken as the pull touching times (B(z)/B(0))²: an estimate",
|
|
239
|
+
"kind": "estimate",
|
|
240
|
+
"source": "supermagnete FAQ, How do you calculate the magnetic flux density?, https://www.supermagnete.de/eng/faq/How-do-you-calculate-the-magnetic-flux-density (the formulas); the square from the force on an iron face, F = B² A / 2μ0, https://en.wikipedia.org/wiki/Force_between_magnets (the approach, not the sellers' figures, which are measured)",
|
|
241
|
+
"checked": "2026-11-21"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulecad/rules",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.19",
|
|
4
4
|
"description": "Researched rule sets as open data: a Bambu Lab X1C, Cherry MX switches, OEM keycaps, M2 inserts, the Raspberry Pi Pico, motors and servos, materials for analysis (printed PLA and PETG, aluminium, steel, titanium) and more, each value with its source.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
package/pins.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "Plain pins for joining printed parts: bought steel dowels (ISO 8734, hardened and ground; ISO 2338, unhardened) and a length of 1.75 mm filament. The holes they go in take their fit from the printer's rules (x1c.pin_press, x1c.pin_slip); a printed pin's figures are the plastic's. Read by @rulecad/fixings' pinModel. kind as in x1c.json.",
|
|
3
|
+
"name": "pins",
|
|
4
|
+
"rules": {
|
|
5
|
+
"dowel_diameters": {
|
|
6
|
+
"value": [1, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10, 12, 16, 20],
|
|
7
|
+
"unit": "mm",
|
|
8
|
+
"rule": "The diameters an ISO 8734 dowel (parallel pin, hardened, tolerance m6) is sold in",
|
|
9
|
+
"kind": "community",
|
|
10
|
+
"source": "OPAC, parallel pins ISO 8734 (100Cr6, 550 to 650 HV30, m6), https://www.opac.net/en/producto-166-iso-8734",
|
|
11
|
+
"checked": "2026-11-21"
|
|
12
|
+
},
|
|
13
|
+
"dowel_lengths": {
|
|
14
|
+
"value": [3, 4, 5, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100],
|
|
15
|
+
"unit": "mm",
|
|
16
|
+
"rule": "The lengths an ISO 8734 dowel is sold in, over all diameters: each diameter comes in a run of them, short for a thin pin and long for a thick one. The rounded ends are within the length",
|
|
17
|
+
"kind": "community",
|
|
18
|
+
"source": "OPAC, parallel pins ISO 8734, https://www.opac.net/en/producto-166-iso-8734 (the length grid); Fabory, parallel pin hardened m6, DIN 6325 (the length includes the rounded ends), https://www.fabory.com/en_PL/parallel-pin-%28dowel-pin%29-hardened%2c-m6-din-6325-steel-60%c2%b12hrc-plain/p/39080",
|
|
19
|
+
"checked": "2026-11-21"
|
|
20
|
+
},
|
|
21
|
+
"dowel_tolerance": {
|
|
22
|
+
"value": "m6",
|
|
23
|
+
"rule": "An ISO 8734 dowel's diameter is ground to m6: a few microns over its nominal size, far under a printed hole's error, so the hole is sized from the nominal diameter",
|
|
24
|
+
"kind": "spec",
|
|
25
|
+
"source": "ISO 8734:1997, as Bossard lists it (DIN 6325, withdrawn, ~ISO 8734, tolerance m6, 60 HRC), https://www.bossard.com/us-en/eshop/dowel-pins/parallel-pins-hardened-ground/p/857/",
|
|
26
|
+
"checked": "2026-11-21"
|
|
27
|
+
},
|
|
28
|
+
"dowel_shear": {
|
|
29
|
+
"value": 158.8,
|
|
30
|
+
"unit": "MPa",
|
|
31
|
+
"rule": "The shear strength a steel dowel is taken to have: mild steel's, the S275 yield of 275 MPa over the square root of 3. A hardened ISO 8734 pin (550 to 650 HV30) is several times stronger, so this understates it; an unhardened ISO 2338 pin is about this. No maker's shear figure for these pins was found, so it is an estimate. The printed hole round the pin gives way long before the pin does",
|
|
32
|
+
"kind": "estimate",
|
|
33
|
+
"source": "S275 yield strength, EN 10025-2 (the kit's s275 rule set), over √3 by the von Mises criterion (fixings.shear_ratio); hardness of ISO 8734 type A from OPAC, https://www.opac.net/en/producto-166-iso-8734",
|
|
34
|
+
"checked": "2026-11-21"
|
|
35
|
+
},
|
|
36
|
+
"filament_diameter": {
|
|
37
|
+
"value": 1.75,
|
|
38
|
+
"unit": "mm",
|
|
39
|
+
"rule": "The diameter of the filament the X1C prints: a cut length of it is a pin with no hardware to buy",
|
|
40
|
+
"kind": "spec",
|
|
41
|
+
"source": "Bambu Lab PLA Basic technical data sheet V2.0 (diameter 1.75 mm), https://cdn.shopify.com/s/files/1/0380/5149/files/Bambu_PLA_Basic_Technical_Data_Sheet.pdf",
|
|
42
|
+
"checked": "2026-11-21"
|
|
43
|
+
},
|
|
44
|
+
"filament_tolerance": {
|
|
45
|
+
"value": 0.03,
|
|
46
|
+
"unit": "mm",
|
|
47
|
+
"rule": "How far a filament's diameter may be from 1.75 mm either way: a filament pin's fit is only as good as this, so measure the reel you cut it from",
|
|
48
|
+
"kind": "community",
|
|
49
|
+
"source": "Retailers' listings of Bambu Lab PLA Basic (1.75 mm, ± 0.03 mm), for example B&H, https://www.bhphotovideo.com/c/product/1940029-REG/bambu_lab_a00_b9_1_75_1000_spl_pla_basic_blue.html; Bambu's own data sheet gives no tolerance",
|
|
50
|
+
"checked": "2026-11-21"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
package/x1c.json
CHANGED
|
@@ -138,6 +138,54 @@
|
|
|
138
138
|
"source": "A reasoned guess, the same as fit, the gap between parts that slide together; the fixings coupon prints M6 to M12 threads at three clearances to measure it (docs/fixings-and-frames.md, section 2.5)",
|
|
139
139
|
"checked": "2026-11-15"
|
|
140
140
|
},
|
|
141
|
+
"snap_clearance": {
|
|
142
|
+
"value": 0.2,
|
|
143
|
+
"unit": "mm",
|
|
144
|
+
"rule": "Gap round a printed snap pin's peg in its socket, each side, as drawn: the socket's hole is the peg's diameter plus twice this, with no hole compensation added. Tighter, and the split halves cannot close to let the barb through; looser, and the pin rocks",
|
|
145
|
+
"kind": "estimate",
|
|
146
|
+
"source": "The clearance @rulecad/flexures' snapSocket drew by default before snap pins moved to @rulecad/fixings, kept so no socket moves; the holds coupon's snap pin socket rows, S3 and S4, measure it (examples/bench/projects/benchmarks/MEASURE.md row 41)",
|
|
147
|
+
"checked": "2026-11-21"
|
|
148
|
+
},
|
|
149
|
+
"pin_press": {
|
|
150
|
+
"value": 0.05,
|
|
151
|
+
"unit": "mm",
|
|
152
|
+
"rule": "How much smaller across a printed hole is drawn than a plain pin pressed into it (a steel dowel, a length of filament): the pin grips. hole_comp is added as well, as for any printed hole",
|
|
153
|
+
"kind": "estimate",
|
|
154
|
+
"source": "A reasoned guess, the same as press, the bought bearing's press fit; the holds coupon's pressed pin rows, D3P and FP, print three press fits round it to measure it (examples/bench/projects/benchmarks/MEASURE.md row 42)",
|
|
155
|
+
"checked": "2026-11-21"
|
|
156
|
+
},
|
|
157
|
+
"pin_slip": {
|
|
158
|
+
"value": 0.2,
|
|
159
|
+
"unit": "mm",
|
|
160
|
+
"rule": "How much larger across a printed hole is drawn than a plain pin that turns in it (a hinge pin): it slides in by hand and turns freely. hole_comp is added as well, as for any printed hole",
|
|
161
|
+
"kind": "estimate",
|
|
162
|
+
"source": "A reasoned guess, the same as fit, the gap between parts that slide together; the holds coupon's slipping pin rows, D3S and FS, print three slip fits round it to measure it (examples/bench/projects/benchmarks/MEASURE.md row 43)",
|
|
163
|
+
"checked": "2026-11-21"
|
|
164
|
+
},
|
|
165
|
+
"magnet_press": {
|
|
166
|
+
"value": 0.1,
|
|
167
|
+
"unit": "mm",
|
|
168
|
+
"rule": "How much smaller across a printed pocket is drawn than a disc or block magnet pressed into it, so it grips with no glue. hole_comp is added as well, as for any printed hole. A magnet is sold within ±0.1 mm (magnets.tolerance), so a press is a close call: crush ribs (magnet_crush) take up the spread",
|
|
169
|
+
"kind": "estimate",
|
|
170
|
+
"source": "A reasoned guess, twice x1c.press since a magnet is sold to ±0.1 mm where a bearing is ground to microns; the holds coupon's magnet rows, 6x3 and 8x3, print three press fits round it to measure it (examples/bench/projects/benchmarks/MEASURE.md row 44)",
|
|
171
|
+
"checked": "2026-11-21"
|
|
172
|
+
},
|
|
173
|
+
"magnet_glue": {
|
|
174
|
+
"value": 0.1,
|
|
175
|
+
"unit": "mm",
|
|
176
|
+
"rule": "How much larger across a printed pocket is drawn than a magnet glued into it: room for a film of glue, a twentieth of a millimetre each side. hole_comp is added as well",
|
|
177
|
+
"kind": "estimate",
|
|
178
|
+
"source": "A reasoned guess: the magnet catch of @rulecad/frames has drawn its pocket the magnet and x1c.fit (0.2 mm) across since 0.1, which is hole_comp and this. No coupon prints a glued pocket: examples/bench/projects/benchmarks/MEASURE.md row 44 says to keep it unless a glued magnet will not go in, and then to raise it by 0.1",
|
|
179
|
+
"checked": "2026-11-21"
|
|
180
|
+
},
|
|
181
|
+
"magnet_crush": {
|
|
182
|
+
"value": 0.2,
|
|
183
|
+
"unit": "mm",
|
|
184
|
+
"rule": "With crush ribs, how much smaller across the ribs' tips stand than the magnet, past hole_comp: the ribs are a line wide and give, so a magnet anywhere in its ±0.1 mm goes in and grips",
|
|
185
|
+
"kind": "estimate",
|
|
186
|
+
"source": "A reasoned guess, twice magnets.tolerance; the holds coupon's crush rib row, 8x3R, measures it (examples/bench/projects/benchmarks/MEASURE.md row 45)",
|
|
187
|
+
"checked": "2026-11-21"
|
|
188
|
+
},
|
|
141
189
|
"pilot_m3": {
|
|
142
190
|
"value": 2.9,
|
|
143
191
|
"unit": "mm",
|