How to make a simple analog Temperature controller
In this article, we are going to make a simple Analog Temperature Controller using OP-Amp and Relay. This is a basic article, that can be used as a reference for large designs. If you understand it clearly, you can apply it in other controls. So let’s start!
Disclaimer: Electricity is always dangerous. Skill required to work with electricity. Do work at your own risk. The author will not be responsible for any misuse or harmful act. This website contents are also copyright protected. Anything copied and directly posted on your website and claiming it as yours is prohibited and nonsensical. The author published all the articles as open source to help you to make your project and learning purpose only. Learn and make one for yourself. If need any help feel free to ask the author. The author will be helpful to you. Thanks.
You can this article too: Analog Temperature controller for an incubator with Capacitor Power Supply
The basic of comparator:
Comparator is one of the modes of the Op-Amp circuit. It is pretty simple in a configuration like this image below:
The output of the comparator is high if the non-inverting input voltage is higher than the inverting input pin. And the output is low if the non-inverting pin is lower than in voltage reading than the inverting pin. Here, we can take one pin as a reference and the other pin as an input pin. This is a totally simple operation. But there are some problems using in this condition while you are controlling something like a switch or relay or a load. Because, if the input voltage is almost the same as the reference voltage, the output will fluctuate. Check this image carefully.
The output is fluctuating for a very short time. This will definitely kill the relays if this is not conditioned. You may think about adding capacitor filters but that will not improve it. To solve this problem, we need to use the comparator circuit as a Schmitt-Trigger circuit or a comparator with hysteresis.
Here, a resistor R2 is used as a feedback resistor. This feedback resistor works as our hysteresis control resistor. Think in a simple way, whenever the input Vin is lower than the reference voltage, the output will be high. Then the feedback resistor will carry a minor current to the reference pin which increases the pin voltage a little. That makes the reference voltage a little higher than the present Vin voltage. So to turn the output off, the Vin pin has to be a little extra higher than the previous reference voltage.
But once it is higher than the preset reference voltage, the output will be low. Again the feedback resistor will draw some current from the reference pin which will actually reduce the actual reference voltage by a little. Now what? the Vin pin needs to be lower than this voltage (actual reference voltage + voltage droop due to the feedback resistor). This way the hysteresis works.
This hysteresis helps to control the output from fluctuating at the same input voltage range. That protects relays from chattering ensuring longer life.
If you want to know the calculations you can read this article here.
Now, we can apply the comparator circuit in our project.
Here is the circuit diagram of our Analog Temperature Controller:
Here, a common Op-Amp LM358 is used where the R6 is our feedback resistor. Tuning the potentiometer RV1, we can set our temperature range. Then sensor RT1 is a 10KOhms NTC type temperature sensor. When the temperature is higher than the setpoint, the relay will be turned on and the heater is off. The same circuit can be used for cooling purposes too connecting a cooler in the other terminal of the relay.
You can follow this diagram to make your own. Alternatively, you can buy the Gerber files from here for $1.99 only.
JLCPCB.com is one of the largest PCB manufacturers and offers excellent PCB quality at 30% lowest price than others. Easy to order PCBs and faster delivery.
Many people ask me to post simplified projects so that they can understand them. That is why this article is posted and I tried it the maximum simple I can do. I hope this will help you to understand the circuit. If still, you have any problem, kindly comment below. And don’t forget to subscribe.
See you in the next article, Thanks.