Site icon Circuit Ideas for You

Digital Thermometer Circuit using Arduino and IC LM35

The goal of this project is to construct a digital thermometer with an IC LM35 temperature sensor and an Arduino microcontroller.

The Arduino translates the voltage that the IC LM35 outputs in relation to temperature into a readable value.

For a very long time, people have used thermometers to measure temperature.

For ease of visualization, the generated temperature information is shown on an LCD panel.

Using an Arduino, we can construct a thermometer that displays the current temperature on a little screen.

It is applicable to industries, workplaces and residences.

Three components make up the thermometer:

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);
}

Circuit Working:

Parts List:

ComponentQuantity
Arduino UNO board1
IC1 78091
IC2 LM351
16×2 LCD display1
Potentiometer 10k 1/4 watt1

In this article everything in the thermometer is controlled by the Arduino Uno.

The voltage produced by the IC2 LM35 temperature sensor increases by 10 millivolts for every degree that the temperature rises.

Temperatures up to 150 degrees Celsius can be measured using it.

It is the most simplest temperature sensor, and any microcontroller may be simply interfaced with it.

A voltage proportional to the temperature is the output by the IC2 LM35 sensor.

The IC2 LM35 pin generates the analog voltage that the Arduino reads.

The analog value is converted by the code to voltage, and then to Celsius temperature.

The estimated temperature is displayed on the 16×2 LCD panel.

Using a potentiometer to adjust the brightness of an LCD

Usually, an LCD pin is not directly linked to a potentiometer, but it regulates how bright the LCDs backlight is.

The Arduinos analog pin is connected to the potentiometer and its analog value is read by the Arduino.

The LCD backlights current flow is adjusted by this setting.

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:

Constructing a digital thermometer using an Arduino and an IC LM35 is an easy project that teaches you a lot.

You may build this project to develop advanced temperature monitoring systems by learning the fundamentals of analog to digital conversion and temperature measuring.

References:

LM35 Based Digital Room Temperature Meter: A Simple Demonstration

Exit mobile version