olivergrabinski/tscircuit-weather

A 60×44 mm ESP32-S3 Wi‑Fi/BLE weather-station PCB with USB‑C power, 3.3 V regulation and ESD protection, temperature/humidity and UV/light sensors, status LEDs, buttons, Qwiic I²C expansion, debug GPIO header, and a printable enclosure.

Version
1.2.0
License
unset
Stars
0

imports/LTR_390UV_01.tsx

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

const pinLabels = {
  pin1: ["VDD"],
  pin2: ["NC"],
  pin3: ["GND"],
  pin4: ["SCL"],
  pin5: ["INT"],
  pin6: ["SDA"]
} as const

const pinAttributes = {
  pin1: {requiresPower: true},
  pin2: {doNotConnect: true},
  pin3: {requiresGround: true}
} as const

export const LTR_390UV_01 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C492374"
  ]
}}
      manufacturerPartNumber="LTR-390UV-01"
      footprint={
        /* DFN-6 2x2 mm, 0.65 mm pitch (same geometry as the footprinter string);
           cutoutApertureDirection lets the enclosure open a window in the lid */
        <footprint cutoutApertureDirection="from_above">
          <smtpad portHints={["pin1"]} shape="rect" pcbX={-0.65} pcbY={-0.775} width={0.4} height={0.3} />
          <smtpad portHints={["pin2"]} shape="rect" pcbX={0} pcbY={-0.775} width={0.4} height={0.3} />
          <smtpad portHints={["pin3"]} shape="rect" pcbX={0.65} pcbY={-0.775} width={0.4} height={0.3} />
          <smtpad portHints={["pin4"]} shape="rect" pcbX={0.65} pcbY={0.775} width={0.4} height={0.3} />
          <smtpad portHints={["pin5"]} shape="rect" pcbX={0} pcbY={0.775} width={0.4} height={0.3} />
          <smtpad portHints={["pin6"]} shape="rect" pcbX={-0.65} pcbY={0.775} width={0.4} height={0.3} />
          <silkscreenpath route={[{ x: -0.963, y: -0.487 }, { x: -0.963, y: -1.137 }, { x: -0.313, y: -1.137 }]} />
          <silkscreenpath route={[{ x: -0.963, y: 0.487 }, { x: -0.963, y: 1.137 }, { x: -0.313, y: 1.137 }]} />
          <silkscreenpath route={[{ x: 0.963, y: -0.487 }, { x: 0.963, y: -1.137 }, { x: 0.313, y: -1.137 }]} />
          <silkscreenpath route={[{ x: 0.963, y: 0.487 }, { x: 0.963, y: 1.137 }, { x: 0.313, y: 1.137 }]} />
          <silkscreenpath route={[{ x: -0.637, y: -1.219 }, { x: -0.8, y: -1.381 }, { x: -0.475, y: -1.381 }, { x: -0.637, y: -1.219 }]} />
          <courtyardrect pcbX={0} pcbY={0} width={2.4} height={2.4} />
        </footprint>
      }
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C492374.obj?uuid=1c39744204904e7cb482098d76a2b99e",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C492374.step?uuid=1c39744204904e7cb482098d76a2b99e",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: 0, z: 0 },
      }}
      {...props}
    />
  )
}