

PT100 Datalogger
This application turns an ESP32-S3 N8R2 into a UTC-centric PT100 data logger with FRAM-first buffering, SD-card CSV batching/verification, DS3231 RTC support, mesh streaming, and serial-console calibration.
- Size
- 62 × 105 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 139
- Nets
- 109
- Pads
- 512
- Tracks, vias
- 1,042, 246
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 17 Dec 2025
- Updated
- 2 Jul 2026
Overview
PT100 Datalogger is an open-source printed circuit board by rasusmilch, from the rasusmilch/PT100_Mesh_Datalogger repository on GitHub. It is a 4-layer board of 62 × 105 mm with 139 parts on 109 nets, routed with 1,042 tracks and 246 vias.
It is built around the ESP32-S3-WROOM-1-N8R2, SN74LVC245APW and ZP05S0500WB, with the MCP9601-E/MX, MAX7219M and MSD-4-A among its other parts. Its parts include 36 resistors, 29 capacitors, 27 diodes, 14 connectors and 11 ICs. It belongs with the sensors and measurement boards and the ESP32 boards of this library.
Main components
12ESP32-S3-WROOM-1-N8R2
SMD,25.5x18mm-40℃~+85℃ -98.2dBm 2.4GHz 20.5dBm 355mA 3V~3.6V 97mA Bluetooth5.0 ESP32-S3 Chip On-board PCB Antenna UART、SPI、I2C、I2S、USB SMD,25.5x18mm WiFi Modules ROHSEspressif SystemsWiFi ModulesSN74LVC245APW
TSSOP-20-40℃~+125℃ 1 1.65V~3.6V 24mA 24mA 3.8ns@3.3V,50pF 30uA 74LVC 8 Bidirectional Tri-State TSSOP-20 Buffers, Drivers, Receivers, Transceivers ROHSTexas InstrumentsBuffers, Drivers, Receivers, TransceiversZP05S0500WB
DIP,32.1x27.1mm1 1A 5V 70% DIP,32.1x27.1mm DC-DC Power Modules ROHSZETTLERDC-DC Power ModulesMCP9601-E/MX
MQFN-20(5x5)-40℃~+125℃ 100kHz 18 2.7V~5.5V 300uA 4 I2C Thermocouple-to-Digital Converter MQFN-20(5x5) ADCs/DACs - Special Purpose ROHSMicrochip TechnologyADCs/DACs - Special PurposeMAX7219M
SOP-24-300mil10MHz 150uA 3-Wire Serial Interface 30mA 320mA 4V~5.5V 8 Segment x 8 Digit Built-in display RAM、PWM dimming、BCD input latch function、Power-up display blanking、Lamp test function、Cascadable function SOP-24-300mil Digital Tube Drivers ROHSHGSEMIDigital Tube DriversMSD-4-A
SMDSMD SD Card / Memory Card Connector ROHSCUISD Card / Memory Card ConnectorTPD2E001DZD
SOT-23-4-40℃~+85℃ 1.5pF 11V 1nA 2 5.5V ESD IEC 61000-4-2 Unidirectional SOT-23-4 ESD and Surge Protection (TVS/ESD) ROHSTexas InstrumentsESD And Surge Protection (TVS/ESD)CY15B104QN-50SXI
SOIC-8-208milSOIC-8-208mil FRAM ROHSInfineon TechnologiesFRAMLDL212PV33R
DFN-6(2x2)-40℃~+125℃@(Tj) 1 1.2A 18V 250uA 3.3V 600mV@(1.2A) 60uVrms 87dB@(120Hz) Fixed Positive Under Voltage Lockout、Over Current Protection、Over Temperature Protection、Enable DFN-6(2x2) Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSSTMicroelectronicsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsPCF2131TFY
HLSON-16(3.5x4.5)-40℃~+85℃ 1.2V~5.5V 64nA Built-in SPI、I2C Watchdog timer、Temperature compensation、Backup power management and battery charging、Battery low voltage detection、Timestamp function、Programmable clock output、Alarm function、Locking and tamper-proof、Periodic interrupt output Yes HLSON-16(3.5x4.5) Real Time Clocks ROHSNXP SemiconductorsReal Time ClocksTPD6E05U06RVZR
USON-14(1.4x3.5)-40℃~+125℃ 0.47pF 10nA 14V 2.5A@8/20us 40W@8/20us 5.5V 6 8.5V ESD IEC 61000-4-2、IEC 61000-4-5、IEC 61000-4-4 Unidirectional USON-14(1.4x3.5) ESD and Surge Protection (TVS/ESD) ROHSTexas InstrumentsESD And Surge Protection (TVS/ESD)ESD5Z3V3
SOD-523-55℃~+150℃ 1 105W 105pF 14V 3.3V 5V 7.5A 900nA ESD IEC 61000-4-2 Unidirectional SOD-523 ESD and Surge Protection (TVS/ESD) ROHSMDDESD And Surge Protection (TVS/ESD)
README
README.mdPT100 + MAX31865 Temperature Data Logger (ESP32-S3, ESP-IDF)
This application turns an ESP32-S3 N8R2 into a UTC-centric PT100 data logger with FRAM-first buffering, SD-card CSV batching/verification, DS3231 RTC support, mesh streaming, and serial-console calibration.
Hardware / wiring
All signal pins are configurable under idf.py menuconfig -> PT100 Logger:
- Shared SPI bus:
MOSI,MISO,SCLK - Chip-selects:
MAX31865 CS,FRAM CS,SD CS - DS3231 I2C:
SDA,SCL(address selectable)
Configure mesh root/leaf role and Wi-Fi credentials in the same menu.
Build / flash
idf.py set-target esp32s3
idf.py menuconfig # configure pins, mesh role, batch sizes, flush thresholds
idf.py build flash monitorLogging pipeline (FRAM → SD with verification)
- Sensor task samples MAX31865 at
log interval(NVS-backed). - Each record is appended as a fixed-size binary struct (with CRC) to a FRAM ring buffer; the persistent header tracks read/write indices and the next sequence number.
- The SD task builds large CSV batches (~64–256 KB, configurable) from FRAM without consuming it, then:
- Appends the batch to the daily CSV file (
YYYY-MM-DD.csv) withsetvbufbuffering. fflush()+fsync().- Reads back the appended region and checks SHA-256.
- On mismatch: truncates to the original size and leaves FRAM untouched.
- On success: consumes the matching FRAM records.
- Appends the batch to the daily CSV file (
- CSV header (written once per day):
schema_ver,record_id,seq,epoch_utc,iso8601_local,raw_rtd_ohms,raw_temp_c,cal_temp_c,flags,node_id - FRAM is limited (default 32 KB); when it fills, logging pauses (no overwrite) until a flush frees space. A
fram_fullflag surfaces viastatus.
Resume / crash safety
- On boot or day rollover the logger:
- Opens today’s file, truncates to the last newline if the tail was partial.
- Scans the tail to find the last written
seq. - Drops any FRAM records with
seq <= last_sd_seqto guarantee no duplicates.
- If FRAM corruption is detected, consumption stops and the corrupted record can be skipped explicitly (see logs).
Timekeeping
- DS3231 is treated as UTC and seeds system time at boot.
- Mesh root uses SNTP, updates DS3231, and broadcasts time over the mesh; leaves can request/broadcast time updates.
Serial console commands
statusraw(one sample: raw/calibrated temp + resistance)log interval <ms>log watermark <records>(FRAM flush high-water mark)log flush_period <ms>(periodic SD flush interval)log batch <bytes>(target SD batch size)log showcal clearcal add <raw_c> <actual_c>cal listcal apply(1 point = offset-only; 2–4 points fit deg1–deg3)flush(best-effort FRAM→SD flush with verification)diag check(diagnostics mode only; sensor/FRAM/SD/mesh/time quick health check)
All configuration changes persist to NVS.
Mesh / host streaming
Mesh mode (leaf → root → broker/serial)
- Leaf nodes publish samples into the mesh; logging to FRAM continues if the mesh or upstream network is down.
- The root bridges mesh records to the MQTT broker and/or the DATA UART (CSV), and these exports are best-effort only.
Direct Wi-Fi leaf mode (leaf → broker)
- Leaves can bypass the mesh and publish directly to the broker when configured for direct Wi-Fi.
FRAM/SD logging plus the DATA UART output never depend on network availability.
- Leaf nodes send samples upstream; logging to FRAM continues if mesh is down.
- Root node prints one CSV row per record over UART (after the CSV header).
Root upstream router credentials can be provided via the wifi_ssid /
wifi_pass NVS settings (from your console tooling or provisioning flow). If
those are not set, the root falls back to
CONFIG_APP_WIFI_ROUTER_SSID / CONFIG_APP_WIFI_ROUTER_PASSWORD in Kconfig.
Test plan
- Calibration persistence: Add points, apply, reboot, and confirm
statusshows the same coefficients and calibrated readings remain adjusted. - Batching size: Monitor SD writes (logic analyzer or debug prints) to confirm large buffered writes (64–256 KB) rather than per-sample writes.
- Crash during flush: Pull power mid-flush; on reboot confirm the CSV tail is repaired and no duplicated
seqappears on SD after FRAM drains. - Tail repair: Manually append a partial line to a CSV, reboot, and confirm it is truncated to the last newline automatically.
- Mesh resilience: Run leaves with the root powered off; verify local FRAM accumulation and later FRAM→SD flush when root/SD returns.
- SD removal: Unmount/remove SD, ensure FRAM continues to grow; remount and verify backlogged records flush with verified appends.
Parts
139| Qty | Value | Footprint | References |
|---|---|---|---|
| 22 | 100nF | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C1, C10, C11, C12, C13, C16, C18, C20, C21, C22, C23, C24, C25, C26, C27, C28 +6 |
| 16 | ESD5Z3V3 | Diode_SMD:D_SOD-523 | D1, D12, D13, D15, D16, D17, D18, D19, D22, D23, D24, D25, D28, D29, D34, D35 |
| 12 | 100R | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R7, R8, R15, R16, R18, R25, R26, R27, R28, R29, R53, R56 |
| 10 | 10K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R1, R2, R3, R4, R5, R6, R10, R11, R13, R17 |
| 6 | SolderJumper_3_Bridged12 | Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mm | JP1, JP2, JP3, JP4, JP5, JP6 |
| 5 | SW_Push_Shielded | Button_Switch_SMD:SW_SPST_B3U-1100P | SW3, SW4, SW5, SW6, SW7 |
| 4 | 10uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C2, C17, C19, C29 |
| 4 | MountingHole_Pad | MountingHole:MountingHole_3.2mm_M3_Pad | H1, H2, H3, H4 |
| 3 | 1K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R9, R12, R14 |
| 3 | B5819W | Diode_SMD:D_SOD-123 | D5, D7, D20 |
| 3 | ESD5Z12T1G | Diode_SMD:D_SOD-523 | D8, D9, D11 |
| 3 | TSD05CDYFR | Diode_SMD:D_SOD-323_HandSoldering | D2, D3, D14 |
| 2 | 220R | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R54, R55 |
| 2 | 22uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C14, C15 |
| 2 | 2M | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R19, R52 |
| 2 | 4K7 | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R41, R42 |
| 2 | 5k1 | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R23, R24 |
| 2 | LED | LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder | D4, D21 |
| 2 | SolderJumper_2_Open | Jumper:SolderJumper-2_P1.3mm_Open_TrianglePad1.0x1.5mm | JP8, JP9 |
| 2 | TPD2E001 | Package_TO_SOT_SMD:SOT-553 | U5, U6 |
| 1 | 1M | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R20 |
| 1 | 330R | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R22 |
| 1 | 391KD07-TR | Varistor:RV_Disc_D7mm_W5.4mm_P5mm | RV2 |
| 1 | BH-49A-5-T-BK | Personal:BH-49A-5-T-BK_ADM | BT1 |
| 1 | CU3216SASBLR004-NH | Personal:CONN_CU3216SASBLR004-NH_CVI | J5 |
| 1 | CY15B104QN-50SXI | Package_SO:SOIC-8_5.3x5.3mm_P1.27mm | U7 |
| 1 | Conn_01x04 | Connector_Molex:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_Vertical | J2 |
| 1 | DE1B3RA471KN4AP01F | Capacitor_THT:C_Disc_D7.5mm_W5.0mm_P10.00mm | C6 |
| 1 | DIG1 | Connector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_Vertical | J8 |
| 1 | DIG2 | Connector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_Vertical | J9 |
| 1 | DIG3 | Connector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_Vertical | J10 |
| 1 | DIG4 | Connector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_Vertical | J11 |
| 1 | DIG5 | Connector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_Vertical | J12 |
| 1 | DIG6 | Connector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_Vertical | J13 |
| 1 | ESP32-S3-WROOM-1-N8R2 | RF_Module:ESP32-S3-WROOM-1 | U1 |
| 1 | Fuse | Fuse:Fuseholder_Clip-5x20mm_Littelfuse_111_Lateral_P18.80x5.00mm_D1.17mm_Horizontal | F1 |
| 1 | LDL212PV33R | Personal:SON50P200X200X80-7N | U4 |
| 1 | MAX31865xAP | Package_SO:SSOP-20_5.3x7.2mm_P0.65mm | U3 |
| 1 | MAX7219 | Connector_Molex:Molex_KK-254_AE-6410-05A_1x05_P2.54mm_Vertical | J7 |
| 1 | MCP9601 | Package_DFN_QFN:Texas_RGW0020A_VQFN-20-1EP_5x5mm_P0.65mm_EP3.15x3.15mm_ThermalVias | U13 |
| 1 | MSD-4-A | Personal:CUI_MSD-4-A | J4 |
| 1 | PCF2131 | Personal:16-HLSON | U8 |
| 1 | PWR | Connector_Molex:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_Vertical | J1 |
| 1 | PWR | Connector_JST:JST_VH_B3P-VH_1x03_P3.96mm_Vertical | J14 |
| 1 | RN73H1JTTD3920A05 | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R21 |
| 1 | RTD | Connector_Molex:Molex_KK-254_AE-6410-05A_1x05_P2.54mm_Vertical | J6 |
| 1 | SHT45 | Sensor_Humidity:Sensirion_DFN-4_1.5x1.5mm_P0.8mm_SHT4x_NoCentralPad | U10 |
| 1 | SN74LVC245APW | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U2 |
| 1 | SolderJumper_3_Bridged12 | Jumper:SolderJumper-3_P1.3mm_Bridged12_Pad1.0x1.5mm | JP7 |
| 1 | TC | Personal:TerminalBlock_Onshore-3_P2.54mm | J3 |
| 1 | TPD6E05U06RVZ | Package_SON:Texas_R-PUSON-N14 | U9 |
| 1 | ZP05S0500WB | Personal:ZP05S0500WB | PS1 |
Similar boards
- 2 layers200 × 120 mm

- 2 layers25.4 × 17.8 mm

- 2 layers34.2 × 19 mm

- 4 layers90 × 60 mm

Better lamp controller
super-cow-powers/better-lamp-controller
A custom lamp controller with audio, controlled with an RP2040
103 partsBSD-3-Clause - 4 layers129 × 104.6 mm

- 4 layers481.3 × 23.7 mm

Faraday rescue bms
nhallsny/faraday-rescue
Open source battery for e-bikes made by the now-defunct Faraday Bicycles
155 parts8CERN-OHL-P-2.0 - 6 layers60 × 100 mm

- 2 layers60 × 111.3 mm

Silkscreen pcb
iandchasse/silkscreen-pcb
Silkscreen: open-hardware ESP32-S3 e-paper reader mainboard (KiCad 9). Formerly the de-link hub.
189 parts589CERN-OHL-S-2.0
Questions
How big is the PT100 Datalogger PCB?
It measures 62 × 105 mm and has 4 copper layers, 1.6 mm thick.
What parts does the PT100 Datalogger use?
139 parts, built around the ESP32-S3-WROOM-1-N8R2, SN74LVC245APW, ZP05S0500WB and MCP9601-E/MX. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the PT100 Datalogger KiCad files?
From the rasusmilch/PT100_Mesh_Datalogger repository on GitHub, at the commit this page was made from: the board is KiCad/PT100_Datalogger/PT100_Datalogger.kicad_pcb and its schematic KiCad/PT100_Datalogger/Connectors.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the PT100 Datalogger design in my own project?
Its repository states no licence, so its author keeps all rights: ask rasusmilch before reusing the design.