Digital Thermostat with LED Temperature Display
 Digital Thermostat with LED Temperature Display


  Digital Thermostat with LED Temperature Display

I needed to replace two old, unreliable thermostats for controlling the heating and cooling for a large garden shed. Commercial basic digital thermostats are available quite cheaply, but some lack the ability to control heavy loads or have the extra features that I require for saving energy when the door is often left open or to indicate temperature being out of range etc. I like the PIC18F1320 microcontroller used in my previous project - so decided to use it again in a very similar design to drive three multiplexed LED displays and read the temperature from a Dallas/Maxim DS18x20 "1-Wire" digital sensor.


 Digital Thermostat with LED Temperature Display

The microcontroller communicates with a Dallas/Maxim "1-wire" digital temperature sensor (in fully powered mode). It has been successfully tested with DS18B20 and DS18S20 types. The choice of sensor makes no difference to the temperature display resolution here. If a DS18S20 device is used,the software uses the "Count_remain" variable to increase it's resolution to 0.1 deg centigrade. The controller drives the three (high efficiency) LED single digit common cathode type display segments through series 510ohm resistors to help limit the current to remain within the 25mA per pin drive limit, together with the multiplexing action which effectively reduces the average current. The multiplex is the same "Charliplexed" circuit as used in my previous project - this saves two pic port pins for other uses. Using the on-chip oscillator again frees-up the two pins normally used for connecting a crystal to be used as ports instead.


 Digital Thermostat with LED Temperature Display


 Digital Thermostat with LED Temperature Display



Downloads

HEX Program
  Digital Thermostat with LED Temperature Display - Link


 

Build your own LC Meter and start making your own coils and inductors. This LC Meter allows to measure incredibly small inductances making it perfect tool for making all types of RF coils. LC Meter can measure inductances starting from 10nH - 1000nH, 1uH - 1000uH, 1mH - 100mH and capacitances from 0.1pF up to 900nF. The circuit includes an auto ranging and "Zero Out" function to make sure the readings are as accurate as possible ... [more]


Electronics-DIY.com © 2002-2010. All Rights Reserved.