main
John Lauer Add symbol, footprint, Fusion and Altium libraries, viewers, provenance, README ab389b2 6h ago
#!/usr/bin/env python3
"""Write page.json for adom/tmcs1123b1aqdvgr from provenance/tools/pins.json and the values below. Run from the page root."""
import json, hashlib
S = "tmcs1123b1aqdvgr"; MPN = "TMCS1123B1AQDVGR"; D = "2026-10-21"
pins = json.load(open("provenance/tools/pins.json"))
pins = sorted(pins, key=lambda p: int(p["number"]))
sha = hashlib.sha256(open(f"docs/{S}-datasheet.pdf", "rb").read()).hexdigest()
brief = ("Texas Instruments TMCS1123B1AQDVGR: isolated Hall-effect current sensor, 25 mV/A with a 1.65 V zero-current "
         "output (linear +-62 A at 3.3 V), 80 A RMS continuous, 250 kHz, overcurrent detection, reinforced isolation, "
         "SOIC-10 wide body (DVG). KiCad, Fusion and Altium libraries, 3D model and datasheet.")
page = {
 "slug": S, "version": "0.1.0", "type": "hardware", "kind": "component", "org": "adom",
 "title": "TMCS1123B1AQDVGR - Isolated Hall-Effect Current Sensor",
 "brief": brief,
 "description": ("Texas Instruments TMCS1123B1AQDVGR: galvanically isolated Hall-effect current sensor, B1A option "
                 "(25 mV/A, 1.65 V zero-current output, linear +-62 A at VS = 3.3 V), 0.7 mOhm conductor, 80 A RMS "
                 "continuous on TI's EVM, 250 kHz bandwidth, overcurrent comparator and diagnostics outputs, 5 kV RMS "
                 "isolation, SOIC-10 wide body (DVG0010A, 7.5 x 10.3 mm)."),
 "license": "CC-BY-4.0",
 "tags": ["component", "ic", "sensor", "current-sensor", "hall-effect", "isolated", "texas-instruments", "soic-10", "dvg"],
 "discovery_triggers": [MPN, "TMCS1123B1A", "TMCS1123", "TMCS1123B1AQDVGR current sensor", "isolated Hall current sensor SOIC-10"],
 "hero": {"type": "image", "path": "docs/hero.png"},
 "visibility": {"public": True},
 "component": {
  "mpn": MPN, "manufacturer": "Texas Instruments",
  "package": "SOIC-10 wide body (TI DVG0010A, 7.5 x 10.3 mm body, 2 current leads + 8 signal leads at 1.27 mm)",
  "pin_count": 10, "category": "Sensors", "subcategory": "Isolated Hall-effect current sensor", "lifecycle": "Active",
  "datasheet": "https://www.ti.com/lit/ds/symlink/tmcs1123.pdf",
  "product_page": "https://www.ti.com/product/TMCS1123",
  "body_size": {"x_mm": 7.5, "y_mm": 10.3, "z_mm": 2.65, "pitch_mm": 1.27},
  "parts": {
   "symbol": f"{S}.kicad_sym", "footprint": f"{S}.kicad_mod",
   "model_3d": f"{S}-hero.glb", "model_3d_plain": f"{S}-etched.glb",
   "model_3d_step": f"{S}-etched.step", "model_3d_step_plain": f"{S}.step",
   "step": f"{S}-etched.step", "lbr": f"{S}.lbr", "datasheet": f"docs/{S}-datasheet.pdf"},
  "viewers": {"symbol": "viewers/symbol.html", "footprint": "viewers/footprint.html"},
  "viewer_3d": {"ground": False, "animate": False, "shadows": False, "tooltips": "authored"},
  "models": "models.json", "lod": "lod/manifest.json", "verification": "verification.json",
  "marking": {"lines": ["TMCS1123", "B1AQDVGR"], "virtual": True,
   "note": "Virtual identification mark (the orderable MPN), not TI's real top marking. TI marks this part 1123B1A (SBOSA24D p.40, Part marking column).",
   "surface": "top", "colour": "light on black epoxy", "gate": "PASS", "provenance": "provenance/3d-model.json"},
  "variants": "README.md#variants",
  "pins": pins,
  "distributor_links": {
   "mouser": {"part": "595-TMCS1123B1AQDVGR", "url": "https://www.mouser.com/en/ProductDetail/Texas-Instruments/TMCS1123B1AQDVGR?qs=mELouGlnn3fnFoesX7xpgA%3D%3D", "stock": 0, "lead_time": "140 days", "checked": D},
   "digikey": {"part": "296-TMCS1123B1AQDVGRTR-ND", "url": "https://www.digikey.com/en/products/detail/texas-instruments/TMCS1123B1AQDVGR/22168027", "stock": 0, "checked": D},
   "lcsc": False,
   "lcsc_note": f"{D}: adom-parts-search found no JLCPCB/LCSC listing for TMCS1123B1AQDVGR (0 hits); lcsc.com refused a plain request."},
  "provenance": {
   "datasheet": {"doc": "TI SBOSA24D (July 2023, revised May 2026)", "file": f"docs/{S}-datasheet.pdf", "sha256": sha, "pages": 48},
   "model_3d": "provenance/3d-model.json", "footprint": "provenance/footprint-check.json"}},
 "dependencies": {},
 "eda_assets": {
  "kicad": {"symbol": f"{S}.kicad_sym", "footprint": f"{S}.kicad_mod", "model": f"{S}-etched.step", "provenance": "authored"},
  "fusion": {"lbr": f"{S}.lbr", "provenance": "authored"},
  "altium": {"schlib": f"altium/{MPN}.SchLib", "pcblib": f"altium/{MPN}.PcbLib", "provenance": "authored"}},
 "source": {"tool": "texas-instruments", "url": "https://www.ti.com/product/TMCS1123"}}
json.dump(page, open("page.json", "w"), indent=2)
print("page.json written")