Posted on Monday, July 18, 2011 • Category: AVR
I wanted to share my project of modifying the temperature sensor project and turning it into a thermostat with ATmega168. I added a digital output to drive an LED to "warm" the temperature sensor when the current (actual) temperature falls below the desired temperature.
Two push buttons come in as digital inputs one to ramp the desired temperature up and the other to ramp it down.
The logic is simple bang-bang control to turn the LED on and off based on the relationship of actual temperature to desired temperature. It simulates a thermostat in heater mode. The LED is off when the current temperature is above the desired temperature and turns on once the current temperature falls below.
Circuit-Zone.com © 2017. All Rights Reserved.