tscircuit/ti

ti tscircuit library

Version
1.0.186
License
unset
Stars
0

lib/chips/SMPP2_03.circuit.tsx

import type { ChipProps } from "@tscircuit/props";
import "tscircuit";

const pinLabels = {
  pin1: ["VOUT_POS", "BRIDGE_POS"],
  pin2: ["NC"],
  pin3: ["GND"],
  pin4: ["VOUT_NEG", "BRIDGE_NEG"],
  pin5: ["N_SUB"],
  pin6: ["ICC", "I_CC"],
} as const;

const pinAttributes = {
  pin1: { mustBeConnected: true },
  pin2: { doNotConnect: true },
  pin3: { mustBeConnected: true },
  pin4: { mustBeConnected: true },
  pin5: { mustBeConnected: true },
  pin6: { mustBeConnected: true },
} as const;

export const SMPP2_03 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      datasheetUrl="https://components.omron.com/eu-en/products/sensors/2SMPP-03"
      schWidth="3.2mm"
      schHeight="1.8mm"
      schPinArrangement={{
        leftSide: { direction: "top-to-bottom", pins: ["ICC", "N_SUB", "NC"] },
        rightSide: {
          direction: "top-to-bottom",
          pins: ["VOUT_POS", "VOUT_NEG", "GND"],
        },
      }}
      schPinStyle={{
        N_SUB: { marginTop: 0.15 },
        NC: { marginTop: 0.15 },
        VOUT_NEG: { marginTop: 0.15 },
        GND: { marginTop: 0.15 },
      }}
      supplierPartNumbers={{
        jlcpcb: ["C3243672"],
      }}
      manufacturerPartNumber="2SMPP03"
      footprint={
        <footprint>
          <smtpad
            portHints={["pin1"]}
            pcbX="-1.27mm"
            pcbY="-4.230116mm"
            width="0.5599938mm"
            height="2.7100022mm"
            radius="0.2799969mm"
            shape="pill"
          />
          <smtpad
            portHints={["pin2"]}
            pcbX="0mm"
            pcbY="-4.230116mm"
            width="0.5599938mm"
            height="2.7100022mm"
            radius="0.2799969mm"
            shape="pill"
          />
          <smtpad
            portHints={["pin3"]}
            pcbX="1.27mm"
            pcbY="-4.230116mm"
            width="0.5599938mm"
            height="2.7100022mm"
            radius="0.2799969mm"
            shape="pill"
          />
          <smtpad
            portHints={["pin4"]}
            pcbX="1.27mm"
            pcbY="4.230116mm"
            width="0.5599938mm"
            height="2.7100022mm"
            radius="0.2799969mm"
            shape="pill"
          />
          <smtpad
            portHints={["pin5"]}
            pcbX="0mm"
            pcbY="4.230116mm"
            width="0.5599938mm"
            height="2.7100022mm"
            radius="0.2799969mm"
            shape="pill"
          />
          <smtpad
            portHints={["pin6"]}
            pcbX="-1.27mm"
            pcbY="4.230116mm"
            width="0.5599938mm"
            height="2.7100022mm"
            radius="0.2799969mm"
            shape="pill"
          />
          <silkscreenpath
            route={[
              { x: -2.4512016000000045, y: -2.570200600000007 },
              { x: -2.4512016000000045, y: 2.5702005999999926 },
              { x: 2.4512015999999903, y: 2.5702005999999926 },
              { x: 2.4512015999999903, y: -2.570200600000007 },
              { x: -2.4512016000000045, y: -2.570200600000007 },
            ]}
          />
          <silkscreencircle
            pcbX="-2.023872mm"
            pcbY="-2.142744mm"
            radius="0.137414mm"
          />
          <silkscreencircle
            pcbX="-2.286mm"
            pcbY="-3.81mm"
            radius="0.137414mm"
          />
          <silkscreentext
            text="{NAME}"
            pcbX="-0.0127mm"
            pcbY="6.3086mm"
            anchorAlignment="center"
            fontSize="1mm"
          />
          <fabricationnotepath
            route={[
              { x: 0, y: 2.099995799999988 },
              { x: 0.2531265222821162, y: 2.0846844662286514 },
              { x: 0.5025618898780806, y: 2.038973738639072 },
              { x: 0.744668773448808, y: 1.963530182571148 },
              { x: 0.9759167094545944, y: 1.85945393495642 },
              { x: 1.1929335822634783, y: 1.7282626618444397 },
              { x: 1.3925547971905132, y: 1.5718694274141711 },
              { x: 1.5718694274141853, y: 1.3925547971904848 },
              { x: 1.7282626618444539, y: 1.1929335822634783 },
              { x: 1.8594539349564343, y: 0.9759167094545802 },
              { x: 1.9635301825711622, y: 0.744668773448808 },
              { x: 2.038973738639072, y: 0.5025618898780664 },
              { x: 2.0846844662286514, y: 0.253126522282102 },
              { x: 2.099995799999988, y: -1.4210854715202004e-14 },
              { x: 1.99999600000001, y: -1.4210854715202004e-14 },
              { x: 1.9854137773606197, y: 0.24107287836392288 },
              { x: 1.9418797510848407, y: 0.47863037131244823 },
              { x: 1.8700287453058593, y: 0.7092083556655098 },
              { x: 1.7709085094823251, y: 0.9294444851948356 },
              { x: 1.645964439851852, y: 1.1361272212033242 },
              { x: 1.4970185022992126, y: 1.3262426639909393 },
              { x: 1.3262426639909535, y: 1.4970185022991984 },
              { x: 1.1361272212033384, y: 1.645964439851852 },
              { x: 0.9294444851948498, y: 1.770908509482311 },
              { x: 0.709208355665524, y: 1.870028745305845 },
              { x: 0.47863037131244823, y: 1.9418797510848407 },
              { x: 0.2410728783639371, y: 1.9854137773606055 },
              { x: 0, y: 1.9999959999999959 },
              { x: 0, y: 2.099995799999988 },
            ]}
            strokeWidth="0.254mm"
          />
          <fabricationnotepath
            route={[
              { x: -2.099995799999988, y: -1.4210854715202004e-14 },
              { x: -2.0846844662286514, y: 0.253126522282102 },
              { x: -2.038973738639072, y: 0.5025618898780664 },
              { x: -1.963530182571148, y: 0.744668773448808 },
              { x: -1.85945393495642, y: 0.9759167094545802 },
              { x: -1.7282626618444397, y: 1.1929335822634783 },
              { x: -1.5718694274141711, y: 1.392554797190499 },
              { x: -1.3925547971905132, y: 1.5718694274141711 },
              { x: -1.1929335822634783, y: 1.7282626618444397 },
              { x: -0.9759167094545944, y: 1.85945393495642 },
              { x: -0.744668773448808, y: 1.963530182571148 },
              { x: -0.5025618898780664, y: 2.038973738639072 },
              { x: -0.2531265222821162, y: 2.0846844662286514 },
              { x: 0, y: 2.099995799999988 },
              { x: 0, y: 1.9999959999999959 },
              { x: -0.2410728783639371, y: 1.9854137773606055 },
              { x: -0.47863037131244823, y: 1.9418797510848407 },
              { x: -0.709208355665524, y: 1.870028745305845 },
              { x: -0.9294444851948498, y: 1.770908509482311 },
              { x: -1.1361272212033384, y: 1.645964439851852 },
              { x: -1.3262426639909535, y: 1.4970185022991984 },
              { x: -1.4970185022992126, y: 1.3262426639909393 },
              { x: -1.645964439851852, y: 1.1361272212033242 },
              { x: -1.7709085094823251, y: 0.9294444851948356 },
              { x: -1.870028745305845, y: 0.7092083556655098 },
              { x: -1.9418797510848407, y: 0.47863037131244823 },
              { x: -1.9854137773606197, y: 0.24107287836392288 },
              { x: -1.99999600000001, y: -1.4210854715202004e-14 },
              { x: -2.099995799999988, y: -1.4210854715202004e-14 },
            ]}
            strokeWidth="0.254mm"
          />
          <fabricationnotepath
            route={[
              { x: 2.099995799999988, y: -1.4210854715202004e-14 },
              { x: 2.0846844662286514, y: -0.2531265222821162 },
              { x: 2.038973738639072, y: -0.5025618898780806 },
              { x: 1.9635301825711622, y: -0.7446687734488222 },
              { x: 1.8594539349564343, y: -0.9759167094546086 },
              { x: 1.7282626618444539, y: -1.1929335822634926 },
              { x: 1.5718694274141853, y: -1.3925547971905132 },
              { x: 1.3925547971905132, y: -1.5718694274141853 },
              { x: 1.1929335822634783, y: -1.7282626618444539 },
              { x: 0.9759167094545944, y: -1.8594539349564343 },
              { x: 0.744668773448808, y: -1.9635301825711622 },
              { x: 0.5025618898780806, y: -2.0389737386390863 },
              { x: 0.2531265222821162, y: -2.0846844662286657 },
              { x: 0, y: -2.099995800000002 },
              { x: 0, y: -1.99999600000001 },
              { x: 0.2410728783639371, y: -1.9854137773606197 },
              { x: 0.47863037131244823, y: -1.9418797510848549 },
              { x: 0.709208355665524, y: -1.8700287453058593 },
              { x: 0.9294444851948498, y: -1.7709085094823251 },
              { x: 1.1361272212033384, y: -1.6459644398518662 },
              { x: 1.3262426639909535, y: -1.4970185022992126 },
              { x: 1.4970185022992126, y: -1.3262426639909677 },
              { x: 1.645964439851852, y: -1.1361272212033384 },
              { x: 1.7709085094823251, y: -0.9294444851948498 },
              { x: 1.8700287453058593, y: -0.709208355665524 },
              { x: 1.9418797510848407, y: -0.47863037131246244 },
              { x: 1.9854137773606197, y: -0.2410728783639371 },
              { x: 1.99999600000001, y: -1.4210854715202004e-14 },
              { x: 2.099995799999988, y: -1.4210854715202004e-14 },
            ]}
            strokeWidth="0.254mm"
          />
          <fabricationnotepath
            route={[
              { x: 0, y: -2.099995800000002 },
              { x: -0.2531265222821162, y: -2.0846844662286657 },
              { x: -0.5025618898780664, y: -2.0389737386390863 },
              { x: -0.744668773448808, y: -1.9635301825711622 },
              { x: -0.9759167094545944, y: -1.8594539349564343 },
              { x: -1.1929335822634783, y: -1.7282626618444539 },
              { x: -1.3925547971905132, y: -1.5718694274141853 },
              { x: -1.5718694274141711, y: -1.3925547971905132 },
              { x: -1.7282626618444397, y: -1.1929335822634926 },
              { x: -1.85945393495642, y: -0.9759167094546086 },
              { x: -1.963530182571148, y: -0.7446687734488222 },
              { x: -2.038973738639072, y: -0.5025618898780806 },
              { x: -2.0846844662286514, y: -0.2531265222821162 },
              { x: -2.099995799999988, y: -1.4210854715202004e-14 },
              { x: -1.99999600000001, y: -1.4210854715202004e-14 },
              { x: -1.9854137773606197, y: -0.2410728783639371 },
              { x: -1.9418797510848407, y: -0.47863037131246244 },
              { x: -1.870028745305845, y: -0.709208355665524 },
              { x: -1.7709085094823251, y: -0.9294444851948498 },
              { x: -1.645964439851852, y: -1.1361272212033384 },
              { x: -1.4970185022992126, y: -1.3262426639909677 },
              { x: -1.3262426639909535, y: -1.4970185022992126 },
              { x: -1.1361272212033384, y: -1.6459644398518662 },
              { x: -0.9294444851948498, y: -1.7709085094823251 },
              { x: -0.709208355665524, y: -1.8700287453058593 },
              { x: -0.47863037131244823, y: -1.9418797510848549 },
              { x: -0.2410728783639371, y: -1.9854137773606197 },
              { x: 0, y: -1.99999600000001 },
              { x: 0, y: -2.099995800000002 },
            ]}
            strokeWidth="0.254mm"
          />
          <courtyardoutline
            outline={[
              { x: -2.713799999999992, y: 5.558599999999984 },
              { x: 2.6884000000000157, y: 5.558599999999984 },
              { x: 2.6884000000000157, y: -5.558600000000013 },
              { x: -2.713799999999992, y: -5.558600000000013 },
              { x: -2.713799999999992, y: 5.558599999999984 },
            ]}
          />
        </footprint>
      }
      {...props}
    />
  );
};

export default SMPP2_03;