webwinkelkeur logo

4.7 avg.

5151+ reviews
webwinkelkeur logoView all

5151+ reviews

5151+ reviews

Order by 16:00 for same day shipping

14 days return

EN

Individual

Business

Arduino Project: Thermometer

Beginner
15 Min
43,40

In this project you will learn how to easily make an Arduino thermometer yourself using an LM35.
The Arduino thermometer will display text and temperature on a display.

For this project we use a 16x2 lcd display, a LM35 temperature sensor and a Potentiometer. With the temperature sensor we can measure the temperature in Celsius. If you prefer to display the temperature in Fahrenheit or Kelvin, that is also possible. The potentiometer is used to change the brightness of the lcd display.

Building and Wiring

Now we are going to build the project

Place the components as shown in the drawing above. Once you have done this you can start wiring. It is important that you connect the correct components to the correct Arduino pins, otherwise the code will not work!

Please note: If you connect the LM35 the wrong way round it will not work. It will also become very hot and may break.

LM35 -> Arduino Uno

VCC -> 5V

VOUT -> pin A0

GND -> GND

LCD -> Arduino Uno

VSS -> GND

VDD -> 5V

VO -> potentiometer signal

RS -> pin 7

RW -> GND

E -> pin 6

D4 -> pin 5

D5 -> pin 4

D6 -> pin 3

D7 -> pin 2

A -> 5V

K -> GND

Programming

/*Elektronicavoorjou.nl Project Digitale Thermometer
Benodigdheden Arduino Uno
16X2 LCD Display
LM35 Temperatuur sensor
10K Potmeter
19 Jumper wires
*/
/*Begin code8*/

#include <LiquidCrystal.h>
LiquidCrystal lcd(7,6,5,4,3,2);
#define sensor A0

unsigned char degree[8] = { 0b00011, 0b00011, 0b00000, 0b00000, 0b00000, 0b00000, 0b00000, 0b00000 };

void setup() {

lcd.begin(16,2);
lcd.createChar(1, degree);
lcd.setCursor(0,0);
lcd.print(” Elektronica “);
lcd.setCursor(0,1);
lcd.print(” Voor Jou “);
delay(4000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print(“Digitale”);
lcd.setCursor(0,1);
lcd.print(“Thermometer”);
delay(4000);
lcd.clear();

}

void loop() {

/*Temperatuur*/
float reading=analogRead(sensor);
float temperature=reading*(5.0/1023.0)*100;
delay(10);
/*Display*/
lcd.clear();
lcd.setCursor(2,0);
lcd.print(“Temperatuur”);
lcd.setCursor(4,1);
lcd.print(temperature);
lcd.write(1);
lcd.print(“C”);
delay(1000);
}