v6 T17b script + bump kicad (F2 fuse holder)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJ4eAB6zjQT49RVwpgfKdt
This commit is contained in:
Leopoldo Rodríguez 2026-09-25 20:27:59 +00:00
parent d46b81baf5
commit c734e8061d
2 changed files with 13 additions and 11 deletions

@ -1 +1 @@
Subproject commit d2db77fddb14c07e406171c4d228b5f938f099ce Subproject commit 03d83d1e455d162fd69ab8fe9e6ece541db64d01

View File

@ -4,22 +4,24 @@
F2 carried the placeholder "TBD-2A-1812" (value "2A/63V-slow-1812"). The JLC catalogue has F2 carried the placeholder "TBD-2A-1812" (value "2A/63V-slow-1812"). The JLC catalogue has
no 1812 fuse that is both 2 A time-lag and rated >= 63 V (1812 PPTCs top out at 33–36 V, no 1812 fuse that is both 2 A time-lag and rated >= 63 V (1812 PPTCs top out at 33–36 V,
below what the SMBJ33A on /24V_IN lets through during a load dump). below what the SMBJ33A on /24V_IN lets through during a load dump).
Chosen: Littelfuse 0454002.MR — NANO2 Slo-Blo, 2 A, 125 V, 50 A breaking, 2410 body. First choice (T17, 25-Sep): Littelfuse 0454002.MR soldered NANO2 (C179005).
LCSC C179005 (Extended, 1136 in stock on 25-Sep). REVISED same day at Leo's request — a replaceable fuse in a socket:
Littelfuse 0154002.DR — OMNI-BLOK SMD fuse holder WITH a 2 A / 125 V NANO2 fuse fitted,
9.7 x 5 mm, LCSC C206910 (Extended, 5505 in stock). JLC places the block; in the field the
fuse pulls out of the block and a new NANO2 2 A pushes in — no soldering.
Schematic: Value, Footprint (Fuse:Fuse_Littelfuse-NANO2-451_453 — same NANO2 land as the Schematic: Value, Footprint (Fuse:Fuseholder_Littelfuse_Nano2_154x, KiCad stock library) and LCSC.
454 series; verify against the 0454 datasheet) and LCSC. Board: LCSC value + Value only. The footprint swap (1812 -> 154 holder, 9.7 x 5 mm) is a layout
Board: LCSC value + Value only. The footprint swap (1812 -> NANO2, 6.1 x 2.7 mm) is a layout step: in the PCB editor, right-click F2 -> Change Footprint -> Fuse:Fuseholder_Littelfuse_Nano2_154x.
step: in the PCB editor, right-click F2 -> Change Footprint -> Fuse:Fuse_Littelfuse-NANO2-451_453.
python3 T17.py hbox-watchdog-v6.kicad_sch hbox-watchdog-v6.kicad_pcb [--apply] python3 T17.py hbox-watchdog-v6.kicad_sch hbox-watchdog-v6.kicad_pcb [--apply]
""" """
import re, sys, shutil import re, sys, shutil
REF = 'F2' REF = 'F2'
NEW = {'Value': '2A/125V-SloBlo-NANO2', 'LCSC': 'C179005', NEW = {'Value': '2A/125V-NANO2-in-holder', 'LCSC': 'C206910',
'Footprint': 'Fuse:Fuse_Littelfuse-NANO2-451_453'} 'Footprint': 'Fuse:Fuseholder_Littelfuse_Nano2_154x'}
OLD_LCSC = 'TBD-2A-1812' OLD_LCSC = ('TBD-2A-1812', 'C179005') # placeholder, then the first T17 choice
def span(s, i): def span(s, i):
d = 0; instr = False; j = i d = 0; instr = False; j = i
@ -40,7 +42,7 @@ def edit(s, head, props, ch, tag):
pm = re.search(r'\n\t\t\(property "%s" "([^"]*)"' % k, b) pm = re.search(r'\n\t\t\(property "%s" "([^"]*)"' % k, b)
if not pm: raise SystemExit(f'{tag}: {REF} has no {k} property') if not pm: raise SystemExit(f'{tag}: {REF} has no {k} property')
if pm.group(1) == v: continue if pm.group(1) == v: continue
if k == 'LCSC' and pm.group(1) not in (OLD_LCSC, ''): raise SystemExit(f'{tag}: unexpected LCSC {pm.group(1)}') if k == 'LCSC' and pm.group(1) not in OLD_LCSC + ('',): raise SystemExit(f'{tag}: unexpected LCSC {pm.group(1)}')
b = b[:pm.start()] + f'\n\t\t(property "{k}" "{v}"' + b[pm.end():] b = b[:pm.start()] + f'\n\t\t(property "{k}" "{v}"' + b[pm.end():]
ch.append(f'{tag} {REF}: {k} "{pm.group(1)}" -> "{v}"') ch.append(f'{tag} {REF}: {k} "{pm.group(1)}" -> "{v}"')
return s[:a] + b + s[e:] return s[:a] + b + s[e:]