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-cameraIn 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/power.tsx
import {
MCP73831T_2ACI_OT,
} from "../imports/MCP73831T_2ACI_OT"
import { AP2112K_3_3TRG1 } from "../imports/AP2112K_3_3TRG1"
export const PowerSection = () => (
<>
<connector
name="J4"
standard="usb_c"
allowOffBoard
pcbX={-26.52}
pcbY={-5}
pcbRotation={270}
schSheetName="power"
schSectionName="usb"
schX={-10}
schY={2}
noConnect={["SBU1", "SBU2"]}
schWidth={1.575}
/>
<resistor
name="R1"
resistance="5.1k"
footprint="0402"
pcbX={-17.5}
pcbY={-1.5}
pcbRotation={0}
schSheetName="power"
schSectionName="usb"
schX={-5.5}
schY={4}
schRotation={270}
/>
<resistor
name="R2"
resistance="5.1k"
footprint="0402"
pcbX={-17.5}
pcbY={-8.5}
pcbRotation={0}
schSheetName="power"
schSectionName="usb"
schX={-5.5}
schY={0}
schRotation={270}
/>
<resistor
name="R5"
resistance="22"
footprint="0402"
pcbX={-13.8}
pcbY={-4}
pcbRotation={0}
schSheetName="power"
schSectionName="usb"
schX={-2.5}
schY={3}
schRotation={0}
/>
<resistor
name="R6"
resistance="22"
footprint="0402"
pcbX={-14}
pcbY={-6}
pcbRotation={0}
schSheetName="power"
schSectionName="usb"
schX={-2.5}
schY={1}
schRotation={0}
/>
<capacitor
name="C1"
capacitance="4.7uF"
footprint="0805"
pcbX={-16.5}
pcbY={-3.5}
pcbRotation={0}
schSheetName="power"
schSectionName="usb"
schX={-8}
schY={6.5}
schRotation={270}
/>
<capacitor
name="C2"
capacitance="100nF"
footprint="0402"
pcbX={-16.5}
pcbY={-5.5}
pcbRotation={0}
schSheetName="power"
schSectionName="usb"
schX={-6.9}
schY={6.5}
schRotation={270}
/>
<MCP73831T_2ACI_OT
name="U4"
pcbX={-18.5}
pcbY={-18.5}
pcbRotation={0}
schSheetName="power"
schSectionName="charger"
schX={-8}
schY={-6}
/>
<resistor
name="R10"
resistance="4.7k"
footprint="0402"
pcbX={-15.2}
pcbY={-17.5}
pcbRotation={0}
schSheetName="power"
schSectionName="charger"
schX={-4}
schY={-7.5}
schRotation={270}
/>
<led
name="D1"
color="red"
manufacturerPartNumber="KT-0603R"
footprint="led0603"
pcbX={-13.5}
pcbY={-15.5}
pcbRotation={90}
schSheetName="power"
schSectionName="charger"
schX={-10.5}
schY={-4.2}
schRotation={270}
/>
<resistor
name="R11"
resistance="1k"
footprint="0402"
pcbX={-16}
pcbY={-15.5}
pcbRotation={90}
schSheetName="power"
schSectionName="charger"
schX={-10.5}
schY={-2.2}
schRotation={90}
/>
<capacitor
name="C3"
capacitance="4.7uF"
footprint="0603"
pcbX={-14.5}
pcbY={-21.6}
pcbRotation={0}
schSheetName="power"
schSectionName="battery"
schX={-3}
schY={-9}
schRotation={270}
/>
<capacitor
name="C4"
capacitance="100nF"
footprint="0402"
pcbX={-11.9}
pcbY={-21.6}
pcbRotation={0}
schSheetName="power"
schSectionName="battery"
schX={-1.9}
schY={-9}
schRotation={270}
/>
<AP2112K_3_3TRG1
name="U5"
pcbX={-11}
pcbY={-18.5}
pcbRotation={0}
schSheetName="power"
schSectionName="ldo"
schX={2}
schY={-6}
noConnect={["NC"]}
/>
<capacitor
name="C5"
capacitance="1uF"
footprint="0402"
pcbX={-9.2}
pcbY={-21.6}
pcbRotation={0}
schSheetName="power"
schSectionName="ldo"
schX={-0.8}
schY={-9}
schRotation={270}
/>
<capacitor
name="C6"
capacitance="10uF"
footprint="0805"
pcbX={-7.5}
pcbY={-15.5}
pcbRotation={0}
schSheetName="power"
schSectionName="ldo"
schX={4}
schY={-3}
schRotation={270}
/>
<capacitor
name="C7"
capacitance="100nF"
footprint="0402"
pcbX={-6.3}
pcbY={-14}
pcbRotation={0}
schSheetName="power"
schSectionName="ldo"
schX={5.1}
schY={-3}
schRotation={270}
/>
<connector
name="J2"
manufacturerPartNumber="B2B-PH-K-S(LF)(SN)"
footprint="jst2_p2mm_ph"
pinLabels={{ pin1: "VBAT", pin2: "GND" }}
schPinArrangement={{ topSide: ["VBAT"], bottomSide: ["GND"] }}
pcbX={-26}
pcbY={-16}
pcbRotation={90}
schSheetName="power"
schSectionName="battery"
schX={8}
schY={-6}
/>
<trace from="J4.VBUS1" to="net.VBUS" />
<trace from="J4.VBUS2" to="net.VBUS" />
<trace from="J4.GND1" to="net.GND" />
<trace from="J4.GND2" to="net.GND" />
<trace from="J4.SHELL1" to="net.GND" />
<trace from="J4.SHELL2" to="net.GND" />
<trace from="J4.CC1" to="R1.pin1" />
<trace from="R1.pin2" to="net.GND" />
<trace from="J4.CC2" to="R2.pin1" />
<trace from="R2.pin2" to="net.GND" />
<trace from="J4.DP1" to="net.USB_DP_C" />
<trace from="J4.DP2" to="net.USB_DP_C" />
<trace from="J4.DM1" to="net.USB_DM_C" />
<trace from="J4.DM2" to="net.USB_DM_C" />
<trace from="net.USB_DP_C" to="R5.pin1" />
<trace from="R5.pin2" to="net.USB_DP" />
<trace from="net.USB_DM_C" to="R6.pin1" />
<trace from="R6.pin2" to="net.USB_DM" />
<trace from="net.VBUS" to="C1.pin1" />
<trace from="C1.pin2" to="net.GND" />
<trace from="net.VBUS" to="C2.pin1" />
<trace from="C2.pin2" to="net.GND" />
<trace from="net.VBUS" to="U4.VDD" />
<trace from="U4.VSS" to="net.GND" />
<trace from="U4.VBAT" to="net.VBAT" />
<trace from="U4.PROG" to="R10.pin1" />
<trace from="R10.pin2" to="net.GND" />
<trace from="U4.STAT" to="D1.right" />
<trace from="D1.left" to="R11.pin1" />
<trace from="R11.pin2" to="net.VBUS" />
<trace from="net.VBAT" to="C3.pin1" />
<trace from="C3.pin2" to="net.GND" />
<trace from="net.VBAT" to="C4.pin1" />
<trace from="C4.pin2" to="net.GND" />
<trace from="net.VBAT" to="J2.VBAT" />
<trace from="J2.GND" to="net.GND" />
<trace from="net.VBAT" to="U5.VIN" />
<trace from="U5.EN" to="net.VBAT" />
<trace from="U5.GND" to="net.GND" />
<trace from="U5.VOUT" to="net.V3_3" />
<trace from="net.VBAT" to="C5.pin1" />
<trace from="C5.pin2" to="net.GND" />
<trace from="net.V3_3" to="C6.pin1" />
<trace from="C6.pin2" to="net.GND" />
<trace from="net.V3_3" to="C7.pin1" />
<trace from="C7.pin2" to="net.GND" />
</>
)