seveibar/smd-usb-c
This code defines a USB Type-C connector component with associated pin configurations, 3D model, and PCB footprint layout for electronic hardware design.
Usage: To import and use the USB-C SMD component in a tscircuit project: 1. Import the component: ```tsx import { SmdUsbC } from "@tsci/seveibar.smd-usb-c" ``` 2. Use the component in a board: ```tsx <board> <SmdUsbC name="USB1" /> </board> ``` Key features: - Available pins include: GND1, VBUS1, CC1, DP1, DM1, SBU1, etc. - Supports accessing specific pins via `sel.USB1.VBUS1` - Includes CAD model and footprint details - Manufacturer part number: TYPE-C-31-M-12
- Version
- 0.0.2
- License
- unset
- Stars
- 2
dist/schematic.svg
PCB
Schematic
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600" style="background-color: rgb(245, 241, 237)" data-real-to-screen-transform="matrix(112.3595505618,0,0,-112.3595505618,523.595505618,307.8651685393)" data-software-used-string="@tscircuit/core@0.0.1024"><style>
.boundary { fill: rgb(245, 241, 237); }
.schematic-boundary { fill: none; stroke: #fff; }
.component { fill: none; stroke: rgb(132, 0, 0); }
.chip { fill: rgb(255, 255, 194); stroke: rgb(132, 0, 0); }
.component-pin { fill: none; stroke: rgb(132, 0, 0); }
/* Basic per-trace hover fallback */
.trace:hover {
filter: invert(1);
}
.trace:hover .trace-crossing-outline {
opacity: 0;
}
.trace:hover .trace-junction {
filter: invert(1);
}
/* Net-hover highlighting: when a trace or its overlays are hovered,
invert color for all traces (base + overlays) sharing the same
subcircuit connectivity key. Also hide crossing outline during hover. */
.text { font-family: sans-serif; fill: rgb(0, 150, 0); }
.pin-number { fill: rgb(169, 0, 0); }
.port-label { fill: rgb(0, 100, 100); }
.component-name { fill: rgb(0, 100, 100); }
</style><rect class="boundary" x="0" y="0" width="1200" height="600"/><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_0"><rect class="component chip" x="433.7078651685599" y="128.08988764041996" width="179.77528089888006" height="359.55056179776" stroke-width="2.247191011236px" fill="rgb(255, 255, 194)" stroke="rgb(132, 0, 0)"/><rect class="component-overlay" x="433.7078651685599" y="128.08988764041996" width="179.77528089888006" height="359.55056179776" fill="transparent"/><text x="624.7191011236199" y="88.76404494378994" fill="#006464" text-anchor="start" dominant-baseline="middle" font-family="sans-serif" font-size="20.224719101124002px" transform="rotate(0, 624.7191011236199, 88.76404494378994)">TYPE-C-31-M-12</text><text x="624.7191011236199" y="66.29213483142993" fill="#006464" text-anchor="start" dominant-baseline="middle" font-family="sans-serif" font-size="20.224719101124002px" transform="rotate(0, 624.7191011236199, 66.29213483142993)"></text><line class="component-pin" x1="456.17977528091996" y1="487.64044943818" x2="456.17977528091996" y2="530.337078651664" stroke-width="2.247191011236px"/><g data-schematic-port-id="source_port_0"><circle class="component-pin" cx="456.17977528091996" cy="532.5842696628999" r="2.247191011236" stroke-width="2.247191011236px"/><rect x="453.93258426968396" y="530.3370786516639" width="4.494382022472" height="4.494382022472" opacity="0"/></g><text class="pin-number" x="453.93258426968396" y="510.11235955053996" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="16.85393258427px" transform="rotate(-90 453.93258426968396 510.11235955053996)">1</text><text class="pin-number" x="456.17977528091996" y="476.404494382" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="start" dominant-baseline="middle" font-size="16.85393258427px" transform="rotate(-90 456.17977528091996 476.404494382)">GND1</text><line class="component-pin" x1="478.65168539327993" y1="487.64044943818" x2="478.65168539327993" y2="530.337078651664" stroke-width="2.247191011236px"/><g data-schematic-port-id="source_port_1"><circle class="component-pin" cx="478.65168539327993" cy="532.5842696628999" r="2.247191011236" stroke-width="2.247191011236px"/><rect x="476.40449438204394" y="530.3370786516639" width="4.494382022472" height="4.494382022472" opacity="0"/></g><text class="pin-number" x="476.40449438204394" y="510.11235955053996" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="16.85393258427px" transform="rotate(-90 476.40449438204394 510.11235955053996)">2</text><text class="pin-number" x="478.65168539327993" y="476.404494382" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="start" dominant-baseline="middle" font-size="16.85393258427px" transform="rotate(-90 478.65168539327993 476.404494382)">GND2</text><line class="component-pin" x1="613.48314606744" y1="150.56179775277997" x2="656.179775280924" y2="150.56179775277997" stroke-width="2.247191011236px"/><g data-schematic-port-id="source_port_2"><circle class="component-pin" cx="658.4269662921599" cy="150.56179775277997" r="2.247191011236" stroke-width="2.247191011236px"/><rect x="656.1797752809239" y="148.31460674154397" width="4.494382022472" height="4.494382022472" opacity="0"/></g><text class="pin-number" x="635.9550561798" y="148.31460674154397" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="16.85393258427px" transform="">3</text><text class="pin-number" x="602.2471910112599" y="150.56179775277997" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="16.85393258427px" transform="">VBUS1</text><line class="component-pin" x1="613.48314606744" y1="173.03370786513997" x2="656.179775280924" y2="173.03370786513997" stroke-width="2.247191011236px"/><g data-schematic-port-id="source_port_3"><circle class="component-pin" cx="658.4269662921599" cy="173.03370786513997" r="2.247191011236" stroke-width="2.247191011236px"/><rect x="656.1797752809239" y="170.78651685390398" width="4.494382022472" height="4.494382022472" opacity="0"/></g><text class="pin-number" x="635.9550561798" y="170.78651685390398" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="16.85393258427px" transform="">4</text><text class="pin-number" x="602.2471910112599" y="173.03370786513997" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="16.85393258427px" transform="">VBUS2</text><line class="component-pin" x1="613.48314606744" y1="465.16853932582" x2="656.179775280924" y2="465.16853932582" stroke-width="2.247191011236px"/><g data-schematic-port-id="source_port_4"><circle class="component-pin" cx="658.4269662921599" cy="465.16853932582" r="2.247191011236" stroke-width="2.247191011236px"/><rect x="656.1797752809239" y="462.921348314584" width="4.494382022472" height="4.494382022472" opacity="0"/></g><text class="pin-number" x="635.9550561798" y="462.921348314584" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="16.85393258427px" transform="">5</text><text class="pin-number" x="602.2471910112599" y="465.16853932582" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="16.85393258427px" transform="">SBU2</text><line class="component-pin" x1="613.48314606744" y1="375.28089887638" x2="656.179775280924" y2="375.28089887638" stroke-width="2.247191011236px"/><g data-schematic-port-id="source_port_5"><circle class="component-pin" cx="658.4269662921599" cy="375.28089887638" r="2.247191011236" stroke-width="2.247191011236px"/><rect x="656.1797752809239" y="373.033707865144" width="4.494382022472" height="4.494382022472" opacity="0"/></g><text class="pin-number" x="635.9550561798" y="373.033707865144" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="16.85393258427px" transform="">6</text><text class="pin-number" x="602.2471910112599" y="375.28089887638" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="16.85393258427px" transform="">CC1</text><line class="component-pin" x1="613.48314606744" y1="307.8651685393" x2="656.179775280924" y2="307.8651685393" stroke-width="2.247191011236px"/><g data-schematic-port-id="source_port_6"><circle class="component-pin" cx="658.4269662921599" cy="307.8651685393" r="2.247191011236" stroke-width="2.247191011236px"/><rect x="656.1797752809239" y="305.617977528064" width="4.494382022472" height="4.494382022472" opacity="0"/></g><text class="pin-number" x="635.9550561798" y="305.617977528064" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="16.85393258427px" transform="">7</text><text class="pin-number" x="602.2471910112599" y="307.8651685393" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="16.85393258427px" transform="">DM2</text><line class="component-pin" x1="613.48314606744" y1="240.44943820222" x2="656.179775280924" y2="240.44943820222" stroke-width="2.247191011236px"/><g data-schematic-port-id="source_port_7"><circle class="component-pin" cx="658.4269662921599" cy="240.44943820222" r="2.247191011236" stroke-width="2.247191011236px"/><rect x="656.1797752809239" y="238.202247190984" width="4.494382022472" height="4.494382022472" opacity="0"/></g><text class="pin-number" x="635.9550561798" y="238.202247190984" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="16.85393258427px" transform="">8</text><text class="pin-number" x="602.2471910112599" y="240.44943820222" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="16.85393258427px" transform="">DP1</text><line class="component-pin" x1="613.48314606744" y1="285.39325842694" x2="656.179775280924" y2="285.39325842694" stroke-width="2.247191011236px"/><g data-schematic-port-id="source_port_8"><circle class="component-pin" cx="658.4269662921599" cy="285.39325842694" r="2.247191011236" stroke-width="2.247191011236px"/><rect x="656.1797752809239" y="283.146067415704" width="4.494382022472" height="4.494382022472" opacity="0"/></g><text class="pin-number" x="635.9550561798" y="283.146067415704" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="16.85393258427px" transform="">9</text><text class="pin-number" x="602.2471910112599" y="285.39325842694" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="16.85393258427px" transform="">DM1</text><line class="component-pin" x1="613.48314606744" y1="262.92134831458" x2="656.179775280924" y2="262.92134831458" stroke-width="2.247191011236px"/><g data-schematic-port-id="source_port_9"><circle class="component-pin" cx="658.4269662921599" cy="262.92134831458" r="2.247191011236" stroke-width="2.247191011236px"/><rect x="656.1797752809239" y="260.674157303344" width="4.494382022472" height="4.494382022472" opacity="0"/></g><text class="pin-number" x="635.9550561798" y="260.674157303344" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="16.85393258427px" transform="">10</text><text class="pin-number" x="602.2471910112599" y="262.92134831458" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="16.85393258427px" transform="">DP2</text><line class="component-pin" x1="613.48314606744" y1="442.69662921346" x2="656.179775280924" y2="442.69662921346" stroke-width="2.247191011236px"/><g data-schematic-port-id="source_port_10"><circle class="component-pin" cx="658.4269662921599" cy="442.69662921346" r="2.247191011236" stroke-width="2.247191011236px"/><rect x="656.1797752809239" y="440.44943820222403" width="4.494382022472" height="4.494382022472" opacity="0"/></g><text class="pin-number" x="635.9550561798" y="440.449438202224" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="16.85393258427px" transform="">11</text><text class="pin-number" x="602.2471910112599" y="442.69662921346" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="16.85393258427px" transform="">SBU1</text><line class="component-pin" x1="613.48314606744" y1="397.75280898874" x2="656.179775280924" y2="397.75280898874" stroke-width="2.247191011236px"/><g data-schematic-port-id="source_port_11"><circle class="component-pin" cx="658.4269662921599" cy="397.75280898874" r="2.247191011236" stroke-width="2.247191011236px"/><rect x="656.1797752809239" y="395.505617977504" width="4.494382022472" height="4.494382022472" opacity="0"/></g><text class="pin-number" x="635.9550561798" y="395.505617977504" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="middle" dominant-baseline="auto" font-size="16.85393258427px" transform="">12</text><text class="pin-number" x="602.2471910112599" y="397.75280898874" style="font-family: sans-serif;" fill="rgb(169, 0, 0)" text-anchor="end" dominant-baseline="middle" font-size="16.85393258427px" transform="">CC2</text></g><g class="schematic-port-hover" data-schematic-port-id="source_port_0"><circle cx="456.17977528091996" cy="532.5842696628999" r="4.494382022472" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_1"><circle cx="478.65168539327993" cy="532.5842696628999" r="4.494382022472" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_2"><circle cx="658.4269662921599" cy="150.56179775277997" r="4.494382022472" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_3"><circle cx="658.4269662921599" cy="173.03370786513997" r="4.494382022472" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_4"><circle cx="658.4269662921599" cy="465.16853932582" r="4.494382022472" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_5"><circle cx="658.4269662921599" cy="375.28089887638" r="4.494382022472" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_6"><circle cx="658.4269662921599" cy="307.8651685393" r="4.494382022472" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_7"><circle cx="658.4269662921599" cy="240.44943820222" r="4.494382022472" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_8"><circle cx="658.4269662921599" cy="285.39325842694" r="4.494382022472" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_9"><circle cx="658.4269662921599" cy="262.92134831458" r="4.494382022472" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_10"><circle cx="658.4269662921599" cy="442.69662921346" r="4.494382022472" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_11"><circle cx="658.4269662921599" cy="397.75280898874" r="4.494382022472" fill="red" opacity="0"/></g></svg>