MustafaMulla29/wireless-mouse-pcb

This code defines a 3.3V low dropout voltage regulator chip (AP2112K-3.3TRG1) with five pins (VIN, GND, Enable, NC, VOUT) and its associated PCB footprint and 3D models for hardware implementation.

Version
1.0.6
License
unset
Stars
0

imports/EC05E1220202.tsx

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

const pinLabels = {
  pin4: ["pin4"],
  pin5: ["pin5"],
  pin6: ["A"],
  pin7: ["C"],
  pin8: ["B"]
} as const

export const EC05E1220202 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <schematicpath points={[{"x":-0.28,"y":-0.08},{"x":-0.28,"y":-0.34},{"x":0.3,"y":-0.34},{"x":0.3,"y":-0.08}]} strokeColor="#880000" />
          <port name="pin6" pinNumber={6} aliases={["A"]} direction="down" schX={0.2} schY={-0.6} schStemLength={0.2} />
          <port name="pin8" pinNumber={8} aliases={["B"]} direction="down" schX={-0.2} schY={-0.6} schStemLength={0.2} />
          <port name="pin7" pinNumber={7} aliases={["C"]} direction="down" schX={0} schY={-0.6} schStemLength={0.2} />
          <port name="pin4" pinNumber={4} aliases={["4"]} direction="right" schX={0.6} schY={0.2} schStemLength={0.2} />
          <port name="pin5" pinNumber={5} aliases={["5"]} direction="left" schX={-0.6} schY={0.2} schStemLength={0.2} />
          <schematicpath points={[{"x":-0.2,"y":-0.4},{"x":-0.2,"y":-0.34}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":-0.4},{"x":0,"y":-0.34}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.2,"y":-0.4},{"x":0.2,"y":-0.34}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.2,"y":0.6},{"x":0.2,"y":0.6},{"x":0.4,"y":0.28},{"x":0.4,"y":-0.08},{"x":0.3,"y":-0.08}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.2,"y":0.6},{"x":-0.4,"y":0.28},{"x":-0.4,"y":-0.08},{"x":-0.28,"y":-0.08}]} strokeColor="#880000" />
          <schematiccircle center={{ x: 0, y: 0.2 }} radius={0.16} color="#880000" />
          <schematicpath points={[{"x":-0.1,"y":0.32},{"x":0.1,"y":0.32},{"x":0.16,"y":0.2},{"x":0.1,"y":0.08},{"x":-0.08,"y":0.08},{"x":-0.16,"y":0.2},{"x":-0.08,"y":0.32}]} strokeColor="#880000" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C202421"
  ]
}}
      manufacturerPartNumber="EC05E1220202"
      footprint={<footprint>
        <smtpad portHints={["pin6"]} pcbX="2.000123mm" pcbY="-0.60006865mm" width="0.999998mm" height="1.999996mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="0.000127mm" pcbY="-0.60006865mm" width="0.999998mm" height="1.999996mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="-1.999869mm" pcbY="-0.60006865mm" width="0.999998mm" height="1.999996mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-3.624961mm" pcbY="0.25006935mm" width="1.2500102mm" height="2.6999946mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="3.624961mm" pcbY="0.25006935mm" width="1.2500102mm" height="2.6999946mm" shape="rect" />
<silkscreenpath route={[{"x":-2.7310588000001417,"y":-0.5750750500000095},{"x":-2.7687778000000662,"y":-0.5750750500000095}]} />
<silkscreenpath route={[{"x":-0.7310628000000179,"y":-0.5750750500000095},{"x":-1.2687808000000587,"y":-0.5750750500000095}]} />
<silkscreenpath route={[{"x":1.2689331999999922,"y":-0.5750750500000095},{"x":0.7312152000000651,"y":-0.5750750500000095}]} />
<silkscreenpath route={[{"x":2.8000705999999127,"y":-0.5750750500000095},{"x":2.731211199999848,"y":-0.5750750500000095}]} />
<silkscreenpath route={[{"x":-3.429838200000063,"y":2.524893350000184},{"x":-3.729837599999996,"y":2.524893350000184},{"x":-3.729837599999996,"y":1.754892350000091}]} />
<silkscreenpath route={[{"x":3.450056600000039,"y":2.5349263500000916},{"x":3.750081399999999,"y":2.5349263500000916},{"x":3.750081399999999,"y":1.7649253500001123}]} />
<silkscreenpath route={[{"x":-1.3299186000000418,"y":2.524893350000184},{"x":1.320088799999894,"y":2.524893350000184}]} />
<silkscreentext text="{NAME}" pcbX="0.013335mm" pcbY="4.46037535mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":-1.9999198000000433,"y":2.22491935000005},{"x":-2.9999177999999347,"y":2.22491935000005},{"x":-2.9999177999999347,"y":2.524918750000097},{"x":-1.9999198000000433,"y":2.524918750000097},{"x":-1.9999198000000433,"y":2.22491935000005}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":3.0000702000000956,"y":2.22486855000011},{"x":2.000072199999977,"y":2.22486855000011},{"x":2.000072199999977,"y":2.524867950000157},{"x":3.0000702000000956,"y":2.524867950000157},{"x":3.0000702000000956,"y":2.22486855000011}]} strokeWidth="0.254mm" />
<courtyardoutline outline={[{"x":-4.491165000000024,"y":3.710375350000163},{"x":4.517834999999877,"y":3.710375350000163},{"x":4.517834999999877,"y":-1.844224650000001},{"x":-4.491165000000024,"y":-1.844224650000001},{"x":-4.491165000000024,"y":3.710375350000163}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C202421.obj?uuid=e9a569df33bc40dfb2eba791c47055ce",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C202421.step?uuid=e9a569df33bc40dfb2eba791c47055ce",
        pcbRotationOffset: 180,
        modelOriginPosition: { x: 0.00008889999992334197, y: 0.9749219499999981, z: -0.0000029999999999752447 },
      }}
      {...props}
    />
  )
}