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.

parts/storage.tsx

import { TF_01A } from "../imports/TF_01A"

export const StorageSection = () => (
  <>
    <TF_01A
      name="J3"
      allowOffBoard
      pcbX={23}
      pcbY={9.5}
      pcbRotation={90}
      schSheetName="storage"
      schSectionName="sd"
      schX={-4}
      schY={0}
      schWidth={2.815}
      schHeight={1.6}
      noConnect={["DAT1_RSV", "DAT2_RSV"]}
    />

    <capacitor
      name="C16"
      capacitance="10uF"
      footprint="0402"
      pcbX={15.2}
      pcbY={6.0}
      pcbRotation={0}
      schSheetName="storage"
      schSectionName="sd"
      schX={-1.5}
      schY={2}
      schRotation={270}
    />
    <capacitor
      name="C17"
      capacitance="100nF"
      footprint="0402"
      pcbX={15.2}
      pcbY={4.2}
      pcbRotation={0}
      schSheetName="storage"
      schSectionName="sd"
      schX={-0.5}
      schY={2}
      schRotation={270}
    />
    <resistor
      name="R13"
      resistance="10k"
      footprint="0402"
      pcbX={15.2}
      pcbY={1.5}
      pcbRotation={90}
      schSheetName="storage"
      schSectionName="sd"
      schX={-1.5}
      schY={-1.5}
      schRotation={270}
    />

    <trace from="J3.VDD" to="net.V3_3" />
    <trace from="J3.VSS" to="net.GND" />
    <trace from="J3.GND1" to="net.GND" />
    <trace from="J3.GND2" to="net.GND" />
    <trace from="J3.GND3" to="net.GND" />
    <trace from="J3.GND4" to="net.GND" />
    <trace from="J3.CDDAT3_CS" to="net.SD_CS" />
    <trace from="J3.CMD_DI" to="net.SPI_MOSI" />
    <trace from="J3.CLK_SCLK" to="net.SPI_SCLK" />
    <trace from="J3.DAT0_D0" to="net.SPI_MISO" />
    <trace from="J3.CD" to="net.SD_CD" />

    <trace from="net.V3_3" to="C16.pin1" />
    <trace from="C16.pin2" to="net.GND" />
    <trace from="net.V3_3" to="C17.pin1" />
    <trace from="C17.pin2" to="net.GND" />
    <trace from="net.V3_3" to="R13.pin1" />
    <trace from="R13.pin2" to="net.SD_CD" />
  </>
)