diff --git a/hardware/enclosure/out-line/placement.md b/hardware/enclosure/out-line/placement.md index f908997..6aeffb2 100644 --- a/hardware/enclosure/out-line/placement.md +++ b/hardware/enclosure/out-line/placement.md @@ -2,7 +2,7 @@ # pico-serial Line: placement fixed by the stick -Generated by `stick.py`. Coordinates in mm; x = 0 at the RJ11 end's outer face, +x toward the USB-C end; y = 0 on the centre line. Board top = the side facing the top half. +The script `stick.py` makes this file. All coordinates are in mm. The point x = 0 is at the outer face of the RJ11 end, and +x is toward the USB-C end. The point y = 0 is on the centre line. The board top is the side that faces the top half. | Item | Position | Notes | |---|---|---| diff --git a/hardware/enclosure/out-wb/placement.md b/hardware/enclosure/out-wb/placement.md index 1807e0a..d42aebd 100644 --- a/hardware/enclosure/out-wb/placement.md +++ b/hardware/enclosure/out-wb/placement.md @@ -2,7 +2,7 @@ # pico-serial WB: placement fixed by the stick -Generated by `stick.py`. Coordinates in mm; x = 0 at the RJ11 end's outer face, +x toward the USB-C end; y = 0 on the centre line. Board top = the side facing the top half. +The script `stick.py` makes this file. All coordinates are in mm. The point x = 0 is at the outer face of the RJ11 end, and +x is toward the USB-C end. The point y = 0 is on the centre line. The board top is the side that faces the top half. | Item | Position | Notes | |---|---|---| diff --git a/hardware/enclosure/out/placement.md b/hardware/enclosure/out/placement.md index 113fc9e..2ae967a 100644 --- a/hardware/enclosure/out/placement.md +++ b/hardware/enclosure/out/placement.md @@ -2,7 +2,7 @@ # pico-serial W: placement fixed by the hood -Generated by `w_hood.py`. Coordinates in mm; x = 0 at the DB25 flange's front face, +x toward the USB-C end; y = 0 on the hood's centre line, +y toward the USB-C side. Board top = the side facing the hood's top half. +The script `w_hood.py` makes this file. All coordinates are in mm. The point x = 0 is at the front face of the DB25 flange, and +x is toward the USB-C end. The point y = 0 is on the centre line of the hood, and +y is toward the USB-C side. The board top is the side that faces the top half of the hood. | Item | Position | Notes | |---|---|---| @@ -13,8 +13,8 @@ Generated by `w_hood.py`. Coordinates in mm; x = 0 at the DB25 flange's front fa | RF keep-out | x 39.0–57.5, y -26.4–9.10 (`rf-keepout.dxf`) | no copper on any layer, no parts | | USB-C (top) | mouth at x = 57.8, centred y = 16.0 | HRO TYPE-C-31-M-12; overhangs the tongue edge by 0.7 | | LEDs, 0603 (top) | BT (21.0, 23.0), TR (25.0, 23.0), CD (29.0, 23.0), RD (33.0, 23.0), SD (37.0, 23.0) | under light tubes; nothing else taller than 1.2 mm within 1.5 mm | -| Pairing button (top) | (24.0, -20.0) | TS-1088, 2.0 mm tall; reached through a pinhole | +| Pairing button (top) | (24.0, -20.0) | TS-1088, 2.0 mm tall; push it through a pinhole | | Height limits | top ≤ 4.8 mm, bottom ≤ 4.8 mm | inside the hood; USB-C is 3.26 | | Keep clear | x < 9.16: board narrows to ±18.0 for the thumbscrew pockets | | -Thumbscrews (Keystone 2400, 4-40 × 5/16″) engage the computer's jack posts by 4.5 mm. +The thumbscrews (Keystone 2400, 4-40 × 5/16″) engage the jack posts of the computer by 4.5 mm. diff --git a/hardware/enclosure/stick.py b/hardware/enclosure/stick.py index 7cefb83..dad06db 100644 --- a/hardware/enclosure/stick.py +++ b/hardware/enclosure/stick.py @@ -277,8 +277,9 @@ def main(): def write_placement(): L = ["", "", f"# {NAME}: placement fixed by the stick", "", - "Generated by `stick.py`. Coordinates in mm; x = 0 at the RJ11 end's outer face, +x toward the " - "USB-C end; y = 0 on the centre line. Board top = the side facing the top half.", "", + "The script `stick.py` makes this file. All coordinates are in mm. The point x = 0 is at the outer face " + "of the RJ11 end, and +x is toward the USB-C end. The point y = 0 is on the centre line. " + "The board top is the side that faces the top half.", "", "| Item | Position | Notes |", "|---|---|---|", f"| Board outline | `board-outline.dxf` | x {BOARD_X0}–{BOARD_X1}, y ±{BOARD_Y} |", f"| RJ11 (top) | opening at x = {RJ_X0}, rear contact row at x = {RJ_PINS_X:.2f}, centred y = 0 | " diff --git a/hardware/enclosure/w_hood.py b/hardware/enclosure/w_hood.py index 2a665a3..a7c474a 100644 --- a/hardware/enclosure/w_hood.py +++ b/hardware/enclosure/w_hood.py @@ -346,9 +346,10 @@ def main(): def write_placement(engage): L = ["", "", "# pico-serial W: placement fixed by the hood", "", - "Generated by `w_hood.py`. Coordinates in mm; x = 0 at the DB25 flange's front face, " - "+x toward the USB-C end; y = 0 on the hood's centre line, +y toward the USB-C side. " - "Board top = the side facing the hood's top half.", "", + "The script `w_hood.py` makes this file. All coordinates are in mm. " + "The point x = 0 is at the front face of the DB25 flange, and +x is toward the USB-C end. " + "The point y = 0 is on the centre line of the hood, and +y is toward the USB-C side. " + "The board top is the side that faces the top half of the hood.", "", "| Item | Position | Notes |", "|---|---|---|", f"| Board outline | `board-outline.dxf` | front edge x = {BOARD_X0}, main board to x = {BOARD_X1}, " f"USB tongue to x = {TONGUE_X1:.1f}; width ±{BOARD_Y:.1f} (±{BOARD_FRONT_Y:.1f} for x < {BOARD_NARROW_X1:.2f}) |", @@ -358,10 +359,10 @@ def write_placement(engage): f"| RF keep-out | x {KEEP_X0}–{KEEP_X1}, y {KEEP_Y0}–{KEEP_Y1:.2f} (`rf-keepout.dxf`) | no copper on any layer, no parts |", f"| USB-C (top) | mouth at x = {USB_X1:.1f}, centred y = {USB_YC:.1f} | HRO TYPE-C-31-M-12; overhangs the tongue edge by 0.7 |", "| LEDs, 0603 (top) | " + ", ".join(f"{n} ({x}, {LED_Y})" for n, x in LEDS) + " | under light tubes; nothing else taller than 1.2 mm within 1.5 mm |", - f"| Pairing button (top) | ({PAIR[0]}, {PAIR[1]}) | TS-1088, 2.0 mm tall; reached through a pinhole |", + f"| Pairing button (top) | ({PAIR[0]}, {PAIR[1]}) | TS-1088, 2.0 mm tall; push it through a pinhole |", f"| Height limits | top ≤ {Z_IN - PCB_T / 2 - 0.3:.1f} mm, bottom ≤ {Z_IN - PCB_T / 2 - 0.3:.1f} mm | inside the hood; USB-C is {USB_H} |", f"| Keep clear | x < {BOARD_NARROW_X1:.2f}: board narrows to ±{BOARD_FRONT_Y:.1f} for the thumbscrew pockets | |", - "", f"Thumbscrews (Keystone 2400, 4-40 × 5/16″) engage the computer's jack posts by {engage:.1f} mm."] + "", f"The thumbscrews (Keystone 2400, 4-40 × 5/16″) engage the jack posts of the computer by {engage:.1f} mm."] open(os.path.join(OUT, "placement.md"), "w").write("\n".join(L) + "\n") diff --git a/hardware/netlist/NETLIST-line.md b/hardware/netlist/NETLIST-line.md index 4558d1a..9e9c35a 100644 --- a/hardware/netlist/NETLIST-line.md +++ b/hardware/netlist/NETLIST-line.md @@ -2,9 +2,9 @@ # pico-serial Line netlist -Generated by `build_netlist.py`; edit that script, not this file. +The script `build_netlist.py` makes this file. Do not edit this file. Edit the script. -99 parts, 76 nets. DNP = not fitted by default. +This board has 99 parts and 76 nets. DNP = not installed by default. ## Nets diff --git a/hardware/netlist/NETLIST-w.md b/hardware/netlist/NETLIST-w.md index 7187b6b..77a1298 100644 --- a/hardware/netlist/NETLIST-w.md +++ b/hardware/netlist/NETLIST-w.md @@ -2,9 +2,9 @@ # pico-serial W netlist -Generated by `build_netlist.py`; edit that script, not this file. +The script `build_netlist.py` makes this file. Do not edit this file. Edit the script. -85 parts, 86 nets. DNP = not fitted by default. +This board has 85 parts and 86 nets. DNP = not installed by default. ## Nets diff --git a/hardware/netlist/NETLIST-wb.md b/hardware/netlist/NETLIST-wb.md index 442e7f8..a2bb57e 100644 --- a/hardware/netlist/NETLIST-wb.md +++ b/hardware/netlist/NETLIST-wb.md @@ -2,9 +2,9 @@ # pico-serial WB netlist -Generated by `build_netlist.py`; edit that script, not this file. +The script `build_netlist.py` makes this file. Do not edit this file. Edit the script. -92 parts, 68 nets. DNP = not fitted by default. +This board has 92 parts and 68 nets. DNP = not installed by default. ## Nets diff --git a/hardware/netlist/NETLIST.md b/hardware/netlist/NETLIST.md index 102e92a..340d287 100644 --- a/hardware/netlist/NETLIST.md +++ b/hardware/netlist/NETLIST.md @@ -2,9 +2,9 @@ # pico-serial netlist -Generated by `build_netlist.py`; edit that script, not this file. +The script `build_netlist.py` makes this file. Do not edit this file. Edit the script. -81 parts, 82 nets. DNP = not fitted by default. +This board has 81 parts and 82 nets. DNP = not installed by default. ## Nets diff --git a/hardware/netlist/build_netlist.py b/hardware/netlist/build_netlist.py index 5e4309b..cd389f8 100644 --- a/hardware/netlist/build_netlist.py +++ b/hardware/netlist/build_netlist.py @@ -814,8 +814,8 @@ def write_kicad(path): def write_md(path): L = ["", "", f"# pico-serial{' W' if W else ' Line' if LINE else ' WB' if WB else ''} netlist", "", - "Generated by `build_netlist.py`; edit that script, not this file.", "", - f"{len(parts)} parts, {len(nets)} nets. DNP = not fitted by default.", "", + "The script `build_netlist.py` makes this file. Do not edit this file. Edit the script.", "", + f"This board has {len(parts)} parts and {len(nets)} nets. DNP = not installed by default.", "", "## Nets", "", "| Net | Pins |", "|---|---|"] for net in sorted(nets, key=natural): pins = ", ".join(f"{r}.{p} ({parts[r]['pins'][p][0]})" if parts[r]["pins"] is not TWO else f"{r}.{p}"