Picture of 7 Segment Digital Thermometer using ATtiny 85
This is a complete DIY project which requires a handful of components such as the ATtiny 85, LM35,MAX7219 and a couple of resistors and capacitors running off a regulated 5 V supply.
Temperature Measurement Range : 0 to 150'C
                                                                  32 to 300’F
Controller: ATtiny 85
Display type - 4 digit multiplexed 7 segment display(Common Cathode type)
Programming Language: Arduino
The setup can display both in Celsius and Fahrenheit. By default the temperature is shown in Celsius but can be toggled to display in Fahrenheit using the push button.

Step 1: Working

Picture of Working
The LM35 series are precision integrated-circuit temperature sensors, whose output voltage is linearly proportional to the Celsius temperature. The LM35 does not require any external calibration or trimming to provide typical accuracies of ±1⁄4°C at room temperature and ±3⁄4°C over a full −55 to +150°C temperature range. The LM35’s low output impedance,linear output, and precise inherent calibration make interfacing to MCU easy.As it draws only 60 μA from its supply, it has very low self-heating, less than 0.1°C in still air.

The MAX7219 is a compact, serial input/output common-cathode display drivers that interface microprocessors (µPs) to 7-segment numeric LED displays of up to 8 digits. It  implements a SPI compatible slave interface that can be controlled from the Arduino using only 3 of the digital output pins.
All the necessary calculations and control signals are generated by the ATtiny85. The Data, CLK & Load pin of MAX7219 is connected to pin 2,1,0 of the ATtiny85 respectively. Analog output from LM35 is feed to the ADC channel 3 of the ATtiny85.
Ploopy1 month ago


Awesome project. Thanks.

maxchu7651 year ago
I was wondering if this thermometer can measure temperatures below freezing? In your instructable, you said that the Lm35's full range was from -55 degrees to 150 degrees, so is it just the coding that prevents this thermometer from measuring freezing temperatures?
thegrendel2 years ago
Interesting project, but it would be nice if you added a step
showing how to actually program the ATtiny 85 -- using an
AVR programmer or by some alternate method.
Bill_Smith2 years ago
Great project, I was able to follow your guide and set up my LED's and temp. sensor. Can you help me to understand how one part of the CODE works ? This is the part I don't understand, I am very new to programming I have been trying to teach myself:

void printNumber(float num)
int ones;
int tens;
int hundreds;
int v=(int)num;
float diff=num-v;
int fones,ftens;
//Now print the number digit by digit

I think this is how the numbers are printed to the LED, but how is the data passed to the function from the sensor ?


marcusone2 years ago
Can I use individual LEDs rather than a multiplexed one?
Shujon2 years ago
Please tell me what is this arduino thing and how can I even use the codes above...(not to mention my eletronic knowledge is limited in recognising the signs)
jamesrww3 years ago
Great project, I have built something similar but mine reads Temperature and Humidity and displays it on a webpage. My project can be found at www.arduinoprojectshq.com and has a full parts list.

nice project, what are you using this thermometer for?