This is a PID thermostat for the arduino. For more information on how they work take a look at this post about the PID library and this post about the Autotune library. Required libraries for the DS18Band the I2C . Time to introduce a couple of libraries.
The temperature sensor is pretty cool in that it uses a single wire to send data back to the Arduino.
Step 4: TCArduino Code. Picture of TCArduino Code. The TCuses the Wire library for the Arduino. The code is as follows, and can be modified to fill in other needs.
Check out these ideas for creating a home thermostat using the popular Arduino microcontroller platform. It really is a fantastic library for using the Arduino to drive a Television or LCD Monitor, so if you wanted to you could plug this thermostat into a spare TV and have a giant thermostat display. We can start adding some code to the Arduino to control our thermostat.
Open a new sketch in the Arduino IDE and perform the following steps: 1. Inside the sketch, we are going to start by adding the code to include the libraries we need to use.