Remote-controlled Lora Room Thermostats

by Zihatec in Circuits > Electronics

174 Views, 0 Favorites, 0 Comments

Remote-controlled Lora Room Thermostats

old_solution.jpg

The task for this project was to remotely control the temperature in 2 club rooms. Both rooms are used for events and should only be heated for these events in order to save energy. Previously, 2 very simple thermostats were installed in these rooms and someone always had to manually raise the temperature on the thermostats before the relevant events and turn it down again after the event. We wanted a solution where you can enter the events in a Google Calendar in advance and then the corresponding thermostats for the respective room are automatically raised or lowered again.

Unfortunately, there is no WLAN available in these rooms. Lora radio was therefore used. The data from the Google Calendar is fetched via a gateway located in an office 200 meters away and converted into Lora radio protocols.

Supplies

Materials:

  • Adafruit Feather M0 RFM96 LoRa Radio
  • Espressif ESP32 DEV KIT C
  • Adafruit RFM96W LoRa Radio Transceiver 433 MHz
  • AZ-Touch Feather Kit
  • Breadboard pcb
  • Relay
  • NPN Transistor
  • 1wire temperature sensor
  • ACDC converter


Tools:

  • soldering iron
  • Solder Wire, Lead Free
  • screw driver

How It Works

Blockdiagram.jpg

Operation modes:

Manual operation: In this operating mode, the room temperature can be freely selected within certain limits using the thermostat's touchscreen. The "Automatic" entry in the Google Calendar can be used to switch back to automatic mode.

Automatic mode: In this operating mode, the Google Calendar automatically switches between a presettable setback temperature and a presettable heating temperature. These two above-mentioned temperatures can be set separately in the thermostat's options menu.

Thermostates Hardware

thermostat.jpg
Zusatzplatine.jpg
AZ-Touch und PCB.jpg

AZ-Touch Feather kits were used for the thermostats. Each of the thermostats is equipped with a 2.8 inch ili9341 touchscreen.

As the AZ-Touch kit is not designed for 230V supply voltage, a small additional board was designed which, in addition to a 230V ACDC converter, also contains a relay for controlling the heating and a DS18B20 1wire sensor for measuring the room temperature.

The circuit board of the AZ-Touch has been slightly modified so that the ACDC module fits into the housing.

Gateway Hardware

Gateway open.jpg
20231218_103432.jpg

The gateway was mounted on a perforated grid plate. Essentially, the gateway consists of an ESP32 DEV KIT C module as CPU and an Adafruit RFM96W LoRa Radio Transceiver 433 MHz Breakout. The connection to the Internet is established via the WiFi of the ESP32 module.

If you want to save yourself this work, you can alternatively use an Adafruit Huzzah32 and an Adafruit LoRa Radio FeatherWing - RFM95W 433 MHz.

Google Calendar

GoogleKalendar.jpg

The heating can be controlled remotely via a Google Calendar. I used the script and instructions from Seweryn Tałaj for this.

If the heating is now to be activated, a date is simply entered in the calendar. The appointment must contain the term "Room1" or "Room2" in the subject line as the key word in the subject line. You can of course adapt the program in the gateway accordingly and assign better key words. Please set the time so that there is enough time to heat up - in other words at least 2-3 hours longer. Otherwise leave the description of the date blank and do not invite any participants.

Firmware

I have made the firmware for the thermostats and the gateway available on Github.

https://github.com/HWHardsoft/LoraThermostat


Final Installation

thermostat_an_wand.jpg