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/circuit009.tsx

PCBPCB preview for lib/circuit/circuit009.tsx
SchematicSchematic preview for lib/circuit/circuit009.tsx
// disable because the @tsci/seveibar.smd-usb-c is broken due to tscircuit bug

// /** USB-C + ESP32-S3 Mini board with 5V-to-3.3V regulation and USB-C config resistors. */

// import { useESP32_S3_MINI_1_N8 } from "@tsci/seveibar.esp32-s3-mini-1-n8"
// // @ts-expect-error
// import { Reg5vTo3v3 } from "@tsci/seveibar.reg-5v-to-3v"
// import { useUsbC } from "@tsci/seveibar.smd-usb-c"
// import { useResistor } from "@tscircuit/core"

// export default () => {
//   const Usb = useUsbC("USB")
//   const Esp32 = useESP32_S3_MINI_1_N8("U1")
//   const R1 = useResistor("R1", { resistance: "5.1k", footprint: "0402" })
//   const R2 = useResistor("R2", { resistance: "5.1k", footprint: "0402" })

//   return (
//     <board routingDisabled={((typeof globalThis !== "undefined" && (globalThis as any).TSCIRCUIT_ROUTING_DISABLED === "1") || (typeof process !== "undefined" && !!process.env && process.env.TSCIRCUIT_ROUTING_DISABLED === "1"))} width="20mm" height="48mm" schAutoLayoutEnabled>
//       <Usb pcbY={-20} />
//       <Esp32 pcbY={5} />
//       <Reg5vTo3v3 pcbX={2} pcbY={-12} />
//       <R1 pcbX={-5} pcbY={-15} pin1={Usb.CC1} pin2="net.gnd" />
//       <R2 pcbX={-5} pcbY={-12} pin1={Usb.CC2} pin2="net.gnd" />
//     </board>
//   )
// }

export default () => <board width="66.00mm" height="36.00mm" />