Skip to content

Add automotive battery front-end reference schematic - #149

Open
AnasSarkiz wants to merge 23 commits into
mainfrom
feat/tida-00699-power-supply-clean
Open

Add automotive battery front-end reference schematic#149
AnasSarkiz wants to merge 23 commits into
mainfrom
feat/tida-00699-power-supply-clean

Conversation

@AnasSarkiz

@AnasSarkiz AnasSarkiz commented Aug 26, 2026

Copy link
Copy Markdown
Member

Note

TIDA-00699 is the authoritative TI reference-design identifier, not the reusable module name. The public composite in this PR is therefore named AutomotiveBatteryFrontEnd, with function/device-based names for each child subcircuit.

Summary

  • add the obstacle-detection Power supply subsystem (21583) as the reusable AutomotiveBatteryFrontEnd composite, sourced from TI's TIDA-00699 automotive off-battery reference design
  • split the official schematic page into five independently renderable native tscircuit modules and one composite wrapper
  • add reusable chip definitions for LM74610-Q1, LM25122-Q1, LM53603-Q1, TPS3808-Q1, CSD18531Q5A, and SQ4850EY
  • add a minimal examples/ObstacleDetectionSensor.circuit.tsx application composition on a native ANSI B schematic sheet
  • preserve source component centers, orientations, reference designators, values, IC pin arrangements, net names, connectivity, and functional boundaries
  • use native components, MOSFET symbols, inline trace labels, traces, schematic sections, and the native schematic autorouter only
  • add focused connectivity, section-membership, coordinate, sheet-assignment, trace-label, and IC pin-side/order tests

Native ANSI B support uses <schematicsheet sheetSize="ANSI_B">. The supporting changes in tscircuit/core#3460 and tscircuit/circuit-to-svg#697 are merged.

Reference comparison

Official TI TIDA-00699 reference beside the native tscircuit ANSI B output

The left panel is page 1 of TI's official TIDRJK7.PDF; the right panel is the native tscircuit output committed on this branch. The branch is currently at 3e20716 after synchronizing with upstream main at 00cc8d0.

System block

The block also lists TIDA-01425 and TIDA-01492 as alternatives. This PR uses only TIDA-00699 because it is the smallest exact-role editable reference for reverse-battery/transient protection, EMI filtering, 9-V boost, 5-V buck, and supply supervision. No circuits from the alternatives are blended into this implementation.

Authoritative source set

The downloaded CAD archive was inspected rather than assumed to contain editable source. It contains:

  • TIDA-00699_Schematic.SchDoc — authoritative schematic geometry and connectivity
  • TIDA-00699_Hardware.SchDoc
  • TIDA-00699_PCB.PcbDoc
  • TIDA-00699.PrjPcb

Public modules

  • ReverseBatteryProtection_LM74610Q1
  • AutomotivePowerInputEmiFilter
  • BoostConverter_LM25122Q1
  • BuckConverter_LM53603Q1
  • VoltageSupervisor_TPS3808Q1
  • AutomotiveBatteryFrontEnd — composite wrapper containing the five official sections

TIDA-00699 remains in reference attribution and schematic metadata only. It is not used as the public composite or child module name. Each child module renders only its official functional section. The composite uses native <schematicsection> boundaries; it does not draw decorative boxes.

Placement and symbol fidelity

The documented coordinate transform is:

schX = sourceX * 1.4
schY = sourceY * 1.4

The reusable IC definitions carry the verified TI pin-side/order arrangements. In particular, U3 (LM536035QPWPRQ1) places pins 10, 15, 16, and 17 on the lower-right edge after BIAS, matching TIDA-00699_Schematic.SchDoc. Tests also verify U1, U2, U4, D1, and DSHT.

Q1-Q3 use native three-terminal <mosfet> symbols. No grouped-MOSFET custom symbol is used.

Native routing and labels

All electrical connections use real native <trace> declarations between component ports and the native schematic autorouter.

  • routingDisabled is set for these schematic-only reference modules
  • automatic trace labels are disabled on every TIDA-00699-derived sheet
  • only net names shown by TI are rendered with native inline schDisplayLabel
  • internal Altium Net... names remain direct unlabeled port-to-port traces
  • no schematicRouteHints, routeHints, or <tracehint> elements
  • no manual or custom trace paths
  • no custom trace-topology builder
  • no generated Circuit JSON mutation
  • no decorative <schematicpath> overlays pretending to be traces
  • no disconnected labels used to conceal missing connections

The source component centers are not moved to compensate for autorouter behavior.

Native ANSI B schematic sheet

The application example declares:

<schematicsheet
  name="power_supply"
  displayName="Power Supply - TIDA-00699"
  sheetSize="ANSI_B"
/>

The generated sheet is native ANSI B (431.8 mm × 279.4 mm) and contains five native <schematicsection> boundaries. Focused tests verify the sheet dimensions, section membership, and absence of outside-sheet warnings without changing TI source placement. No numeric schSize is used for the sheet.

Generated schematic

Validation

  • bun run format:check — pass (326 files)
  • bun run typecheck — pass
  • bun test tests/AutomotiveBatteryFrontEnd.test.tsx — 9 pass, 0 fail
  • all six renamed schematic snapshots — byte-identical to their pre-rename contents
  • bun run build — 240 circuits passed, exit 0 on the exact PR head
  • ANSI B sheet assertions — correct 431.8 mm × 279.4 mm dimensions and no outside-sheet warnings
  • generated schematic visually compared side by side with TIDRJK7.PDF
  • every visible U3 pin reaches the intended rendered port after the pin-arrangement correction

The full build retains existing repository warnings. TIDA-00699-specific warnings are limited to exact-source passive overlaps, native trace naming diagnostics, missing PCB footprints for intentionally schematic-only native MOSFET symbols, and source designator conventions such as J-prefixed test points.

Known native-rendering limitations

  • some native same-net routing and automatic inline-label placements differ from the exact source wire topology
  • exact source component centers can produce passive reference/value text overlap at low zoom
  • unattractive but electrically correct autorouter routes are kept visible rather than hidden with local rendering hacks

Related work

@AnasSarkiz

Copy link
Copy Markdown
Member Author

CI note: the external tscircuit/build job failed twice with user_code_job_infrastructure_error. In both runs, PowerSupply_TIDA00699 rendered successfully and the repository wrote its ESM/CommonJS bundles; the service then ended during declaration generation with 'ReadableStream received over RPC disconnected prematurely.' Local format, TypeScript, tsci 0.0.2448, 0-error/0-warning netlist, snapshot, and schematic-only build checks all pass. No schematic workaround was added for this infrastructure failure.

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ti-system-block-ui Ready Ready Preview Aug 28, 2026 5:06pm

Request Review

@AnasSarkiz
AnasSarkiz marked this pull request as ready for review August 27, 2026 13:41
…da-00699-ansi-b

# Conflicts:
#	README.md
#	index.ts
#	lib/chips/index.tsx
@AnasSarkiz AnasSarkiz changed the title Add TIDA-00699 power supply reference schematic Add automotive battery front-end reference schematic Aug 28, 2026
# Conflicts:
#	examples/ObstacleDetectionSensor.circuit.tsx
#	index.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants