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/NRF52810_QFAA_R.tsx

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

const pinLabels = {
  pin1: ["DEC1"],
  pin2: ["pin2"],
  pin3: ["pin3"],
  pin4: ["pin4"],
  pin5: ["pin5"],
  pin6: ["pin6"],
  pin7: ["pin7"],
  pin8: ["pin8"],
  pin9: ["pin9"],
  pin10: ["pin10"],
  pin11: ["pin11"],
  pin12: ["pin12"],
  pin13: ["VDD1"],
  pin14: ["pin14"],
  pin15: ["pin15"],
  pin16: ["pin16"],
  pin17: ["pin17"],
  pin18: ["pin18"],
  pin19: ["pin19"],
  pin20: ["pin20"],
  pin21: ["pin21"],
  pin22: ["pin22"],
  pin23: ["pin23"],
  pin24: ["pin24"],
  pin25: ["SWDCLK"],
  pin26: ["SWDIO"],
  pin27: ["pin27"],
  pin28: ["pin28"],
  pin29: ["pin29"],
  pin30: ["ANT"],
  pin31: ["VSS2"],
  pin32: ["DEC2"],
  pin33: ["DEC3"],
  pin34: ["XC1"],
  pin35: ["XC2"],
  pin36: ["VDD3"],
  pin37: ["pin37"],
  pin38: ["pin38"],
  pin39: ["pin39"],
  pin40: ["pin40"],
  pin41: ["pin41"],
  pin42: ["pin42"],
  pin43: ["pin43"],
  pin44: ["NC"],
  pin45: ["VSS1"],
  pin46: ["DEC4"],
  pin47: ["DCC"],
  pin48: ["VDD2"],
  pin49: ["EP"]
} as const

const pinAttributes = {
  pin13: {requiresPower: true},
  pin31: {requiresGround: true},
  pin36: {requiresPower: true},
  pin44: {doNotConnect: true},
  pin45: {requiresGround: true},
  pin48: {requiresPower: true}
} as const

export const NRF52810_QFAA_R = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C141828"
  ]
}}
      manufacturerPartNumber="NRF52810-QFAA-R"
      footprint={<footprint>
        <smtpad portHints={["pin49"]} pcbX="-0.0009398mm" pcbY="0.00127mm" width="4.5999908mm" height="4.5999908mm" shape="rect" />
<smtpad portHints={["pin13"]} pcbX="2.999994mm" pcbY="-2.200148mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin14"]} pcbX="2.999994mm" pcbY="-1.800098mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin15"]} pcbX="2.999994mm" pcbY="-1.400048mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin16"]} pcbX="2.999994mm" pcbY="-0.999998mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin17"]} pcbX="2.999994mm" pcbY="-0.599948mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin18"]} pcbX="2.999994mm" pcbY="-0.200152mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin19"]} pcbX="2.999994mm" pcbY="0.199898mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin20"]} pcbX="2.999994mm" pcbY="0.599948mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin21"]} pcbX="2.999994mm" pcbY="0.999998mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin22"]} pcbX="2.999994mm" pcbY="1.400048mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin23"]} pcbX="2.999994mm" pcbY="1.799844mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin24"]} pcbX="2.999994mm" pcbY="2.199894mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin37"]} pcbX="-2.999994mm" pcbY="2.199894mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin38"]} pcbX="-2.999994mm" pcbY="1.799844mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin39"]} pcbX="-2.999994mm" pcbY="1.400048mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin40"]} pcbX="-2.999994mm" pcbY="0.999998mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin41"]} pcbX="-2.999994mm" pcbY="0.599948mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin42"]} pcbX="-2.999994mm" pcbY="0.199898mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin43"]} pcbX="-2.999994mm" pcbY="-0.200152mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin44"]} pcbX="-2.999994mm" pcbY="-0.599948mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin45"]} pcbX="-2.999994mm" pcbY="-0.999998mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin46"]} pcbX="-2.999994mm" pcbY="-1.400048mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin47"]} pcbX="-2.999994mm" pcbY="-1.800098mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin48"]} pcbX="-2.999994mm" pcbY="-2.200148mm" width="0.9500108mm" height="0.1999996mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin36"]} pcbX="-2.199894mm" pcbY="2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin35"]} pcbX="-1.799844mm" pcbY="2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin34"]} pcbX="-1.400048mm" pcbY="2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin33"]} pcbX="-0.999998mm" pcbY="2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin32"]} pcbX="-0.599948mm" pcbY="2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin31"]} pcbX="-0.199898mm" pcbY="2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin30"]} pcbX="0.200152mm" pcbY="2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin29"]} pcbX="0.599948mm" pcbY="2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin28"]} pcbX="0.999998mm" pcbY="2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin27"]} pcbX="1.400048mm" pcbY="2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin26"]} pcbX="1.800098mm" pcbY="2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin25"]} pcbX="2.200148mm" pcbY="2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin12"]} pcbX="2.200148mm" pcbY="-2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin11"]} pcbX="1.800098mm" pcbY="-2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin10"]} pcbX="1.400048mm" pcbY="-2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin9"]} pcbX="0.999998mm" pcbY="-2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin8"]} pcbX="0.599948mm" pcbY="-2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin7"]} pcbX="0.200152mm" pcbY="-2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin6"]} pcbX="-0.199898mm" pcbY="-2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin5"]} pcbX="-0.599948mm" pcbY="-2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin4"]} pcbX="-0.999998mm" pcbY="-2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin3"]} pcbX="-1.400048mm" pcbY="-2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin2"]} pcbX="-1.799844mm" pcbY="-2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<smtpad portHints={["pin1"]} pcbX="-2.199894mm" pcbY="-2.999994mm" width="0.1999996mm" height="0.9500108mm" radius="0.0999998mm" shape="pill" />
<silkscreenpath route={[{"x":-2.9999431999999615,"y":2.5320498000000953},{"x":-2.9999431999999615,"y":2.999943200000075}]} />
<silkscreenpath route={[{"x":-2.5320498000000953,"y":-3.0000447999998414},{"x":-2.9999431999999615,"y":-3.0000447999998414},{"x":-2.9999431999999615,"y":-2.5295097999999143}]} />
<silkscreenpath route={[{"x":3.000044799999955,"y":-2.5295097999999143},{"x":3.000044799999955,"y":-3.0000447999998414},{"x":2.5320498000000953,"y":-3.0000447999998414}]} />
<silkscreenpath route={[{"x":2.5320498000000953,"y":2.999943200000075},{"x":3.000044799999955,"y":2.999943200000075},{"x":3.000044799999955,"y":2.5320498000000953}]} />
<silkscreenpath route={[{"x":-2.9999431999999615,"y":2.999943200000075},{"x":-2.5320498000000953,"y":2.999943200000075}]} />
<silkscreenpath route={[{"x":-2.8012643999999227,"y":-3.400043999999866},{"x":-2.950005455997598,"y":-3.2494019702960486},{"x":-2.799994399999946,"y":-3.100024575985117},{"x":-2.6499833440024076,"y":-3.249401970295935},{"x":-2.798724400000083,"y":-3.400043999999866}]} />
<silkscreentext text="{NAME}" pcbX="0.00254mm" pcbY="4.4798mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-3.727260000000001,"y":3.7298000000000684},{"x":3.732340000000022,"y":3.7298000000000684},{"x":3.732340000000022,"y":-3.932999999999879},{"x":-3.727260000000001,"y":-3.932999999999879},{"x":-3.727260000000001,"y":3.7298000000000684}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C141828.obj?uuid=46b18d34784345cd8b1ca45b59e906cb",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C141828.step?uuid=46b18d34784345cd8b1ca45b59e906cb",
        pcbRotationOffset: 270,
        modelOriginPosition: { x: -0.00005079999993995443, y: -0.00005079999993995443, z: 0 },
      }}
      {...props}
    />
  )
}