MCP ExplorerExplorer

Temperature Sensor Esp32 Mcp9808

@jdsalmonsonon a year ago
1 MIT
FreeCommunity
AI Systems
Data and analysis of in/outside temperature data of my house before and after front door replacement.

Overview

What is Temperature Sensor Esp32 Mcp9808

temperature_sensor_esp32_mcp9808 is a project that involves the use of an ESP32 microcontroller to read temperature data from an MCP9808 temperature sensor. It focuses on analyzing the temperature data before and after the replacement of a front door in a house.

Use cases

Use cases include evaluating the thermal benefits of home improvements like door replacements, conducting temperature studies for HVAC systems, and analyzing environmental data for research purposes.

How to use

To use temperature_sensor_esp32_mcp9808, set up the ESP32S3 board to read temperature information from the MCP9808 sensor via I2C. Install the necessary Python environment and dependencies as outlined in the README, and utilize the provided scripts to log and analyze temperature data.

Key features

Key features include the ability to log temperature data using a Python script, analyze the data with Jupyter notebooks, and visualize the results through various plotting tools. The project also includes a rudimentary README for guidance.

Where to use

temperature_sensor_esp32_mcp9808 can be used in residential settings for monitoring indoor and outdoor temperatures, particularly in studies related to energy efficiency and thermal performance of building components.

Content

temperature_sensor_esp32_mcp9808

This is the repository for data and analysis for my blog post Quantifying the Thermal Benefits of Replacement of my House’s Front Door.

Highlights of key directories or files of interest are


1/22/2025

An ESP32S3 board reads temperature information from an MCP9808 temperature sensor via I2C.


The set up of this project follows that of labrador_classifier.

Some basic setup:

micromamba env create -p "./.venv_temp_sense" "python=3.13"
micromamba activate "./.venv_temp_sense"
micromamba install "uv"
uv pip install zeroconf requests # for web access and mDNS hostname lookup
uv pip install rich
uv pip install ipykernel ipywidgets # for notebooks
uv pip install pandas matplotlib
uv pip install scipy

From prompts, I created a 3.13 python environment with idf_tools.py install-python-env.

Then, as per the “Getting started with the ESP-IDF” Evernote, the following commands created a VScode session that did create a build/ directory:

. ~/stash/esp/esp-idf/export.sh
export IDF_XTENSA_GCC="$(which xtensa-esp32-elf-g++)"  # <- not sure if this is crucial, but it works
cd ~/Work/Animata/Esp_projects/temperature_sensor_esp32_mcp9808/esp32
cursor .

Set up package

Created a package to manage the loading and fitting of this data. Named package after Egyptian pharoah Horemheb:

cd horemheb
uv pip install -e .

March 20, 2025

Downloaded humidity and wind data over this period of time for LVK from the National Weather Service. Click Advanced Options and in the pop-up window click Permanent Chart to select the item to be plotted and Gather Historical Data to select a date range. Then, from the resulting plot, click the bars in the upper right and the click Download CSV from the pull-down menu.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers