@rulecad/rules 0.1.1 → 0.2.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/README.md +3 -0
- package/jstph.json +9 -0
- package/package.json +1 -1
- package/qwiic.json +17 -0
- package/xiao.json +15 -0
package/README.md
CHANGED
|
@@ -17,6 +17,9 @@ it comes from and when it was checked, so a design built on it can be traced and
|
|
|
17
17
|
| `pico` | Raspberry Pi Pico: outline, headers, the GPIO on each pin | 18 |
|
|
18
18
|
| `promicro` | Pro Micro controller | 9 |
|
|
19
19
|
| `sod123` | SOD-123 diode footprint | 3 |
|
|
20
|
+
| `xiao` | Seeed Studio XIAO modules: outline, headers, the pin on each pad | 8 |
|
|
21
|
+
| `qwiic` | Qwiic / STEMMA QT sockets (JST SH, 4 pins): land pattern and pinout | 10 |
|
|
22
|
+
| `jstph` | JST PH (2.0 mm) battery connector | 3 |
|
|
20
23
|
| `jlcpcb` | JLCPCB's limits for two-layer boards | 10 |
|
|
21
24
|
| `wiring` | Room for hand wiring | 1 |
|
|
22
25
|
|
package/jstph.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "JST PH (2.0 mm), the usual connector on battery packs and LiPo cells. Through-hole, top entry (B*B-PH-K-S). kind as in x1c.json.",
|
|
3
|
+
"name": "jstph",
|
|
4
|
+
"rules": {
|
|
5
|
+
"pitch": { "value": 2.0, "unit": "mm", "rule": "Contact pitch", "kind": "spec", "source": "JST PH series datasheet", "checked": "2026-10-16" },
|
|
6
|
+
"drill": { "value": 0.8, "unit": "mm", "rule": "Hole for the 0.64 mm square post (datasheet 0.7 mm, plus fab tolerance)", "kind": "community", "source": "KiCad library, JST_PH_B2B-PH-K", "checked": "2026-10-16" },
|
|
7
|
+
"pad": { "value": 1.5, "unit": "mm", "rule": "Round pad", "kind": "community", "source": "KiCad library, JST_PH_B2B-PH-K", "checked": "2026-10-16" }
|
|
8
|
+
}
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulecad/rules",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
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
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
package/qwiic.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "Qwiic / STEMMA QT: a 4-pin JST SH (1.0 mm) I2C connector used by SparkFun, Adafruit and others, so sensors from any of them plug in with one cable. Land pattern for the side-entry SM04B-SRSS-TB, from the socket's centre, the plug going in from +y. kind as in x1c.json.",
|
|
3
|
+
"name": "qwiic",
|
|
4
|
+
"rules": {
|
|
5
|
+
"pitch": { "value": 1.0, "unit": "mm", "rule": "Contact pitch", "kind": "spec", "source": "JST SH series datasheet (SM04B-SRSS-TB)", "checked": "2026-10-16" },
|
|
6
|
+
"pad_w": { "value": 0.6, "unit": "mm", "rule": "Signal pad width", "kind": "spec", "source": "JST SH series datasheet, recommended PCB layout", "checked": "2026-10-16" },
|
|
7
|
+
"pad_h": { "value": 1.55, "unit": "mm", "rule": "Signal pad length", "kind": "spec", "source": "JST SH series datasheet, recommended PCB layout", "checked": "2026-10-16" },
|
|
8
|
+
"pad_y": { "value": -1.325, "unit": "mm", "rule": "Signal pads from the centre, away from the plug", "kind": "spec", "source": "JST SH series datasheet, recommended PCB layout", "checked": "2026-10-16" },
|
|
9
|
+
"tab_w": { "value": 1.2, "unit": "mm", "rule": "Mounting tab pad width", "kind": "spec", "source": "JST SH series datasheet, recommended PCB layout", "checked": "2026-10-16" },
|
|
10
|
+
"tab_h": { "value": 1.8, "unit": "mm", "rule": "Mounting tab pad length", "kind": "spec", "source": "JST SH series datasheet, recommended PCB layout", "checked": "2026-10-16" },
|
|
11
|
+
"tab_x": { "value": 2.8, "unit": "mm", "rule": "Mounting tabs either side of the centre", "kind": "spec", "source": "JST SH series datasheet, recommended PCB layout", "checked": "2026-10-16" },
|
|
12
|
+
"tab_y": { "value": 1.22, "unit": "mm", "rule": "Mounting tabs from the centre, toward the plug", "kind": "spec", "source": "JST SH series datasheet, recommended PCB layout", "checked": "2026-10-16" },
|
|
13
|
+
"body_w": { "value": 6, "unit": "mm", "rule": "Socket body width", "kind": "spec", "source": "JST SH series datasheet (4 circuits)", "checked": "2026-10-16" },
|
|
14
|
+
"pins": { "value": 4, "unit": "pins", "rule": "Pin 1 GND, 2 3V3, 3 SDA, 4 SCL", "kind": "spec", "source": "https://www.sparkfun.com/qwiic", "checked": "2026-10-16",
|
|
15
|
+
"pins": { "1": "GND", "2": "3V3", "3": "SDA", "4": "SCL" } }
|
|
16
|
+
}
|
|
17
|
+
}
|
package/xiao.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_doc": "Seeed Studio XIAO modules (ESP32-C3/C6/S3, nRF52840, RP2040, RP2350, SAMD21 ...): one size and pinout across the family, so a board can take any of them. kind as in x1c.json.",
|
|
3
|
+
"name": "xiao",
|
|
4
|
+
"rules": {
|
|
5
|
+
"length": { "value": 21, "unit": "mm", "rule": "Module length, USB end to far end", "kind": "spec", "source": "https://wiki.seeedstudio.com/xiao_rp2350_arduino", "checked": "2026-10-16" },
|
|
6
|
+
"width": { "value": 17.8, "unit": "mm", "rule": "Module width", "kind": "spec", "source": "https://wiki.seeedstudio.com/xiao_rp2350_arduino", "checked": "2026-10-16" },
|
|
7
|
+
"pitch": { "value": 2.54, "unit": "mm", "rule": "Pitch of the 7 pins down each side", "kind": "spec", "source": "https://wiki.seeedstudio.com/XIAO-RP2040", "checked": "2026-10-16" },
|
|
8
|
+
"row_spacing": { "value": 15.24, "unit": "mm", "rule": "Centre to centre of the two pin rows (0.6 in: the width less one castellation each side)", "kind": "estimate", "source": "17.8 mm module less 2 x 1.27 mm. Check against Seeed's KiCad footprint or measure", "checked": "2026-10-16" },
|
|
9
|
+
"drill": { "value": 1.0, "unit": "mm", "rule": "Hole for a 0.64 mm square header pin", "kind": "community", "source": "KiCad library, PinHeader_2.54mm", "checked": "2026-10-16" },
|
|
10
|
+
"pad": { "value": 1.7, "unit": "mm", "rule": "Round pad around a header hole", "kind": "community", "source": "KiCad library, PinHeader_2.54mm", "checked": "2026-10-16" },
|
|
11
|
+
"height": { "value": 3.5, "unit": "mm", "rule": "Module above the board it sits on: its board plus the USB-C socket, the tallest part", "kind": "estimate", "source": "USB-C receptacle about 3.2 mm on a 1 mm module board. Measure one", "checked": "2026-10-16" },
|
|
12
|
+
"pins": { "value": 14, "unit": "pins", "rule": "Seen from above, USB at the top: D0 to D6 down the left (pins 1 to 7), D7 to D10, 3V3, GND, 5V up the right (pins 8 to 14). D4 is SDA and D5 SCL on every XIAO", "kind": "spec", "source": "https://wiki.seeedstudio.com/xiao_rp2350_arduino", "checked": "2026-10-16",
|
|
13
|
+
"pins": { "1": "D0", "2": "D1", "3": "D2", "4": "D3", "5": "D4", "6": "D5", "7": "D6", "8": "D7", "9": "D8", "10": "D9", "11": "D10", "12": "3V3", "13": "GND", "14": "5V" } }
|
|
14
|
+
}
|
|
15
|
+
}
|