M T
Published © GPL3+

Making a smart thermostat, smarter

Besides time scheduling and phone control, "smart" thermostats are pretty dumb...

IntermediateWork in progress2 hours185
Making a smart thermostat, smarter

Things used in this project

Hardware components

ESP32
Espressif ESP32
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Thermostat Control

There's not much of a schematic. I only that the AHT10 hooked to the ESP32 via the SDA/SCL lines for I2C. That's it. No display and because it's always powered the only support circuitry is a usb cable. This is the ESP32S2 module I am using, but any ESP32 should work well.

Code

Thermostat Control

C#
This is the list of Arduino Libraries on which I based my sketches.
#include <WiFi.h>
#include <WiFiClientSecure.h>
#include <NTPClient.h>
#include <WiFiUdp.h>
/*
 * ****** In ESPAsyncWebServer - Need to modify WebAuthentication.cpp *****
   In function getMD5(
   From:    mbedtls_md5_starts(&_ctx);
   To:  mbedtls_md5_starts_ret(&_ctx);
*/
#include <ESPAsyncWebServer.h>
#include <HTTPClient.h>
#include <Ticker.h>
#include <ArduinoOTA.h>
#include <ArduinoJson.h>
#include <time.h>
#include <ESP32Ping.h>

Credits

M T

M T

4 projects • 3 followers
Retired SW Engineer after 47 years. Enjoy embedded C/C++ programming on ESP platforms. (Keeps me from drinking too much wine, LOL!)

Comments