An electronic thermostat is a standard equipment for sensing the temperature of a system and maintaining it at a pre-defined point. It is a regular feature in air-conditioners, room heaters and refrigerators. Although some commercially-available refrigerators have inbuilt thermostats, the given circuit is easy to build and automatically turns on or turns off the appliance at pre-set temperatures.
My refrigerator’s deep freezer’s temperature remains between -5°C to -15°C (former temperature switches the fridge on and the latter turns it off).
Electronic thermostat circuit
The 230V AC mains voltage instead of going directly to the refrigerator (or input of the automatic voltage stabiliser, if used with the fridge) is routed through the normally open (N/O) contact of relay RL1. When the relay gets energised due to conduction of T2 (BC547), relay contact is closed and the appliance gets 230V AC power, which, in turn, starts cooling.

IC1 is a quad comparator (LM339) used as a voltage comparator with hysteresis. Inverting input of IC1 is applied to a reference voltage derived from Zener diode ZD1 (5.2V), which is then further divided by the potential divider arrangement provided by R3, R5 and VR1. C5 is the decoupling capacitor to bypass AC noise, if any.
Heart of the circuit
Between the non-inverting input of IC1 and the ground is the temperature sensor, which is an npn silicon transistor 2N2222 with its collector shorted to its base. The transistor’s temperature-dependent characteristic of the base-emitter junction is used as the temperature-sensing property. For every degree rise, junction voltage decreases by 2mV. Trimpot VR1 is adjusted to the reference voltage at a value equal to the sensor’s junction voltage corresponding to the lower negative temperature (-5°C in this case).
On state
If temperature inside the fridge is between -5°C and -15°C, then voltage at the inverting input of the comparator is equal to reference voltage (corresponding to voltage for -5°C) plus fraction of the voltage feedback through potential dividers R7 and R4. Feedback voltage in this case is 20mV corresponding to a temperature change of 10°C. Thus, as long as temperature is more than -15°C, voltage at inverting input is greater than that at non-inverting input, comparator output pin 2 is high, T2 is saturated and energises the relay coil and the appliance remains switched on.
Hi
Little complicated
But you explained very well
Thank you for your feedback.
Here’s the reply from the author Sundar B. “Thank you Mr. Potdar. Please try the circuit at home, its not that complicated; you will enjoy it as you progress. Building home automation is my favorite leisure work and also forte. If you have basic Physics knowledge, to the level of FYBSc, this circuit can be built from ICs and other components sold by any electronic circuit stores. In Mumbai, there are many at Lamington Road, which supply or ship the goods via phone call too to your city… Please google Gala Electronics. They also advertise in EFY”
Congratulations , it’s a good project well explained. But….
How about 1) DEFROST 2)ON-DELAY 3) Over/Under Voltage PROTECTION
All that could be added easily and is essential for a practically viable circuit
Here’s the reply from the author Sundar B.
“Thank you Mr. Vishwa, for deeply probing the circuit and finding the additional possibility. Well, essentially Defrost detector can be interfaced with the relevant sensor. I am not clear with what you meant by “ON-DELAY”, please elaborate on that so that I can work on it. Regarding Over/Under Voltage Protection, indeed, it can be built and I will be publishing that as separate circuit with more system integration such as remote monitoring of the refrigeration (especially for industries which I am building that involves wireless monitoring of multiple parameters on a 16-Bit Microcontroller). Once I am done with the System Integration and Field Tested/Commissioned, barring the proprietor data and systems, I will be scaling down the same for 8-bit Microcontroller with a Zigbee Interface. Please wait till then. I am very glad with the inputs that are true source of encouragement.”