Wednesday, November 30, 2016

Arduino Temperature Sensor

Room temperature monitor plays an important role in day to day life. This project incorporates the design and development of a temperature monitoring using ARDUINO and LCD. The main target for this system is to have it designed and implemented such that it is cost-effective. This project consists of one module (temperature monitoring). The temperature sensor senses the temperature and the inbuilt ADC in the arduino produces corresponding analog signal which is further processed by the arduino and the temperature is displayed in the LCD. The temperature on the LCD will be displayed in °C and °F.

  • COMPONENTS
    • Arduino UNO board
    • Breadboard 
    • 16x2 LCD display
    • LM35 sensor
    • Jumpers - to connect everything

  • CIRCUIT DIAGRAM



  • CODE
#include <LiquidCrystal.h>
int tempPin = A0;
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
void setup()
  lcd.begin(16, 2);
}
void loop()
{  while(1)
{
  int tempReading = analogRead(tempPin); 
  float tempVolts = map(tempReading, 0, 512, 0, 255); 
  float tempC = (tempVolts); 
  float tempF = tempC * 9.0 / 5.0 + 32.0;  
  lcd.print("Temp         C  "); 
  lcd.setCursor(6, 0); 
  lcd.print(tempC);     
  
  lcd.setCursor(0, 1); 
  lcd.print("Temp         F  ");   
  lcd.setCursor(6, 1); 
  lcd.print(tempF); 
  delay(500);
  }
}

  •  APPLICATION
    • Indoors, temperature sensors are used in several climate control systems including refrigerators, freezers, air conditioners, heaters and water heaters
    • They are found within roadways in cold weather climates in order to help determine if icing conditions exist. 
  •  ADVANTAGES
    • Sensitivity: This allows it to sense very small changes in temperature.
    • Accuracy: It offers both high absolute accuracy and interchangeability.
    • Cost: It is very cost-effective.
    • Ruggedness: Because of their construction, it is very rugged.
  •  DISADVANTAGES
    • Non-linear
    • Self-heating
    • Moisture failures
If you have any query regarding this project than you can contact by writing in comment or can mail directly.





No comments:

Post a Comment