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
.agents/skills/tscircuit/templates/group-layout.tsx
// Demonstrates <group /> for positioning multiple components together.
// This example focuses on layout—add <trace /> elements for connectivity.
import React from "react"
export default () => (
<board width="20mm" height="20mm">
<group pcbX={5} pcbY={5}>
<resistor name="R1" resistance="1k" footprint="0402" pcbX={2.5} pcbY={2.5} />
<resistor name="R2" resistance="1k" footprint="0402" pcbX={2.5} pcbY={0} />
<resistor name="R3" resistance="1k" footprint="0402" pcbX={2.5} pcbY={-2.5} />
</group>
</board>
)