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-loggerIn 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.
imports/ESP32_C3_MINI_1_N4.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["GND1"],
pin2: ["GND2"],
pin3: ["3V3"],
pin4: ["NC1"],
pin5: ["IO2"],
pin6: ["IO3"],
pin7: ["NC2"],
pin8: ["EN"],
pin9: ["NC3"],
pin10: ["NC4"],
pin11: ["GND3"],
pin12: ["IO0"],
pin13: ["IO1"],
pin14: ["GND4"],
pin15: ["NC5"],
pin16: ["IO10"],
pin17: ["NC6"],
pin18: ["IO4"],
pin19: ["IO5"],
pin20: ["IO6"],
pin21: ["IO7"],
pin22: ["IO8"],
pin23: ["IO9"],
pin24: ["NC7"],
pin25: ["NC8"],
pin26: ["IO18"],
pin27: ["IO19"],
pin28: ["NC9"],
pin29: ["NC10"],
pin30: ["RXD0"],
pin31: ["TXD0"],
pin32: ["NC11"],
pin33: ["NC12"],
pin34: ["NC13"],
pin35: ["NC14"],
pin36: ["GND5"],
pin37: ["GND6"],
pin38: ["GND7"],
pin39: ["GND8"],
pin40: ["GND9"],
pin41: ["GND10"],
pin42: ["GND11"],
pin43: ["GND12"],
pin44: ["GND13"],
pin45: ["GND14"],
pin46: ["GND15"],
pin47: ["GND16"],
pin48: ["GND17"],
pin49: ["GND22"],
pin50: ["GND18"],
pin51: ["GND19"],
pin52: ["GND20"],
pin53: ["GND21"]
} as const
const pinAttributes = {
pin1: {requiresGround: true, mustBeConnected: true},
pin2: {requiresGround: true, mustBeConnected: true},
pin4: {doNotConnect: true},
pin7: {doNotConnect: true},
pin9: {doNotConnect: true},
pin10: {doNotConnect: true},
pin11: {requiresGround: true, mustBeConnected: true},
pin14: {requiresGround: true, mustBeConnected: true},
pin15: {doNotConnect: true},
pin17: {doNotConnect: true},
pin24: {doNotConnect: true},
pin25: {doNotConnect: true},
pin28: {doNotConnect: true},
pin29: {doNotConnect: true},
pin32: {doNotConnect: true},
pin33: {doNotConnect: true},
pin34: {doNotConnect: true},
pin35: {doNotConnect: true},
pin36: {requiresGround: true, mustBeConnected: true},
pin37: {requiresGround: true, mustBeConnected: true},
pin38: {requiresGround: true, mustBeConnected: true},
pin39: {requiresGround: true, mustBeConnected: true},
pin40: {requiresGround: true, mustBeConnected: true},
pin41: {requiresGround: true, mustBeConnected: true},
pin42: {requiresGround: true, mustBeConnected: true},
pin43: {requiresGround: true, mustBeConnected: true},
pin44: {requiresGround: true, mustBeConnected: true},
pin45: {requiresGround: true, mustBeConnected: true},
pin46: {requiresGround: true, mustBeConnected: true},
pin47: {requiresGround: true, mustBeConnected: true},
pin48: {requiresGround: true, mustBeConnected: true},
pin49: {requiresGround: true},
pin50: {requiresGround: true, mustBeConnected: true},
pin51: {requiresGround: true, mustBeConnected: true},
pin52: {requiresGround: true, mustBeConnected: true},
pin53: {requiresGround: true, mustBeConnected: true},
pin3: {requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true},
pin5: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin6: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin8: {isInput: true, mustBeConnected: true},
pin12: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin13: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin16: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin18: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin19: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin20: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin21: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin22: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin23: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin26: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin27: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin30: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true},
pin31: {isInput: true, isOutput: true, isBidirectional: true, canUseTriState: true, capabilities: ["i2c_sda","i2c_scl","spi_cs","spi_sck","spi_mosi","spi_miso","uart_tx","uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, isGpio: true}
} satisfies NonNullable<ChipProps["pinAttributes"]>
export const ESP32_C3_MINI_1_N4 = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
pinAttributes={pinAttributes}
supplierPartNumbers={{
"jlcpcb": [
"C2838502"
]
}}
manufacturerPartNumber="ESP32-C3-MINI-1-N4"
footprint={<footprint>
<smtpad portHints={["pin1"]} pcbX="-5.899912mm" pcbY="3.999992mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-5.899912mm" pcbY="3.199892mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-5.899912mm" pcbY="2.400046mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-5.899912mm" pcbY="1.599946mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-5.899912mm" pcbY="0.8001mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="-5.899912mm" pcbY="0mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="-5.899912mm" pcbY="-0.8001mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="-5.899912mm" pcbY="-1.599946mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin9"]} pcbX="-5.899912mm" pcbY="-2.400046mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin10"]} pcbX="-5.899912mm" pcbY="-3.199892mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin11"]} pcbX="-5.899912mm" pcbY="-3.999992mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin12"]} pcbX="-4.800092mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin13"]} pcbX="-3.999992mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin14"]} pcbX="-3.199892mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin15"]} pcbX="-2.400046mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin16"]} pcbX="-1.599946mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin17"]} pcbX="-0.8001mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin18"]} pcbX="0mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin19"]} pcbX="0.8001mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin20"]} pcbX="1.599946mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin21"]} pcbX="2.400046mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin22"]} pcbX="3.199892mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin23"]} pcbX="3.999992mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin24"]} pcbX="4.800092mm" pcbY="-4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin25"]} pcbX="5.899912mm" pcbY="-3.999992mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin26"]} pcbX="5.899912mm" pcbY="-3.199892mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin27"]} pcbX="5.899912mm" pcbY="-2.400046mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin28"]} pcbX="5.899912mm" pcbY="-1.599946mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin29"]} pcbX="5.899912mm" pcbY="-0.8001mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin30"]} pcbX="5.899912mm" pcbY="0mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin31"]} pcbX="5.899912mm" pcbY="0.8001mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin32"]} pcbX="5.899912mm" pcbY="1.599946mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin33"]} pcbX="5.899912mm" pcbY="2.400046mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin34"]} pcbX="5.899912mm" pcbY="3.199892mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin35"]} pcbX="5.899912mm" pcbY="3.999992mm" width="0.7999984mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin36"]} pcbX="4.800092mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin37"]} pcbX="3.999992mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin38"]} pcbX="3.199892mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin39"]} pcbX="2.400046mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin40"]} pcbX="1.599946mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin41"]} pcbX="0.8001mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin42"]} pcbX="0mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin43"]} pcbX="-0.8001mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin44"]} pcbX="-1.599946mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin45"]} pcbX="-2.400046mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin46"]} pcbX="-3.199892mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin47"]} pcbX="-3.999992mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin48"]} pcbX="-4.800092mm" pcbY="4.899914mm" width="0.3999992mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin50"]} pcbX="5.94995mm" pcbY="4.949952mm" width="0.6999986mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin51"]} pcbX="5.94995mm" pcbY="-4.949952mm" width="0.6999986mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin52"]} pcbX="-5.94995mm" pcbY="-4.949952mm" width="0.6999986mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin53"]} pcbX="-5.94995mm" pcbY="4.949952mm" width="0.6999986mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin49"]} points={[{x: "-2.7001216mm", y: "2.099945mm"}, {x: "-2.1001228mm", y: "2.6999438mm"}, {x: "-1.2501372mm", y: "2.6999438mm"}, {x: "-1.2501372mm", y: "1.2499594mm"}, {x: "-2.7001216mm", y: "1.2499594mm"}]} shape="polygon" />
<smtpad portHints={["pin49"]} pcbX="1.97485mm" pcbY="-1.975104mm" width="1.4500098mm" height="1.4500098mm" shape="rect" />
<smtpad portHints={["pin49"]} pcbX="0mm" pcbY="-1.975104mm" width="1.4500098mm" height="1.4500098mm" shape="rect" />
<smtpad portHints={["pin49"]} pcbX="-1.975104mm" pcbY="-1.975104mm" width="1.4500098mm" height="1.4500098mm" shape="rect" />
<smtpad portHints={["pin49"]} pcbX="-1.975104mm" pcbY="0mm" width="1.4500098mm" height="1.4500098mm" shape="rect" />
<smtpad portHints={["pin49"]} pcbX="0mm" pcbY="1.97485mm" width="1.4500098mm" height="1.4500098mm" shape="rect" />
<smtpad portHints={["pin49"]} pcbX="1.97485mm" pcbY="1.97485mm" width="1.4500098mm" height="1.4500098mm" shape="rect" />
<smtpad portHints={["pin49"]} pcbX="1.97485mm" pcbY="0mm" width="1.4500098mm" height="1.4500098mm" shape="rect" />
<smtpad portHints={["pin49"]} pcbX="0mm" pcbY="0mm" width="1.4500098mm" height="1.4500098mm" shape="rect" />
<silkscreenpath route={[{"x":6.600012199999924,"y":-5.5999888000000055},{"x":6.6000375999999505,"y":11.000054200000022}]} />
<silkscreenpath route={[{"x":6.6000375999999505,"y":5.599988800000119},{"x":-6.6000375999999505,"y":5.599988800000119}]} />
<silkscreenpath route={[{"x":-6.6000375999999505,"y":11.000028799999995},{"x":6.6000375999999505,"y":11.000028799999995}]} />
<silkscreenpath route={[{"x":-6.600012200000037,"y":-5.5999888000000055},{"x":-6.6000375999999505,"y":11.000028799999995}]} />
<silkscreenpath route={[{"x":-6.600012200000037,"y":-5.5999888000000055},{"x":6.600012199999924,"y":-5.5999888000000055}]} />
<silkscreencircle pcbX="-6.999986mm" pcbY="3.999992mm" radius="0.100076mm" />
<silkscreentext text="{NAME}" pcbX="-0.3429mm" pcbY="12.0998mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":-6.700012000000015,"y":11.10000320000006},{"x":-6.700012000000015,"y":-5.700013999999896},{"x":6.7000119999999015,"y":-5.700013999999896},{"x":6.7000119999999015,"y":11.10000320000006},{"x":-6.600012200000037,"y":11.10000320000006},{"x":-6.50001240000006,"y":10.900003599999991},{"x":6.50001240000006,"y":10.900003599999991},{"x":6.50001240000006,"y":-5.500014399999941},{"x":-6.50001240000006,"y":-5.500014399999941},{"x":-6.50001240000006,"y":10.900003599999991},{"x":-6.700012000000015,"y":11.10000320000006}]} strokeWidth="0mm" isFilled hasStroke={false} />
<fabricationnotepath route={[{"x":-6.50001240000006,"y":5.700013999999896},{"x":-6.50001240000006,"y":5.500014400000055},{"x":6.50001240000006,"y":5.500014400000055},{"x":6.50001240000006,"y":5.700013999999896},{"x":-6.50001240000006,"y":5.700013999999896}]} strokeWidth="0mm" isFilled hasStroke={false} />
<courtyardoutline outline={[{"x":-6.849986800000124,"y":11.264989400000104},{"x":6.849986799999897,"y":11.264989400000104},{"x":6.849986799999897,"y":-5.834977399999957},{"x":-6.849986800000124,"y":-5.834977399999957},{"x":-6.849986800000124,"y":11.264989400000104}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2838502.obj?uuid=789e2235438340f8bef14c336f136f9e",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2838502.step?uuid=789e2235438340f8bef14c336f136f9e",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: -2.7150060000000167, z: 0 },
}}
{...props}
/>
)
}