ShiboSoftwareDev/clip-on-battery-meter-2

The code defines virtual representations of various electronic components—such as a BAT54WS Schottky diode and LM339 and LM393 voltage comparators—with physical pin configurations, footprints, and 3D models for PCB design.

Version
1.0.13
License
unset
Stars
0

imports/LMV331IDBVR.tsx

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

const pinLabels = {
  pin1: ["IN_POS"],
  pin2: ["GND"],
  pin3: ["IN_NEG"],
  pin4: ["OUT"],
  pin5: ["VCC_POS"]
} as const

const pinAttributes = {
  pin1: { mustBeConnected: true },
  IN_POS: { mustBeConnected: true },
  pin2: { requiresGround: true, mustBeConnected: true },
  GND: { requiresGround: true, mustBeConnected: true },
  pin3: { mustBeConnected: true },
  IN_NEG: { mustBeConnected: true },
  pin4: { mustBeConnected: true },
  OUT: { mustBeConnected: true },
  pin5: { requiresPower: true, mustBeConnected: true },
  VCC_POS: { requiresPower: true, mustBeConnected: true },
} as any

export const LMV331IDBVR = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C34731"
  ]
}}
      manufacturerPartNumber="LMV331IDBVR"
      footprint={<footprint>
        <smtpad portHints={["pin5"]} pcbX="-1.300098999999932mm" pcbY="-0.9499600000000328mm" width="1.0999978mm" height="0.5999987999999999mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-1.300098999999932mm" pcbY="0.9499599999999191mm" width="1.0999978mm" height="0.5999987999999999mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="1.300098999999932mm" pcbY="0.9499599999999191mm" width="1.0999978mm" height="0.5999987999999999mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="1.300098999999932mm" pcbY="0mm" width="1.0999978mm" height="0.5999987999999999mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="1.300098999999932mm" pcbY="-0.9499600000000328mm" width="1.0999978mm" height="0.5999987999999999mm" shape="rect" />
<silkscreenpath route={[{"x":0.8999728000000005,"y":-1.404111999999941},{"x":0.8999728000000005,"y":-1.5500604000000067}]} />
<silkscreenpath route={[{"x":0.8999728000000005,"y":-0.45412660000010874},{"x":0.8999728000000005,"y":-0.4958079999998972}]} />
<silkscreenpath route={[{"x":0.8999728000000005,"y":0.4958079999998972},{"x":0.8999728000000005,"y":0.45415200000002187}]} />
<silkscreenpath route={[{"x":0.8999728000000005,"y":1.5499587999998994},{"x":0.8999728000000005,"y":1.404111999999941}]} />
<silkscreenpath route={[{"x":-0.9000489999999672,"y":-1.404111999999941},{"x":-0.9000489999999672,"y":-1.5500604000000067}]} />
<silkscreenpath route={[{"x":-0.9000489999999672,"y":0.4958079999998972},{"x":-0.9000489999999672,"y":-0.4958334000000377}]} />
<silkscreenpath route={[{"x":-0.9000489999999672,"y":1.5499587999998994},{"x":-0.9000489999999672,"y":1.4040866000000278}]} />
<silkscreenpath route={[{"x":-0.9000489999999672,"y":1.5499587999998994},{"x":0.8999728000000005,"y":1.5499587999998994}]} />
<silkscreenpath route={[{"x":-0.9000489999999672,"y":-1.5500604000000067},{"x":0.8999728000000005,"y":-1.5500604000000067}]} />
<courtyardoutline outline={[{"x":-2.091880999999944,"y":1.8123540000000276},{"x":2.1165190000000393,"y":1.8123540000000276},{"x":2.1165190000000393,"y":-1.786446000000069},{"x":-2.091880999999944,"y":-1.786446000000069},{"x":-2.091880999999944,"y":1.8123540000000276}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C34731.obj?uuid=460193f9bf2d42e58cf3c2f675b07dc6",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C34731.step?uuid=460193f9bf2d42e58cf3c2f675b07dc6",
        pcbRotationOffset: 180,
        modelOriginPosition: { x: 0, y: 0, z: -0.049083 },
      }}
      {...props}
    />
  )
}