tscircuit/autorouting-dataset-01
This code manages the hardware and electronic components for circuit design and PCB layout, defining components like resistors, capacitors, transistors, connectors, and footprints, and providing tools for component placement, PCB topology, and electrical connections.
- Version
- 1.0.102
- License
- unset
- Stars
- 4
lib/circuit/circuit001.tsx
PCB
Schematic
/** Minimal RC network demo board: one resistor, one capacitor, and a single trace between them. */
import { SmdUsbC } from "@tsci/seveibar.smd-usb-c"
import { shouldAutorouterRun } from "lib/shouldAutorouterRun"
export default () => {
return (
<board routingDisabled={!shouldAutorouterRun()} width="12mm" height="30mm">
<SmdUsbC
name="J1"
connections={{
GND1: "net.GND",
GND2: "net.GND",
VBUS1: "net.VBUS",
VBUS2: "net.VBUS",
}}
pcbY={-10.5}
/>
<led
name="LED"
supplierPartNumbers={{
jlcpcb: ["965799"],
}}
color="red"
footprint="0603"
pcbX={3}
pcbY={12}
/>
<pushbutton
name="SW1"
pcbRotation="90deg"
footprint="pushbutton_id1.3mm_od2mm"
connections={{ pin1: ".R1 > .pos", pin2: "net.VBUS" }}
supplierPartNumbers={{
jlcpcb: ["C110153"],
}}
/>
<resistor name="R1" footprint="0603" resistance="1k" pcbX={-3} pcbY={7} />
<trace from="R1.neg" to="LED.pos" />
<trace from="LED.neg" to="net.GND" />
</board>
)
}