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.

index.circuit.tsx

PCBPCB preview for index.circuit.tsx
SchematicSchematic preview for index.circuit.tsx
import { PowerSection } from "./parts/power"
import { McuSection } from "./parts/mcu"
import { SensorSection } from "./parts/sensor"
import { DisplaySection } from "./parts/display"
import { StorageSection } from "./parts/storage"
import { UiSection } from "./parts/ui"

export default () => (
  <board
    width="60mm"
    height="45mm"
    layers={4}
    title="Handheld Thermal Camera Core"
    routeRemaining={true}
  >
    <schematicsheet name="power" displayName="Power and charging" sheetIndex={0} />
    <schematicsheet name="mcu" displayName="ESP32-S3" sheetIndex={1} />
    <schematicsheet name="display" displayName="TFT and backlight" sheetIndex={2} />
    <schematicsheet name="sensor" displayName="Thermal sensor" sheetIndex={3} />
    <schematicsheet name="storage" displayName="microSD" sheetIndex={4} />
    <schematicsheet name="ui" displayName="Buttons" sheetIndex={5} />

    <schematicsection name="usb" displayName="USB-C input" />
    <schematicsection name="charger" displayName="LiPo charger" />
    <schematicsection name="battery" displayName="Battery" />
    <schematicsection name="ldo" displayName="3.3V regulator" />
    <schematicsection name="esp32" displayName="ESP32-S3 module" />
    <schematicsection name="decoupling" displayName="Module decoupling" />
    <schematicsection name="reset" displayName="Enable" />
    <schematicsection name="tft" displayName="TFT FPC" />
    <schematicsection name="backlight" displayName="Backlight driver" />
    <schematicsection name="mlx" displayName="MLX90640" />
    <schematicsection name="i2c" displayName="I2C pullups" />
    <schematicsection name="sd" displayName="microSD socket" />
    <schematicsection name="buttons" displayName="User buttons" />

    <net name="VBUS" isPowerNet nominalTraceWidth={0.6} />
    <net name="VBAT" isPowerNet nominalTraceWidth={0.6} />
    <net name="V3_3" isPowerNet nominalTraceWidth={0.5} />
    <net name="GND" isGroundNet nominalTraceWidth={0.4} />
    <net name="USB_DP_C" />
    <net name="USB_DM_C" />
    <net name="USB_DP" />
    <net name="USB_DM" />
    <net name="I2C_SDA" />
    <net name="I2C_SCL" />
    <net name="SPI_SCLK" />
    <net name="SPI_MOSI" />
    <net name="SPI_MISO" />
    <net name="LCD_CS" />
    <net name="LCD_DC" />
    <net name="LCD_RST" />
    <net name="LCD_BL" />
    <net name="BL_LED" />
    <net name="SD_CS" />
    <net name="SD_CD" />
    <net name="BTN1" />
    <net name="BTN2" />
    <net name="EN" />

    <PowerSection />
    <McuSection />
    <SensorSection />
    <DisplaySection />
    <StorageSection />
    <UiSection />
  </board>
)