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

export const MiscSection = () => (
  <>
    <led
      name="D1"
      color="green"
      footprint="0603"
      schSheetName="Digital"
      schSectionName="UI"
      schRotation={90}
      schX={4.4}
      schY={4.9}
      pcbX={2.2}
      pcbY={3.6}
      pcbRotation={180}
    />
    <resistor
      name="R9"
      resistance="1k"
      footprint="0402"
      schSheetName="Digital"
      schSectionName="UI"
      schRotation={90}
      schX={4.4}
      schY={2.9}
      pcbX={2.2}
      pcbY={6.4}
      pcbRotation={0}
    />

    <pushbutton
      name="SW1"
      footprint="smdpushbutton"
      internallyConnectedPins={[
        ["pin1", "pin3"],
        ["pin2", "pin4"],
      ]}
      pinLabels={{ pin1: "BTN", pin2: "GND" }}
      schSheetName="Digital"
      schSectionName="UI"
      schX={3.0}
      schY={-3.4}
      pcbX={-1.1}
      pcbY={2.4}
      pcbRotation={90}
    />
    <resistor
      name="R10"
      resistance="10k"
      footprint="0402"
      schSheetName="Digital"
      schSectionName="UI"
      schRotation={270}
      schX={0.2}
      schY={-1.4}
      pcbX={-4.4}
      pcbY={0.2}
      pcbRotation={180}
    />

    <trace from="net.V3_3" to="R9.pin1" />
    <trace from="R9.pin2" to="D1.anode" />
    <trace from="D1.cathode" to="net.LED_K" />
    <trace from="SW1.BTN" to="net.BTN" />
    <trace from="SW1.GND" to="net.GND" />
    <trace from="net.BTN" to="R10.pin1" />
    <trace from="R10.pin2" to="net.V3_3" />
  </>
)