imrishabh18/fitness_watch

This code defines a React component representing an AO3400A SOT-23P surface-mount N-channel MOSFET with three pins labeled Gate (G), Source (S), and Drain (D), including electrical and physical pin configurations, schematic symbol, and associated 3D model.

Version
1.0.7
License
unset
Stars
0

imports/AO3401A.tsx

import type { ChipProps } from "@tscircuit/props"
import objPath from "./AO3401A/AO3401A.obj"

const pinLabels = {
  pin1: ["G"],
  pin2: ["S"],
  pin3: ["D"]
} as const

const pinAttributes = {
  pin1: { mustBeConnected: true },
  pin2: { providesPower: true },
  pin3: { requiresPower: true },
} as const

export const AO3401A = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      symbol={
        <symbol>
          <schematicpath points={[{"x":0.2,"y":0},{"x":0.08,"y":0.04},{"x":0.08,"y":-0.04},{"x":0.2,"y":0}]} strokeColor="#880000" isFilled fillColor="#880000" />
          <schematicpath points={[{"x":0.4,"y":-0.04},{"x":0.46,"y":0.06},{"x":0.34,"y":0.06},{"x":0.4,"y":-0.04}]} strokeColor="#880000" isFilled fillColor="#880000" />
          <schematicpath points={[{"x":0.2,"y":-0.2},{"x":0.4,"y":-0.2},{"x":0.4,"y":-0.04}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.2,"y":0.14},{"x":0.2,"y":0.2},{"x":0.4,"y":0.2},{"x":0.4,"y":0.06}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.2,"y":0.14},{"x":0,"y":0.14}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":0},{"x":0.2,"y":0},{"x":0.2,"y":-0.2}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.2,"y":-0.14},{"x":0,"y":-0.14}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.04,"y":0.18},{"x":-0.04,"y":-0.18}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":0.1},{"x":0,"y":0.18}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":-0.04},{"x":0,"y":0.04}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":-0.18},{"x":0,"y":-0.1}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.2,"y":0},{"x":-0.04,"y":0}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.46,"y":-0.04},{"x":0.44,"y":-0.04},{"x":0.36,"y":-0.04},{"x":0.34,"y":-0.04}]} strokeColor="#880000" />
          <port name="pin3" pinNumber={3} aliases={["D"]} direction="up" schX={0.2} schY={0.4} schStemLength={0.2} />
          <port name="pin1" pinNumber={1} aliases={["G"]} direction="left" schX={-0.4} schY={0} schStemLength={0.2} />
          <port name="pin2" pinNumber={2} aliases={["S"]} direction="down" schX={0.2} schY={-0.4} schStemLength={0.2} />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C15127"
  ]
}}
      manufacturerPartNumber="AO3401A"
      footprint="sot23w_p1.15mm_pw0.8mm_pin1location(rightside,bottom)"
      cadModel={{
        objUrl: objPath,
        pcbRotationOffset: 180,
        modelOriginPosition: { x: 0.00003809999999759839, y: -0.00003810000001180924, z: 0.050795 },
      }}
      {...props}
    />
  )
}