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

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

export const McuSection = () => (
  <>
    <ESP32_S3_WROOM_1_N16R8
      name="U1"
      pcbX={4}
      pcbY={4}
      pcbRotation={0}
      schSheetName="mcu"
      schSectionName="esp32"
      schX={-2}
      schY={0}
      schWidth={1.96}
      schHeight={4.4}
      noConnect={[
        "IO0",
        "IO1",
        "IO2",
        "IO3",
        "IO14",
        "IO18",
        "IO21",
        "IO35",
        "IO36",
        "IO37",
        "IO38",
        "IO39",
        "IO40",
        "IO41",
        "IO42",
        "IO45",
        "IO46",
        "IO47",
        "IO48",
        "RXD0",
        "TXD0",
      ]}
    />

    <capacitor
      name="C8"
      capacitance="10uF"
      footprint="0805"
      pcbX={-8}
      pcbY={11.5}
      pcbRotation={0}
      schSheetName="mcu"
      schSectionName="decoupling"
      schX={5}
      schY={5}
      schRotation={270}
    />
    <capacitor
      name="C9"
      capacitance="1uF"
      footprint="0603"
      pcbX={-8}
      pcbY={9.3}
      pcbRotation={0}
      schSheetName="mcu"
      schSectionName="decoupling"
      schX={6.1}
      schY={5}
      schRotation={270}
    />
    <capacitor
      name="C10"
      capacitance="100nF"
      footprint="0402"
      pcbX={-8}
      pcbY={7.5}
      pcbRotation={0}
      schSheetName="mcu"
      schSectionName="decoupling"
      schX={7.2}
      schY={5}
      schRotation={270}
    />
    <resistor
      name="R7"
      resistance="10k"
      footprint="0402"
      pcbX={-9.8}
      pcbY={4.9}
      pcbRotation={270}
      schSheetName="mcu"
      schSectionName="reset"
      schX={0}
      schY={3.2}
      schRotation={270}
    />
    <capacitor
      name="C11"
      capacitance="1uF"
      footprint="0402"
      pcbX={-9.8}
      pcbY={2.9}
      pcbRotation={90}
      schSheetName="mcu"
      schSectionName="reset"
      schX={7}
      schY={-1}
      schRotation={270}
    />

    <trace from="U1.3V3" to="net.V3_3" />
    <trace from="U1.GND1" to="net.GND" />
    <trace from="U1.GND2" to="net.GND" />
    <trace from="U1.GND3" to="net.GND" />

    <trace from="net.V3_3" to="C8.pin1" />
    <trace from="C8.pin2" to="net.GND" />
    <trace from="net.V3_3" to="C9.pin1" />
    <trace from="C9.pin2" to="net.GND" />
    <trace from="net.V3_3" to="C10.pin1" />
    <trace from="C10.pin2" to="net.GND" />

    <trace from="net.V3_3" to="R7.pin1" />
    <trace from="R7.pin2" to="net.EN" />
    <trace from="net.EN" to="U1.EN" />
    <trace from="net.EN" to="C11.pin1" />
    <trace from="C11.pin2" to="net.GND" />

    <trace from="U1.IO20" to="net.USB_DP" />
    <trace from="U1.IO19" to="net.USB_DM" />

    <trace from="U1.IO8" to="net.I2C_SDA" />
    <trace from="U1.IO9" to="net.I2C_SCL" />

    <trace from="U1.IO12" to="net.SPI_SCLK" />
    <trace from="U1.IO11" to="net.SPI_MOSI" />
    <trace from="U1.IO13" to="net.SPI_MISO" />

    <trace from="U1.IO10" to="net.LCD_CS" />
    <trace from="U1.IO4" to="net.LCD_DC" />
    <trace from="U1.IO5" to="net.LCD_RST" />
    <trace from="U1.IO6" to="net.LCD_BL" />

    <trace from="U1.IO7" to="net.SD_CS" />
    <trace from="U1.IO17" to="net.SD_CD" />

    <trace from="U1.IO15" to="net.BTN1" />
    <trace from="U1.IO16" to="net.BTN2" />
  </>
)