I have 52AB LM35DZ sensor but cant getting stable output value how can I do it?
#define LM35 A0
float temp=0;
void setup() {
Serial.begin(9600);
}
void loop() {
temp=analogRead(LM35);
temp=float(temp *0.488);
Serial.println(temp);
delay(500);
}
Project Schema
The first thing I would do is read the data sheet, it explains how to connect it. The data sheet is at: https://www.ti.com/lit/ds/symlink/lm35.pdf
Hint section 7.1 has your answer.
@gilshultz I look datasheet. not working
I set up the same as your project and below are the printouts.
Variations of 0.5 °C.
As written in the datasheet: "0.5°C Ensured Accuracy (at 25°C)"
A 0.1uF ("100nF") decoupling capacitor on V-in works wonders .
the lm35 I use is 52ABLM35DZ. Not only the lm35. @ruilviana When I use only the one that says lm35, the values are as in your screen. I want to know why 52ABLM35DZ is playing like this and what I should do to make it stable.
@runaway_pancake I connected V-in 100nF but the situation did not change.
I couldn't find the 52ABLM35DZ datasheet.
Please post 52ABLM35DZ datasheet link.
BTW my sensor is LM35DZ.
@ruilviana Exactly the same pins and voltages as the lm35 we know, but this is the cheaper version.
ruilviana:
52ABLM35DZ
There are articles on the Internet that claim that this batch number is mislabeled and it is actually a transistor.
This has been discussed before, but it didn't work for me.
Ron_Blain:
Something you may wish to try:
float temp;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
temp = analogRead(A1);
temp= temp*(5.0*1000.0/1024.0);
temp= temp/10;
Serial.print("Temperature : ");
Serial.print(temp);
Serial.write(176);
//Serial.print (char(176)); // May also be used.
Serial.print("C ");
Serial.println();
delay(1500);
}
Ron
Hell…
Well, I'm sorry you are stuck with mislabeled parts. It pays to stick with reliable suppliers.
Please post 52ABLM35DZ datasheet link.
Or vendor link.
Or get out the DMM, select the diode test function, and see if it is a transistor.
This is LM35xx datasheet, not 52AB LM35DZ datasheet.
I think @EmilyJane is correct!!!!!!
Take the test recommended by @runaway_pancake .
system
Closed
July 5, 2024, 1:30pm
19
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.