r/arduino • u/myopinionisrubbish • Sep 18 '26
Look what I made! Digital Thermostat project
Wanted a thermostat which I could program for when to turn the heat up in the morning and evening and also have minimum and maximum temperature setting. Once it hits the max temp, it will go to coasting down to the min temp setting and keep it there. It will have a pretty big hysteresis for the initial warming and a smaller one around the min temp.
No doubt there are commercial products to do this, but I had all the parts on hand, so why not build one myself? It’s not quite done yet, but the temperature sensor and clock are working. Now to work on the UI for inputting the settings.
The temperature sensor is an obsolete DALLAS DS1821 which uses a 1-wire interface, which I happen to have a number of. It requires tight timing and getting that to work was a major pain, but after a lot of head scratching finally got it to work. The clock is a PCF8523 with I2C bus. ATMEGA328P processor and 1.44” TFT display.
Since there aren’t many parts, decided to build it on a perf board rather than go to the expense of having a board made.
I’ll probably make it wireless with a 480 MHz on/off transmitter and receiver module as I don’t like where the current old mercury tilt switch thermostat is located and moving the wires isn’t an option.
The only question is how to power it. Might make it battery operated, even if it means having to recharge them once in a while. Then I’ll have to 3D print a box.





