-
Notifications
You must be signed in to change notification settings - Fork 11
Measuring the Temperature
The ATTiny provides a temperature sensor on chip. The results are neither precise nor accurate, because the sensor is part of the processor die and thus is influenced by the heat that the computations produce.
But the interesting thing is that the ATTiny is in the direct vicinity of the battery. Thus, if the battery gets very hot the measured temperature will increase considerably. Since a battery getting hot signals that there might be real problems, this is a very valuable information.
To correct the temperature readings two values are available in the configuration, a coefficient that is multiplied with the measurement (temperature measurement) and a constant that is added afterwards (temperature constant).
Currently the temperature can be read by the user, neither ATTiny Daemon nor the daemon running on the RPi touch the value.