Add automotive battery front-end reference schematic - #149
Open
AnasSarkiz wants to merge 23 commits into
Open
Conversation
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. |
AnasSarkiz
marked this pull request as draft
August 26, 2026 22:51
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
AnasSarkiz
marked this pull request as ready for review
August 27, 2026 13:41
seveibar
approved these changes
Aug 27, 2026
…da-00699-ansi-b # Conflicts: # README.md # index.ts # lib/chips/index.tsx
…si-b # Conflicts: # README.md # index.ts # lib/chips/index.tsx # package.json
# Conflicts: # examples/ObstacleDetectionSensor.circuit.tsx # index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
TIDA-00699is the authoritative TI reference-design identifier, not the reusable module name. The public composite in this PR is therefore namedAutomotiveBatteryFrontEnd, with function/device-based names for each child subcircuit.Summary
21583) as the reusableAutomotiveBatteryFrontEndcomposite, sourced from TI's TIDA-00699 automotive off-battery reference designexamples/ObstacleDetectionSensor.circuit.tsxapplication composition on a native ANSI B schematic sheetNative 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
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 at3e20716after synchronizing with upstreammainat00cc8d0.System block
21583)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
TIDUB49.PDF: https://www.ti.com/lit/pdf/tidub49TIDRJK7.PDF: https://www.ti.com/lit/pdf/tidrjk7TIDRJK8.PDF: https://www.ti.com/lit/pdf/tidrjk8TIDRJK9.ZIP: https://www.ti.com/lit/zip/tidrjk9The downloaded CAD archive was inspected rather than assumed to contain editable source. It contains:
TIDA-00699_Schematic.SchDoc— authoritative schematic geometry and connectivityTIDA-00699_Hardware.SchDocTIDA-00699_PCB.PcbDocTIDA-00699.PrjPcbPublic modules
ReverseBatteryProtection_LM74610Q1AutomotivePowerInputEmiFilterBoostConverter_LM25122Q1BuckConverter_LM53603Q1VoltageSupervisor_TPS3808Q1AutomotiveBatteryFrontEnd— composite wrapper containing the five official sectionsTIDA-00699remains 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:
The reusable IC definitions carry the verified TI pin-side/order arrangements. In particular, U3 (
LM536035QPWPRQ1) places pins10,15,16, and17on the lower-right edge after BIAS, matchingTIDA-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.routingDisabledis set for these schematic-only reference modulesschDisplayLabelNet...names remain direct unlabeled port-to-port tracesschematicRouteHints,routeHints, or<tracehint>elements<schematicpath>overlays pretending to be tracesThe source component centers are not moved to compensate for autorouter behavior.
Native ANSI B schematic sheet
The application example declares:
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 numericschSizeis used for the sheet.Generated schematic
Validation
bun run format:check— pass (326 files)bun run typecheck— passbun test tests/AutomotiveBatteryFrontEnd.test.tsx— 9 pass, 0 failbun run build— 240 circuits passed, exit 0 on the exact PR head431.8 mm × 279.4 mmdimensions and no outside-sheet warningsTIDRJK7.PDFThe 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
Related work