mohan-bee/compact-pir

Compact 3.3 V ESP8684 wireless motion/GPIO breakout board with LiPo regulation, 40 MHz crystal, U.FL antenna matching, digital PIR sensor, switched LED, decoupling, and dual 10-pin headers.

Version
1.0.2
License
unset
Stars
0

imports/ESP8684H4X.tsx

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

const pinLabels = {
  pin1: ["ANT"],
  pin2: ["VDDA3P32"],
  pin3: ["VDDA3P31"],
  pin4: ["GPIO0"],
  pin5: ["GPIO1"],
  pin6: ["GPIO2"],
  pin7: ["CHIP_EN"],
  pin8: ["GPIO3"],
  pin9: ["MTMS"],
  pin10: ["MTDI"],
  pin11: ["VDD3P3_RTC"],
  pin12: ["MTCK"],
  pin13: ["MTDO"],
  pin14: ["GPIO8"],
  pin15: ["GPIO9"],
  pin16: ["GPIO10"],
  pin17: ["VDD3P3_CPU"],
  pin18: ["GPIO18"],
  pin19: ["U0RXD"],
  pin20: ["U0TXD"],
  pin21: ["VDDA2"],
  pin22: ["XTAL_N"],
  pin23: ["XTAL_P"],
  pin24: ["VDDA1"],
  pin25: ["EP"]
} as const

const pinAttributes = {
  pin25: {requiresGround: true},
  pin21: {requiresPower: true},
  pin24: {requiresPower: true}
} as const

export const ESP8684H4X = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C48929155"
  ]
}}
      manufacturerPartNumber="ESP8684H4X"
      footprint={<footprint>
        <smtpad portHints={["pin25"]} pcbX="-0.000127mm" pcbY="-0.000127mm" width="2.7999944mm" height="2.7999944mm" shape="rect" />
<smtpad portHints={["pin24"]} pcbX="-1.950085mm" pcbY="-1.250061mm" width="0.6999986mm" height="0.299974mm" shape="rect" />
<smtpad portHints={["pin23"]} pcbX="-1.950085mm" pcbY="-0.749935mm" width="0.6999986mm" height="0.299974mm" shape="rect" />
<smtpad portHints={["pin22"]} pcbX="-1.950085mm" pcbY="-0.250063mm" width="0.6999986mm" height="0.299974mm" shape="rect" />
<smtpad portHints={["pin21"]} pcbX="-1.950085mm" pcbY="0.249809mm" width="0.6999986mm" height="0.299974mm" shape="rect" />
<smtpad portHints={["pin20"]} pcbX="-1.950085mm" pcbY="0.749935mm" width="0.6999986mm" height="0.299974mm" shape="rect" />
<smtpad portHints={["pin19"]} pcbX="-1.950085mm" pcbY="1.249807mm" width="0.6999986mm" height="0.299974mm" shape="rect" />
<smtpad portHints={["pin18"]} pcbX="-1.250061mm" pcbY="1.950085mm" width="0.299974mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin17"]} pcbX="-0.750189mm" pcbY="1.950085mm" width="0.299974mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin16"]} pcbX="-0.250063mm" pcbY="1.950085mm" width="0.299974mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin15"]} pcbX="0.249809mm" pcbY="1.950085mm" width="0.299974mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin14"]} pcbX="0.749935mm" pcbY="1.950085mm" width="0.299974mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin13"]} pcbX="1.249807mm" pcbY="1.950085mm" width="0.299974mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin12"]} pcbX="1.950085mm" pcbY="1.249807mm" width="0.6999986mm" height="0.299974mm" shape="rect" />
<smtpad portHints={["pin11"]} pcbX="1.950085mm" pcbY="0.749935mm" width="0.6999986mm" height="0.299974mm" shape="rect" />
<smtpad portHints={["pin10"]} pcbX="1.950085mm" pcbY="0.249809mm" width="0.6999986mm" height="0.299974mm" shape="rect" />
<smtpad portHints={["pin9"]} pcbX="1.950085mm" pcbY="-0.250063mm" width="0.6999986mm" height="0.299974mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="1.950085mm" pcbY="-0.749935mm" width="0.6999986mm" height="0.299974mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="1.950085mm" pcbY="-1.250061mm" width="0.6999986mm" height="0.299974mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="1.249807mm" pcbY="-1.949831mm" width="0.299974mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="0.749935mm" pcbY="-1.950085mm" width="0.299974mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="0.249809mm" pcbY="-1.950085mm" width="0.299974mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-0.250063mm" pcbY="-1.950085mm" width="0.299974mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-0.750189mm" pcbY="-1.950085mm" width="0.299974mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-1.250061mm" pcbY="-1.950085mm" width="0.299974mm" height="0.6999986mm" shape="rect" />
<silkscreenpath route={[{"x":1.699793399999976,"y":-2.1000466000000415},{"x":2.0998941999998806,"y":-2.1000466000000415},{"x":2.0998941999998806,"y":-1.7000220000001036}]} />
<silkscreenpath route={[{"x":1.5998951999999917,"y":2.0999449999999342},{"x":2.0998941999998806,"y":2.0999449999999342},{"x":2.0998941999998806,"y":1.6999457999997958}]} />
<silkscreenpath route={[{"x":-2.100224400000002,"y":1.6956278000000111},{"x":-2.100224400000002,"y":2.095601600000009},{"x":-1.700250600000004,"y":2.095601600000009}]} />
<silkscreenpath route={[{"x":-1.700250600000004,"y":-2.1043392000001404},{"x":-2.100224400000002,"y":-2.1043392000001404},{"x":-2.1000973999999815,"y":-1.7000220000001036}]} />
<silkscreencircle pcbX="-1.905127mm" pcbY="-2.540127mm" radius="0.127mm" />
<silkscreentext text="{NAME}" pcbX="-0.013589mm" pcbY="3.310511mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-2.5500842999999804,"y":2.5500842999999804},{"x":2.5500842999999804,"y":2.5500842999999804},{"x":2.5500842999999804,"y":-2.550084300000094},{"x":-2.5500842999999804,"y":-2.550084300000094},{"x":-2.5500842999999804,"y":2.5500842999999804}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C48929155.obj?uuid=f9f49049b1e946aebac8a4ca9e490364",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C48929155.step?uuid=f9f49049b1e946aebac8a4ca9e490364",
        pcbRotationOffset: 90,
        modelOriginPosition: { x: -0.000012700000070253736, y: -0.0001269999999067295, z: -0.02 },
      }}
      {...props}
    />
  )
}