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/sensor.tsx

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

export const SensorSection = () => (
  <>
    <MLX90640ESF_BAB_000_TU
      name="U3"
      pcbX={-21}
      pcbY={14}
      pcbRotation={0}
      schSheetName="sensor"
      schSectionName="mlx"
      schX={-6}
      schY={0}
    />

    <capacitor
      name="C12"
      capacitance="2.2uF"
      footprint="0603"
      pcbX={-17.4}
      pcbY={12.5}
      pcbRotation={90}
      schSheetName="sensor"
      schSectionName="mlx"
      schX={-1}
      schY={2}
      schRotation={270}
    />
    <capacitor
      name="C13"
      capacitance="100nF"
      footprint="0402"
      pcbX={-15.7}
      pcbY={11}
      pcbRotation={0}
      schSheetName="sensor"
      schSectionName="mlx"
      schX={0}
      schY={2}
      schRotation={270}
    />
    <resistor
      name="R3"
      resistance="4.7k"
      footprint="0402"
      pcbX={-17}
      pcbY={8.5}
      pcbRotation={90}
      schSheetName="sensor"
      schSectionName="i2c"
      schX={1}
      schY={3}
      schRotation={270}
    />
    <resistor
      name="R4"
      resistance="4.7k"
      footprint="0402"
      pcbX={-15.4}
      pcbY={8.5}
      pcbRotation={90}
      schSheetName="sensor"
      schSectionName="i2c"
      schX={2.5}
      schY={1.5}
      schRotation={270}
    />

    <trace from="U3.VDD" to="net.V3_3" />
    <trace from="U3.GND" to="net.GND" />
    <trace from="U3.SDA" to="net.I2C_SDA" />
    <trace from="U3.SCL" to="net.I2C_SCL" />

    <trace from="net.V3_3" to="C12.pin1" />
    <trace from="C12.pin2" to="net.GND" />
    <trace from="net.V3_3" to="C13.pin1" />
    <trace from="C13.pin2" to="net.GND" />

    <trace from="net.V3_3" to="R3.pin1" />
    <trace from="R3.pin2" to="net.I2C_SDA" />
    <trace from="net.V3_3" to="R4.pin1" />
    <trace from="R4.pin2" to="net.I2C_SCL" />
  </>
)