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

import { XKTF_001C } from "../imports/XKTF_001C"

export const SdSection = () => (
  <>
    <XKTF_001C
      name="U7"
      schSheetName="Digital"
      schSectionName="SD"
      schX={9}
      schY={6}
      pcbX={22.0}
      pcbY={12.6}
      pcbRotation={0}
    />

    <capacitor
      name="C9"
      capacitance="1uF"
      footprint="0402"
      schSheetName="Digital"
      schSectionName="SD"
      schRotation={270}
      schX={-6.4}
      schY={1.0}
      pcbX={16.4}
      pcbY={3.9}
      pcbRotation={180}
    />
    <resistor
      name="R8"
      resistance="10k"
      footprint="0402"
      schSheetName="Digital"
      schSectionName="SD"
      schRotation={270}
      schX={11.8}
      schY={2.0}
      pcbX={20.4}
      pcbY={3.7}
      pcbRotation={180}
    />
    <resistor
      name="R11"
      resistance="10k"
      footprint="0402"
      schSheetName="Digital"
      schSectionName="SD"
      schRotation={270}
      schX={14.2}
      schY={2.0}
      pcbX={16.4}
      pcbY={1.2}
      pcbRotation={180}
    />
    <resistor
      name="R12"
      resistance="10k"
      footprint="0402"
      schSheetName="Digital"
      schSectionName="SD"
      schRotation={270}
      schX={15.4}
      schY={2.0}
      pcbX={18.6}
      pcbY={1.2}
      pcbRotation={180}
    />

    <trace from="U7.VDD" to="net.V3_3" />
    <trace from="U7.VSS" to="net.GND" />
    <trace from="U7.GND" to="net.GND" />
    <trace from="U7.CLK" to="net.SCK" />
    <trace from="U7.CMD" to="net.MOSI" />
    <trace from="U7.DATA0" to="net.MISO" />
    <trace from="U7.DATA3" to="net.SD_CS" />
    <trace from="U7.DATA1" to="net.SD_DAT_PU" />
    <trace from="U7.DATA2" to="net.SD_DAT_PU" />

    <trace from="U7.CD2" to="net.SD_DET" />
    <trace from="U7.CD3" to="net.SD_DET" />

    <trace from="net.SD_CS" to="R8.pin1" />
    <trace from="R8.pin2" to="net.V3_3" />
    <trace from="net.SD_DET" to="R11.pin1" />
    <trace from="R11.pin2" to="net.V3_3" />
    <trace from="net.SD_DAT_PU" to="R12.pin1" />
    <trace from="R12.pin2" to="net.V3_3" />
    <trace from="net.V3_3" to="C9.pin1" />
    <trace from="C9.pin2" to="net.GND" />
  </>
)