hardware: SB-LoRa rev 2 board narrowed to 46.8 mm and centred on J1 (springSD's outline ran 2.1 mm past the ears on the pin 1 side, leaving no room for a case wall), with a tab into each of J1's hollow ears to locate the connector and a relief cut beside each; J1's end GND pads fan out inward, sharing the opposite pad's via. Rerouted: DRC 0 unconnected, verify.py passes and checks the width and centring; case and renders follow

This commit is contained in:
rich committed 2026-11-26 10:15:32 -05:00
1 parent 737bb7ea81
commit fc54829176
10 files changed
+17538 -18006

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ A 16550-style UART on csSlot1 replaces rev 1's SC16IS740 SPI bridge and its latc
`rev2/netlist.py` has the parts and connections, in the same shape as rev 1's `source/netlist.py` (rev 1 stays as built under `hw-v0.1`). The board is laid out and routed with J1 as a straddle. J1's pads and the board thickness are now set from the MCS-068SMA1. **Before ordering, check the connector body's size, ears and pegs** against the board and case (below).
- **Board:** 50.43 x 75.05 mm, the same outline as rev 1. 4 layers, 1.6 mm: In1.Cu is a solid GND plane, F.Cu, In2.Cu and B.Cu carry signals, with GND pours on In2 and B. Every part is on the top except the LiPo pads (BT1), which are on the bottom under the radio boards, and J1's pins 35-68, which are on the bottom edge opposite pins 1-34. Tracks are 0.15 mm with 0.15 mm gaps, and vias are 0.5/0.25 mm, all within JLCPCB's standard 4-layer rules.
- **Board:** 46.8 x 75.05 mm, centred on J1 and no wider than its ears (rev 1's springSD outline is 50.43 mm and sits 2.1 mm past the ears on the pin 1 side, which leaves no room for a case wall there). A 1.3 x 0.8 mm tab at each end of the connector edge goes into the hole in J1's ear (1.0 wide, 1.8 high, 1.5 deep, taken as centred in the ear) to locate the connector, with a 1.0 x 0.6 mm relief cut beside each tab so the router's corner radius clears the ear. 4 layers, 0.8 mm: In1.Cu is a solid GND plane, F.Cu, In2.Cu and B.Cu carry signals, with GND pours on In2 and B. Every part is on the top except the LiPo pads (BT1), which are on the bottom under the radio boards, and J1's pins 35-68, which are on the bottom edge opposite pins 1-34. Tracks are 0.15 mm with 0.15 mm gaps, and vias are 0.5/0.25 mm, all within JLCPCB's standard 4-layer rules.
- **Build:** `rev2/make.sh` runs the whole pipeline: `set_project.py`, then `build_board.py` (placement and GND vias), then Freerouting 1.9.0, then `finish_board.py` (pours), DRC and `verify.py`. It needs KiCad 10 (the Homebrew cask), Java 21 (`openjdk@21`) and `FREEROUTING=/path/to/freerouting-1.9.0.jar`; Freerouting 2.x ignores the pass limit and never finishes. `rev2/make_fab.py fab` writes the JLCPCB gerbers zip, BOM, CPL and the hand-fit list.
- **Checks:** DRC reports 0 unconnected pads and no clearance errors. What's left is the XIAO footprint's outline silk being clipped at its pads, and warnings about the missing footprint-library table. `verify.py` checks every pad's net against the netlist, J1 against Table 5-1, J1's straddle (pins 1-34 on F.Cu, 35-68 on B.Cu, each directly opposite its partner), the flash's word mode, the UART strobes and register select, the inverters, and that only U5 and U6 cross the two power domains.
- **Renders:** `rev2/renders/`, below, made with `kicad-cli pcb render --side top|bottom -w 784 -h 1096 --background opaque`. J1's pads are rev 1's pattern.
+28 -8
View File
@@ -35,6 +35,13 @@ J1_PITCH = 1.27 # contact pitch within a row (catalogue: .050")
J1_PAD = (0.7, 1.83) # pad width along the edge, length into the board (rev 1)
J1_ROW = J1_PAD[1] / 2 # pads run from the board edge inward, as on rev 1
J1_KEEP = 5.5 # no other parts within this distance of the edge, top or bottom
# J1 body (measured): 47.5 mm across the ears, 44.5 mm without; each ear has a hole 1.0 wide, 1.8 high
# and 1.5 deep facing the board, taken as centred in the ear. The board takes the ears' width, centred
# on J1, with a tab into each ear hole so the connector is located on the board.
J1_EAR_W, J1_BODY_W = 47.5, 44.5
J1_HOLE = (1.0, 1.5) # ear hole width, depth
TAB_CLR = 0.1 # clearance around the tabs in the holes
NOTCH = 0.6 # relief cut beside each tab, so the router's 0.5 mm corner radius clears the ear
BOARD_T = 0.8 # the MCS-068SMA1 tails measure 1.0 mm outside, so the gap is a little less; err thin
board = pcbnew.BOARD()
@@ -52,15 +59,24 @@ nc.SetClearance(MM(0.15)); nc.SetTrackWidth(MM(0.15)); nc.SetViaDiameter(MM(0.5)
POWER_NETS = ("GND", "VSB", "3V3X", "VDOCK", "VDOCK_D", "XIAO_VBUS", "VBAT")
# ---------------- outline ----------------
X0, X1 = sb(-0.991, 0)[0], sb(0.994315, 0)[0]
J1_CX = OX + 0.8 * IN - 33 * J1_PITCH / 2 # J1's centre line
HOLE_OUT = J1_EAR_W / 2 - ((J1_EAR_W - J1_BODY_W) / 2 - J1_HOLE[0]) / 2 # hole's outer side from J1_CX
TAB_OUT, TAB_IN = HOLE_OUT - TAB_CLR, HOLE_OUT - J1_HOLE[0] + TAB_CLR
TAB_L = J1_HOLE[1] - 2 * TAB_CLR
X0, X1 = J1_CX - TAB_OUT, J1_CX + TAB_OUT # outer edges flush with the tabs' outer sides
Y_EDGE = sb(0, -0.926)[1] # connector edge (bottom)
Y_SLOT = sb(0, 1.060307)[1] # top of springSD outline = slot opening
EXT = 24.6 # extension beyond the slot for the XIAO and Wio
Y_TOP = Y_SLOT - EXT
pts = [(X0, Y_TOP), (X1, Y_TOP), (X1, Y_EDGE), (X0, Y_EDGE)]
for i in range(4):
def side(sx): # one tab and its relief notch, from the outer edge inward (sx = +1 right, -1 left)
c = J1_CX
return [(c + sx * TAB_OUT, Y_EDGE + TAB_L), (c + sx * TAB_IN, Y_EDGE + TAB_L),
(c + sx * TAB_IN, Y_EDGE - NOTCH), (c + sx * (TAB_IN - 1.0), Y_EDGE - NOTCH),
(c + sx * (TAB_IN - 1.0), Y_EDGE)]
pts = [(X0, Y_TOP), (X1, Y_TOP)] + side(1) + side(-1)[::-1]
for i in range(len(pts)):
s = pcbnew.PCB_SHAPE(board); s.SetShape(pcbnew.SHAPE_T_SEGMENT)
s.SetStart(V(*pts[i])); s.SetEnd(V(*pts[(i + 1) % 4])); s.SetLayer(pcbnew.Edge_Cuts); s.SetWidth(MM(0.1))
s.SetStart(V(*pts[i])); s.SetEnd(V(*pts[(i + 1) % len(pts)])); s.SetLayer(pcbnew.Edge_Cuts); s.SetWidth(MM(0.1))
board.Add(s)
for lyr in (pcbnew.F_Fab, pcbnew.B_Fab, pcbnew.F_SilkS):
s = pcbnew.PCB_SHAPE(board); s.SetShape(pcbnew.SHAPE_T_SEGMENT)
@@ -155,7 +171,7 @@ place("D1", 112.0, 78.5, 90)
place("JP1", 116.5, 78.5, 90)
# Radio boards side by side, USB-C and pin 1 toward the outer edge
YX = Y_TOP + 11.0
place("X1", 87.0, YX, 0)
place("X1", 87.4, YX, 0)
place("X2", 112.5, YX, 0)
place("C12", 100.25, YX + 7.5, 90) # 3V3X bulk between the boards
place("TP1", 100.25, Y_TOP + 2.5); place("TP2", 100.25, Y_TOP + 5.3)
@@ -195,7 +211,7 @@ for (ref, pad), net in CONN.items():
# The router doesn't drop vias from pads to a plane, so each SMD GND pad gets a via to In1 here,
# just outside the pad, away from the part's centre. Locked, so finish_board.py keeps them.
VIA_D, VIA_DRILL, GAP = 0.5, 0.25, 0.2
def fanout(pad, dx, dy, dist=None):
def fanout(pad, dx, dy, dist=None, via=True):
px, py = pcbnew.ToMM(pad.GetPosition().x), pcbnew.ToMM(pad.GetPosition().y)
sx, sy = pcbnew.ToMM(pad.GetBoundingBox().GetWidth()), pcbnew.ToMM(pad.GetBoundingBox().GetHeight())
if dist is None:
@@ -204,6 +220,8 @@ def fanout(pad, dx, dy, dist=None):
lyr = pcbnew.B_Cu if pad.IsOnLayer(pcbnew.B_Cu) and not pad.IsOnLayer(pcbnew.F_Cu) else pcbnew.F_Cu
t = pcbnew.PCB_TRACK(board); t.SetLayer(lyr); t.SetWidth(MM(0.3)); t.SetNet(netinfo["GND"])
t.SetStart(V(px, py)); t.SetEnd(V(vx, vy)); t.SetLocked(True); board.Add(t)
if not via:
return
v = pcbnew.PCB_VIA(board); v.SetNet(netinfo["GND"]); v.SetPosition(V(vx, vy))
v.SetWidth(MM(VIA_D)); v.SetDrill(MM(VIA_DRILL)); v.SetLayerPair(pcbnew.F_Cu, pcbnew.B_Cu)
v.SetLocked(True); board.Add(v)
@@ -215,9 +233,11 @@ for ref, fp in placed.items():
continue
n = p.GetNumber()
if ref == "J1":
# Inward, since the tabs' relief notches are beside the end pads. A top-row pad with GND
# opposite shares that pad's via.
row_a = int(n) <= 34
dx = (1 if int(n) == 1 else -1) if row_a else 0 # top row's ends go sideways, bottom row inward
fanout(p, dx, 0 if row_a else -1)
shared = row_a and CONN.get(("J1", str(int(n) + 34))) == "GND"
fanout(p, 0, -1, via=not shared)
continue
if ref in ("U2", "BT1"):
continue # U2: through its exposed pad, below. BT1 is on B.Cu, in the B.Cu GND pour
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -24,7 +24,7 @@ lip_h = 1.6; // the slot is narrower (lip_w) for its first lip_h
lip_w = 49.8;
// ---- board (from rev2/kicad/visormesh.kicad_pcb) ----
pcb_w = 50.43;
pcb_w = 46.8; // J1's ear width less the tab clearances, centred on J1
pcb_t = 0.8; // = BOARD_T in build_board.py (the MCS-068SMA1 gap)
pcb_in = 50.47; // in-slot section
pcb_ext = 24.6; // extension past the slot opening
@@ -59,7 +59,7 @@ bump_y1 = pcb_y1 + clr + 4.5; // room for the screw bosses
bump_top = pcb_top - radio_h - 0.6 - wall; // outermost z (negative: stands proud of the Visor)
bump_bot = pcb_bot + under_h + lipo[2] + 0.5 + wall;
// USB-C on the XIAO, in the board end wall (x from the board, z from the XIAO's height)
usb_x = 13.25;
usb_x = 14.28;
usb_z = pcb_top - 2.8;
usb_open = [12.6, 6.8]; // plug overmould clearance
// M2 screws through the lid into the base, at the bump's far corners
+105 -105
View File
@@ -1,190 +1,190 @@
** Drc report for visormesh.kicad_pcb **
** Created on 2026-11-26T09:45:31 **
** Created on 2026-11-26T10:15:06 **
** Report includes: Errors, Warnings **
** Found 54 DRC violations **
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(87.0000 mm, 98.0000 mm): Footprint C7
[lib_footprint_issues]: The current configuration does not include the footprint library 'Jumper'
Local override; warning
@(116.5000 mm, 78.5000 mm): Footprint JP1
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
Local override; warning
@(100.2500 mm, 50.9682 mm): Footprint TP1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Jumper'
Local override; warning
@(101.0000 mm, 95.5000 mm): Footprint JP2
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
Local override; warning
@(100.2500 mm, 53.7682 mm): Footprint TP2
[lib_footprint_issues]: The current configuration does not include the footprint library 'visormesh'
Local override; warning
@(0.0000 mm, 0.0000 mm): Footprint J1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_TO_SOT_SMD'
Local override; warning
@(93.0000 mm, 92.5000 mm): Footprint U4
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(101.0000 mm, 75.5000 mm): Footprint C11
[lib_footprint_issues]: The current configuration does not include the footprint library 'visormesh'
Local override; warning
@(87.0000 mm, 59.4682 mm): Footprint X1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(90.5000 mm, 78.5000 mm): Footprint R1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Diode_SMD'
Local override; warning
@(112.0000 mm, 78.5000 mm): Footprint D1
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
Local override; warning
@(100.2500 mm, 59.3682 mm): Footprint TP4
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(100.2500 mm, 66.9682 mm): Footprint C12
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(105.5000 mm, 95.5000 mm): Footprint R4
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(101.0000 mm, 81.5000 mm): Footprint C10
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(92.0000 mm, 114.0000 mm): Footprint C1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(105.0000 mm, 78.5000 mm): Footprint R2
@(87.0000 mm, 98.0000 mm): Footprint C7
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(95.0000 mm, 75.5000 mm): Footprint C9
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_SO'
Local override; warning
@(93.0000 mm, 89.0000 mm): Footprint C5
@(95.0000 mm, 78.5000 mm): Footprint U5
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_DFN_QFN'
Local override; warning
@(83.0000 mm, 89.0000 mm): Footprint U2
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(88.0000 mm, 78.5000 mm): Footprint R3
@(105.0000 mm, 78.5000 mm): Footprint R2
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(83.0000 mm, 84.0000 mm): Footprint C3
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
[lib_footprint_issues]: The current configuration does not include the footprint library 'Diode_SMD'
Local override; warning
@(100.2500 mm, 56.5682 mm): Footprint TP3
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(79.0000 mm, 98.0000 mm): Footprint C6
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(95.0000 mm, 81.5000 mm): Footprint C8
[lib_footprint_issues]: The current configuration does not include the footprint library 'visormesh'
Local override; warning
@(112.5000 mm, 59.4682 mm): Footprint X2
@(112.0000 mm, 78.5000 mm): Footprint D1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_SO'
Local override; warning
@(114.5000 mm, 92.5000 mm): Footprint U3
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_SO'
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(95.0000 mm, 78.5000 mm): Footprint U5
@(93.0000 mm, 89.0000 mm): Footprint C5
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
Local override; warning
@(100.2500 mm, 50.9682 mm): Footprint TP1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(101.0000 mm, 75.5000 mm): Footprint C11
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
Local override; warning
@(100.2500 mm, 56.5682 mm): Footprint TP3
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_SO'
Local override; warning
@(101.0000 mm, 104.5000 mm): Footprint U1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_TO_SOT_SMD'
Local override; warning
@(101.0000 mm, 78.5000 mm): Footprint U6
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(88.0000 mm, 78.5000 mm): Footprint R3
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(79.0000 mm, 98.0000 mm): Footprint C6
[lib_footprint_issues]: The current configuration does not include the footprint library 'visormesh'
Local override; warning
@(112.5000 mm, 59.4682 mm): Footprint X2
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(105.5000 mm, 95.5000 mm): Footprint R4
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(101.0000 mm, 81.5000 mm): Footprint C10
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_TO_SOT_SMD'
Local override; warning
@(93.0000 mm, 92.5000 mm): Footprint U4
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(114.5000 mm, 89.0000 mm): Footprint C4
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
[lib_footprint_issues]: The current configuration does not include the footprint library 'Jumper'
Local override; warning
@(113.5000 mm, 104.5000 mm): Footprint C2
@(116.5000 mm, 78.5000 mm): Footprint JP1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Crystal'
Local override; warning
@(83.0000 mm, 98.0000 mm): Footprint Y1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(90.5000 mm, 78.5000 mm): Footprint R1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(95.0000 mm, 81.5000 mm): Footprint C8
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(100.2500 mm, 66.9682 mm): Footprint C12
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(113.5000 mm, 104.5000 mm): Footprint C2
[lib_footprint_issues]: The current configuration does not include the footprint library 'visormesh'
Local override; warning
@(87.4000 mm, 59.4682 mm): Footprint X1
[lib_footprint_issues]: The current configuration does not include the footprint library 'visormesh'
Local override; warning
@(0.0000 mm, 0.0000 mm): Footprint J1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Jumper'
Local override; warning
@(101.0000 mm, 95.5000 mm): Footprint JP2
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(92.0000 mm, 114.0000 mm): Footprint C1
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
Local override; warning
@(100.2500 mm, 59.3682 mm): Footprint TP4
[lib_footprint_issues]: The current configuration does not include the footprint library 'visormesh'
Local override; warning
@(100.2500 mm, 59.9682 mm): Footprint BT1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(87.0000 mm, 50.1182 mm): Footprint text of X1 (USB)
@(85.7300 mm, 50.8992 mm): PTH pad SWDIO [SWDIO] of X1
@(81.0000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(79.3200 mm, 54.3882 mm): PTH pad 2 [LORA_DIO1] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(80.6000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(78.9200 mm, 51.8482 mm): PTH pad 1 [VISOR_PRESENT] of X1
@(81.0000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(79.3200 mm, 56.9282 mm): PTH pad 3 [LORA_RESET] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(80.6000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(78.9200 mm, 54.3882 mm): PTH pad 2 [LORA_DIO1] of X1
@(81.0000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(79.3200 mm, 59.4682 mm): PTH pad 4 [LORA_BUSY] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(80.6000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(78.9200 mm, 56.9282 mm): PTH pad 3 [LORA_RESET] of X1
@(81.0000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(79.3200 mm, 62.0082 mm): PTH pad 5 [LORA_NSS] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(80.6000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(78.9200 mm, 59.4682 mm): PTH pad 4 [LORA_BUSY] of X1
@(81.0000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(79.3200 mm, 64.5482 mm): PTH pad 6 [LORA_RXEN] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(80.6000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(78.9200 mm, 62.0082 mm): PTH pad 5 [LORA_NSS] of X1
@(81.0000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(79.3200 mm, 67.0882 mm): PTH pad 7 [XIAO_TX] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(80.6000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(78.9200 mm, 64.5482 mm): PTH pad 6 [LORA_RXEN] of X1
@(81.0000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(79.3200 mm, 51.8482 mm): PTH pad 1 [VISOR_PRESENT] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(80.6000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(78.9200 mm, 67.0882 mm): PTH pad 7 [XIAO_TX] of X1
@(93.8000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.4800 mm, 67.0882 mm): PTH pad 8 [XIAO_RX] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(93.4000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.0800 mm, 51.8482 mm): PTH pad 14 [XIAO_VBUS] of X1
@(93.8000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.4800 mm, 56.9282 mm): PTH pad 12 [3V3X] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(93.4000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.0800 mm, 62.0082 mm): PTH pad 10 [LORA_MISO] of X1
@(93.8000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.4800 mm, 54.3882 mm): PTH pad 13 [GND] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(93.4000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.0800 mm, 59.4682 mm): PTH pad 11 [LORA_MOSI] of X1
@(93.8000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.4800 mm, 51.8482 mm): PTH pad 14 [XIAO_VBUS] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(93.4000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.0800 mm, 56.9282 mm): PTH pad 12 [3V3X] of X1
@(93.8000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.4800 mm, 64.5482 mm): PTH pad 9 [LORA_SCK] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(93.4000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.0800 mm, 54.3882 mm): PTH pad 13 [GND] of X1
@(93.8000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.4800 mm, 62.0082 mm): PTH pad 10 [LORA_MISO] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(93.4000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.0800 mm, 67.0882 mm): PTH pad 8 [XIAO_RX] of X1
@(93.8000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.4800 mm, 59.4682 mm): PTH pad 11 [LORA_MOSI] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(93.4000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(95.0800 mm, 64.5482 mm): PTH pad 9 [LORA_SCK] of X1
@(87.4000 mm, 50.1182 mm): Footprint text of X1 (USB)
@(86.1300 mm, 50.8992 mm): PTH pad SWDIO [SWDIO] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(87.0000 mm, 50.1182 mm): Footprint text of X1 (USB)
@(88.2700 mm, 50.8992 mm): PTH pad SWCLK [SWCLK] of X1
@(87.4000 mm, 50.1182 mm): Footprint text of X1 (USB)
@(88.6700 mm, 50.8992 mm): PTH pad SWCLK [SWCLK] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(80.1550 mm, 57.2492 mm): Footprint text of X1 (BAT-)
@(78.9200 mm, 56.9282 mm): PTH pad 3 [LORA_RESET] of X1
@(80.5550 mm, 57.2492 mm): Footprint text of X1 (BAT-)
@(79.3200 mm, 56.9282 mm): PTH pad 3 [LORA_RESET] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(80.1550 mm, 57.2492 mm): Footprint text of X1 (BAT-)
@(82.5550 mm, 57.2492 mm): PTH pad BAT- [GND] of X1
@(80.5550 mm, 57.2492 mm): Footprint text of X1 (BAT-)
@(82.9550 mm, 57.2492 mm): PTH pad BAT- [GND] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(80.1550 mm, 59.1542 mm): Footprint text of X1 (BAT+)
@(82.5550 mm, 59.1542 mm): PTH pad BAT+ [VBAT] of X1
@(80.5550 mm, 59.1542 mm): Footprint text of X1 (BAT+)
@(82.9550 mm, 59.1542 mm): PTH pad BAT+ [VBAT] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(80.1550 mm, 59.1542 mm): Footprint text of X1 (BAT+)
@(78.9200 mm, 59.4682 mm): PTH pad 4 [LORA_BUSY] of X1
@(80.5550 mm, 59.1542 mm): Footprint text of X1 (BAT+)
@(79.3200 mm, 59.4682 mm): PTH pad 4 [LORA_BUSY] of X1
** Found 0 unconnected pads **
File diff suppressed because it is too large. Load diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 70 KiB

+4 -1
View File
@@ -73,7 +73,10 @@ tr = [t for t in b.GetTracks() if t.Type() == pcbnew.PCB_TRACE_T]
check(len(tr) > 0, f"board is routed ({len(tr)} segments)")
bb = b.GetBoardEdgesBoundingBox()
w, h = pcbnew.ToMM(bb.GetWidth()) - 0.1, pcbnew.ToMM(bb.GetHeight()) - 0.1
check(abs(w - 50.43) < 0.05, f"board width {w:.2f} mm = springSD width 50.43 mm")
j1x = [pcbnew.ToMM(p.GetPosition().x) for f in b.GetFootprints() if f.GetReference() == "J1" for p in f.Pads()]
cx = (min(j1x) + max(j1x)) / 2
check(w <= 47.5 and abs(pcbnew.ToMM(bb.GetCenter().x) - cx) < 0.05,
f"board width {w:.2f} mm within J1's 47.5 mm ears, centred on J1")
print(f"INFO board {w:.2f} x {h:.2f} mm, {b.GetCopperLayerCount()} layers, "
f"thickness {pcbnew.ToMM(b.GetDesignSettings().GetBoardThickness())} mm")
print("RESULT", "ALL PASS" if not fail else f"{len(fail)} FAIL")