Two-Digit Thermometer using ATtiny84 and a DS12B20

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]

Mike is the founder and editor of, an electronics engineering community/news and project sharing platform. He studied Electronics and Physics and enjoys everything that has moving electrons and fun. His interests lying on solar cells, microcontrollers and switchmode power supplies. Feel free to reach him for feedback, random tips or just to say hello :-)

view all posts by admin

Leave a Reply