ArduinoGeneral

Temperature Sensor Stability Performance

userHead andy.hegedus 2016-04-12 17:24:46 4839 Views6 Replies

Hi,

I have a Galileo Gen 2 and I have connected an LM35 based temperature sensor from DFRobot. 

I have connected it to A5 on an I/O Expansion shield also from DFRobot and I am using an external power supply to power the Galileo. I checked the power at pins with a dvm and get 4.95-4.96V and it is very steady.

I have a very simple sketch to read the values and send them to the serial monitor. I try this in 10 bit and 12 bit resolution. The values and the range seem quite large and the noise signal is not a normal distribution, more random. The values scale exactly as anticipated in going from 10 bit to 12 bit.

the temperature conversion is 0.010mV/C so these ranges are quite large (70-35=35). 35/1024*5V = 0.17V which translates to 17 degrees. The sensor was just sitting in air next to me.

Does any one have data to compare? When I look online most discussion refers to uncontrolled Vcc but I measured it and it seems stable.

Temperature Readings.png (209.21 KiB) Downloaded 1215 times 
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
analogReadResolution(12);
}


// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 5:
int sensorValue = analogRead(A5);
// print out the value you read:
Serial.println(sensorValue);
delay(200); // delay in between reads for stability
}

2016-05-01 07:45:46 Hi andy.hegedus,

Great to know it is not a defective one. Thanks for your follow-up.
userHeadPic Leff
2016-05-01 07:25:39 Additional update. I got a standard Arduino Uno R3 board and tried the sensor and the sensors works as expected. Also I got a different temperature sensor and it works correctly on the Uno R3 and not on the Galileo.

Plan going forward is to give up on the Intel Galileo board and stick with the R3.
userHeadPic andy.hegedus
2016-04-16 01:47:55 Hi Andy,

If it is within warranty, please submit a RMA to DFRobot through Product Returns pageattaching with this post link in the blank of "Faulty or other details", thank you!
userHeadPic Leff
2016-04-15 09:49:00 From my analysis I believe the sensor is defective.

For complete analysis and additional data you can review this https://communities.intel.com/thread/100999 from the Intel Galileo forum site.
https://communities.intel.com/thread/100999
userHeadPic andy.hegedus
2016-04-13 10:57:19 The data from the temperature sensors are always unstable. The voltage as measured by a DVM is stable. Also if I just use a potentiometer, the readings are stable, the values from the analogRead vary by 1-2 at most. It appears as the fault is within the sensor and I am trying to gauge if the behavior is normal or is the device defective. The variation seems very large from the sensor. userHeadPic andy.hegedus
2016-04-13 02:22:58 Hi Andy,

May I confirm how it became unsteady? I can't tell much according to "I have a very simple sketch to read the values and send them to the serial monitor. I try this in 10 bit and 12 bit resolution. " , as you told it was working alright, how it became abnormal? :roll:
userHeadPic Leff