Skip to content

Sinitronics/ThermoStatESP32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThermoStatESP32

My thermostat project for my home automation project. In heavy development and probably doesn't work.

I'm creating this thermostat to directly replace an analogue Honeywell turn dial thermostat.

Non-core library requirements for this sketch:

Adafruit GFX library - https://github.com/adafruit/Adafruit-GFX-Library
Adafruit ILI9341 driver - https://github.com/adafruit/Adafruit_ILI9341
OneButton library - https://github.com/mathertel/OneButton
DallasTemperature sensor library - https://github.com/milesburton/Arduino-Temperature-Control-Library

Hardware used (so far this will no doubt change):

  • ESP32 - "NodeMCU" ESP-32S development module (put quotes around NodeMCU as I dont believe it's genuinely provided by them)
  • DS18B20 Dallas Temperature sensor
  • ILI9341 2.2" TFT SPI 240x320
  • Red LED
  • 2x push buttons (probably going to increase)
  • Resistors - 1 x 4k7, 2x 10k and 2 x 220ohm

Will provide full wiring diagram in time.

NOTES

SPI

To get this to work correctly with the LCD you will need to modify you pin_arduino.h file to define the Hardware SPI pins. For example on my setup my hardware location is:

D:\Arduino\hardware\

You will need to locate the location you downloaded the espressif ESP32 hardware information, then depending on the variant of board you have selected within the Arduino IDE (Visual Studion Code in my instance) got to the variants directory under espressif:

D:\Arduino\hardware\espressif\esp32\variants\

If you are using the same development board as me (the pin labels are under the board) then edit:

D:\Arduino\hardware\espressif\esp32\variants\nodemcu-32s\pins_arduino.h

Find the following lines:

static const uint8_t SS    = 5;
static const uint8_t MOSI  = 23;
static const uint8_t MISO  = 19;
static const uint8_t SCK   = 18;

And either comment these out and paste the below in or replace with the following:

static const uint8_t SS    = 15;
static const uint8_t MOSI  = 13;
static const uint8_t MISO  = 12;
static const uint8_t SCK   = 14;

Other things to note

Connects to WiFi and obtains IP so far does nothing else.
Will turn LED on and off dependant on values need to add functionality to actually do anything with heating.
This is going to be part of a Domoticz based home automation system but also will have full functionality of if the Domoticz server is not available (will talk direct to relay node to switch heating on and off).
There will be no aircon control as here in the UK homes generally dont have it fitted.

Releases

No releases published

Packages

No packages published

Languages