Two-Digit Thermometer using ATtiny84 and a DS12B20
David Johnson-Davies shared another nice tiny project. This time is a two digit thermometer based on ATtiny84 and DS12B20 1-Wire temperature sensor.
It uses a DS12B20 1-Wire temperature sensor, and an ATtiny84 to drive the display and read the sensor. It’s just over 25mm square; about the size of a British 50 pence piece.
The two-digit thermometer is designed so it could be put in a waterproof case outside the window, to show the outside temperature in all weathers. To conserve power the thermometer flashes the temperature every 24 seconds, and then goes to sleep, and it achieves a battery life of about a year with a CR2032 button cell.
The thermometer can display temperatures between -19°C and 99°C. To display temperatures between -10°C and -19°C the left-hand display is used to display “-1”. Outside this range it displays ‘Lo’ for temperatures below -19°C or ‘Hi’ for temperatures above 99°C. If you live in a part of the world where temperatures regularly reach below -19°C you could change it to light the decimal points to indicate negative temperatures.
Two-Digit Thermometer using ATtiny84 and a DS12B20 – [Link]