• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Temperature Controllers / 2 Automatic Heatsink Temperature Controller Circuit

2 Automatic Heatsink Temperature Controller Circuit

Last Updated on January 19, 2025 by Swagatam 45 Comments

In this post we study about a automatic fan speed regulator circuit for controlling the temperature of a heatsink and from preventing the temperature to reach dangerous levels. This approach is to ensure safeguarding of the connected devices wit the heatsink.

Table of Contents
  • How it Works
  • Circuit Diagram
  • 2) Using LM358
  • How to Calibrate

Written by: Preeti Das

With the help of this circuit the speed of a fan motor self adjusts depending on the temperature of a heatsink that is intended to be controlled.

How it Works

Here a standard thermistor device is used as the temperature sensor specified with a resistance value of 10 K at 25 degrees ambient temperature.

The motor to be controlled is powered by the PWM pulses from the IC 555 whose pulse rate cycle goes down from around 34% at room temperature (minimum speed) to 100% (maximum speed) when the temperature has reached a high.

These pulses are generated by 555 which is rigged to work as an integrated voltage controlled oscillator circuit. On the control voltage pin 5 a varying voltage is applied determined by the resistance of the thermistor which in turn depends on the temperature generated over the heat sink.

In order to ensure an immediate transfer of temperature, the thermistor must be attached or glued to the heatsink appropriately.

The shown 100uF capacitor connected in parallel with the thermistor shorts the supply with pin5 of the IC simulating a high temperature state for a few seconds during power switch ON so that the motor gets an initialization torque and is prevented from getting stalled.

The voltage to the IC 555 is regulated by the zener diode of 9,1V so that it allows the IC to work regardless of the input supply fluctuations.

To adjust the temperature triggering threshold at which the motor may be expected to speed up, you can change the value 2.7K resistor connected to pin 5 of 555 or even use a potentiometer for setting up the same.

Circuit Diagram

automatic heatsink temperature controller circuit diagram

Note: The Transistor can be TIP122 for small motors rated at around 1 amp current.

2) Using LM358

Most electronic circuits with heat-generating power semiconductors equip at least one heatsink to dissipate the large amount of energy consumed. The rating of a heatsink depends on the maximum permissible temperature the silicon chip can withstand.

In this automatic heatsink temperature controller project, the heatsink monitor continuously observes the temperature of the heatsink.

In the range of 50°C to 60°, C the green LED will be lit, and the yellow one will light up when the temperature in the 70° - 80°C range.

Finally, when the temperature crosses the 80°C mark, the red LED will turn on. There is also an option to disconnect the load using a relay.

Automatic Heatsink Temperature Controller Circuit Diagram using IC LM358
IC LM35 pinout diagram
Use only pin2 and pin3 for the above circuit

Naturally, the circuit is a window comparator. Sensor D1 delivered a control voltage escalates at a rate of 10 mV/°C.

When the sensor voltage drops below the voltage of wipers P1 and P2, the outputs of the opamps (A1 and A2) will become low and LED D2 will illuminate.

Output A1 will become high when the voltage across D1 goes above the wiper at P1 but still stays below of P2.

At the same time, D2 will be off and LED D3 will be lit. If the voltage crosses the wiper of P2, then both opamps’ output will be high.

Simultaneously, D5 will light up and the transistor T1 will be switched on. The function of Zener diode D4 is to make sure LED D5 is brightly lit as well as ensuring T1 conducts without inhibition.

How to Calibrate

Calibrating the unit is quite straightforward. You just need to place the sensor along with a calibrated thermometer in a plate of water. The next step is to heat it.

As the temperature rises, set P1 and P2 to a minimum and maximum resistances.

Also, set the cross over from green to yellow in the range of 50° - 60°C with P1. After that, set the limit from yellow to red in the range of 70° - 80°C with P2. Now that you have calibrated the sensor, you can attach it directly onto the heatsink.

You'll also like:

  • 1.  Making a “Helping Third Hand” for Aiding Soldering Jobs
  • 2.  2 Useful Energy Saver Solder Iron Station Circuits
  • 3.  Differential Temperature Detector/Controller Circuit
  • 4.  How to Design an Induction Heater Circuit
  • 5.  Solar Powered Induction Heater Circuit
  • 6.  Temperature Controlled Relay Switch Circuit

About Swagatam

I am an electronics engineer with over 15 years of hands-on experience. I am passionate about inventing, designing electronic circuits and PCBs, and helping hobbyists bring their projects to life. That is why I founded homemade-circuits.com, a website where I share innovative circuit ideas and tutorials. Have a circuit related question? Leave a comment.... I guarantee a reply!

Previous Post: « 100 amp Variable Voltage Power Supply Circuit Diagram
Next Post: Modify Human Speech with this Digital Voice Changer Circuit »

Reader Interactions

Comments

  1. kens says

    January 7, 2022 at 10:00 am

    Your web site is very impressive including it’s in depth easy to understand descriptions of a myriad of projects. Thanks for the very interesting reading. If possible could you design a circuit that would control the speed of a couple of 12 volt computer fans aimed at a wood burning stove that would start turning at around 90 degrees F and would increase to full speed in the neighborhood of 130 degrees F and with somewhat adjustable low and high limits.

    Reply
    • Swagatam says

      January 7, 2022 at 9:46 pm

      Thanks very much and glad you liked the content of this site!
      I think the first circuit is perfectly suitable for your application. Please test it and let me if it fulfills your specific requirement.

      Reply
  2. Dimitry says

    December 1, 2021 at 8:12 pm

    Is it possible to replace the TIP122 transistor with a MOSFET one, like IRFZ44NSTRLPBF? If yes, would this are there any other changes required? Thanks

    Reply
    • Swagatam says

      December 2, 2021 at 8:17 am

      Yes that’s possible, no changes will be required.

      Reply
      • jalal says

        August 22, 2024 at 6:02 pm

        Peace be upon you.
        How can I design a circuit that controls the speed of a fan according to the temperature change with a current of 70A and a voltage of 12.V DC?

        Reply
        • Swagatam says

          August 23, 2024 at 11:00 am

          I think you should try the first circuit shown in the above article, using a small motor.
          If it works as per your requirement then we can upgrade the transistor with a MOSFET to handle 70 amps.

          Reply
  3. Dimitry says

    December 1, 2021 at 6:06 am

    This is an amazing tutorial. Thank you so much. I’ve been looking for this for days now.

    I wanted to ask whether this will work for a PWM DC Fan 12v 1A and allow me to control the speed starting at 50 °C and maxing out at 90 °C with a fairly smooth curve?

    Cheers

    Reply
    • Swagatam says

      December 1, 2021 at 10:17 am

      Thanks for liking the post, appreciate your interest.
      I could not correctly understand what exactly you want the above circuits to do. These circuits cannot produce a PWM output they can only cut off a circuit at a particular temperature or switch ON a fan at a specific temperature….

      a little more elaboration might help!

      Reply
      • Dimitry says

        December 1, 2021 at 1:18 pm

        I’m looking to control the speed of the DC fan dependent on temperature. The fan is PWM.

        Basically I want it to start at a set temperature and then utilise varying voltage (or current) to increase the fan’s speed as the temperature rises.

        I was hoping that this circuit would achieve this. Did I completely misread it?

        Reply
        • Swagatam says

          December 1, 2021 at 1:31 pm

          Yes, you are right. This can be achieved using the first circuit which enables the motor speed to vary in response to changing temperatures….higher temperature causes the motor speed to increase and vice versa.

          Reply
          • Dimitry says

            December 1, 2021 at 5:11 pm

            Strike that comment. I understand what you mean. By “first circuit” you meant the one based on IC 555. Is it possible to incorporate the leds technology from LM358 circuit to do the same in IC 555 one?

            Reply
            • Swagatam says

              December 1, 2021 at 7:37 pm

              Yes that’s correct, I was referring to the first circuit from the top. Unfortunately LEDs cannot be used here for showing the cut-off levels., because the output is PWM and connecting LED will cause their illumination to gradually change depending on the pulse widths, but sharp ON/OFFs cannot be obtained.

              Reply
  4. urvish patel says

    November 18, 2019 at 12:00 pm

    i will try this project but transister( collecter) and +12 dc power suppy across outpot is 0.799 so fan is not working and transister (emitter) input is apply the negative voltage

    Reply
    • Swagatam says

      November 18, 2019 at 12:25 pm

      which thermistor did you use? Connect LED in series with the transistor base, check whether it is illuminating or not under normal temperature.

      In normal temperature pin#5 should be at 3V…please confirm these details.

      Reply
      • urvish patel says

        November 18, 2019 at 2:23 pm

        bc547 transister is used and and i did not received the 3v in pin number 5

        Reply
        • urvish patel says

          November 19, 2019 at 9:04 am

          which transister?

          Reply
          • Swagatam says

            November 19, 2019 at 9:15 am

            I asked about the thermistor, which thermistor did you use?

            Reply
            • Fredstev says

              December 6, 2021 at 5:24 pm

              Good day sir. Please where and how is the thermistor connected to the second circuit diagram?

              Reply
              • Swagatam says

                December 6, 2021 at 6:03 pm

                Hi Fredstev, there is no thermistor in the second concept, instead it uses an LM35 IC as the sensor.

                Reply
        • Swagatam says

          November 19, 2019 at 9:16 am

          which thermistor did you use?

          Reply
          • urvish patel says

            November 19, 2019 at 9:39 am

            10D-9 thermistor

            Reply
            • Swagatam says

              November 19, 2019 at 9:58 am

              remove the thermistor and check the motor response, the transistor should be TIP122….BC547 will not work

              Reply
            • urvish patel says

              November 19, 2019 at 11:57 am

              remove the thermistor the fan across output is 2.47v

              Reply
              • Swagatam says

                November 19, 2019 at 12:03 pm

                did you use TIP122 for the transistor?

                Reply
  5. Solomon says

    January 17, 2018 at 10:44 am

    I didnt understand your first answer, sir.

    Reply
    • Swagatam says

      January 17, 2018 at 12:40 pm

      I do not know about the specs of 4D thermistor

      Reply
  6. Solomon says

    January 16, 2018 at 5:12 pm

    Hello sir, i try to gather all the components for this circuit, but was unable to get thermistor 10k, i only find one written 47D, Can it serve same function?
    2. Second question, can i use 5k or 10k preset in place of 2.2k?

    Reply
    • Swagatam says

      January 17, 2018 at 8:47 am

      sorry I am not sure about the value of the 47D you may ask your nearby component dealer for the details…

      yes 5K perset will do instead of a 2.2K preset.

      Reply
  7. Solomon says

    January 5, 2018 at 6:29 pm

    Meaning that i have to reverse the pin connection right? According to my understanding the motor’s negative will connec to collector and to ground while the emitter to the positive of power supply? Pls correct me if misunderstand u sir.
    Also, should i maintain the base resistor as the 10k or i will change (increase or reduce) value. Pls help. Thanks.

    Reply
    • Swagatam says

      January 5, 2018 at 7:35 pm

      yes that’s quite right, but motor’s negative must go to ground, and positive to collector of transistor.

      With a TIP127 as the transistor, base 10k would be fine….

      Reply
      • Swagatam says

        January 5, 2018 at 7:36 pm

        motor wires across collector and ground, positive supply to emitter

        Reply
        • Solomon says

          January 6, 2018 at 1:40 am

          Thanks for your correction sir, am grateful and appreciate

          Reply
          • Swagatam says

            January 6, 2018 at 9:42 am

            you are welcome!!

            Reply
  8. Solomon says

    December 27, 2017 at 10:46 am

    Hello sir, can use TIP127 to drive the motor?

    Reply
    • Swagatam says

      December 27, 2017 at 5:02 pm

      you can but for TIP127 you will have to connect the motor from collector to ground because it is a PNP

      Reply
  9. kiran says

    December 18, 2017 at 4:37 pm

    hi bro, i,ve made a circuit for pwm using ic 555 for controlling a dc motor( 4.5v). am able to vary the speed but problem is motor is not starting by itself. Initially motor is making a sound & when i rotate it by hand it starts. am using 1k resr & 10n cap for RC and 100k variable pot. ive even added two diodes in antiparallel. am using tip 31 to drive the motor.
    so can u suggest any ideas for making it self starting?
    and also can i replace transistor with a mosfet(irf 540) for driving.

    Reply
    • Swagatam says

      December 18, 2017 at 5:49 pm

      Hi bro, it could be because the lowest PWM is too narrow to provide the required amount of current to the motor, you can try using a IRf540 mosfet or a TIP122 Darlington BJT and see if that improves situation. If not then you may have to add an extra resistor having 1/10th value of the pot value and add it in series with the pot terminal at the zero PWM side. This will restrict the PWM from becoming too much narrow and keep it at a level which may be just sufficient to initiate the motor movement at the lowest PWM

      Reply
  10. Oladipo Segun says

    May 22, 2016 at 8:08 am

    hi swagatam, can i swap the thermistor with an lm35 chip as that is what is easily obtainiable in my country

    Reply
    • Swagatam says

      May 22, 2016 at 2:11 pm

      Ho Oladipo, yes you can try it by removing the thermistor and connecting the LM35 +/- pins with the supply and its out with pin#5, and see how it responds

      Reply
  11. Sreekanth Reddy says

    July 4, 2015 at 2:00 am

    Can we increase the speed of the fan only after the temperature of heatsink reaches 50°C..

    Reply
    • Swagatam says

      July 4, 2015 at 8:38 am

      you can probably do it by making the 2.7k resistor variable, and adjust it appropriately for achieving the results

      Reply
  12. Swagatam says

    April 23, 2015 at 12:58 pm

    you can use a 2N2222 or a 8050 or any similar rated transistor

    Reply
  13. George74 says

    March 27, 2015 at 11:52 am

    Ok, thank you very much.

    Reply
  14. George74 says

    March 24, 2015 at 8:48 am

    Hello. Please, tell us which zener is the correct, the 5.1V from the diagramm or the 9.1V from the text. Thank you, George.

    Reply
    • Swagatam says

      March 24, 2015 at 1:26 pm

      use 5.1V zener, it's more appropriate.

      Reply

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Subscribe to New Circuit Ideas

Categories

  • Arduino Projects (87)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (83)
  • Datasheets and Components (104)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (87)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (27)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (101)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (37)
  • Water Controller (36)

Calculators

  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Filter Capacitor Calculator
  • Buck Converter Calculator
  • Boost Converter Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Wire Current Calculator
  • SMPS Transformer Calculator
  • IC SG3525, SG3524 Calculator
  • Inverter LC Filter Calculator

People Also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Recent Comments

  • Swagatam on Understanding SG3525 IC Pinouts
  • Dan on Understanding SG3525 IC Pinouts
  • Swagatam on High Current Wireless Battery Charger Circuit
  • Swagatam on Timer Based Cell Phone Charger Circuit
  • Nitesh Agrawal on Timer Based Cell Phone Charger Circuit

Company

  • Privacy Policy
  • Cookie Policy
  • About Me
  • Contact
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin
  • © 2025 · Swagatam Innovations