Help for THRSim11 component: Beerbasement

© Paul Zandbergen.

BeerBasement

I want to control the temperature in my basement to keep my beer in optimal condition. The best temperature for keeping beer is between 4 and 10 °C. The editbox can be used to set the temperature. If the temperature is to high the cooling element should be activated and if the temperature is to low the heating element should be turned on. The temperature is measured by means of a NTC resistor and a voltage divider. The output of this voltage divider (an analog voltage) is connected to the 68HC11 through pin PE0. The heating and cooling elements are activated via digital output pins of the 68HC11. Pin PB0 is used to activate the heating element and pin PB1 is used to activate the cooling element. The led is connected to pin PB2.

The Temperature is measured with a NTC resistor WNC2013 of Western Electronic Components Corporation.

The specifications of the NTC WNC2013 can be found here.

This NTC resistor is incorporated in the following circuit:

Uin=5000 mV, R0=47k, Rt= NTC and Uuit is connected to pin PE0 of the 68HC11.