seveibar/usbc-pd-charger
This code defines and assembles a hardware schematic of an 18W USB-C PD wall charger with mains input, protection, high-voltage isolation, a DC buck converter with switching regulator, filtering, and USB-C output with ESD protection.
- Version
- 1.0.2
- License
- unset
- Stars
- 0
BUILD_REPORT.md
# Build report
Generated with tscircuit CLI 0.0.2326 and local `tscircuit` package 0.0.2354; schematic sheet/section verification refreshed on 2026-08-19.
## Final circuit-json audit
- Board: 136 mm × 52 mm, two layers
- Source components: 38
- Source connections: 113
- Routed PCB traces: 90
- Vias: 61
- Via geometry: 0.60 mm pad / 0.30 mm finished-drill target
- Generated `*_error` records: 0
- Isolation keepouts: 1
- Schematic sheets: 1 A4 landscape sheet
- Functional schematic sections: 6
- Sheetless schematic components/traces/net labels: 0 / 0 / 0
- Outside-sheet warnings: 0
- PCB-record SHA-256 after schematic-only cleanup: `8d9e9e12197e305e4ebbca8101afce89db74e8c467796ee5ca2f1d94edbe5d33` (unchanged from the pre-cleanup build)
## Commands that passed
```sh
bunx tsc --noEmit
tsci build --all-images --autorouter-timeout 120s --ignore-warnings --disable-parts-engine
tsci export dist/index/circuit.json -f gerbers -o dist/usb-c-pd-wall-charger-gerbers.zip --disable-parts-engine
```
The Gerber archive was inspected for the expected 13 files: top/bottom copper, mask, paste, and silkscreen; edge cuts; plated and non-plated drill files; BOM; and pick-and-place CSV. The plated drill file contains the final 0.30 mm autorouter drill tool.
## External-tool caveats
- `kicad-cli pcb drc` from KiCad 10.0.3 crashed with `Swift/SwiftNativeNSArray.swift:78: Fatal error: Array index out of range` on the generated KiCad PCB, so no independent KiCad DRC result is claimed.
- STEP export completed but logged parser failures for several imported component models. The generated STEP is included as a partial mechanical aid only.
- The generated BOM lacks complete ordering data for generic parts; use `annotated_bom.csv` for sourcing review.
Passing tscircuit DRC establishes internal geometric consistency, not mains safety, thermal performance, regulatory compliance, or functional validation.