Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

I need help for my temperature sensor

Status
Not open for further replies.

deidei007

New Member
anyone can help me about temperature sensor activated fan for 5v-12v only?if the temperature reach the (i.e. 25deg. to 40deg.) the fan will activate but if the temp. is below 25deg. the fan will stay off. hopefully this post may help me about my miniature project.
 
Last edited:
Hi deidei007,

you didn't mention the fan current requirement.

The circuit I suggest uses an LM35 for temperature sensing. Output transistor is a BD139 which should suffice even for fans up to 1.5A. (use a heat sink at currents > 0.5A.)

RV1 is the simulated temperature sensor. Omit R1 and connect V+ of the temperature sensor to the supply voltage (+).

U1:A works as non-inverting amplifier amplifying the input signal by the factor 11. (Vout=Vin*1+(R2/R3)=Vin*1+(47/4.7). U1:B works as comparator with hysteresis (R8=100K).

The trip point can be adjusted using RV2 (1K).

The fan will be off if the trip point voltage at the inverting input (pin6) is higher than U1:A output voltage. It will be on at any input value at the non inverting input (pin5) higher than the trip point.

D1 and R7 are optional. D1 lits when the fan is running. D2 is a MUST. It eliminates back EMF caused by the relay.

You might also connect the motor between the collector of Q1 and +12V. The diode should stay there as shown in the images.

Boncuk
 

Attachments

  • TEMPSWITCH-OFF.gif
    TEMPSWITCH-OFF.gif
    11.9 KB · Views: 411
  • TEMPSWITCH-ON.gif
    TEMPSWITCH-ON.gif
    11.9 KB · Views: 805
Last edited:
U1:B works as comparator with hysteresis (R8=100K).
R8 should feed back to the non-inverting input to provide hysteresis.
 
thank you Boncuk,

any other ckt about temp. sensor you suggest? im confused about the ckt. it looks like difficult for me :|
 
Last edited:
There is no circuit for the LM35 as suggested for a temperature sensor.

The LM35 is an integrated temperature sensor to be connected just the same way as RV1 omitting R1.

Just download the data sheet and use the pin-out of the description to connect it the same way as RV1. V+ has to be connected to the positive rail of the power supply, Vout has to be connected the same way as the tap of the pot and V- has to be connected to circuit ground.

There is nothing mystic about the sensor.

Boncuk
 
The circuit you linked to will work. It is attached.

Anytime we want to measure temperature for any number of reasons we start with a device to sense the temperature. Boncuk's circuit uses a LM35 temperature sensor which is a very good choice. The circuit you linked to uses a 'thermistor" as a temperature sensor and it will also work. However, the circuit has one drawback as drawn that I can see. Note Boncuk's circuit includes what we call Hysteresis and the latter circuit does not.

Hysteresis is important in circuits like this that turn a fan on and off based on temperature. Give this link a read. Pay attention to the section about Hysteresis.

As temperature rises we want the fan to turn on at a given point for cooling. When cooling begins the temperature will drop and the fan will turn off. This can result in the fan constantly turning on and off over and over again. So based on your 25 C temperature if the temperature exceeds 25 the fan is on and below the fan is off. This would work better if the fan came on above 25 and turned off at maybe 22 or 23 C. For your circuit a 100KΩ resistor placed between Pin 7 output and Pin 2 + Input of the comparator would give you some Hysteresis.

Read the link and try to gain understanding of how a comparator circuit works. Then you should understand how your circuit actually works.

Ron
 

Attachments

  • Fan On Off Temperatre.gif
    Fan On Off Temperatre.gif
    15 KB · Views: 635
The circuit you linked to will work. It is attached.

Anytime we want to measure temperature for any number of reasons we start with a device to sense the temperature. Boncuk's circuit uses a LM35 temperature sensor which is a very good choice. The circuit you linked to uses a 'thermistor" as a temperature sensor and it will also work. However, the circuit has one drawback as drawn that I can see. Note Boncuk's circuit includes what we call Hysteresis and the latter circuit does not.

Hysteresis is important in circuits like this that turn a fan on and off based on temperature. Give this link a read. Pay attention to the section about Hysteresis.

As temperature rises we want the fan to turn on at a given point for cooling. When cooling begins the temperature will drop and the fan will turn off. This can result in the fan constantly turning on and off over and over again. So based on your 25 C temperature if the temperature exceeds 25 the fan is on and below the fan is off. This would work better if the fan came on above 25 and turned off at maybe 22 or 23 C. For your circuit a 100KΩ resistor placed between Pin 7 output and Pin 2 + Input of the comparator would give you some Hysteresis.

Read the link and try to gain understanding of how a comparator circuit works. Then you should understand how your circuit actually works.

Ron

Hi Ron,
so I will able to change the LM31 to LM35?but I guess its hard to find those IC's at the shop. by the way thank you for the info. ppl here are really nice.
 
The circuit that Boncuk posted used a LM35 as the temperature sensor. The LM35 is an integrated temperature sensor package. It outputs an analog voltage that is proportional to temperature.

The circuit that you posted uses a thermistor to sense the temperature. They are two completely different types of temperature sensors. Because they each sense temperature differently the circuits used with them are different designs.

Which type(s) of temperature sensors are available to you at your location?

Ron
 
check out the LM35 ic. its very easy to use. and needs about 3 to 6 volts of usage.

Where did you pick those numbers?

According to the data sheet the safe operating voltage is 4 to 20V. Absolute maximum supply voltage is 32V.

Boncuk
 
Hi Ron,
so I will able to change the LM31 to LM35?but I guess its hard to find those IC's at the shop. by the way thank you for the info. ppl here are really nice.

No, you can't replace the LM311 with an LM35! The LM311 is a comparator circuit while the LM35 is a temperature sensor circuit.

You could use an LM35 to replace the NTC as temperature sensor. Replacing the NTC with an LM35 in that circuit requires some changes as input voltages won't change the same with increasing temperature.

The voltage drop across an NTC will decrease with increasing temperature while the voltage output of the LM35 increases by 10mV per degree Centigrade.

Boncuk
 
The voltage drop across an NTC will decrease with increasing temperature while the voltage output of the LM35 increases by 10mV per degree Centigrade.

Hi Boncuk,
I think to solve this issue, he may interchange the temperarue sensor position with R1 (10k).
 
Status
Not open for further replies.

Latest threads

Back
Top