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.

It's called an internal temp sensor because it's measuring the temperature of the internal chip die not the temperature of the air outside the chip. If you want to see it increase, wire a few leds to output pins and turn them on and see the temp reading increase. It's usefulness and accuracy is very limited for practical applications. In fact in 3 years I've never seen it used in any useful published project other then to show that it is indeed there and functions to some degree. Some have proposed that is could be used to seed a random number generator but that doesn't sound like a good source for a decent seed to me.

shxplf

Hello everyone. I am the beginner of Arduino, and I found it is the powerful tools for project. I am using Arduino Micro to do one project on equipment research and development. One of my task is to monitor the chip internal temperature. I knew there are internal temperaures in Atmaga328, Atmaga32U4, and I alsol learned that some wise man have developed the codes for Atmaga328, but I didn't find the codes for Atmaga32U4, and evenif I find difficulties in reading through the codes for Atmaga328.

I wonder to know can I copy the codes of Atmaga328 for the use of Atmaga32U4 directly? or could you please give me a hand? thanks very much. my email is shxplf@gmail.com. Thanks a lot.

I am looking forward to improving with you...

Krodal

There is a page for this: http://playground.arduino.cc/Main/InternalTemperatureSensor

But I have not found some values for the offset and gain for the Leonardo. So the temperature for the Leonardo is totally wrong. I hope someone will do some measurements to have at least some start values for the offset and gain.