Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering

Arduino Based Accurate Temperature Monitor

By Ashutosh Bhatt

The given project illustrates interfacing of temperature sensor LM35 with Arduino and displaying current temperature on LCD. The LM35 sensor generates analog voltage corresponding to sensed temperature. Its output varies from 0 to 1 V as 10 mV / oC. So it can be easily interfaced with Arduino by connecting its output to Arduino’s analog input pin. So change in temperature i.e. a change in analog voltage input that is recorded as  the change in analog value in Arduino. The value is further converted into actual and accurate temperature and then it is displayed on LCD. The accuracy of temperature is upto 2 digits after decimal point. So we can measure very accurate temperature using this application.

Prototype of Arduino Based Accurate Temperature Monitor

Fig. 1: Prototype of Arduino Based Accurate Temperature Monitor

Circuit description 

1. The output of LM35 sensor is connected to analog input pin A0 of Arduino board. Its Vcc pin is connected to +5 V and Gnd pin to ground.

2. Data pins D4, D5, D6 and D7 of LCD are connected to digital pins D5, D4, D3, and D2 respectively. En pin of LCD is connected to pin 11 and Rs pin is connected to pin 12.

3. RW pin is connected to ground.

4. A 10K pot is connected to 3rd pin VEE of LCD to vary its brightness.

5. LED+ terminal and LED- terminal are connected to 5V and ground to turn on LED back light for LCD.

Circuit operation 

• The LM35 sensor give 0 to 1 V output as 10 mV/oC – means as temperature varies by 1 oC the output voltage from sensor increases by 10 mV and vice versa.

• Because the output of sensor is connected to analog input of arduino it will convert this into digital value from 0 to 1023.

• Because LM35 sensor output is limited to 0 – 1 V only, internal reference voltage of 1.1 V is selected for internal ADC operation.

• So as temperature increases, the analog output from sensor increases from 0 to 1 V and arduino generates corresponding digital value from 0 to 1023.

• So 0 to 1 V range is divided in 1024 steps – means each step has 1/1024 = 0.00097 = 0.97 mV resolution.

• Because LM35 sensor output changes by 10 mV on each 1 oC change in temperature, so when analog reading changes by 10 / 0.97 = 10.31, it indicates temperature changes by 1 oC.

• So Arduino reads analog voltage output from sensor, gets analog value between 0 to 1023 divide it by factor 10.31 and displays this value on LCD as current temperature.

• As the temperature increases or decreases the analog output voltage from sensor increases or decreases, Arduino reads this voltage, convert it into corresponding temperature value and displays it on LCD.

Software program:

For complete above circuit operation, the program is downloaded into Arduino microcontroller ATMega328. The program is edited and compiled in Arduino IDE. And then it is uploaded to Arduino board.

Project Source Code

###

//Program to

#include <LiquidCrystal.h>

float temperature;

// initialize the library with the numbers of the interface pins

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()

{

// set internal reference voltage 1.1 V for ADC 

analogReference(INTERNAL);  

// set up the LCD's number of columns and rows:

   lcd.begin(16, 2);

  // Print a message to the LCD.

   lcd.print("temperature:");

}
void loop() 

  {

int sensor_value;

sensor_value = analogRead(A0); // get the sensor reading

temperature = sensor_value/10.31;

lcd.setCursor(0,1); // set cursor to 2nd line 1st column

lcd.print(temperature); // print temperature

lcd.print("deg C”); 

delay(1000); // 1 sec delay

  }

###

 


Circuit Diagrams

Circuit-Diagram-Arduino-Based-Accurate-Temperature-Monitor

Project Video


Filed Under: Electronic Projects

 

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


Featured Tutorials

  • PS2 Keyboard To Store Text In SD Card Using Arduino Circuit Setup On Breadboard
    How To Use PS2 Keyboard To Store Text In SD Card Using Arduino- (Part 42/49)
  • Wireless Path Tracking System Using Mouse, XBee And Arduino Circuit Setup On Breadboard
    How To Make A Wireless Path Tracking System Using Mouse, XBee And Arduino- (Part 43/49)
  • How to Make a Wireless Keyboard Using Xbee with Arduino- (Part 44/49)
  • Making Phone Call From GSM Module Using Arduino Circuit Setup On Breadboard
    How to Make Phonecall From GSM Module Using Arduino- (Part 45/49)
  • How to Make a Call using Keyboard, GSM Module and Arduino
    How To Make A Call Using Keyboard, GSM Module And Arduino- (Part 46/49)
  • Receiving SMS Using GSM Module With Arduino Prototype
    How to Receive SMS Using GSM Module with Arduino- (Part 47/49)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • How to interface a DS18B20 temperature sensor with MicroPython’s Onewire driver
  • What is a low power design?
  • Renesas partners with Tata to accelerate progress in advanced electronics
  • STMicroelectronics’ new touchscreen controller for smartphones enables longer runtime
  • Samsung unveils ISOCELL image sensor with industry’s smallest 0.56μm pixel

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr bluetooth dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics renesaselectronicscorporation Research samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • MWO - EM Structure missing
  • Effect of variable gain amplifier and LNA on the input RF signal's phase
  • HF preamplifier with threshold?
  • Does Monostable pulse stay HIGH whilst input pulse is HIGH?
  • Inverted TTL

RSS Electro-Tech-Online.com Discussions

  • NOR gate oscillator in LTspice not working
  • HELP NEEDED
  • intro to PI
  • Lighting a .010 green fiber optic with led
  • led doorbell switch
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering