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

export const UiSection = () => (
  <>
    <pushbutton
      name="SW1"
      manufacturerPartNumber="TS-1187A-B-A-B"
      footprint="smdpushbutton"
      internallyConnectedPins={[["pin1", "pin2"], ["pin3", "pin4"]]}
      pcbX={25}
      pcbY={-19.5}
      pcbRotation={90}
      schSheetName="ui"
      schSectionName="buttons"
      schX={-4}
      schY={0}
    />
    <pushbutton
      name="SW2"
      manufacturerPartNumber="TS-1187A-B-A-B"
      footprint="smdpushbutton"
      internallyConnectedPins={[["pin1", "pin2"], ["pin3", "pin4"]]}
      pcbX={25}
      pcbY={-12}
      pcbRotation={90}
      schSheetName="ui"
      schSectionName="buttons"
      schX={0}
      schY={0}
    />
    <resistor
      name="R14"
      resistance="10k"
      footprint="0402"
      pcbX={20.5}
      pcbY={-19.5}
      pcbRotation={90}
      schSheetName="ui"
      schSectionName="buttons"
      schX={-3}
      schY={3}
      schRotation={270}
    />
    <capacitor
      name="C18"
      capacitance="100nF"
      footprint="0402"
      pcbX={20.5}
      pcbY={-17.6}
      pcbRotation={90}
      schSheetName="ui"
      schSectionName="buttons"
      schX={-5}
      schY={-2}
      schRotation={270}
    />
    <resistor
      name="R15"
      resistance="10k"
      footprint="0402"
      pcbX={20.5}
      pcbY={-12}
      pcbRotation={90}
      schSheetName="ui"
      schSectionName="buttons"
      schX={1}
      schY={3}
      schRotation={270}
    />
    <capacitor
      name="C19"
      capacitance="100nF"
      footprint="0402"
      pcbX={20.5}
      pcbY={-10.1}
      pcbRotation={90}
      schSheetName="ui"
      schSectionName="buttons"
      schX={-1}
      schY={-2}
      schRotation={270}
    />

    <trace from="SW1.pin1" to="net.BTN1" />
    <trace from="SW1.pin2" to="net.BTN1" />
    <trace from="SW1.pin3" to="net.GND" />
    <trace from="SW1.pin4" to="net.GND" />
    <trace from="net.V3_3" to="R14.pin1" />
    <trace from="R14.pin2" to="net.BTN1" />
    <trace from="net.BTN1" to="C18.pin1" />
    <trace from="C18.pin2" to="net.GND" />

    <trace from="SW2.pin1" to="net.BTN2" />
    <trace from="SW2.pin2" to="net.BTN2" />
    <trace from="SW2.pin3" to="net.GND" />
    <trace from="SW2.pin4" to="net.GND" />
    <trace from="net.V3_3" to="R15.pin1" />
    <trace from="R15.pin2" to="net.BTN2" />
    <trace from="net.BTN2" to="C19.pin1" />
    <trace from="C19.pin2" to="net.GND" />
  </>
)