aj0070/thermal-camera

A 4-layer handheld thermal-camera PCB combining USB-C LiPo charging, 3.3V regulation, ESP32-S3 control, MLX90640 thermal sensing, TFT display/backlight, microSD storage, and user buttons.

Version
1.0.0
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone aj0070/thermal-camera  # download the package files into ./thermal-camera
tsci add aj0070/thermal-camera    # add it to your project as @tsci/aj0070.thermal-camera

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

imports/MCP73831T_2ACI_OT.tsx

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

const pinLabels = {
  pin1: ["STAT"],
  pin2: ["VSS"],
  pin3: ["VBAT"],
  pin4: ["VDD"],
  pin5: ["PROG"]
} as const

const pinAttributes = {
  pin2: {isPassive: true, requiresGround: true, mustBeConnected: true},
  pin4: {isInput: true, requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "4.7uF"},
  pin1: {isOutput: true, canUseTriState: true},
  pin3: {isOutput: true, providesPower: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "4.7uF"},
  pin5: {isInput: true}
} satisfies NonNullable<ChipProps["pinAttributes"]>

export const MCP73831T_2ACI_OT = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C424093"
  ]
}}
      manufacturerPartNumber="MCP73831T-2ACI/OT"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-0.94996mm" pcbY="-1.15817015mm" width="0.4899914mm" height="1.1569954mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="0mm" pcbY="-1.15817015mm" width="0.4899914mm" height="1.1569954mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="0.94996mm" pcbY="-1.15817015mm" width="0.4899914mm" height="1.1569954mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="0.94996mm" pcbY="1.14916585mm" width="0.4899914mm" height="1.175004mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-0.94996mm" pcbY="1.14916585mm" width="0.4899914mm" height="1.175004mm" shape="rect" />
<silkscreenpath route={[{"x":-1.5262098000000606,"y":-0.8557069500000125},{"x":-1.5262098000000606,"y":0.8467026499999974}]} />
<silkscreenpath route={[{"x":1.5262097999998332,"y":-0.8557069500000125},{"x":1.5262097999998332,"y":0.8467026499999974}]} />
<silkscreenpath route={[{"x":0.4764023999998699,"y":0.8467026499999974},{"x":-0.4764023999999836,"y":0.8467026499999974}]} />
<silkscreencircle pcbX="-1.651mm" pcbY="-1.14750215mm" radius="0.150114mm" />
<silkscreentext text="{NAME}" pcbX="-0.1397mm" pcbY="2.74809785mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-1.6999843999999484,"y":1.9866678500000035},{"x":1.7000097999999753,"y":1.9866678500000035},{"x":1.7000097999999753,"y":-1.9866678499998898},{"x":-1.6999843999999484,"y":-1.9866678499998898},{"x":-1.6999843999999484,"y":1.9866678500000035}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C424093.obj?uuid=460193f9bf2d42e58cf3c2f675b07dc6",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C424093.step?uuid=460193f9bf2d42e58cf3c2f675b07dc6",
        pcbRotationOffset: 90,
        modelOriginPosition: { x: 0.004489450000050965, y: 0.000012700000070253736, z: -0.049083 },
      }}
      {...props}
    />
  )
}