The circuit in operation. The black 'thing' on the left of the thermometer is the NTC
In many cases, we need a fan to cool a device or an area only when it is hot. In this case, a temperature controller is needed. There are some cheap temperature controllers in the market. But the circuit that i present here is more than this. It is also a PWM fan speed controller, suitable for almost any kind of DC fan. The fan is turned on at low speed when the temperature has reach the first level, and then it runs at full speed when it goes above the higher level. Both levels are controlled by independent potentiometer for easier adjustment. The low speed of the fan is also controlled by an independent potentiometer.
Following i present you the circuit.
Although i tried to keep it as simple as possible, the requirements i had on the first place increased the difficulty a little bit. I did not want just a simple temperature controller. The circuit has two temperature set-points. The first set-point will turn on the fan but not in full speed. The fan will be controlled through a PWM generator performed by the 555. This set point is chosen from the R2 potentiometer. The fan speed can be set by changing the duty cycle of the PWM generator using the R5 potentiometer. As the temperature rises, there is another set-point that will set the fan in full speed. This set point is selected using the potentiometer R6.
From left to right, first we see the NTC. I chose a 4K NTC performing a voltage divider along with the R1. From their common point, two signals are leaving. The first one will drive the T2 through the R2 potentiometer. The transistor T2 will turn on or off the next transistor T1. When T1 is turned on, the 555 will get enough power to operate. The 555 is connected as a PWM generator. The frequency of the 555 is above acoustic frequencies to avoid any kicking sound from the fan. The output of 555 is driven to the T3-T4 pair that perform an OR logic gate. The PWM pulses are driven as-is directly to the gate of the mosfet.
On the other hand, there is another signal leaving from the R1-NTC pair. This signal is driven to the 741 inverting input. The 741 performs a comparator. The non-inverting input comes from the potentiometer R6, that gives a DC level for comparison. The output of the 741 is driven directly to the other port of the T3-T4 transistor pair. When the output of the 741 is driven high, then the gate of the mosfet is also driven high, and the PWM pulses have no effect on it. Therefore, the fan will run at full speed.
Adjusting the circuit
Before start adjusting the circuit, we need to make sure two things:
1. The 'full speed' temperature set point is above the 'low speed' temperature set point
2. The PWM pulses have a duty cycle able to rotate the fan
You can adjust the circuit under real conditions or using another heat source like a thermo-gun for heat shrinks.
I have the regulator of the thermo-gun set to 1, the lowest scale possible.
First, we need to make sure that the 'full speed' temperature set point is above the 'low speed' temperature set point. To do so, we will set the 'full speed' at a very high temperature, the highest possible. Put all potentiometers near the center. Then power on the circuit. Turn the R6 potentiometer completely to one side. If the fan start to rotate, then turn it on the other side. The side that the fan does not rotate is the one that we want.
Then, we need to make sure that the PWM duty cycle is able to rotate the fan. To do so, turn the R2 completely to one side. Then, start rotating the R5 from side to side until the fan start rotating. If the fan does not rotate in either sides, then go back to R2 and turn it completely to the other side. The R5 potentiometer can be used to set the low speed of the fan. Set the speed that you desire and proceed to next step.
Now you need to set the temperature level for the 'low speed' operation. I use my electronic-controlled thermo gun for my heat shrinks and a thermometer. I turn on the gun and i put the thermistor and the thermometer side to side across the gun. The gun is set to it's lowest temperature possible and i keep it about 20cm away from the thermometer. At this point, i get about 40 °C. When the temperature is steady for about one minute, start turning the R2 until the fan is turned off. Then turn it the other way. you must find the exact point where the fan is turned on. When you do so, you are done with the 'low speed' set-point.
The next and last step is to set the 'full speed' temperature. In continue to the above procedure, put the thermo-gun closer to the NTC-thermometer pair. The temperature will rise. Using my gub, at about 15 cm i get around 46 °C. When the temperature is stable for about a minute or so, start turning the R6 potentiometer. Do it slowly and find the exact point where you hear the fan rotating at full speed. If you have done this correctly, the circuit is ready to operate. The fan will turn on at about 40 °C and revolve at 'low speed'. If the temperature goes above 46 °C, the fan will revolve at full speed. That's it!
Selecting a different NTC
I have not try it but i suppose the circuit will work with another NTC as well. The R1 should have resistance near the resistance of the NTC. Be careful not to select a low resistance NTC because the current that will go through will be large enough to destroy the NTC and the resistor.
Question, can the closed loop high frequency circuitry be integrated into this circuit? I like the advantages of the closed loop circuit however need the dual speed/temperature control for my application. Thank you for your time. -marty
Never mind, I got it figured out the E,B,C on my tarnsistors was maped wrong. In any event if someone need the PCB transfer and BOM let me know this one is with the LEDs what can u say I am a sucker for these little busters
Like Tim from At 19 January 2010 am too having a problem with the fan being on all the time with no effect from the trim pots.
I have verify that all my connection are true and par the recommendations for an alternative value for NTC mine is 19K so I divided it with 20K and my transistors are 2N2222A and 2N4401 (all what was available)...so this kept me puzzled I have tried different value for R4,5,6 and 9 with no success so please help as I am stump
as i explain, the LEDs are only for demo. they are not supposed to be connected to the breadboard, as they will not operate normally. If you want to add them no matter what, you can connect them one from pin 6 of the 741, and one from pin 8 or 4 of the 444, but you must add also a protective resistor, like 470 ohm or above. This is something that you have to test yourself
I've just completed my circuit by following the schematic diagram, and it works. My only problem is, how can I increase the sensitivity of my thermistor? I used a different value of thermistor. The fan is not running for a typical heat coming from the CPU of a computer. But, the fan starts to run when I put a very hot soldering iron near it.. how can I make the fan runs even for a lower temperature??
Ronnie if you want to make this circuit, you must follow the schematic of course. But no matter what, the circuit on the breadboard is the same always with the schematic. The only thing that i have add in some cases is a smoothing capacitor across the power supply.
Should I follow only the schematic diagram and not the one connected in the breadboard? because in some of your videos like the PIC closed loop fan controller, there are no any trimmer in the schematic diagram, but in the breadboard, I saw a trimmer... which one would I follow? the one in the breadboard or the one in the schematic diagram?
I hope you could help me, because I'm doing this one for my project in school...thanks..
Keeping the temperature steady is not always possible. I tried it myself and failed. There are cases that this can be achieved, but it has to do mainly with the ambient temperature.
In any case, this very circuit will not change linear your fan speed. Also, i have never use such a sensor so i do not know if it will work.
I need to build a circut that can controll fan speed by using temperature feedback circuit, and i should be able to set the temperature as example to 30 degree, then the fan should increase or decrease linearly with the temperature to hold the room temperature stable on my setting. I am using two wire fan and temp sensor pt1000 from ELFA as shown in the link below:
I know what you mean. The fan starts when the temp is high, and when it starts the temp cools down fast, and then it stops etc etc etc. Although i have not test it, in a glance, i would advice you put an RC between T2 and T1. So, here how it should go. Reduce R4 to 1K. Then, remove the connection between T2 and T1. Instead, put a rheostat there. Then, between the T2 and the rheostat, put an electrolytic capacitor to the ground. I would try first with 47uF capacitor and 50K rheostat. Here is how to connect:
In theory, this would work. Try different capacitors and maybe rheostat values. Please share with us the results.
I have built on of this. But got a slight problem. the system turn itself on and off every few seconds, how to have the circuit turn on at threshold point and run atleast for a pre-determind time, say a minute.
Also for the circuit I'hv used 50k NTC with 100k pot for r1(set at 50k). Also using irf540 i/o 520.
Very good project, build one already running ok. But the problem is it turns on and off every few seconds, Can you advice how to have the circuit start and run for atleast a minute so that it does not turn itself on and off every few seconds.
for building I could not find 4k NTC, instead using 50k NTC with a 100k pot set at 50k for r1. Also using IRF540 instead of 520 and running very smoothly.
If you are still interested in this circuit I'd like to email personally about it rather than post the entire exchange online. I'm having difficulty with T3 allowing current to flow all the time. Does npn allow current. and stop the flow with a positive bias maybe? My fan operates all the time, regardless of pot settings. A volt meter indicates a voltage reduction at the output of about 2 volts when adjusting the duty cycle. I couldn't find BC337 so I have tried 2N2222 and 2N4401 for T3 with the same results.
I have completed an nice little single sided pcb layout I can contribute if we can solve this issue.
Well, Tim, if you want my advice, forget about the autoroute. I tried to get some elegant PCBs using autoroute, but the result is really poor. Take my advice and draw manually the lines one by one. I know this is rather frustrating, but it really works. And after 3-4 tries, you will get the 'eye' and the 'hand' and you will draw the lines really fast. Use the airwires (the yellow straight lines) as guides, but draw the wires yourself. You will see that the airwires are very helpful. try it.
As for the reverse, you can directly print the circuit reversed from eagle.
If you have a few more moments, I could use a bit more advice. I downloaded/installed Eagle, and figured out how to input the circuit as shown above. I am struggling with component layout on the PCB. I successfully figured out how to set the autoroute to single layer but end up wit lots of airwires. I can't figure out how to optimize the component layout to acheive a successful trace route. Any advice for this newbie? I will also go try to locate a forum for the eagle software.
Sorry I don't know the correct terminology. By reverse layout, I mean when you print pcb pattern, that it does it upside down for transfer to the bottom of the pcb board for etching with that ferro whatever chemcal from Radio Shack. I'll go look for the eagle lite software and see if I can figure it out.
What do you mean 'reverse layout'? For negative photo resistive PCBs? I'm sorry i really do not know. I use the eagle PCB lite version and do photoresistive method with positive photo transfer. btw, check this out:
Nice project. I think it will work fine as the basis for an application to cool my beehives in mid August. I am using a solar cell as power supply. I used to do wire wrapping techniques but would rather do pcb\'s for this project. I think I will build 4-5 of these. I have no experience creating a pcb, but have read how to do so with a laser printer/photopaper technique. Did you ever create a reverse pcb layout for this project? If not, might you point me to some software to create the reverse layout?