LM35 temperature sensor not working correctly ?

Thread Starter

q12x

Joined Sep 25, 2015
2,227
Hello everyone,
I have this new LM35 temperature sensor 10pcs. This is my very first encounter with this specific component so I don't know what readings to expect from it. I manage to find this component in the Proteus list of components and in simulation, it showed a linear or equivalent increase in output voltage with LM35 temperature. More specific, 10mV per 1°C.
1743757857321.png
In reality, I'm not getting this result at all. I'm getting 0V reading.
I start to think my components are bad?
But I also manage to make them work !!! at least to collect a more correct voltage from it's output, Im not sure how correct is the temperature reading converted in mV, but is very close to what direction of working the simulator showed me it should be like.
1743759241215.png
So if the opamp is unpowered from either + or - rail, the output reading of LM35 will get back to 0V.
I also don't have to collect the voltage from the output of the LM358.
I could amplify x10 and collect 250mV from LM358 output, to correctly display the value as shown in my simulator... I didnt do it yet. Is a thought.
x10 amplification 1743760412290.png
I also suspect a uA741 opamp will also do the same work, because I have a lot of them and unused. I didn't test it yet.
It's enough to only connect that LM35 output to one of the inputs of the (powered) LM358 and I can read the LM35 output in mV scale with my DMM, some value different than 0V as in the top naked case.
My question to you: - is this normal or correct ? I feel it is not.
I wish that you make a reading of your LM35 like in my first experiment and show me a picture of your output reading. To clearly show me how a good LM35 should work. Because Im not convinced at this point how it should work.
Thank you !
 
Last edited:

ericgibbs

Joined Jan 29, 2010
21,390
Hi q12,
With a 5V supply and the basic circuit, the LM35 Vout should be 10mV*20Cdeg = 200mV.

If you add an OPA you can amplify the voltage.
What temperature range do you want to measure and how do you want to display it?
E
 

Attachments

Thread Starter

q12x

Joined Sep 25, 2015
2,227
What temperature range do you want to measure and how do you want to display it?
hi, The range I need it is up to 100*C in steps of 10*C's, like 30, 40,50... for example.
Can you test your LM35 and read directly its output and tell me or make a picture if it is indeed 1mV or 10mV per 1*C ? or as you mentioned 10mV*20Cdeg = 200mV ?
 

ericgibbs

Joined Jan 29, 2010
21,390
hi q12,
This is a more complex circuit that covers -20C through +100C and gives a ~0V through +5V out suitable for a microcontroller ADC input.
E
EG57_ 2796.gif
 

Thread Starter

q12x

Joined Sep 25, 2015
2,227
This is a more complex circuit
hold your horses @ericgibbs
All I want to know is if this LM35 temperature sensor can be read in reality with a DMM !!!
Exactly (or close enough) to my simulation reading.
1743761414026.png
In my case, I only got a 0V reading when tested directly like that.
Or maybe there is a trick I dont know how to properly read or setup these LM35 sensors? From my simulation, it doesn't seem so.
 

Thread Starter

q12x

Joined Sep 25, 2015
2,227
Add a 10k load.
Smart idea !
Here are my results:
1743763564578.png
It would be very good to show me your --real-- readings !!!
It is clearly some voltage divider going on, when Load Res is connected to +5V rail.
Although, in simulator is showing a 250mV output and not 0V as in reality:
1743763697814.png
 
Last edited:

Thread Starter

q12x

Joined Sep 25, 2015
2,227
I don't understand why you find this confusing??
Add a 10k from the Vout to 0V.;
Nothing is confusing.
1743764427769.png 1743764546414.png
In my circuit I did just that ! Pay more attention to my circuit and you'll see its exactly YOUR circuit, It's only drawn differently a bit.
I also added supplementary test to + rail and floating.
 
Last edited:

Thread Starter

q12x

Joined Sep 25, 2015
2,227
I was wondering why it worked fine with LM35 output linked to one of the inputs of LM358... hmmm
Those are pnp transistors and the current goes from the input UP towards to + rail through those transistors. Is how I see it.
1743764325347.png
 

Thread Starter

q12x

Joined Sep 25, 2015
2,227
I am partially convinced that my LM35 are bad in some way. Either from factory as reboot, or from ESD or even used, although they look brand new.
I am also suspecting that the internal circuitry of my LM35 is incomplete or faulty somehow. Thats why I can read some derated results. In principle they are good, but in practice ... they are bad. Is my opinion.
All I wanted from you is a confirmation of how they should really be !
A reality check with some models that on your side are doing what my simulator is telling me they should do. (clear as mud?)
 

MisterBill2

Joined Jan 23, 2018
27,159
Did the TS actually use the circuits shown in the applications portion of the data sheet??
One caution I offer is that with such very low voltages and small currents, attention to the connections is very important.
 

SamR

Joined Mar 19, 2019
5,470
My experience with LM35s has been with using them in the Arduino environment. They always had to be equilibrated to bring their range into calibration by scaling equations. @ericgibbs circuit with 2 opamps and a potentiometer does that without using the signal scaling equations needed in the Arduino's microprocessor analog input. I too was surprised at this and still wonder how a "standard" sensor that has many uses but needs external scaling to bring it into calibration has such a large market share. The TMP36 is just as bad. But then they are in a 3 terminal TO-92 package and not on a larger chip format with an input pin for voltage calibration adjustment. They are cheap components so the old adage of "You get what you paid for" is applicable.
 
Last edited:
Top