From 4b75e4c651eb3f5bc5d825cedc983cf63dc83721 Mon Sep 17 00:00:00 2001 From: Rahix Date: Sun, 24 Aug 2025 16:49:02 +0200 Subject: [PATCH 1/3] temp: Add datasheets --- Misc/Temp-Monitor/MF52D NTC thermistor.pdf | 3 +++ Misc/Temp-Monitor/cs1237_datasheet.pdf | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 Misc/Temp-Monitor/MF52D NTC thermistor.pdf create mode 100644 Misc/Temp-Monitor/cs1237_datasheet.pdf diff --git a/Misc/Temp-Monitor/MF52D NTC thermistor.pdf b/Misc/Temp-Monitor/MF52D NTC thermistor.pdf new file mode 100644 index 0000000..3b6a89f --- /dev/null +++ b/Misc/Temp-Monitor/MF52D NTC thermistor.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c09541041ac7990fc31293cc5d726aa87dcb6d7d50c5540a950597c516afc35 +size 409355 diff --git a/Misc/Temp-Monitor/cs1237_datasheet.pdf b/Misc/Temp-Monitor/cs1237_datasheet.pdf new file mode 100644 index 0000000..6cf8b43 --- /dev/null +++ b/Misc/Temp-Monitor/cs1237_datasheet.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37e56da52b76fa15737251f7b791a818ec2da334b541c602a30fda5b54f3ca51 +size 395342 From 40a2f9c5f3d30679f47d43c7f66d92f18d713a69 Mon Sep 17 00:00:00 2001 From: Rahix Date: Sun, 24 Aug 2025 17:11:33 +0200 Subject: [PATCH 2/3] temp: Add a README --- Misc/Temp-Monitor/README.md | 29 +++++++++++++++++++++++++++++ Misc/Temp-Monitor/schematic.png | 3 +++ 2 files changed, 32 insertions(+) create mode 100644 Misc/Temp-Monitor/README.md create mode 100644 Misc/Temp-Monitor/schematic.png diff --git a/Misc/Temp-Monitor/README.md b/Misc/Temp-Monitor/README.md new file mode 100644 index 0000000..8327543 --- /dev/null +++ b/Misc/Temp-Monitor/README.md @@ -0,0 +1,29 @@ +Millikelvin Temperature Monitor +------------------------------- +Because we are fighting a lot of drift issues with the STM, we assume that +temperature deviations have a catastrophic effect on the system. To gain some +insights, we built a little temperature minitor for correlating the STM drift +to temperature fluctuations. + +### Hardware +The following components were used: + +- A cheap `MF52D 3950K` 10k NTC thermistor +- An ADC breakout board based on the CS1237 chip ([Breakout Board Docs](https://github.com/yasir-shahzad/CS1237-24-Bit-ADC-Module)) +- A Raspberry Pi Pico 2 + +![Schematic of the temperature monitoring setup](./schematic.png) + +### Software +On the Pico 2, a small micropython script is running. To deploy the code, you +need [`mpremote`](https://docs.micropython.org/en/latest/reference/mpremote.html): + +```bash +mpremote cp cs1237.py : +mpremote cp temperature_monitor.py : +mpremote cp main.py : +``` + +Replug the Pico USB cable and data should be sent in over serial. + +To monitor, we are currently using the [`serial-monitor-rust`](https://github.com/hacknus/serial-monitor-rust) tool. diff --git a/Misc/Temp-Monitor/schematic.png b/Misc/Temp-Monitor/schematic.png new file mode 100644 index 0000000..3457f77 --- /dev/null +++ b/Misc/Temp-Monitor/schematic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b72a7073c0bb50ec066c91ee96ac03eb74ae0256bacd59a981b5ce313c71ec4 +size 22199 From 5fa05aca2cb401327d9d7a833a4789ee271fabaa Mon Sep 17 00:00:00 2001 From: Rahix Date: Sun, 24 Aug 2025 17:12:37 +0200 Subject: [PATCH 3/3] temp: Add license --- Misc/Temp-Monitor/README.md | 3 +++ Misc/Temp-Monitor/temperature_monitor.py | 1 + 2 files changed, 4 insertions(+) diff --git a/Misc/Temp-Monitor/README.md b/Misc/Temp-Monitor/README.md index 8327543..16a4fd2 100644 --- a/Misc/Temp-Monitor/README.md +++ b/Misc/Temp-Monitor/README.md @@ -27,3 +27,6 @@ mpremote cp main.py : Replug the Pico USB cable and data should be sent in over serial. To monitor, we are currently using the [`serial-monitor-rust`](https://github.com/hacknus/serial-monitor-rust) tool. + +### License +All code in this directory is licensed under the [`MIT`](https://opensource.org/license/MIT) license. diff --git a/Misc/Temp-Monitor/temperature_monitor.py b/Misc/Temp-Monitor/temperature_monitor.py index d40409c..483d138 100644 --- a/Misc/Temp-Monitor/temperature_monitor.py +++ b/Misc/Temp-Monitor/temperature_monitor.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: MIT import math import time from cs1237 import CS1237