tscircuit/rv1106g2-breakout
This code defines a set of PCB components and their footprints, including connecters, chips, resistors, capacitors, and other hardware parts, for assembling a Core1106-based circuit board with detailed pinouts, footprints, and 3D models.
- Version
- 1.0.2
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone tscircuit/rv1106g2-breakout # download the package files into ./rv1106g2-breakout
tsci add tscircuit/rv1106g2-breakout # add it to your project as @tsci/tscircuit.rv1106g2-breakoutIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
components/UsbC.tsx
import type { ConnectorProps } from "@tscircuit/props"
const usbCFootprint = (
<footprint>
<smtpad shape="rect" width="0.6mm" height="1.45mm" pcbX={-3.25} pcbY={4.045} portHints={["pin1"]} />
<smtpad shape="rect" width="0.6mm" height="1.45mm" pcbX={-2.45} pcbY={4.045} portHints={["pin2"]} />
<smtpad shape="rect" width="0.3mm" height="1.45mm" pcbX={-1.75} pcbY={4.045} portHints={["pin3"]} />
<smtpad shape="rect" width="0.3mm" height="1.45mm" pcbX={-1.25} pcbY={4.045} portHints={["pin4"]} />
<smtpad shape="rect" width="0.3mm" height="1.45mm" pcbX={-0.75} pcbY={4.045} portHints={["pin5"]} />
<smtpad shape="rect" width="0.3mm" height="1.45mm" pcbX={-0.25} pcbY={4.045} portHints={["pin6"]} />
<smtpad shape="rect" width="0.3mm" height="1.45mm" pcbX={0.25} pcbY={4.045} portHints={["pin7"]} />
<smtpad shape="rect" width="0.3mm" height="1.45mm" pcbX={0.75} pcbY={4.045} portHints={["pin8"]} />
<smtpad shape="rect" width="0.3mm" height="1.45mm" pcbX={1.25} pcbY={4.045} portHints={["pin9"]} />
<smtpad shape="rect" width="0.3mm" height="1.45mm" pcbX={1.75} pcbY={4.045} portHints={["pin10"]} />
<smtpad shape="rect" width="0.6mm" height="1.45mm" pcbX={2.45} pcbY={4.045} portHints={["pin11"]} />
<smtpad shape="rect" width="0.6mm" height="1.45mm" pcbX={3.25} pcbY={4.045} portHints={["pin12"]} />
<platedhole shape="pill" outerWidth="1mm" outerHeight="2.1mm" holeWidth="0.6mm" holeHeight="1.7mm" pcbX={-4.32} pcbY={3.13} portHints={["pin13"]} />
<platedhole shape="pill" outerWidth="1mm" outerHeight="1.6mm" holeWidth="0.6mm" holeHeight="1.2mm" pcbX={-4.32} pcbY={-1.05} portHints={["pin14"]} />
<platedhole shape="pill" outerWidth="1mm" outerHeight="2.1mm" holeWidth="0.6mm" holeHeight="1.7mm" pcbX={4.32} pcbY={3.13} portHints={["pin15"]} />
<platedhole shape="pill" outerWidth="1mm" outerHeight="1.6mm" holeWidth="0.6mm" holeHeight="1.2mm" pcbX={4.32} pcbY={-1.05} portHints={["pin16"]} />
<silkscreenrect width="9.4mm" height="7.2mm" pcbY={1.5} />
<silkscreentext text="USB-C" pcbY={0.6} fontSize="0.8mm" />
<courtyardrect width="10mm" height="8.2mm" pcbY={1.5} />
</footprint>
)
const USB_C_PIN_LABELS = {
pin1: "GND_LEFT",
pin2: "VBUS_LEFT",
pin3: "SBU2",
pin4: "CC1",
pin5: "USB_DM_B",
pin6: "USB_DP_A",
pin7: "USB_DM_A",
pin8: "USB_DP_B",
pin9: "SBU1",
pin10: "CC2",
pin11: "VBUS_RIGHT",
pin12: "GND_RIGHT",
pin13: "SHIELD_1",
pin14: "SHIELD_2",
pin15: "SHIELD_3",
pin16: "SHIELD_4",
} as const
export const UsbCReceptacle = (
props: Omit<ConnectorProps, "footprint" | "pinLabels" | "standard">,
) => (
<connector
{...props}
standard="usb_c"
pinCount={16}
manufacturerPartNumber="HRO TYPE-C-31-M-12"
footprint={usbCFootprint}
pinLabels={USB_C_PIN_LABELS}
noConnect={["SBU1", "SBU2"]}
/>
)