Go Down

Topic: Atmega328p internal temperature sensor (Read 1 time) previous topic - next topic

dhenry

Quote
it doesn't change.


You probably want to provision for the possibility that it does change but your code cannot read the changes.

pepijndevos

I'd be happy with that, but it doesn't change. It keeps at 97 if I attach the battery and walk from room temperature to a fair number of degrees colder outside temperature and stand there for a minute.

dhenry

That sensor was meant to provide changes in temperature, not temperature itself.

pepijndevos

I came across a few sources that claim the atmega has a not-so-accurate temperature sensor.

http://www.netquote.it/nqmain/2011/04/arduino-nano-v3-internal-temperature-sensor/
http://arduino.cc/forum/index.php/topic,38043.0.html

I tried both of these approaches, but both give me 110-112 no matter if I go stand outside or put my finger on the package. Room temperature is around 18C while outside is more like 6C.

The only consistent difference I get is changing between the 3.3v serial cable and 3.6v battery pack. The latter gives readings of 97-99.

Go Up