gokul/usb3-sd-hub

Engineering draft: four-layer, computer-powered USB 3 hub with one USB-C host socket, two USB-C and two USB-A accessory sockets, and a full-size SD slot. Board and three schematic previews are available. Routing and production checks are incomplete; not fabrication ready.

Version
0.1.5
License
MIT
Stars
0

verification/rebuild-partial-review.tsx

PCBPCB preview for verification/rebuild-partial-review.tsx
SchematicSchematic preview for verification/rebuild-partial-review.tsx
import {cloneElement} from 'react'
import {Circuit} from 'tscircuit'
import Design from '../index.circuit'
const circuit=new Circuit({platform:{partsEngineDisabled:true,useCloudAutorouter:false}})
circuit.pcbRoutingDisabled=false
circuit.add(cloneElement(Design(),{routeRemaining:false}))
await circuit.renderUntilSettled()
const circuitJson=circuit.db.toArray()
await Bun.write(new URL('./partial-routing.circuit.json',import.meta.url),JSON.stringify(circuitJson,null,2))
console.log({records:circuitJson.length,traces:circuitJson.filter(row=>row.type==='pcb_trace').length,sheets:circuitJson.filter(row=>row.type==='schematic_sheet').length,errors:circuitJson.filter(row=>row.type.includes('error')).reduce<Record<string,number>>((counts,row)=>{counts[row.type]=(counts[row.type]??0)+1;return counts},{})})