Site icon Circuit Ideas for You

Digital Thermometer Circuit using Arduino and IC LM35

This project make digital thermometer using IC LM35 sensor and Arduino.

Arduino reads voltage from LM35 and changes it to temperature number.

People use thermometer for long time to check temperature.

Temperature show on small LCD screen for easy see.

With Arduino we can build thermometer that show real-time temperature on screen.

It can be used in factory, office and home.

Thermometer has three parts:

Coding with Explanation:

#include <LiquidCrystal.h>

// Define LCD pins
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

// Define   
 LM35 pin
const int lm35Pin = A0;

void setup() {
  lcd.begin(16, 2); // Initialize LCD
  Serial.begin(9600); // For debugging
}

void loop() {
  float voltage, temperature;

  // Read analog value from LM35
  int sensorValue = analogRead(lm35Pin);

  // Convert analog value to voltage
  voltage = (sensorValue / 1023.0) * 5.0;

  // Convert voltage to temperature (LM35 outputs 10mV/°C)
  temperature = voltage * 100;

  // Display temperature on LCD
  lcd.setCursor(0, 0);
  lcd.print("Temperature: ");
  lcd.print(temperature);
  lcd.print(" C");

  Serial.print("Temperature: ");
  Serial.print(temperature);
  Serial.println(" C");

  delay(1000);
}

Code Explanation:

Circuit Working:

Parts List:

ComponentQuantity
Resistor
Potentiometer 10k 1
Semiconductors
Arduino UNO board1
IC1 78091
IC2 LM351
16×2 LCD display1

In this project Arduino Uno control everything in thermometer.

IC2 LM35 sensor gives 10 millivolts more for every 1°C rise.

It can measure temperature up to 150°C.

It is very simple sensor and easy to use with any microcontroller.

IC2 LM35 gives voltage same as temperature.

IC2 LM35 pin give analog voltage and Arduino reads it.

Code change analog value to voltage and then to Celsius temperature.

LCD 16×2 show the temperature.

Potentiometer used to control LCD brightness.

LCD pin does not connect direct to potentiometer but it controls backlight brightness.

Potentiometer connect to Arduino analog pin and Arduino reads the value.

This value change current in LCD backlight and so brightness changes.

How to Build:

To build a Digital Thermometer Circuit using Arduino and IC LM35 follow the below mentioned connections steps:

Pin Connections

Arduino PinLCD PinFunction
Digital Pin 2D4Data Bit 4
Digital Pin 3D5Data Bit 5
Digital Pin 4D6Data Bit 6
Digital Pin 5D7Data Bit 7
Digital Pin 6EEnable
Digital Pin 11RSRegister Select
5VVCCLCD Power Supply
GroundGNDLCD Ground

Conclusion:

Making Digital Thermometer Circuit using Arduino and IC LM35 is easy and useful project.

It help us to learn how to change analog to digital and how to measure temperature.

This basic project can help us make better temperature monitoring systems later.

References:

LM35 Based Digital Room Temperature Meter: A Simple Demonstration

Exit mobile version