diff --git a/hardware/kicad/build_pcb.py b/hardware/kicad/build_pcb.py index 40fd2dc..5c2cb7a 100644 --- a/hardware/kicad/build_pcb.py +++ b/hardware/kicad/build_pcb.py @@ -242,7 +242,10 @@ if N.LINE: ymax = max(y for _, y in OUTLINE) POUR_OUTLINE = [(-ST.BOARD_Y, BARRIER[1] + 0.2), (ST.BOARD_Y, BARRIER[1] + 0.2), (ST.BOARD_Y, ymax), (-ST.BOARD_Y, ymax)] - NETCLASSES["Line"] = ((0.3, 0.4, 0.6, 0.3), ["/LS_*", "/LINE_*"]) # the line: up to ~200 V peak ringing + # the line side: TIP, RING and the bridge's + see the ringing signal (up to ~200 V peak) and + # the loop current; the Si3018's own side runs at a few volts + NETCLASSES["TipRing"] = ((0.3, 0.4, 0.6, 0.3), ["/LINE_*"]) + NETCLASSES["Line"] = ((0.25, 0.25, 0.55, 0.3), ["/LS_*"]) USB_Y = ST.USB_X1 - ST.BOARD_X0 # the receptacle's mouth RJ_Y = ST.RJ_PINS_X - ST.BOARD_X0 # the RJ11's rear contact row UY = 56.0 # the RP2040, behind the screw @@ -269,15 +272,15 @@ if N.LINE: "U5": (0.0, 38.6, 90, "F"), "C19": (6.0, 38.6, 90, "F"), "C20": (-6.0, 38.6, 90, "F"), # VD, VA "R11": (8.0, 36.0, 90, "B"), "R12": (9.0, 36.0, 90, "B"), "R13": (8.0, 38.4, 90, "B"), # pull-ups - "R14": (-4.2, 34.3, 0, "F"), "R15": (4.2, 34.3, 0, "F"), # 56.2R to C1A, C2A + "R14": (-3.4, 34.3, 0, "F"), "R15": (5.0, 34.3, 0, "F"), # 56.2R to C1A, C2A # --- the isolation gap: the Y2 caps straddle it, nothing else crosses - "C21": (-1.6, BY, 90, "F"), "C22": (1.6, BY, 90, "F"), # C1, C2: the data path + "C21": (-0.4, BY, 90, "F"), "C22": (2.6, BY, 90, "F"), # C1, C2: the data path, over C1B, C2B "C29": (-7.8, BY, 270, "F"), "C30": (7.8, BY, 270, "F"), # C8, C9: TIP/RING to ground # --- line side, top: Si3018, the surge suppressor behind the jack - "U6": (0.0, 24.7, 270, "F"), + "U6": (0.0, 24.7, 90, "F"), # C1B, C2B toward the barrier caps "RV1": (-5.6, 18.6, 0, "F"), # between the jack and the Si3018 "C28": (5.0, 17.5, 0, "F"), "C23": (5.0, 19.6, 0, "F"), # C3 10nF 250V, C4 1uF - "C24": (-6.2, 26.2, 90, "F"), "C25": (6.2, 26.2, 90, "F"), # VREG, VREG2 + "C24": (5.6, 29.7, 90, "F"), "C25": (1.4, 20.3, 0, "F"), # VREG (pin 7), VREG2 (pin 10) "C26": (8.4, 21.0, 90, "F"), "C27": (8.4, 24.4, 90, "F"), # C7, C10 "R17": (-8.4, 23.4, 90, "F"), # IB 1M "FB1": (-8.4, 27.0, 90, "F"), "FB2": (8.4, 27.0, 90, "F"), # ferrites by C8, C9 @@ -868,6 +871,37 @@ def _dist(g, X, Y): RIP_COST = 4.0 # mm-equivalent for crossing another net's track in a rip-up search +def _poly_mask(pts, X, Y, margin): + """Grid points inside the polygon pts, or within margin of its edges (numpy).""" + import numpy as np + inside = np.zeros(X.shape, dtype=bool) + near = np.zeros(X.shape, dtype=bool) + n = len(pts) + for i in range(n): + (x1, y1), (x2, y2) = pts[i], pts[(i + 1) % n] + cross = ((y1 > Y) != (y2 > Y)) & (X < x1 + (Y - y1) * (x2 - x1) / ((y2 - y1) or 1e-12)) + inside ^= cross + dx, dy = x2 - x1, y2 - y1 + L2 = dx * dx + dy * dy + t = np.clip(((X - x1) * dx + (Y - y1) * dy) / L2, 0, 1) if L2 else 0 + near |= np.hypot(X - x1 - t * dx, Y - y1 - t * dy) < margin + return inside | near + + +def _rule_areas(board): + """Each rule area as (points in mm, layers, no tracks, no vias), read once per board.""" + T = pcbnew.ToMM + out = [] + for z in board.Zones(): + if not z.GetIsRuleArea() or not (z.GetDoNotAllowTracks() or z.GetDoNotAllowVias()): + continue + ol = z.Outline().Outline(0) + pts = [(T(ol.CPoint(i).x), T(ol.CPoint(i).y)) for i in range(ol.PointCount())] + layers = {L for L in ALL_CU if z.GetLayerSet().Contains(L)} + out.append((pts, layers, z.GetDoNotAllowTracks(), z.GetDoNotAllowVias())) + return out + + def _route_link(board, net, src, dst, layers, narrow=False, rip=False, keep=()): """A* from island src to island dst over a grid. Returns the items it added (empty if it found no way). @@ -905,6 +939,13 @@ def _route_link(board, net, src, dst, layers, narrow=False, rip=False, keep=()): soft = {L: np.full(inside_t.shape, -1, dtype=np.int32) for L in lid} # rip: whose track is there vsoft = np.full(inside_t.shape, -1, dtype=np.int32) soft_nets = [] + ns = board.GetDesignSettings().m_NetSettings + oclr = {} # each other net's own clearance: the larger of the two applies, as in KiCad's DRC + + def clr_with(on): + if on not in oclr: + oclr[on] = T(ns.GetEffectiveNetClass(on).GetClearance()) + 0.005 if on else 0.0 + return max(clr, oclr[on]) xa, ya = x0 - 1, y0 - 1 xb, yb = x0 + nx * GRID + 1, y0 + ny * GRID + 1 for o in list(board.GetPads()) + list(board.GetTracks()): @@ -920,16 +961,26 @@ def _route_link(board, net, src, dst, layers, narrow=False, rip=False, keep=()): if on not in soft_nets: soft_nets.append(on) k = soft_nets.index(on) + c = clr_with(on) for L in lid: if L in ls: - m = (d < w / 2 + clr) & (soft[L] < 0) + m = (d < w / 2 + c) & (soft[L] < 0) soft[L][m] = k - vsoft[(d < vd / 2 + clr) & (vsoft < 0)] = k + vsoft[(d < vd / 2 + c) & (vsoft < 0)] = k continue + c = clr_with(on) for L in lid: if L in ls: - free[L] &= d >= w / 2 + clr - vfree &= d >= vd / 2 + clr + free[L] &= d >= w / 2 + c + vfree &= d >= vd / 2 + c + for pts, ls, no_t, no_v in _rule_areas(board): # keep-outs: the isolation gap, screws, the crystal + if no_t: + m = _poly_mask(pts, X, Y, w / 2 + 0.01) + for L in lid: + if L in ls: + free[L] &= ~m + if no_v: + vfree &= ~_poly_mask(pts, X, Y, vd / 2 + 0.01) for o in src + dst: # no via inside a pad of the link's own ends if o.Type() == pcbnew.PCB_PAD_T: vfree &= _dist(_geom(o)[0], X, Y) > vd / 2 @@ -1065,6 +1116,29 @@ def _connect(board, net, layers): return added +def _track_record(t): + """A track or via as plain values, enough to build it again.""" + t = t.Cast() + xy = lambda p: (int(p.x), int(p.y)) # copies: KiCad's vectors are views into the object + if t.Type() == pcbnew.PCB_VIA_T: + return ("via", xy(t.GetPosition()), int(t.GetWidth(pcbnew.F_Cu)), int(t.GetDrillValue()), int(t.GetNetCode())) + return ("track", xy(t.GetStart()), xy(t.GetEnd()), int(t.GetWidth()), int(t.GetLayer()), int(t.GetNetCode())) + + +def _track_rebuild(board, rec): + """Put a recorded track or via back on the board (a new object).""" + if rec[0] == "via": + _, pos, w, drill, net = rec + v = pcbnew.PCB_VIA(board) + v.SetPosition(pcbnew.VECTOR2I(*pos)); v.SetWidth(w); v.SetDrill(drill); v.SetNetCode(net) + board.Add(v) + else: + _, a, b, w, layer, net = rec + t = pcbnew.PCB_TRACK(board) + t.SetStart(pcbnew.VECTOR2I(*a)); t.SetEnd(pcbnew.VECTOR2I(*b)); t.SetWidth(w); t.SetLayer(layer); t.SetNetCode(net) + board.Add(t) + + def _rip_and_route(board, net, layers, depth=3, keep=()): """Rip up the signal nets in the way, route net, then route them again (ripping up in turn if they need it, depth levels deep, never touching @@ -1079,18 +1153,23 @@ def _rip_and_route(board, net, layers, depth=3, keep=()): print(f" rip {net} (depth {depth}, keep {sorted(keep)}): crosses {crossed}", flush=True) if not crossed: return False - removed = [t for t in board.GetTracks() if t.GetNetname() in crossed] - for t in removed: + # undo restores every track as it was: a deeper rip-up may have re-routed + # other nets meanwhile, and putting back only this level's tracks would + # lay them over those new routes. It rebuilds what's missing from a record + # of each track rather than re-adding the removed objects (KiCad's Python + # binding doesn't survive that across nested removals). + snap = {t.m_Uuid.AsString(): _track_record(t) for t in board.GetTracks()} + for t in [t for t in board.GetTracks() if t.GetNetname() in crossed]: board.Remove(t) - before = {n: {t.m_Uuid.AsString() for t in board.GetTracks() if t.GetNetname() == n} - for n in [net] + sorted(crossed)} - def undo(): # take out what this attempt added, put back what it ripped up - for m, had in before.items(): - for t in [t for t in board.GetTracks() if t.GetNetname() == m and t.m_Uuid.AsString() not in had]: + def undo(): + now = {t.m_Uuid.AsString(): t for t in board.GetTracks()} + for u, t in now.items(): + if u not in snap: board.Remove(t) - for t in removed: - board.Add(t) + for u, rec in snap.items(): + if u not in now: + _track_rebuild(board, rec) board.BuildConnectivity() if _connect(board, net, layers) is None: diff --git a/hardware/kicad/pico-serial-line.kicad_dru b/hardware/kicad/pico-serial-line.kicad_dru index 8fdfb68..5dee53f 100644 --- a/hardware/kicad/pico-serial-line.kicad_dru +++ b/hardware/kicad/pico-serial-line.kicad_dru @@ -19,5 +19,5 @@ # catches anything else). The RJ11's unused contacts are on the line side: # they're not counted as USB-side copper. (rule "Isolation barrier" - (condition "(A.NetClass == 'Line' && B.NetClass != 'Line' && B.NetName != '' && B.NetName != 'unconnected-*') || (B.NetClass == 'Line' && A.NetClass != 'Line' && A.NetName != '' && A.NetName != 'unconnected-*')") + (condition "((A.NetClass == 'Line' || A.NetClass == 'TipRing') && B.NetClass != 'Line' && B.NetClass != 'TipRing' && B.NetName != '' && B.NetName != 'unconnected-*') || ((B.NetClass == 'Line' || B.NetClass == 'TipRing') && A.NetClass != 'Line' && A.NetClass != 'TipRing' && A.NetName != '' && A.NetName != 'unconnected-*')") (constraint clearance (min 2.5mm))) diff --git a/hardware/kicad/pico-serial-line.kicad_pro b/hardware/kicad/pico-serial-line.kicad_pro index 31800b2..fa126a9 100644 --- a/hardware/kicad/pico-serial-line.kicad_pro +++ b/hardware/kicad/pico-serial-line.kicad_pro @@ -255,7 +255,7 @@ }, { "bus_width": 12, - "clearance": 0.4, + "clearance": 0.25, "diff_pair_gap": 0.25, "diff_pair_via_gap": 0.25, "diff_pair_width": 0.2, @@ -266,8 +266,8 @@ "pcb_color": "rgba(0, 0, 0, 0.000)", "priority": -1, "schematic_color": "rgba(0, 0, 0, 0.000)", - "track_width": 0.3, - "via_diameter": 0.6, + "track_width": 0.25, + "via_diameter": 0.55, "via_drill": 0.3, "wire_width": 6 }, @@ -343,6 +343,24 @@ "via_drill": 0.3, "wire_width": 6 }, + { + "bus_width": 12, + "clearance": 0.4, + "diff_pair_gap": 0.25, + "diff_pair_via_gap": 0.25, + "diff_pair_width": 0.2, + "line_style": 0, + "microvia_diameter": 0.3, + "microvia_drill": 0.1, + "name": "TipRing", + "pcb_color": "rgba(0, 0, 0, 0.000)", + "priority": -1, + "schematic_color": "rgba(0, 0, 0, 0.000)", + "track_width": 0.3, + "via_diameter": 0.6, + "via_drill": 0.3, + "wire_width": 6 + }, { "bus_width": 12, "clearance": 0.15, @@ -423,12 +441,12 @@ "pattern": "/USB_*" }, { - "netclass": "Line", - "pattern": "/LS_*" + "netclass": "TipRing", + "pattern": "/LINE_*" }, { "netclass": "Line", - "pattern": "/LINE_*" + "pattern": "/LS_*" } ] }, diff --git a/hardware/kicad/pico-serial-line.kicad_sch b/hardware/kicad/pico-serial-line.kicad_sch index 3759b1c..433c31e 100644 --- a/hardware/kicad/pico-serial-line.kicad_sch +++ b/hardware/kicad/pico-serial-line.kicad_sch @@ -4414,7 +4414,7 @@ (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "923ff1d4-40b0-5ac3-8885-6738551ef2dd") ) - (label "LS_VP" + (label "LINE_VP" (at 444.5 229.87 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "dbd3216e-2432-59ee-baeb-263cd8a5b096") @@ -4469,14 +4469,14 @@ (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "67a17ccc-afcb-5a90-b0aa-b3c6fdac1b34") ) - (label "LS_VP" + (label "LINE_VP" (at 459.74 232.41 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "879ea2ad-4aa9-57e5-946e-edda95f91f35") ) (symbol (lib_id "Device:C") - (at 480.06 226.06 0) + (at 480.06 228.6 0) (unit 1) (exclude_from_sim no) (in_bom yes) @@ -4484,23 +4484,23 @@ (dnp no) (uuid "fc8d087b-16c7-59a1-9ab0-7a4e7941a99a") (property "Reference" "C29" - (at 483.87 225.425 0) - (effects (font (size 1.27 1.27)) (justify left)) - ) - (property "Value" "680pF Y2" (at 483.87 227.965 0) (effects (font (size 1.27 1.27)) (justify left)) ) + (property "Value" "680pF Y2" + (at 483.87 230.505 0) + (effects (font (size 1.27 1.27)) (justify left)) + ) (property "Footprint" "Capacitor_SMD:C_1808_4520Metric" - (at 480.06 226.06 0) + (at 480.06 228.6 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "Datasheet" "~" (at 480.06 226.06 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "Datasheet" "~" (at 480.06 228.6 0) (effects (font (size 1.27 1.27)) (hide yes))) (property "Description" "TIP/RING to ground, Y2 safety (Murata)" - (at 480.06 226.06 0) + (at 480.06 228.6 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "LCSC" "C524545" (at 480.06 226.06 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "LCSC" "C524545" (at 480.06 228.6 0) (effects (font (size 1.27 1.27)) (hide yes))) (pin "1" (uuid "f1c50f2c-1669-567a-b6f4-8fe5570124da")) (pin "2" (uuid "f645773e-528f-5be3-88b9-07d0ac8472d5")) (instances @@ -4510,34 +4510,34 @@ ) ) (wire - (pts (xy 480.06 222.25) (xy 480.06 219.71)) + (pts (xy 480.06 224.79) (xy 480.06 222.25)) (stroke (width 0) (type default)) - (uuid "99a89129-17b8-5f0b-907b-c4d332acb15c") + (uuid "f0056d44-613b-5f7c-bc70-57701ad115ed") ) (wire - (pts (xy 480.06 229.87) (xy 480.06 232.41)) + (pts (xy 480.06 232.41) (xy 480.06 234.95)) (stroke (width 0) (type default)) - (uuid "06a6ad10-562e-5553-8bfe-77b3babfd930") + (uuid "e0a6f5f4-c5d1-5b8f-9f9d-6691a28bf339") ) - (label "LS_TIP_M" - (at 480.06 219.71 90) + (label "LINE_TIP_M" + (at 480.06 222.25 90) (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "ffe52920-d27c-58c3-8039-6ce5393b01ca") ) (symbol (lib_id "power:GND") - (at 480.06 232.41 0) + (at 480.06 234.95 0) (unit 1) (exclude_from_sim no) (in_bom yes) (on_board yes) (dnp no) (uuid "1a91fec6-e5b0-59c0-8c88-e89a29af130e") - (property "Reference" "#PWR037" (at 480.06 232.41 0) (effects (font (size 1.27 1.27)) (hide yes))) - (property "Value" "GND" (at 480.06 236.01 90) (effects (font (size 1.27 1.27)) (justify right))) - (property "Footprint" "" (at 480.06 232.41 0) (effects (font (size 1.27 1.27)) (hide yes))) - (property "Datasheet" "" (at 480.06 232.41 0) (effects (font (size 1.27 1.27)) (hide yes))) - (property "Description" "" (at 480.06 232.41 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "Reference" "#PWR037" (at 480.06 234.95 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "Value" "GND" (at 480.06 238.55 90) (effects (font (size 1.27 1.27)) (justify right))) + (property "Footprint" "" (at 480.06 234.95 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "Datasheet" "" (at 480.06 234.95 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "Description" "" (at 480.06 234.95 0) (effects (font (size 1.27 1.27)) (hide yes))) (pin "1" (uuid "2a7147d9-ba21-5dfa-9fb0-8f6cea296beb")) (instances (project "pico-serial-line" @@ -4590,7 +4590,7 @@ (stroke (width 0) (type default)) (uuid "935b6323-6e7b-53c3-9382-09614832b08b") ) - (label "LS_RING_M" + (label "LINE_RING_M" (at 497.84 222.25 90) (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "81b28865-024c-5acf-ad5f-4772765591dc") @@ -4757,7 +4757,7 @@ (uuid "537265cf-99b8-58d0-a6d5-b89f59091702") (property "Reference" "D3" (at 478.79 165.1 0) (effects (font (size 1.27 1.27)) (justify left))) (property "Value" "MMBD3004S" - (at 478.79 185.42 0) + (at 478.79 187.96 0) (effects (font (size 1.27 1.27)) (justify left)) ) (property "Footprint" "Package_TO_SOT_SMD:SOT-23" @@ -4799,40 +4799,40 @@ (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "e5d9666e-6fdb-5c1f-87f3-4dd367923c39") ) - (label "LS_TIP_F" + (label "LINE_TIP_F" (at 482.6 175.26 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "e51c7fda-b02d-59da-b4ce-78b990910114") ) - (label "LS_VP" + (label "LINE_VP" (at 492.76 167.64 0) (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "67238e4a-ef2a-5785-ac4e-c9ed3b1f5f3f") ) (symbol (lib_id "Device:D_Dual_Series_AKC") - (at 520.7 167.64 0) + (at 523.24 167.64 0) (unit 1) (exclude_from_sim no) (in_bom yes) (on_board yes) (dnp no) (uuid "e04475c4-46af-51e2-bd1a-0800cf665923") - (property "Reference" "D4" (at 516.89 165.1 0) (effects (font (size 1.27 1.27)) (justify left))) + (property "Reference" "D4" (at 519.43 165.1 0) (effects (font (size 1.27 1.27)) (justify left))) (property "Value" "MMBD3004S" - (at 516.89 186.69 0) + (at 519.43 187.96 0) (effects (font (size 1.27 1.27)) (justify left)) ) (property "Footprint" "Package_TO_SOT_SMD:SOT-23" - (at 520.7 167.64 0) + (at 523.24 167.64 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "Datasheet" "~" (at 520.7 167.64 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "Datasheet" "~" (at 523.24 167.64 0) (effects (font (size 1.27 1.27)) (hide yes))) (property "Description" "two 350 V diodes in series" - (at 520.7 167.64 0) + (at 523.24 167.64 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "LCSC" "C7436538" (at 520.7 167.64 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "LCSC" "C7436538" (at 523.24 167.64 0) (effects (font (size 1.27 1.27)) (hide yes))) (pin "1" (uuid "a2015f0a-3737-5205-ae57-0a99ccc0d48f")) (pin "2" (uuid "f89bf438-bad4-5396-8034-cab7af3edfce")) (pin "3" (uuid "f35df1cc-23b7-5661-8fd4-6907b9bf2d09")) @@ -4843,32 +4843,32 @@ ) ) (wire - (pts (xy 513.08 167.64) (xy 510.54 167.64)) + (pts (xy 515.62 167.64) (xy 513.08 167.64)) (stroke (width 0) (type default)) - (uuid "bd698416-ff72-5d30-8cee-2040bbc0d055") + (uuid "d2ee28a7-40c2-511b-90c6-7b913d2ee47e") ) (wire - (pts (xy 520.7 172.72) (xy 520.7 175.26)) + (pts (xy 523.24 172.72) (xy 523.24 175.26)) (stroke (width 0) (type default)) - (uuid "907230b9-94c5-5669-8e5a-2a7fde09709c") + (uuid "7f3a22d4-c517-5153-abc5-adaa29bed625") ) (wire - (pts (xy 528.32 167.64) (xy 530.86 167.64)) + (pts (xy 530.86 167.64) (xy 533.4 167.64)) (stroke (width 0) (type default)) - (uuid "abe8fe45-f716-5825-8a24-86c0771a377b") + (uuid "543fcbfa-554d-552d-a4a3-2beb04dbf81f") ) (label "LS_IGND" - (at 510.54 167.64 180) + (at 513.08 167.64 180) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "1f5eab0a-7dd1-5c3e-a8ef-84f6868c7068") ) - (label "LS_RING_F" - (at 520.7 175.26 270) + (label "LINE_RING_F" + (at 523.24 175.26 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "756ee8f0-8ba1-537b-bf03-11d1530f956e") ) - (label "LS_VP" - (at 530.86 167.64 0) + (label "LINE_VP" + (at 533.4 167.64 0) (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "c134ddf2-dd34-5315-9d58-10c9763b90a0") ) @@ -5069,25 +5069,25 @@ ) (symbol (lib_id "Device:Fuse") - (at 541.02 177.8 0) + (at 546.1 177.8 0) (unit 1) (exclude_from_sim no) (in_bom yes) (on_board yes) (dnp no) (uuid "bd747c68-e515-5504-975f-f0c2ce3909eb") - (property "Reference" "F2" (at 543.56 177.165 0) (effects (font (size 1.27 1.27)) (justify left))) - (property "Value" "1.25A" (at 543.56 179.705 0) (effects (font (size 1.27 1.27)) (justify left))) + (property "Reference" "F2" (at 548.64 177.165 0) (effects (font (size 1.27 1.27)) (justify left))) + (property "Value" "1.25A" (at 548.64 179.705 0) (effects (font (size 1.27 1.27)) (justify left))) (property "Footprint" "pico-serial:Fuse_Littelfuse_0461" - (at 541.02 177.8 0) + (at 546.1 177.8 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "Datasheet" "~" (at 541.02 177.8 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "Datasheet" "~" (at 546.1 177.8 0) (effects (font (size 1.27 1.27)) (hide yes))) (property "Description" "Littelfuse TeleLink 04611.25ER, 600 V" - (at 541.02 177.8 0) + (at 546.1 177.8 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "LCSC" "C99554" (at 541.02 177.8 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "LCSC" "C99554" (at 546.1 177.8 0) (effects (font (size 1.27 1.27)) (hide yes))) (pin "1" (uuid "8b2a41cf-ea4d-5b8f-a34f-8ee4c2cf8d34")) (pin "2" (uuid "6cb8c979-1466-5a85-8f22-0a921bd5beb1")) (instances @@ -5097,28 +5097,28 @@ ) ) (wire - (pts (xy 541.02 173.99) (xy 541.02 171.45)) + (pts (xy 546.1 173.99) (xy 546.1 171.45)) (stroke (width 0) (type default)) - (uuid "28557ff3-409b-5f6f-b286-c9714b7eb445") + (uuid "26cc670b-cb21-5de5-85ad-c8c1cd3bf246") ) (wire - (pts (xy 541.02 181.61) (xy 541.02 184.15)) + (pts (xy 546.1 181.61) (xy 546.1 184.15)) (stroke (width 0) (type default)) - (uuid "370bfd58-8bc7-5ab7-995b-0c793efeaba5") + (uuid "627485c1-6ff6-56c4-82e4-89cea02053cd") ) (label "LINE_TIP" - (at 541.02 171.45 90) + (at 546.1 171.45 90) (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "0f92154a-c6ae-54f0-b636-e69a7f9fb667") ) - (label "LS_TIP_P" - (at 541.02 184.15 270) + (label "LINE_TIP_P" + (at 546.1 184.15 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "b65bbb09-614d-5cb9-8d1d-900b83d74fbf") ) (symbol (lib_id "Device:FerriteBead") - (at 556.26 177.8 0) + (at 561.34 180.34 0) (unit 1) (exclude_from_sim no) (in_bom yes) @@ -5126,23 +5126,23 @@ (dnp no) (uuid "30f67f21-7b3e-542a-901c-0ad69129a9d0") (property "Reference" "FB1" - (at 560.07 177.165 0) + (at 565.15 179.705 0) (effects (font (size 1.27 1.27)) (justify left)) ) (property "Value" "600R@100MHz" - (at 560.07 179.705 0) + (at 565.15 182.245 0) (effects (font (size 1.27 1.27)) (justify left)) ) (property "Footprint" "Inductor_SMD:L_0603_1608Metric" - (at 556.26 177.8 0) + (at 561.34 180.34 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "Datasheet" "~" (at 556.26 177.8 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "Datasheet" "~" (at 561.34 180.34 0) (effects (font (size 1.27 1.27)) (hide yes))) (property "Description" "Murata BLM18AG601SN1D, 200 mA" - (at 556.26 177.8 0) + (at 561.34 180.34 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "LCSC" "C19330" (at 556.26 177.8 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "LCSC" "C19330" (at 561.34 180.34 0) (effects (font (size 1.27 1.27)) (hide yes))) (pin "1" (uuid "110855c9-8bc4-59ec-9786-f9f0b43120e4")) (pin "2" (uuid "2b4d893b-f8f1-5d38-adac-1545670ea48f")) (instances @@ -5152,28 +5152,28 @@ ) ) (wire - (pts (xy 556.26 173.99) (xy 556.26 171.45)) + (pts (xy 561.34 176.53) (xy 561.34 173.99)) (stroke (width 0) (type default)) - (uuid "a6791616-d7c6-53fa-a17f-42bacf57f827") + (uuid "7b557509-41ad-53d5-8a14-201511a4f791") ) (wire - (pts (xy 556.26 181.61) (xy 556.26 184.15)) + (pts (xy 561.34 184.15) (xy 561.34 186.69)) (stroke (width 0) (type default)) - (uuid "a7e8225e-1668-5769-b6e1-c7de3d92cc35") + (uuid "d919da54-1029-546d-8af5-b41c226c810b") ) - (label "LS_TIP_F" - (at 556.26 171.45 90) + (label "LINE_TIP_F" + (at 561.34 173.99 90) (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "5b9b1495-98dc-584e-af7a-d944b6ff4a0b") ) - (label "LS_TIP_M" - (at 556.26 184.15 270) + (label "LINE_TIP_M" + (at 561.34 186.69 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "53ea0fb7-0e14-5ab3-bcdc-cc915aeef556") ) (symbol (lib_id "Device:FerriteBead") - (at 579.12 180.34 0) + (at 584.2 182.88 0) (unit 1) (exclude_from_sim no) (in_bom yes) @@ -5181,23 +5181,23 @@ (dnp no) (uuid "e3abffbd-dbca-5f01-abde-e334539f9179") (property "Reference" "FB2" - (at 582.93 179.705 0) + (at 588.01 182.245 0) (effects (font (size 1.27 1.27)) (justify left)) ) (property "Value" "600R@100MHz" - (at 582.93 182.245 0) + (at 588.01 184.785 0) (effects (font (size 1.27 1.27)) (justify left)) ) (property "Footprint" "Inductor_SMD:L_0603_1608Metric" - (at 579.12 180.34 0) + (at 584.2 182.88 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "Datasheet" "~" (at 579.12 180.34 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "Datasheet" "~" (at 584.2 182.88 0) (effects (font (size 1.27 1.27)) (hide yes))) (property "Description" "Murata BLM18AG601SN1D, 200 mA" - (at 579.12 180.34 0) + (at 584.2 182.88 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "LCSC" "C19330" (at 579.12 180.34 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "LCSC" "C19330" (at 584.2 182.88 0) (effects (font (size 1.27 1.27)) (hide yes))) (pin "1" (uuid "7e258eb5-1faa-56f6-9218-2fc723203650")) (pin "2" (uuid "730e0412-8f80-50ed-803a-faebb725e1fc")) (instances @@ -5207,22 +5207,22 @@ ) ) (wire - (pts (xy 579.12 176.53) (xy 579.12 173.99)) + (pts (xy 584.2 179.07) (xy 584.2 176.53)) (stroke (width 0) (type default)) - (uuid "b1c41b7f-4267-52dd-baeb-6f39ca4ae785") + (uuid "d95c8f3c-8a86-5d24-92f0-d33a46513d13") ) (wire - (pts (xy 579.12 184.15) (xy 579.12 186.69)) + (pts (xy 584.2 186.69) (xy 584.2 189.23)) (stroke (width 0) (type default)) - (uuid "c460878c-a271-5009-9335-6c4fbe1124c6") + (uuid "d343b201-5e7c-5bf4-b516-12043acdecaa") ) - (label "LS_RING_F" - (at 579.12 173.99 90) + (label "LINE_RING_F" + (at 584.2 176.53 90) (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "50e66374-5b52-5bb1-846f-a7ccc85ddeda") ) - (label "LS_RING_M" - (at 579.12 186.69 270) + (label "LINE_RING_M" + (at 584.2 189.23 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "e102aea9-6e90-51b6-8421-30fb63ceec18") ) @@ -5440,7 +5440,7 @@ (no_connect (at 360.68 182.88) (uuid "28711925-23ec-53f8-98af-c5327908b984")) (symbol (lib_id "Transistor_BJT:MMBTA42") - (at 528.32 226.06 0) + (at 528.32 228.6 0) (unit 1) (exclude_from_sim no) (in_bom yes) @@ -5448,20 +5448,20 @@ (dnp no) (uuid "d74cff4c-45fa-5c97-b1aa-cdca17c815f8") (property "Reference" "Q1" (at 529.59 212.09 0) (effects (font (size 1.27 1.27)))) - (property "Value" "MMBTA42" (at 529.59 240.03 0) (effects (font (size 1.27 1.27)))) + (property "Value" "MMBTA42" (at 529.59 242.57 0) (effects (font (size 1.27 1.27)))) (property "Footprint" "Package_TO_SOT_SMD:SOT-23" - (at 528.32 226.06 0) + (at 528.32 228.6 0) (effects (font (size 1.27 1.27)) (hide yes)) ) (property "Datasheet" "https://www.onsemi.com/pub/Collateral/MMBTA42LT1-D.PDF" - (at 528.32 226.06 0) + (at 528.32 228.6 0) (effects (font (size 1.27 1.27)) (hide yes)) ) (property "Description" "NPN 300 V" - (at 528.32 226.06 0) + (at 528.32 228.6 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "LCSC" "C94389" (at 528.32 226.06 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "LCSC" "C94389" (at 528.32 228.6 0) (effects (font (size 1.27 1.27)) (hide yes))) (pin "1" (uuid "205738a1-ef3b-5cae-8003-30f0b17aebba")) (pin "2" (uuid "ee3acc4b-0bbb-59c6-92b7-83ea4c81f18c")) (pin "3" (uuid "367e328a-6f48-557f-ac94-5e5d6c9931d7")) @@ -5472,32 +5472,32 @@ ) ) (wire - (pts (xy 523.24 226.06) (xy 520.7 226.06)) + (pts (xy 523.24 228.6) (xy 520.7 228.6)) (stroke (width 0) (type default)) - (uuid "7e8f4957-739d-58bf-b313-df333f8751bb") + (uuid "4336e28e-9113-55b5-b175-acc750406cf3") ) (wire - (pts (xy 530.86 220.98) (xy 530.86 218.44)) + (pts (xy 530.86 223.52) (xy 530.86 220.98)) (stroke (width 0) (type default)) - (uuid "058b15f8-b9c9-5949-880a-e192a907d939") + (uuid "2993e695-d68c-5bdf-a999-224d1256a8ce") ) (wire - (pts (xy 530.86 231.14) (xy 530.86 233.68)) + (pts (xy 530.86 233.68) (xy 530.86 236.22)) (stroke (width 0) (type default)) - (uuid "2fe30022-7405-582d-84bf-a4eccd1b5b7c") + (uuid "f5c3ee3a-11be-5c5e-a5c2-fd9c54aebb49") ) (label "LS_HB" - (at 520.7 226.06 180) + (at 520.7 228.6 180) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "432ddd18-7ae8-5b95-a026-d5c991c13bfb") ) - (label "LS_VP" - (at 530.86 218.44 90) + (label "LINE_VP" + (at 530.86 220.98 90) (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "0b3ec990-5e37-514c-9e35-3950dafc9f99") ) (label "LS_E" - (at 530.86 233.68 270) + (at 530.86 236.22 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "8c1135c8-3f79-5543-9787-c6e6c162eedd") ) @@ -5511,7 +5511,7 @@ (dnp no) (uuid "ab066b1f-a4c4-593c-9cfb-d56eed4ce27e") (property "Reference" "Q2" (at 552.45 212.09 0) (effects (font (size 1.27 1.27)))) - (property "Value" "MMBTA92" (at 552.45 240.03 0) (effects (font (size 1.27 1.27)))) + (property "Value" "MMBTA92" (at 552.45 242.57 0) (effects (font (size 1.27 1.27)))) (property "Footprint" "Package_TO_SOT_SMD:SOT-23" (at 551.18 226.06 0) (effects (font (size 1.27 1.27)) (hide yes)) @@ -5559,7 +5559,7 @@ (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "5095bea0-e26e-51e3-b246-82c97ce61b48") ) - (label "LS_VP" + (label "LINE_VP" (at 553.72 233.68 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "884a1240-d37a-5042-9616-fd0d7908f348") @@ -7135,7 +7135,7 @@ (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "b3ee577a-ef5e-5af1-89c5-60b5e1476965") ) - (label "LS_VP" + (label "LINE_VP" (at 502.92 267.97 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "aa994b99-090c-5400-818a-e688cf8b5330") @@ -7187,7 +7187,7 @@ (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "382beafb-b5de-5153-af0e-e814d0f022e8") ) - (label "LS_TIP_F" + (label "LINE_TIP_F" (at 515.62 267.97 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "3fbb7032-8685-51c0-b790-9742d49d21cf") @@ -7239,14 +7239,14 @@ (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "e75438cd-b88c-5911-a02a-2ce80634917d") ) - (label "LS_RING_F" + (label "LINE_RING_F" (at 525.78 267.97 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "3cfad069-f25c-5865-b994-b63b2c04e3aa") ) (symbol (lib_id "Device:R") - (at 535.94 264.16 0) + (at 535.94 266.7 0) (unit 1) (exclude_from_sim no) (in_bom yes) @@ -7254,20 +7254,20 @@ (dnp no) (uuid "a20b00d4-add4-5ca5-9810-f4b0ccc441ce") (property "Reference" "R27" - (at 538.48 263.525 0) + (at 538.48 266.065 0) (effects (font (size 1.27 1.27)) (justify left)) ) - (property "Value" "0R" (at 538.48 266.065 0) (effects (font (size 1.27 1.27)) (justify left))) + (property "Value" "0R" (at 538.48 268.605 0) (effects (font (size 1.27 1.27)) (justify left))) (property "Footprint" "Resistor_SMD:R_0402_1005Metric" - (at 535.94 264.16 0) + (at 535.94 266.7 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "Datasheet" "~" (at 535.94 264.16 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "Datasheet" "~" (at 535.94 266.7 0) (effects (font (size 1.27 1.27)) (hide yes))) (property "Description" "Resistor" - (at 535.94 264.16 0) + (at 535.94 266.7 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "LCSC" "C17168" (at 535.94 264.16 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "LCSC" "C17168" (at 535.94 266.7 0) (effects (font (size 1.27 1.27)) (hide yes))) (pin "1" (uuid "4830074a-ae27-55a3-a9a3-5607309ad4a0")) (pin "2" (uuid "46c15edb-8925-5966-8d5c-eca6b357e6bb")) (instances @@ -7277,28 +7277,28 @@ ) ) (wire - (pts (xy 535.94 260.35) (xy 535.94 257.81)) + (pts (xy 535.94 262.89) (xy 535.94 260.35)) (stroke (width 0) (type default)) - (uuid "c0ed6fbb-63d1-595c-bc99-c9d181d26375") + (uuid "674c1491-0816-599e-ae6e-115e71aae59a") ) (wire - (pts (xy 535.94 267.97) (xy 535.94 270.51)) + (pts (xy 535.94 270.51) (xy 535.94 273.05)) (stroke (width 0) (type default)) - (uuid "6a493dda-f1c1-5a5c-b193-caf89b488b13") + (uuid "42ef6f93-44ca-55af-a710-b5dc0b5bbc7d") ) - (label "LS_TIP_M" - (at 535.94 257.81 90) + (label "LINE_TIP_M" + (at 535.94 260.35 90) (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "c8802915-8246-586d-8c1d-b967f231f57d") ) - (label "LS_TIP_P" - (at 535.94 270.51 270) + (label "LINE_TIP_P" + (at 535.94 273.05 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "d8f39674-0e3d-590f-9d51-4c57ae79290e") ) (symbol (lib_id "Device:R") - (at 546.1 264.16 0) + (at 546.1 266.7 0) (unit 1) (exclude_from_sim no) (in_bom yes) @@ -7306,20 +7306,20 @@ (dnp no) (uuid "9be0f8af-f72f-5288-8980-ee644f452cb8") (property "Reference" "R28" - (at 548.64 263.525 0) + (at 548.64 266.065 0) (effects (font (size 1.27 1.27)) (justify left)) ) - (property "Value" "0R" (at 548.64 266.065 0) (effects (font (size 1.27 1.27)) (justify left))) + (property "Value" "0R" (at 548.64 268.605 0) (effects (font (size 1.27 1.27)) (justify left))) (property "Footprint" "Resistor_SMD:R_0402_1005Metric" - (at 546.1 264.16 0) + (at 546.1 266.7 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "Datasheet" "~" (at 546.1 264.16 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "Datasheet" "~" (at 546.1 266.7 0) (effects (font (size 1.27 1.27)) (hide yes))) (property "Description" "Resistor" - (at 546.1 264.16 0) + (at 546.1 266.7 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "LCSC" "C17168" (at 546.1 264.16 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "LCSC" "C17168" (at 546.1 266.7 0) (effects (font (size 1.27 1.27)) (hide yes))) (pin "1" (uuid "2466d499-2e78-5784-a0b8-0f47994d216b")) (pin "2" (uuid "324e9113-a693-59b7-93e1-0b88e67b2b1b")) (instances @@ -7329,22 +7329,22 @@ ) ) (wire - (pts (xy 546.1 260.35) (xy 546.1 257.81)) + (pts (xy 546.1 262.89) (xy 546.1 260.35)) (stroke (width 0) (type default)) - (uuid "004f5648-f165-550c-8f00-13da0e59b0aa") + (uuid "fdb8aa9b-b81e-5d64-bf52-49df39730491") ) (wire - (pts (xy 546.1 267.97) (xy 546.1 270.51)) + (pts (xy 546.1 270.51) (xy 546.1 273.05)) (stroke (width 0) (type default)) - (uuid "06828819-9af0-5837-aee0-c4bbcdb32394") + (uuid "221b9c82-91d6-5002-991f-2082cc057293") ) - (label "LS_RING_M" - (at 546.1 257.81 90) + (label "LINE_RING_M" + (at 546.1 260.35 90) (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "e404b05c-ae68-54f7-bf38-d0fdea939462") ) (label "LINE_RING" - (at 546.1 270.51 270) + (at 546.1 273.05 270) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "4e419c1c-170a-51ef-bb98-afadc9a389d6") ) @@ -7456,25 +7456,25 @@ ) (symbol (lib_id "Device:D_TVS") - (at 571.5 251.46 0) + (at 574.04 251.46 0) (unit 1) (exclude_from_sim no) (in_bom yes) (on_board yes) (dnp no) (uuid "3b4b488b-cb13-5b84-9509-aad4c184b8b6") - (property "Reference" "RV1" (at 571.5 248.92 0) (effects (font (size 1.27 1.27)))) - (property "Value" "P3100SC" (at 571.5 254 0) (effects (font (size 1.27 1.27)))) + (property "Reference" "RV1" (at 574.04 248.92 0) (effects (font (size 1.27 1.27)))) + (property "Value" "P3100SC" (at 574.04 254 0) (effects (font (size 1.27 1.27)))) (property "Footprint" "Diode_SMD:D_SMB" - (at 571.5 251.46 0) + (at 574.04 251.46 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "Datasheet" "~" (at 571.5 251.46 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "Datasheet" "~" (at 574.04 251.46 0) (effects (font (size 1.27 1.27)) (hide yes))) (property "Description" "Littelfuse P3100SCLRP, 275 V, 250 A 8/20" - (at 571.5 251.46 0) + (at 574.04 251.46 0) (effects (font (size 1.27 1.27)) (hide yes)) ) - (property "LCSC" "C151191" (at 571.5 251.46 0) (effects (font (size 1.27 1.27)) (hide yes))) + (property "LCSC" "C151191" (at 574.04 251.46 0) (effects (font (size 1.27 1.27)) (hide yes))) (pin "1" (uuid "8e71416f-26a1-56f1-aff2-95b856d7675d")) (pin "2" (uuid "e97a80c5-fa76-5e2b-8fd9-b360d201695c")) (instances @@ -7484,22 +7484,22 @@ ) ) (wire - (pts (xy 567.69 251.46) (xy 565.15 251.46)) + (pts (xy 570.23 251.46) (xy 567.69 251.46)) (stroke (width 0) (type default)) - (uuid "85984e4f-34b4-53ce-9618-24394f116ada") + (uuid "95bc6f4c-d7f6-5ebb-a918-3a4941677aab") ) (wire - (pts (xy 575.31 251.46) (xy 577.85 251.46)) + (pts (xy 577.85 251.46) (xy 580.39 251.46)) (stroke (width 0) (type default)) - (uuid "e636722a-a159-50ff-88de-e7f2e0920786") + (uuid "2e8ac67f-9f14-5477-8728-62ac4af2bed6") ) - (label "LS_TIP_P" - (at 565.15 251.46 180) + (label "LINE_TIP_P" + (at 567.69 251.46 180) (effects (font (size 1.27 1.27)) (justify right bottom)) (uuid "3294a121-7d11-56d9-9fed-bc04274c0481") ) (label "LINE_RING" - (at 577.85 251.46 0) + (at 580.39 251.46 0) (effects (font (size 1.27 1.27)) (justify left bottom)) (uuid "dd84818f-a52b-57df-8aac-65b26381cb5d") ) diff --git a/hardware/kicad/preview-line.svg b/hardware/kicad/preview-line.svg index 9d8762c..48ab127 100644 --- a/hardware/kicad/preview-line.svg +++ b/hardware/kicad/preview-line.svg @@ -374,7 +374,7 @@ LS_Q2B -LS_VP +LINE_VP @@ -384,19 +384,19 @@ LS_IGND -LS_VP - - - - -C29 -680pF Y2 - - -LS_TIP_M - - -GND +LINE_VP + + + + +C29 +680pF Y2 + + +LINE_TIP_M + + +GND @@ -405,7 +405,7 @@ 680pF Y2 -LS_RING_M +LINE_RING_M GND @@ -452,35 +452,35 @@ 2 D3 -MMBD3004S +MMBD3004S LS_IGND -LS_TIP_F -LS_VP - - - - - - - - - -1 - -3 - -2 -D4 -MMBD3004S - - - -LS_IGND -LS_RING_F -LS_VP +LINE_TIP_F +LINE_VP + + + + + + + + + +1 + +3 + +2 +D4 +MMBD3004S + + + +LS_IGND +LINE_RING_F +LINE_VP @@ -526,38 +526,38 @@ VBUS - - - - -F2 -1.25A - - -LINE_TIP -LS_TIP_P - - - - - -FB1 -600R@100MHz - - -LS_TIP_F -LS_TIP_M - - - - - -FB2 -600R@100MHz - - -LS_RING_F -LS_RING_M + + + + +F2 +1.25A + + +LINE_TIP +LINE_TIP_P + + + + + +FB1 +600R@100MHz + + +LINE_TIP_F +LINE_TIP_M + + + + + +FB2 +600R@100MHz + + +LINE_RING_F +LINE_RING_M @@ -672,26 +672,26 @@ - - - - - - - -1 - -3 - -2 + + + + + + + +1 + +3 + +2 Q1 -MMBTA42 - - - -LS_HB -LS_VP -LS_E +MMBTA42 + + + +LS_HB +LINE_VP +LS_E @@ -705,13 +705,13 @@ 2 Q2 -MMBTA92 +MMBTA92 LS_Q2B LS_HB -LS_VP +LINE_VP @@ -1015,7 +1015,7 @@ LS_Q2B -LS_VP +LINE_VP @@ -1024,7 +1024,7 @@ LS_RNG1 -LS_TIP_F +LINE_TIP_F @@ -1033,25 +1033,25 @@ LS_RNG2 -LS_RING_F - - - -R27 -0R - - -LS_TIP_M -LS_TIP_P - - - -R28 -0R - - -LS_RING_M -LINE_RING +LINE_RING_F + + + +R27 +0R + + +LINE_TIP_M +LINE_TIP_P + + + +R28 +0R + + +LINE_RING_M +LINE_RING @@ -1070,17 +1070,17 @@ LED_RI LED_RI_A - - - - - -RV1 -P3100SC - - -LS_TIP_P -LINE_RING + + + + + +RV1 +P3100SC + + +LINE_TIP_P +LINE_RING diff --git a/hardware/netlist/NETLIST-line.md b/hardware/netlist/NETLIST-line.md index 557f811..88d1fde 100644 --- a/hardware/netlist/NETLIST-line.md +++ b/hardware/netlist/NETLIST-line.md @@ -38,7 +38,13 @@ Generated by `build_netlist.py`; edit that script, not this file. | `LED_RI` | R30.1, U1.35 (GPIO23) | | `LED_RI_A` | D6.2 (A), R30.2 | | `LINE_RING` | J2.3 (RING), R28.2, RV1.2 | +| `LINE_RING_F` | D4.3 (K/A), FB2.1, R26.2 | +| `LINE_RING_M` | C30.1, FB2.2, R28.1 | | `LINE_TIP` | F2.1, J2.4 (TIP) | +| `LINE_TIP_F` | D3.3 (K/A), FB1.1, R25.2 | +| `LINE_TIP_M` | C29.1, FB1.2, R27.1 | +| `LINE_TIP_P` | F2.2, R27.2, RV1.1 | +| `LINE_VP` | C27.2, C28.2, D3.2 (K), D4.2 (K), Q1.3 (C), Q2.2 (E), R24.2 | | `LS_C1B` | C21.2, U6.5 (C1B) | | `LS_C2B` | C22.2, U6.6 (C2B) | | `LS_DCT` | R16.1, U6.2 (DCT) | @@ -54,16 +60,10 @@ Generated by `build_netlist.py`; edit that script, not this file. | `LS_QB` | Q4.1 (B), R22.1, U6.13 (QB) | | `LS_QE` | D2.2 (A), Q3.2 (E), U6.1 (QE) | | `LS_QE2` | Q4.2 (E), U6.12 (QE2) | -| `LS_RING_F` | D4.3 (K/A), FB2.1, R26.2 | -| `LS_RING_M` | C30.1, FB2.2, R28.1 | | `LS_RNG1` | R25.1, U6.8 (RNG1) | | `LS_RNG2` | R26.1, U6.9 (RNG2) | | `LS_RX` | C23.2, U6.3 (RX) | -| `LS_TIP_F` | D3.3 (K/A), FB1.1, R25.2 | -| `LS_TIP_M` | C29.1, FB1.2, R27.1 | -| `LS_TIP_P` | F2.2, R27.2, RV1.1 | | `LS_TOP` | C23.1, C26.1, R16.2, R18.1 | -| `LS_VP` | C27.2, C28.2, D3.2 (K), D4.2 (K), Q1.3 (C), Q2.2 (E), R24.2 | | `LS_VREG` | C24.1, U6.7 (VREG) | | `LS_VREG2` | C25.1, U6.10 (VREG2) | | `QSPI_SCLK` | U1.52 (QSPI_SCLK), U2.6 (CLK) | diff --git a/hardware/netlist/build_netlist.py b/hardware/netlist/build_netlist.py index a1c4c11..0bbfbf4 100644 --- a/hardware/netlist/build_netlist.py +++ b/hardware/netlist/build_netlist.py @@ -465,7 +465,8 @@ if LINE: lp("C", "33pF Y2", "DAA_C1A_R", "LS_C1B") lp("C", "33pF Y2", "DAA_C2A_R", "LS_C2B") - block("line") # line side: its own ground (IGND), no plane + block("line") # line side: its own ground (IGND), no plane. LINE_*: nets at the line's voltage + # (TIP, RING and the bridge's +); LS_*: the low-voltage side of the Si3018 UL = lp("U", "Si3018", ref="U6", pins=SI3018, assembly="hand") for pin, net in (("1", "LS_QE"), ("2", "LS_DCT"), ("3", "LS_RX"), ("4", "LS_IB"), ("5", "LS_C1B"), ("6", "LS_C2B"), ("7", "LS_VREG"), ("8", "LS_RNG1"), ("9", "LS_RNG2"), ("10", "LS_VREG2"), ("11", "LS_IGND"), @@ -483,36 +484,36 @@ if LINE: lp("R", "73.2R 0.5W", "LS_E", "LS_Q5C") # R11 lp("R", "2.49k 0.5W", "LS_QB", "LS_HB") # R4 lp("R", "100k", "LS_E", "LS_HB") # R5 - lp("C", "10nF", "LS_Q2B", "LS_VP") # C10 - lp("R", "100k", "LS_Q2B", "LS_VP") # R6 - lp("C", "10nF 250V", "LS_IGND", "LS_VP") # C3 - lp("R", "20M", "LS_RNG1", "LS_TIP_F") # R7, caller ID - lp("R", "20M", "LS_RNG2", "LS_RING_F") # R8, caller ID + lp("C", "10nF", "LS_Q2B", "LINE_VP") # C10 + lp("R", "100k", "LS_Q2B", "LINE_VP") # R6 + lp("C", "10nF 250V", "LS_IGND", "LINE_VP") # C3 + lp("R", "20M", "LS_RNG1", "LINE_TIP_F") # R7, caller ID + lp("R", "20M", "LS_RNG2", "LINE_RING_F") # R8, caller ID z = lp("D", "43V zener", pins=DIODE) # Z1 conn("LS_HB", (z, "1")); conn("LS_QE", (z, "2")) - for key, b, e, c in (("MMBTA42", "LS_HB", "LS_E", "LS_VP"), # Q1 - ("MMBTA92", "LS_Q2B", "LS_VP", "LS_HB"), # Q2 (PNP) + for key, b, e, c in (("MMBTA42", "LS_HB", "LS_E", "LINE_VP"), # Q1 + ("MMBTA92", "LS_Q2B", "LINE_VP", "LS_HB"), # Q2 (PNP) ("MMBTA42", "LS_DCT2", "LS_QE", "LS_Q2B"), # Q3 ("MMBT2484", "LS_QB", "LS_QE2", "LS_E"), # Q4 ("MMBT2484", "LS_Q5B", "LS_DCT3", "LS_Q5C")): # Q5 q = lp("Q", key, pins=BJT) conn(b, (q, "1")); conn(e, (q, "2")); conn(c, (q, "3")) # the bridge: two dual diodes, each pair's middle on one wire of the line - for wire in ("LS_TIP_F", "LS_RING_F"): + for wire in ("LINE_TIP_F", "LINE_RING_F"): d = lp("D", "dual diode", pins=DUALDIODE) - conn("LS_IGND", (d, "1")); conn("LS_VP", (d, "2")); conn(wire, (d, "3")) - lp("FB", "ferrite", "LS_TIP_F", "LS_TIP_M") # FB1 - lp("FB", "ferrite", "LS_RING_F", "LS_RING_M") # FB2 - lp("C", "680pF Y2", "LS_TIP_M", GND) # C8: across the barrier, to the USB ground - lp("C", "680pF Y2", "LS_RING_M", GND) # C9 - lp("R", "0R line", "LS_TIP_M", "LS_TIP_P") # R15 - lp("R", "0R line", "LS_RING_M", "LS_RING_P") # R16 - lp("RV", "sidactor", "LS_TIP_P", "LS_RING_P") # RV1, surge - lp("F", "telecom fuse", "LINE_TIP", "LS_TIP_P") # power cross (datasheet appendix, Figure 37) + conn("LS_IGND", (d, "1")); conn("LINE_VP", (d, "2")); conn(wire, (d, "3")) + lp("FB", "ferrite", "LINE_TIP_F", "LINE_TIP_M") # FB1 + lp("FB", "ferrite", "LINE_RING_F", "LINE_RING_M") # FB2 + lp("C", "680pF Y2", "LINE_TIP_M", GND) # C8: across the barrier, to the USB ground + lp("C", "680pF Y2", "LINE_RING_M", GND) # C9 + lp("R", "0R line", "LINE_TIP_M", "LINE_TIP_P") # R15 + lp("R", "0R line", "LINE_RING_M", "LINE_RING_P") # R16 + lp("RV", "sidactor", "LINE_TIP_P", "LINE_RING_P") # RV1, surge + lp("F", "telecom fuse", "LINE_TIP", "LINE_TIP_P") # power cross (datasheet appendix, Figure 37) JL = lp("J", "RJ11", ref="J2", pins=RJ, assembly="hand") # through hole conn("LINE_RING", (JL, "3")); conn("LINE_TIP", (JL, "4")) nc(JL, "1", "2", "5", "6") - nets["LINE_RING"] += nets.pop("LS_RING_P") # no fuse on RING: the jack's wire itself + nets["LINE_RING"] += nets.pop("LINE_RING_P") # no fuse on RING: the jack's wire itself # GPIOs the stick doesn't use (22, 23: LEDs; 28: test pad; 29: VBUS sense) nc(U1, *[GPIO_PIN[g] for g in (0, 1, *range(12, 21), 24, 25, 26, 27)]) diff --git a/hardware/netlist/pico-serial-line.net b/hardware/netlist/pico-serial-line.net index 2e702eb..d224ac0 100644 --- a/hardware/netlist/pico-serial-line.net +++ b/hardware/netlist/pico-serial-line.net @@ -296,40 +296,74 @@ (node (ref "R28") (pin "2") (pinfunction "~") (pintype "passive")) (node (ref "RV1") (pin "2") (pinfunction "~") (pintype "passive")) ) - (net (code "29") (name "/LINE_TIP") + (net (code "29") (name "/LINE_RING_F") + (node (ref "D4") (pin "3") (pinfunction "K/A") (pintype "passive")) + (node (ref "FB2") (pin "1") (pinfunction "~") (pintype "passive")) + (node (ref "R26") (pin "2") (pinfunction "~") (pintype "passive")) + ) + (net (code "30") (name "/LINE_RING_M") + (node (ref "C30") (pin "1") (pinfunction "~") (pintype "passive")) + (node (ref "FB2") (pin "2") (pinfunction "~") (pintype "passive")) + (node (ref "R28") (pin "1") (pinfunction "~") (pintype "passive")) + ) + (net (code "31") (name "/LINE_TIP") (node (ref "F2") (pin "1") (pinfunction "~") (pintype "passive")) (node (ref "J2") (pin "4") (pinfunction "TIP") (pintype "passive")) ) - (net (code "30") (name "/LS_C1B") + (net (code "32") (name "/LINE_TIP_F") + (node (ref "D3") (pin "3") (pinfunction "K/A") (pintype "passive")) + (node (ref "FB1") (pin "1") (pinfunction "~") (pintype "passive")) + (node (ref "R25") (pin "2") (pinfunction "~") (pintype "passive")) + ) + (net (code "33") (name "/LINE_TIP_M") + (node (ref "C29") (pin "1") (pinfunction "~") (pintype "passive")) + (node (ref "FB1") (pin "2") (pinfunction "~") (pintype "passive")) + (node (ref "R27") (pin "1") (pinfunction "~") (pintype "passive")) + ) + (net (code "34") (name "/LINE_TIP_P") + (node (ref "F2") (pin "2") (pinfunction "~") (pintype "passive")) + (node (ref "R27") (pin "2") (pinfunction "~") (pintype "passive")) + (node (ref "RV1") (pin "1") (pinfunction "~") (pintype "passive")) + ) + (net (code "35") (name "/LINE_VP") + (node (ref "C27") (pin "2") (pinfunction "~") (pintype "passive")) + (node (ref "C28") (pin "2") (pinfunction "~") (pintype "passive")) + (node (ref "D3") (pin "2") (pinfunction "K") (pintype "passive")) + (node (ref "D4") (pin "2") (pinfunction "K") (pintype "passive")) + (node (ref "Q1") (pin "3") (pinfunction "C") (pintype "passive")) + (node (ref "Q2") (pin "2") (pinfunction "E") (pintype "passive")) + (node (ref "R24") (pin "2") (pinfunction "~") (pintype "passive")) + ) + (net (code "36") (name "/LS_C1B") (node (ref "C21") (pin "2") (pinfunction "~") (pintype "passive")) (node (ref "U6") (pin "5") (pinfunction "C1B") (pintype "passive")) ) - (net (code "31") (name "/LS_C2B") + (net (code "37") (name "/LS_C2B") (node (ref "C22") (pin "2") (pinfunction "~") (pintype "passive")) (node (ref "U6") (pin "6") (pinfunction "C2B") (pintype "passive")) ) - (net (code "32") (name "/LS_DCT") + (net (code "38") (name "/LS_DCT") (node (ref "R16") (pin "1") (pinfunction "~") (pintype "passive")) (node (ref "U6") (pin "2") (pinfunction "DCT") (pintype "passive")) ) - (net (code "33") (name "/LS_DCT2") + (net (code "39") (name "/LS_DCT2") (node (ref "Q3") (pin "1") (pinfunction "B") (pintype "input")) (node (ref "R19") (pin "2") (pinfunction "~") (pintype "passive")) (node (ref "R20") (pin "1") (pinfunction "~") (pintype "passive")) (node (ref "U6") (pin "16") (pinfunction "DCT2") (pintype "passive")) ) - (net (code "34") (name "/LS_DCT3") + (net (code "40") (name "/LS_DCT3") (node (ref "Q5") (pin "2") (pinfunction "E") (pintype "passive")) (node (ref "U6") (pin "14") (pinfunction "DCT3") (pintype "passive")) ) - (net (code "35") (name "/LS_E") + (net (code "41") (name "/LS_E") (node (ref "Q1") (pin "2") (pinfunction "E") (pintype "passive")) (node (ref "Q4") (pin "3") (pinfunction "C") (pintype "passive")) (node (ref "R18") (pin "2") (pinfunction "~") (pintype "passive")) (node (ref "R21") (pin "1") (pinfunction "~") (pintype "passive")) (node (ref "R23") (pin "1") (pinfunction "~") (pintype "passive")) ) - (net (code "36") (name "/LS_HB") + (net (code "42") (name "/LS_HB") (node (ref "D2") (pin "1") (pinfunction "K") (pintype "passive")) (node (ref "Q1") (pin "1") (pinfunction "B") (pintype "input")) (node (ref "Q2") (pin "3") (pinfunction "C") (pintype "passive")) @@ -337,11 +371,11 @@ (node (ref "R22") (pin "2") (pinfunction "~") (pintype "passive")) (node (ref "R23") (pin "2") (pinfunction "~") (pintype "passive")) ) - (net (code "37") (name "/LS_IB") + (net (code "43") (name "/LS_IB") (node (ref "R17") (pin "1") (pinfunction "~") (pintype "passive")) (node (ref "U6") (pin "4") (pinfunction "IB") (pintype "passive")) ) - (net (code "38") (name "/LS_IGND") + (net (code "44") (name "/LS_IGND") (node (ref "C24") (pin "2") (pinfunction "~") (pintype "passive")) (node (ref "C25") (pin "2") (pinfunction "~") (pintype "passive")) (node (ref "C26") (pin "2") (pinfunction "~") (pintype "passive")) @@ -352,86 +386,52 @@ (node (ref "U6") (pin "11") (pinfunction "SC") (pintype "passive")) (node (ref "U6") (pin "15") (pinfunction "IGND") (pintype "passive")) ) - (net (code "39") (name "/LS_Q2B") + (net (code "45") (name "/LS_Q2B") (node (ref "C27") (pin "1") (pinfunction "~") (pintype "passive")) (node (ref "Q2") (pin "1") (pinfunction "B") (pintype "input")) (node (ref "Q3") (pin "3") (pinfunction "C") (pintype "passive")) (node (ref "R24") (pin "1") (pinfunction "~") (pintype "passive")) ) - (net (code "40") (name "/LS_Q5B") + (net (code "46") (name "/LS_Q5B") (node (ref "Q5") (pin "1") (pinfunction "B") (pintype "input")) (node (ref "R20") (pin "2") (pinfunction "~") (pintype "passive")) ) - (net (code "41") (name "/LS_Q5C") + (net (code "47") (name "/LS_Q5C") (node (ref "Q5") (pin "3") (pinfunction "C") (pintype "passive")) (node (ref "R21") (pin "2") (pinfunction "~") (pintype "passive")) ) - (net (code "42") (name "/LS_QB") + (net (code "48") (name "/LS_QB") (node (ref "Q4") (pin "1") (pinfunction "B") (pintype "input")) (node (ref "R22") (pin "1") (pinfunction "~") (pintype "passive")) (node (ref "U6") (pin "13") (pinfunction "QB") (pintype "passive")) ) - (net (code "43") (name "/LS_QE") + (net (code "49") (name "/LS_QE") (node (ref "D2") (pin "2") (pinfunction "A") (pintype "passive")) (node (ref "Q3") (pin "2") (pinfunction "E") (pintype "passive")) (node (ref "U6") (pin "1") (pinfunction "QE") (pintype "passive")) ) - (net (code "44") (name "/LS_QE2") + (net (code "50") (name "/LS_QE2") (node (ref "Q4") (pin "2") (pinfunction "E") (pintype "passive")) (node (ref "U6") (pin "12") (pinfunction "QE2") (pintype "passive")) ) - (net (code "45") (name "/LS_RING_F") - (node (ref "D4") (pin "3") (pinfunction "K/A") (pintype "passive")) - (node (ref "FB2") (pin "1") (pinfunction "~") (pintype "passive")) - (node (ref "R26") (pin "2") (pinfunction "~") (pintype "passive")) - ) - (net (code "46") (name "/LS_RING_M") - (node (ref "C30") (pin "1") (pinfunction "~") (pintype "passive")) - (node (ref "FB2") (pin "2") (pinfunction "~") (pintype "passive")) - (node (ref "R28") (pin "1") (pinfunction "~") (pintype "passive")) - ) - (net (code "47") (name "/LS_RNG1") + (net (code "51") (name "/LS_RNG1") (node (ref "R25") (pin "1") (pinfunction "~") (pintype "passive")) (node (ref "U6") (pin "8") (pinfunction "RNG1") (pintype "passive")) ) - (net (code "48") (name "/LS_RNG2") + (net (code "52") (name "/LS_RNG2") (node (ref "R26") (pin "1") (pinfunction "~") (pintype "passive")) (node (ref "U6") (pin "9") (pinfunction "RNG2") (pintype "passive")) ) - (net (code "49") (name "/LS_RX") + (net (code "53") (name "/LS_RX") (node (ref "C23") (pin "2") (pinfunction "~") (pintype "passive")) (node (ref "U6") (pin "3") (pinfunction "RX") (pintype "passive")) ) - (net (code "50") (name "/LS_TIP_F") - (node (ref "D3") (pin "3") (pinfunction "K/A") (pintype "passive")) - (node (ref "FB1") (pin "1") (pinfunction "~") (pintype "passive")) - (node (ref "R25") (pin "2") (pinfunction "~") (pintype "passive")) - ) - (net (code "51") (name "/LS_TIP_M") - (node (ref "C29") (pin "1") (pinfunction "~") (pintype "passive")) - (node (ref "FB1") (pin "2") (pinfunction "~") (pintype "passive")) - (node (ref "R27") (pin "1") (pinfunction "~") (pintype "passive")) - ) - (net (code "52") (name "/LS_TIP_P") - (node (ref "F2") (pin "2") (pinfunction "~") (pintype "passive")) - (node (ref "R27") (pin "2") (pinfunction "~") (pintype "passive")) - (node (ref "RV1") (pin "1") (pinfunction "~") (pintype "passive")) - ) - (net (code "53") (name "/LS_TOP") + (net (code "54") (name "/LS_TOP") (node (ref "C23") (pin "1") (pinfunction "~") (pintype "passive")) (node (ref "C26") (pin "1") (pinfunction "~") (pintype "passive")) (node (ref "R16") (pin "2") (pinfunction "~") (pintype "passive")) (node (ref "R18") (pin "1") (pinfunction "~") (pintype "passive")) ) - (net (code "54") (name "/LS_VP") - (node (ref "C27") (pin "2") (pinfunction "~") (pintype "passive")) - (node (ref "C28") (pin "2") (pinfunction "~") (pintype "passive")) - (node (ref "D3") (pin "2") (pinfunction "K") (pintype "passive")) - (node (ref "D4") (pin "2") (pinfunction "K") (pintype "passive")) - (node (ref "Q1") (pin "3") (pinfunction "C") (pintype "passive")) - (node (ref "Q2") (pin "2") (pinfunction "E") (pintype "passive")) - (node (ref "R24") (pin "2") (pinfunction "~") (pintype "passive")) - ) (net (code "55") (name "/LS_VREG") (node (ref "C24") (pin "1") (pinfunction "~") (pintype "passive")) (node (ref "U6") (pin "7") (pinfunction "VREG") (pintype "passive"))