@rulecad/rules 0.3.6 → 0.3.7
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/README.md +1 -1
- package/jlcpcb.json +27 -3
- package/package.json +1 -1
- package/petg.json +2 -1
- package/pla.json +2 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ it comes from and when it was checked, so a design built on it can be traced and
|
|
|
31
31
|
| `m1_6`, `m3` | M1.6 and M3 screws for motor faces | 3 each |
|
|
32
32
|
| `rp2040` | The RP2040 microcontroller: which package pins carry which GPIO | 2 |
|
|
33
33
|
| `dial-indicator` | A dial indicator with a plunger, for measuring small movements | 2 |
|
|
34
|
-
| `pla`, `petg` | Bambu Lab PLA Basic and PETG HF, printed, for analysis: stiffness and strength along the layers and across them |
|
|
34
|
+
| `pla`, `petg` | Bambu Lab PLA Basic and PETG HF, printed, for analysis: stiffness and strength along the layers and across them | 6, 7 |
|
|
35
35
|
| `al6061`, `al7075`, `s275`, `ss304`, `ti64` | Aluminium 6061-T6 and 7075-T6, structural steel S275, stainless 304, titanium Ti-6Al-4V, for analysis | 4 or 5 each |
|
|
36
36
|
|
|
37
37
|
`kind` says how far to trust a value: **spec** (a datasheet or manufacturer), **community** (a widely used figure, such
|
package/jlcpcb.json
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"annular": {
|
|
70
70
|
"value": 0.25,
|
|
71
71
|
"unit": "mm",
|
|
72
|
-
"rule": "Annular ring, recommended (0.18 mm absolute minimum)",
|
|
72
|
+
"rule": "Annular ring of a plated hole (a part's pin), recommended (0.18 mm absolute minimum). Vias have their own: via_annular",
|
|
73
73
|
"kind": "spec",
|
|
74
74
|
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
75
75
|
"checked": "2026-11-07"
|
|
@@ -77,7 +77,31 @@
|
|
|
77
77
|
"annular_min": {
|
|
78
78
|
"value": 0.18,
|
|
79
79
|
"unit": "mm",
|
|
80
|
-
"rule": "Annular ring
|
|
80
|
+
"rule": "Annular ring of a plated hole (a part's pin), absolute minimum: less fails; between this and annular is a warning. Vias have their own: via_annular_min",
|
|
81
|
+
"kind": "spec",
|
|
82
|
+
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
83
|
+
"checked": "2026-11-07"
|
|
84
|
+
},
|
|
85
|
+
"via_annular_min": {
|
|
86
|
+
"value": 0.05,
|
|
87
|
+
"unit": "mm",
|
|
88
|
+
"rule": "A via's ring, least: its pad at least 0.1 mm wider than its hole; less fails",
|
|
89
|
+
"kind": "spec",
|
|
90
|
+
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
91
|
+
"checked": "2026-11-07"
|
|
92
|
+
},
|
|
93
|
+
"via_annular": {
|
|
94
|
+
"value": 0.075,
|
|
95
|
+
"unit": "mm",
|
|
96
|
+
"rule": "A via's ring, preferred: its pad 0.15 mm wider than its hole; between via_annular_min and this is a warning",
|
|
97
|
+
"kind": "spec",
|
|
98
|
+
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
99
|
+
"checked": "2026-11-07"
|
|
100
|
+
},
|
|
101
|
+
"via_hole_track": {
|
|
102
|
+
"value": 0.2,
|
|
103
|
+
"unit": "mm",
|
|
104
|
+
"rule": "A via's hole to a track of another net, edge to edge, at least",
|
|
81
105
|
"kind": "spec",
|
|
82
106
|
"source": "https://jlcpcb.com/capabilities/pcb-capabilities",
|
|
83
107
|
"checked": "2026-11-07"
|
|
@@ -109,7 +133,7 @@
|
|
|
109
133
|
"cheap_size": {
|
|
110
134
|
"value": 100,
|
|
111
135
|
"unit": "mm",
|
|
112
|
-
"rule": "Two-layer boards up to 100
|
|
136
|
+
"rule": "Two-layer boards up to 100 × 100 mm get JLCPCB's lowest price; past that it rises steeply",
|
|
113
137
|
"kind": "community",
|
|
114
138
|
"source": "https://hwdocs.hackclub.dev/user-contrib-guides/jlc-cost-optimizing/",
|
|
115
139
|
"checked": "2026-10-14"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulecad/rules",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
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/petg.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"strength": {"value": 34, "unit": "MPa", "rule": "Tensile strength along the layers (x-y), ± 4", "kind": "spec", "source": "Bambu Lab PETG HF technical data sheet V1.0 (ISO 527)", "checked": "2026-10-27"},
|
|
8
8
|
"strength_z": {"value": 23, "unit": "MPa", "rule": "Tensile strength across the layers (z), ± 4", "kind": "spec", "source": "Bambu Lab PETG HF technical data sheet V1.0 (ISO 527)", "checked": "2026-10-27"},
|
|
9
9
|
"poisson": {"value": 0.38, "rule": "Poisson's ratio (Bambu publish none)", "kind": "estimate", "source": "Typical for PETG; printed parts vary", "checked": "2026-10-27"},
|
|
10
|
-
"density": {"value": 1.27, "unit": "g/cm³", "rule": "Density of PETG", "kind": "estimate", "source": "Typical for PETG (1.23 to 1.29 g/cm³ across makers' data sheets)", "checked": "2026-10-27"}
|
|
10
|
+
"density": {"value": 1.27, "unit": "g/cm³", "rule": "Density of PETG", "kind": "estimate", "source": "Typical for PETG (1.23 to 1.29 g/cm³ across makers' data sheets)", "checked": "2026-10-27"},
|
|
11
|
+
"softening": { "value": 69, "unit": "°C", "rule": "Heat deflection temperature, ISO 75 at 0.45 MPa: where a part under a little load starts to creep", "kind": "spec", "source": "Bambu PETG HF technical data, ISO 75 at 0.45 MPa, https://bambulab.com/hu/filament/guide", "checked": "2026-11-08" }
|
|
11
12
|
}
|
|
12
13
|
}
|
package/pla.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"modulus_z": {"value": 2160, "unit": "MPa", "rule": "Young's modulus across the layers (z), ± 90", "kind": "spec", "source": "Bambu Lab PLA Basic technical data sheet V2.0 (ISO 527)", "checked": "2026-10-27"},
|
|
7
7
|
"strength": {"value": 39, "unit": "MPa", "rule": "Tensile strength along the layers (x-y), ± 2", "kind": "community", "source": "Bambu Lab PLA Basic technical data sheet V2.0 (ISO 527), as quoted by resellers: check the current sheet", "checked": "2026-10-27"},
|
|
8
8
|
"poisson": {"value": 0.36, "rule": "Poisson's ratio (Bambu publish none)", "kind": "estimate", "source": "Typical for PLA; Farah, Anderson, Langer (2016), Physical and mechanical properties of PLA, Advanced Drug Delivery Reviews 107", "checked": "2026-10-27"},
|
|
9
|
-
"density": {"value": 1.26, "unit": "g/cm³", "rule": "Density of the filament", "kind": "spec", "source": "Bambu Lab PLA Basic technical data sheet V2.0", "checked": "2026-10-27"}
|
|
9
|
+
"density": {"value": 1.26, "unit": "g/cm³", "rule": "Density of the filament", "kind": "spec", "source": "Bambu Lab PLA Basic technical data sheet V2.0", "checked": "2026-10-27"},
|
|
10
|
+
"softening": { "value": 57, "unit": "°C", "rule": "Heat deflection temperature, ISO 75 at 0.45 MPa: where a part under a little load starts to creep", "kind": "spec", "source": "Bambu PLA Basic Technical Data Sheet, ISO 75 at 0.45 MPa, https://cdn.shopify.com/s/files/1/0380/5149/files/Bambu_PLA_Basic_Technical_Data_Sheet.pdf", "checked": "2026-11-08" }
|
|
10
11
|
}
|
|
11
12
|
}
|