aj0070/thermocouple-logger

A 70×45 mm USB‑C powered ESP32‑C3 data logger with 3.3 V regulation, microSD storage, status/button UI, and four MAX31856 thermocouple measurement channels with filtering and SPI control.

Version
1.0.1
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone aj0070/thermocouple-logger  # download the package files into ./thermocouple-logger
tsci add aj0070/thermocouple-logger    # add it to your project as @tsci/aj0070.thermocouple-logger

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.

src/Power.tsx

import { AMS1117_3_3 } from "../imports/AMS1117_3_3"
import { TYPE_C_31_M_12 } from "../imports/TYPE_C_31_M_12"

export const PowerSection = () => (
  <>
    <TYPE_C_31_M_12
      name="J5"
      allowOffBoard
      pcbX={-29.4}
      pcbY={9.5}
      pcbRotation={270}
      schSheetName="Power"
      schSectionName="PowerEntry"
      schX={-9.34}
      schY={0}
      noConnect={["SBU1", "SBU2"]}
    />

    <AMS1117_3_3
      name="U5"
      schSheetName="Power"
      schSectionName="Regulator"
      schX={-1.4}
      schY={0.6}
      pcbX={-22.2}
      pcbY={9.5}
      pcbRotation={90}
    />

    <resistor
      name="R1"
      resistance="5.1k"
      footprint="0402"
      schSheetName="Power"
      schSectionName="PowerEntry"
      schRotation={270}
      schX={-6.65}
      schY={-0.9}
      pcbX={-31.2}
      pcbY={3.2}
      pcbRotation={180}
    />
    <resistor
      name="R2"
      resistance="5.1k"
      footprint="0402"
      schSheetName="Power"
      schSectionName="PowerEntry"
      schRotation={270}
      schX={-4.9}
      schY={-2.6}
      pcbX={-31.2}
      pcbY={15.8}
      pcbRotation={180}
    />

    <capacitor
      name="C1"
      capacitance="10uF"
      footprint="0805"
      schSheetName="Power"
      schSectionName="PowerEntry"
      schRotation={270}
      schX={-3.2}
      schY={-1.6}
      pcbX={-27.4}
      pcbY={0.4}
      pcbRotation={0}
    />
    <capacitor
      name="C2"
      capacitance="22uF"
      footprint="0805"
      schSheetName="Power"
      schSectionName="Regulator"
      schRotation={270}
      schX={1.4}
      schY={-1.6}
      pcbX={-22.6}
      pcbY={1.4}
      pcbRotation={0}
    />
    <capacitor
      name="C3"
      capacitance="100nF"
      footprint="0402"
      schSheetName="Power"
      schSectionName="Regulator"
      schRotation={270}
      schX={2.6}
      schY={-1.6}
      pcbX={-19.2}
      pcbY={1.4}
      pcbRotation={0}
    />

    <trace from="J5.VBUS1" to="net.VBUS" />
    <trace from="J5.VBUS2" to="net.VBUS" />
    <trace from="J5.GND1" to="net.GND" />
    <trace from="J5.GND2" to="net.GND" />
    <trace from="J5.EH1" to="net.GND" />
    <trace from="J5.EH2" to="net.GND" />
    <trace from="J5.EH3" to="net.GND" />
    <trace from="J5.EH4" to="net.GND" />
    <trace from="J5.CC1" to="R1.pin1" />
    <trace from="R1.pin2" to="net.GND" />
    <trace from="J5.CC2" to="R2.pin1" />
    <trace from="R2.pin2" to="net.GND" />
    <trace from="J5.DP1" to="net.USB_DP" />
    <trace from="J5.DP2" to="net.USB_DP" />
    <trace from="J5.DN1" to="net.USB_DM" />
    <trace from="J5.DN2" to="net.USB_DM" />

    <trace from="net.VBUS" to="C1.pin1" />
    <trace from="C1.pin2" to="net.GND" />
    <trace from="net.VBUS" to="U5.VIN" />
    <trace from="U5.GND" to="net.GND" />
    <trace from="U5.VOUT1" to="net.V3_3" />
    <trace from="U5.VOUT2" to="net.V3_3" />
    <trace from="net.V3_3" to="C2.pin1" />
    <trace from="C2.pin2" to="net.GND" />
    <trace from="net.V3_3" to="C3.pin1" />
    <trace from="C3.pin2" to="net.GND" />
  </>
)