Digital Thermometer Using Arduino And LM35 Sensor

Arduino-Thermometer-Circuit-using-lm35

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

Components Required:

Following Components are required to design this temperature thermometer.

Arduino

Arduino is an open source hardware platform for project development purpose. We have used Arduino as 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  are available in the market or you can also build one by yourself.

Arduino UNO

Thermometer Using Arduino & LM35

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

Digital Thermometer Using Arduino & LM35 Temperature sensor

Connection Between Arduino and LCD are as follows

Connect all pin in the given below detail

  • The pin 1,3,5,16 of LCD to the GND
  • The pin 2,15 of LCD to the VCC (5V).
  • The pin 4 of LCD to pin D8 of Arduino.
  • The pin 6 of LCD to pin D9 of Arduino.
  • The pin 11 of LCD to pin D10 of Arduino.
  • The pin 12 of LCD to pin D11 of Arduino.
  • The pin 13 of LCD to pin D12 of Arduino.
  • The 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 these code and write on Arduino IDE according to the method as 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.clear();
  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);
}

 

Be the first to comment

Leave a Reply

Your email address will not be published.


*