DS18B20 temperature sensor reading negative values
Posted: Nov 17th, 2015, 4:25 am
Hi,
I'm trying to use the DS18B20 as a temperature sensor for my project. As a small trial project, I connected the data wire to pin 2 of my Arduino Uno and it reads the temperature wonderfully, yet when I send a command to turn on LED's connected to the remaining pwm ports the temperature sensor starts reading -175... when I send a command to turn off the LED's, the sensor starts reading temperature again.
The odd behavior happens even if I turn only one LED ON. I also experienced that when the sensor is reading the temperature ok if I touch it the value that I get while reading temperature is always 85...
Did any of you had the same issues with this sensor? If so how did you solve the problem?
Kind regards,
Ricardo
I'm trying to use the DS18B20 as a temperature sensor for my project. As a small trial project, I connected the data wire to pin 2 of my Arduino Uno and it reads the temperature wonderfully, yet when I send a command to turn on LED's connected to the remaining pwm ports the temperature sensor starts reading -175... when I send a command to turn off the LED's, the sensor starts reading temperature again.
The odd behavior happens even if I turn only one LED ON. I also experienced that when the sensor is reading the temperature ok if I touch it the value that I get while reading temperature is always 85...
Did any of you had the same issues with this sensor? If so how did you solve the problem?
Kind regards,
Ricardo