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.

index.circuit.tsx

PCBPCB preview for index.circuit.tsx
SchematicSchematic preview for index.circuit.tsx
import { TCChannel } from "./src/TCChannel"
import { PowerSection } from "./src/Power"
import { McuSection } from "./src/Mcu"
import { SdSection } from "./src/Sd"
import { MiscSection } from "./src/Misc"

import { boardWidth, boardHeight, chanX } from "./src/layout"

export default () => (
  <board width={`${boardWidth}mm`} height={`${boardHeight}mm`} layers={2}>
    <schematicsheet name="Channels" displayName="Thermocouple channels 1-2" sheetIndex={0} />
    <schematicsheet name="Channels2" displayName="Thermocouple channels 3-4" sheetIndex={1} />
    <schematicsheet name="Power" displayName="Power supply" sheetIndex={2} />
    <schematicsheet name="Digital" displayName="Digital" sheetIndex={3} />

    <net name="VBUS" isPowerNet nominalTraceWidth={0.6} />
    <net name="V3_3" isPowerNet nominalTraceWidth={0.6} />
    <net name="GND" isGroundNet />
    <net name="SCK" />
    <net name="MOSI" />
    <net name="MISO" />
    <net name="CS1" />
    <net name="CS2" />
    <net name="CS3" />
    <net name="CS4" />
    <net name="SD_CS" />
    <net name="SD_DET" />
    <net name="SD_DAT_PU" />
    <net name="LED_K" />
    <net name="BTN" />
    <net name="USB_DP" />
    <net name="USB_DM" />

    <PowerSection />
    <McuSection />
    <SdSection />
    <MiscSection />

    <TCChannel ch={1} xc={chanX[0]} csNet="CS1" schX={-5} schY={7} sheet="Channels" section="TC1" />
    <TCChannel ch={2} xc={chanX[1]} csNet="CS2" schX={7} schY={7} sheet="Channels" section="TC2" />
    <TCChannel ch={3} xc={chanX[2]} csNet="CS3" schX={-5} schY={7} sheet="Channels2" section="TC3" />
    <TCChannel ch={4} xc={chanX[3]} csNet="CS4" schX={7} schY={7} sheet="Channels2" section="TC4" />
  </board>
)