tscircuit/motor-controller
This code defines a compact hardware layout with multiple integrated components such as microcontrollers, power regulators, sensors, connectors, and passive elements, all arranged on a PCB for a versatile electronic device.
- Version
- 1.0.14
- License
- unset
- Stars
- 0
imports/S4B_PH_SM4_K_TB_LF__SN_.tsx
import type { ChipProps } from "@tscircuit/props";
const pinLabels = {
pin1: ["A1"],
pin2: ["B1"],
pin3: ["A2"],
pin4: ["B2"],
} as const;
export const S4B_PH_SM4_K_TB_LF__SN_ = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
supplierPartNumbers={{
jlcpcb: ["C265332"],
}}
manufacturerPartNumber="S4B_PH_SM4_K_TB_LF__SN_"
footprint={
<footprint>
<smtpad
portHints={["pin1"]}
pcbX="3.002026mm"
pcbY="-3.2503745mm"
width="0.999998mm"
height="2.999994mm"
shape="rect"
/>
<smtpad
portHints={["pin2"]}
pcbX="0.999998mm"
pcbY="-3.2503745mm"
width="0.999998mm"
height="2.999994mm"
shape="rect"
/>
<smtpad
portHints={["pin3"]}
pcbX="-0.999998mm"
pcbY="-3.2503745mm"
width="0.999998mm"
height="2.999994mm"
shape="rect"
/>
<smtpad
portHints={["pin4"]}
pcbX="-2.999994mm"
pcbY="-3.2503745mm"
width="0.999998mm"
height="2.999994mm"
shape="rect"
/>
<smtpad
portHints={["pin5"]}
pcbX="-5.40004mm"
pcbY="2.7503755mm"
width="1.999996mm"
height="3.999992mm"
shape="rect"
/>
<smtpad
portHints={["pin6"]}
pcbX="5.40004mm"
pcbY="2.7503755mm"
width="1.999996mm"
height="3.999992mm"
shape="rect"
/>
<silkscreenpath
route={[
{ x: -3.7077396000001954, y: -1.6496411000000535 },
{ x: -5.001260000000002, y: -1.6496411000000535 },
{ x: -5.001260000000002, y: -1.6486505000001443 },
]}
/>
<silkscreenpath
route={[
{ x: 6.000013399999943, y: -1.6496411000000535 },
{ x: 3.70977159999984, y: -1.6496411000000535 },
]}
/>
<silkscreenpath
route={[
{ x: 3.9999919999999065, y: -1.6496157000001404 },
{ x: 4.5000164000000495, y: -0.7496175000001131 },
{ x: 5.000015399999938, y: -1.6496411000000535 },
]}
/>
<silkscreenpath
route={[
{ x: -5.001260000000002, y: -1.6486505000001443 },
{ x: -5.001260000000002, y: -3.248850500000117 },
]}
/>
<silkscreenpath
route={[
{ x: -4.999990000000025, y: -3.2496125000001257 },
{ x: -5.998209999999972, y: -3.2496125000001257 },
{ x: -5.998209999999972, y: -1.6494125000000395 },
]}
/>
<silkscreenpath
route={[
{ x: 6.000013399999943, y: -3.2496125000001257 },
{ x: 5.000015399999938, y: -3.2496125000001257 },
{ x: 5.000015399999938, y: -1.6496157000001404 },
]}
/>
<silkscreenpath
route={[
{ x: 6.000013399999943, y: -1.6496157000001404 },
{ x: 6.000013399999943, y: -3.2496125000001257 },
]}
/>
<silkscreenpath
route={[
{ x: -5.998209999999972, y: -1.6494125000000395 },
{ x: -5.99998800000003, y: -1.6494125000000395 },
{ x: -5.99998800000003, y: 0.5192394999999124 },
]}
/>
<silkscreenpath
route={[
{ x: 6.000013399999943, y: -1.6496411000000535 },
{ x: 5.999987999999917, y: -1.6496411000000535 },
{ x: 5.999987999999917, y: 0.5192394999999124 },
]}
/>
<silkscreenpath
route={[
{ x: -4.168902000000003, y: 4.350372300000004 },
{ x: 4.168901999999889, y: 4.350372300000004 },
]}
/>
<silkscreentext
text="{NAME}"
pcbX="0mm"
pcbY="5.7419895mm"
anchorAlignment="center"
fontSize="1mm"
/>
<courtyardoutline
outline={[
{ x: -6.650800000000004, y: 4.9919894999999315 },
{ x: 6.6508000000001175, y: 4.9919894999999315 },
{ x: 6.6508000000001175, y: -5.210810500000093 },
{ x: -6.650800000000004, y: -5.210810500000093 },
{ x: -6.650800000000004, y: 4.9919894999999315 },
]}
/>
</footprint>
}
cadModel={{
objUrl:
"https://modelcdn.tscircuit.com/easyeda_models/assets/C265332.obj?uuid=b20262abc44c45d5b414bbc2d0b40d89",
stepUrl:
"https://modelcdn.tscircuit.com/easyeda_models/assets/C265332.step?uuid=b20262abc44c45d5b414bbc2d0b40d89",
pcbRotationOffset: 180,
modelOriginPosition: { x: 0, y: 2.8736216000000026, z: 0.05 },
}}
{...props}
/>
);
};