mohan-bee/drone

This code defines the physical hardware layout and component placements for a drone's circuit board, including outlines, cutouts, and detailed PCB footprints for various electronic components like microcontrollers, sensors, connectors, and passive devices.

Version
1.0.11
License
unset
Stars
0

imports/CP2102N_A02_GQFN28R.tsx

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

const pinLabels = {
  pin1: ["DCD"],
  pin2: ["pin2"],
  pin3: ["GND"],
  pin4: ["D_POS"],
  pin5: ["D_NEG"],
  pin6: ["VDD"],
  pin7: ["VREGIN"],
  pin8: ["VBUS"],
  pin9: ["RSTb"],
  pin10: ["NC"],
  pin11: ["SUSPENDb"],
  pin12: ["SUSPEND"],
  pin13: ["CHREN"],
  pin14: ["CHR1"],
  pin15: ["CHR0"],
  pin16: ["pin16"],
  pin17: ["pin17"],
  pin18: ["pin18"],
  pin19: ["pin19"],
  pin20: ["pin20"],
  pin21: ["pin21"],
  pin22: ["pin22"],
  pin23: ["CTS"],
  pin24: ["RTS"],
  pin25: ["RXD"],
  pin26: ["TXD"],
  pin27: ["DSR"],
  pin28: ["DTR"],
  pin29: ["EP"]
} as const

export const CP2102N_A02_GQFN28R = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C964632"
  ]
}}
      manufacturerPartNumber="CP2102N_A02_GQFN28R"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-2.37744mm" pcbY="1.49987mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-2.37744mm" pcbY="0.999998mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-2.37744mm" pcbY="0.499872mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-2.37744mm" pcbY="0mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-2.37744mm" pcbY="-0.500126mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="-2.37744mm" pcbY="-0.999998mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="-2.37744mm" pcbY="-1.500124mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="-1.49987mm" pcbY="-2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin9"]} pcbX="-0.999998mm" pcbY="-2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin10"]} pcbX="-0.499872mm" pcbY="-2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin11"]} pcbX="0mm" pcbY="-2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin12"]} pcbX="0.500126mm" pcbY="-2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin13"]} pcbX="0.999998mm" pcbY="-2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin14"]} pcbX="1.500124mm" pcbY="-2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin15"]} pcbX="2.37744mm" pcbY="-1.500124mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin16"]} pcbX="2.37744mm" pcbY="-0.999998mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin17"]} pcbX="2.37744mm" pcbY="-0.500126mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin18"]} pcbX="2.37744mm" pcbY="0mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin19"]} pcbX="2.37744mm" pcbY="0.499872mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin20"]} pcbX="2.37744mm" pcbY="0.999998mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin21"]} pcbX="2.37744mm" pcbY="1.49987mm" width="0.905002mm" height="0.2800096mm" shape="rect" />
<smtpad portHints={["pin22"]} pcbX="1.500124mm" pcbY="2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin23"]} pcbX="0.999998mm" pcbY="2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin24"]} pcbX="0.500126mm" pcbY="2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin25"]} pcbX="0mm" pcbY="2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin26"]} pcbX="-0.499872mm" pcbY="2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin27"]} pcbX="-0.999998mm" pcbY="2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin28"]} pcbX="-1.49987mm" pcbY="2.37744mm" width="0.2800096mm" height="0.905002mm" shape="rect" />
<smtpad portHints={["pin29"]} pcbX="0mm" pcbY="0mm" width="3.350006mm" height="3.350006mm" shape="rect" />
<silkscreenpath route={[{"x":1.8305018000000928,"y":2.5761949999999842},{"x":2.5761949999999842,"y":2.5761949999999842},{"x":2.5761949999999842,"y":1.8305018000000928}]} />
<silkscreenpath route={[{"x":1.8305018000000928,"y":-2.5761949999998706},{"x":2.5761949999999842,"y":-2.5761949999998706},{"x":2.5761949999999842,"y":-1.830501799999979}]} />
<silkscreenpath route={[{"x":-1.8305018000000928,"y":2.5761949999999842},{"x":-2.5761949999999842,"y":2.5761949999999842},{"x":-2.5761949999999842,"y":1.8305018000000928}]} />
<silkscreenpath route={[{"x":-1.8305018000000928,"y":-2.5761949999998706},{"x":-2.5761949999999842,"y":-2.5761949999998706},{"x":-2.5761949999999842,"y":-1.830501799999979}]} />
<silkscreenpath route={[{"x":-3.0551120000000083,"y":1.4998700000001008},{"x":-3.0576651778361565,"y":1.4804766889506027},{"x":-3.065150716494486,"y":1.4624049999999897},{"x":-3.0770584888857684,"y":1.4468864888858661},{"x":-3.092576999999892,"y":1.4349787164945838},{"x":-3.110648688950505,"y":1.4274931778362543},{"x":-3.130042000000003,"y":1.424940000000106},{"x":-3.1494353110495013,"y":1.4274931778362543},{"x":-3.167507000000114,"y":1.4349787164945838},{"x":-3.183025511114238,"y":1.4468864888858661},{"x":-3.19493328350552,"y":1.4624049999999897},{"x":-3.2024188221638497,"y":1.4804766889506027},{"x":-3.204971999999998,"y":1.4998700000001008},{"x":-3.2024188221638497,"y":1.519263311049599},{"x":-3.19493328350552,"y":1.5373350000000983},{"x":-3.183025511114238,"y":1.5528535111143356},{"x":-3.167507000000114,"y":1.564761283505618},{"x":-3.1494353110495013,"y":1.5722468221639474},{"x":-3.130042000000003,"y":1.5748000000000957},{"x":-3.110648688950505,"y":1.5722468221639474},{"x":-3.092576999999892,"y":1.564761283505618},{"x":-3.0770584888857684,"y":1.5528535111143356},{"x":-3.065150716494486,"y":1.5373350000000983},{"x":-3.0576651778361565,"y":1.519263311049599},{"x":-3.0551120000000083,"y":1.4998700000001008}]} />
<silkscreentext text="{NAME}" pcbX="-0.1778mm" pcbY="3.8194mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-3.450399999999945,"y":3.069400000000087},{"x":3.094799999999964,"y":3.069400000000087},{"x":3.094799999999964,"y":-3.0948000000000775},{"x":-3.450399999999945,"y":-3.0948000000000775},{"x":-3.450399999999945,"y":3.069400000000087}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C964632.obj?uuid=61cfa56e70774ad8ac53f7c7ad5b53e4",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C964632.step?uuid=61cfa56e70774ad8ac53f7c7ad5b53e4",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: 0, z: 0.01 },
      }}
      {...props}
    />
  )
}