In this project, we have designed a Digital Thermometer Using Arduino & LM35 Temperature sensors. The temperature will be directly displayed on LCD. The LM35 temperature sensor can read the temperature in Centigrade and it is used to measure temperature from -55 °C to +150 °C range. The output voltage directly displays temperature in centigrade. So Digital Thermometer Using Arduino & LM35 Temperature Sensor detail is given below in full detail.

Components Required Digital Thermometer

Following Components are required to design this temperature thermometer.

Arduino

Arduino is an open-source hardware platform for project development purposes. We have used Arduino as a microcontroller to control the process of this thermometer project. There are many types of Arduino boards like Arduino UNO, Arduino pro mini, Arduino mega Lily pad, etc available in the market or you can also build one by yourself.

Thermometer Digital Thermometer Using Arduino & LM35

The circuit diagram of the whole project is given below with full pin detail.

The Connection Between Arduino and LCD is as follows

Connect all pins in the given below detail

  • The pins 1,3,5,16 of LCD to the GND
  • The pin 2,15 of LCD to the VCC (5V).
  • Pin 4 of LCD to pin D8 of Arduino.
  • Pin 6 of LCD to pin D9 of Arduino.
  • Pin 11 of LCD to pin D10 of Arduino.
  • The pin 12 of LCD to pin D11 of Arduino.
  • Pin 13 of LCD to pin D12 of Arduino.
  • Pin 14 of LCD to pin D13 of Arduino.

Connection Between Arduino and LM35 sensor

  • Pin 1st of LM35 to 5V of Arduino UNO
  • 2nd pin to Analog input pin A0 of Arduino UNO
  • 3rd pin to GND

Source Code/Program

Source codes or programming for Digital Thermometer Using Arduino & LM35 Temperature Sensor is as. Copy this code and write on Arduino IDE according to the method you know already.

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

#define sensor A0

byte 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(”    Digital    “);
  lcd.setCursor(0,1);
  lcd.print(”  Thermometer   “);
  delay(4000);
  lcd.cear();
  lcd.print(” Circuit Digest  “);
  delay(4000);
  lcd.clear();
}

void loop()
{
  /*———Temperature Adjustment——-*/
     float reading=analogRead(sensor);
     float temperature=reading*(5.0/1023.0)*100;
     delay(10);
  
  /*——Display Result——*/
    lcd.clear();
    lcd.setCursor(2,0);
    lcd.print(“Temperature”);
    lcd.setCursor(4,1);
    lcd.print(temperature);
    lcd.write(1);
    lcd.print(“C”);
    delay(1000);
}

Advertisements
Advertisements
Advertisements