techmannih/regulator-SPX1117M3L50TR

Generated from JLCPCB part number C21946

Usage: To import and use the SPX1117M3L50TR regulator component in a tscircuit project: ```tsx import { SPX1117M3L50TR } from "@tsci/techmannih.regulator-SPX1117M3L50TR" export default () => ( <board> <SPX1117M3L50TR name="U1" /> </board> ) ``` The component has these pins: - pin1: GND - pin2: output1 - pin3: input - pin4: output2 You can connect these pins using the `sel` utility: ```tsx <trace from={sel.U1.input} to="net.VIN" /> <trace from={sel.U1.output1} to="net.VOUT" /> ``` The component supports PCB layout with a specific footprint and includes a CAD model reference.

Version
0.1.0
License
unset
Stars
1

index.ts

PCBPCB preview for index.ts
SchematicSchematic preview for index.ts
import { createUseComponent } from "@tscircuit/core"
import type { CommonLayoutProps } from "@tscircuit/props"

const pinLabels = {
  "pin1": [
    "pin1",
    "GND"
  ],
  "pin2": [
    "pin2",
    "output1"
  ],
  "pin3": [
    "pin3",
    "input"
  ],
  "pin4": [
    "pin4",
    "output2"
  ]
} as const

interface Props extends CommonLayoutProps {
  name: string
}

export const SPX1117M3L50TR = (props: Props) => {
  return (
    <chip
      {...props}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/download?uuid=e80246a9471445bfb635be848806a22e&pn=C21946",
        rotationOffset: {    x: 0,
      y: 0,
      z: 180,},
        positionOffset: { x: 0, y: 0, z: 0 },
      }}
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C21946"
  ]
}}
      manufacturerPartNumber="SPX1117M3_L_5_0_TR"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="2.834893999999963mm" pcbY="-2.2999699999999166mm" width="2.4699975999999997mm" height="0.9800081999999999mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="2.834893999999963mm" pcbY="0mm" width="2.4699975999999997mm" height="0.9800081999999999mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="2.834893999999963mm" pcbY="2.2999700000000303mm" width="2.4699975999999997mm" height="0.9800081999999999mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-2.8348940000000766mm" pcbY="0mm" width="2.4699975999999997mm" height="3.5999928mm" shape="rect" />
<silkscreenpath route={[{"x":-1.3713967999999568,"y":-3.3262061999998878},{"x":-1.3713967999999568,"y":3.3262062000000014},{"x":1.3713967999999568,"y":3.3262062000000014},{"x":1.3713967999999568,"y":-3.3262061999998878},{"x":-1.3713967999999568,"y":-3.3262061999998878}]} />
      </footprint>}
    />
  )
}

export const useSPX1117M3L50TR = createUseComponent(SPX1117M3L50TR, pinLabels)