techmannih/usbc-charger

This code defines a detailed electronic hardware design for an 85-265VAC to USB-C PD 18W wall charger, including the schematic layout and physical component placements such as connectors, filtering inductors, capacitors, resistors, protection diodes, and an isolated power module, all integrated with 3D models and mechanical enclosures.

Version
1.0.7
License
unset
Stars
0

package.json

PCBPCB preview for package.json
SchematicSchematic preview for package.json
{
  "name": "usb-c-pd-18w-charger",
  "version": "1.0.0",
  "main": "index.circuit.tsx",
  "devDependencies": {
    "@types/react": "^19.2.18",
    "tscircuit": "^0.0.2297",
    "typescript": "^5.9.3"
  },
  "description": "tscircuit hardware design for an isolated USB-C PD 18 W mains adapter",
  "private": true,
  "scripts": {
    "dev": "tsci dev",
    "build": "tsci build index.circuit.tsx",
    "build:preview": "tsci build --pcb-png --schematic-png --3d-png index.circuit.tsx",
    "build:handoff": "tsci build --kicad-project-zip --step --glbs index.circuit.tsx",
    "snapshot": "tsci snapshot index.circuit.tsx",
    "snapshot:update": "tsci snapshot index.circuit.tsx --update",
    "snapshot:3d": "tsci snapshot index.circuit.tsx --3d --camera-preset top-center-angled",
    "snapshot:3d:update": "tsci snapshot index.circuit.tsx --3d --update --camera-preset top-center-angled",
    "typecheck": "tsc --noEmit",
    "verify": "bun run typecheck && tsci check netlist && tsci check schematic-placement && tsci check placement && tsci check shorts && tsci build index.circuit.tsx",
    "start": "tsci dev"
  }
}