Temperature Monitoring System with LCD Display
Embark on a journey of environmental awareness with our “Temperature Monitoring System with LCD Display.” This Arduino-based project utilizes an analog temperature sensor to measure ambient temperature and displays the results on a 16×2 Liquid Crystal Display (LCD).
The analog signal from the temperature sensor is converted into a voltage, providing real-time temperature readings in degrees Celsius. The LCD showcases the temperature values along with corresponding voltage information, creating an accessible and user-friendly interface. This project serves as a foundation for environmental monitoring, offering a cost-effective solution for temperature measurement in various applications.
The circuit integrates an analog temperature sensor connected to pin A5, and an LCD screen connected to digital pins 12, 11, 2, 3, 4, and 5. The analog output from the temperature sensor is converted into voltage, enabling precise temperature measurements.
Arduino processes the sensor data, displaying temperature information on the LCD. Connect the components, ensure proper power supply, and establish a common ground for seamless communication.
Component List:
Name | Quantity | Component |
---|---|---|
U1 | 1 | Temperature Sensor [TMP36] |
U2 | 1 | LCD 16 x 2 |
U3 | 1 | Arduino Uno R3 |
R1 | 1 | 330 Ω Resistor |
Rpot1 | 1 | 250 kΩ Potentiometer |
Arduino Code:
#include <LiquidCrystal.h>
const int temp_pin = A5;
LiquidCrystal lcd(12, 11, 2, 3, 4, 5);
void setup() {
Serial.begin(9600);
lcd.begin(16, 2);
}
void loop() {
float voltage;
float temp_c;
voltage = (analogRead(temp_pin) * 5.00 / 1023.0);
temp_c = 100.0 * voltage - 50.0;
Serial.print("Voltage : ");
Serial.println(voltage);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Volts:");
lcd.setCursor(8, 0);
lcd.print(voltage);
lcd.setCursor(0, 1);
lcd.print("Temp is");
lcd.setCursor(8, 1);
lcd.print(temp_c); // Corrected variable name here
lcd.print(" degrees C ");
delay(1000);
}
The Temperature Monitoring System not only provides accurate temperature readings but also serves as a fundamental project for learning analog sensor interfacing and LCD display integration.
Its simplicity makes it an excellent starting point for those exploring environmental monitoring or wanting to incorporate temperature sensing into their projects.