Automatic Room Temp
Automatic Room Temp
2
Certificate
3
ABSTRACT
Automatic temperature control system is an important application used in almost all modern gadgets and smart
homes. The system for controlling temperature automatically is achieved by using Arduino Uno- based
microcontroller system.Arduino Uno due to its increased popularity finds its varied range of
applications.Temperature sensor LM35 and Arduino Uno are the hardware used interfaced with computer, and
the temperature is controlled in the room.Temperature is displayed on LCD display employing A1 pin of
hardware with the help of Analog pin utilizing pulse width modulation (PWM).We have designed temperature
control as an automatic system that has been not attempted before the way it has been implemented. This
system can be used in any firm or organization where it is very important to maintain precise temperatures.
4
PROBLEM STATEMENT
• Write your program in such a way that whenever such value is received the display will print “Temp
sensor not working”.
5
INTRODUCTION
6
Purpose of the
Project
•Automate control of heating and cooling devices.
•Maintain precise and comfortable temperatures indoors.
•Reduce the need for manual temperature adjustments.
•Improve energy efficiency of climate control systems.
•Make temperature management accessible and easy.
7
• Microcontroller: Arduino UNO (ATMEGA328P).
It has a chip named as ATMEGA28P.
8
Working Principle
9
Circuit Design
10
Code Implementation
•Code operates the microcontroller for temperature readings and device control.
•Functions include reading sensor data and updating the LCD.
•Includes error handling for display messages.
•Logic for activating/deactivating fans or heaters based on readings.
•Utilizes PWM for controlling device speeds or states.
11
•System detects sensor malfunctions.
•Displays messages like "TEMP SENSOR NOT WORKING" for errors.
•Encourages prompt troubleshooting by users.
•Logs system statuses for diagnostic purposes.
•Ensures reliability in everyday use.
12
Explanation of the
Code
• Sensor Readings: The analog value from the LM35 temperature sensor is read on pin A0. This value is
then converted into Celsius using the formula
Temperature=(analog Value/1024)×500
• Error Detection: If the analog Value is 0, it indicates the sensor is either disconnected or not providing
valid data. The program detects this and displays the message "Temp sensor not working" on the LCD.
• Relay Control: Based on the temperature reading, the Relay is used to simulate turning on a fan or
heater (represented by the LED). If the temperature exceeds the threshold (e.g., 25°C), the relay is
triggered, and the LED (fan/heater) is turned on. LCD
• Output: The LCD will show: The current temperature. Whether the fan/heater is on or off. An error
message if the sensor is disconnected or malfunctioning.
14
• The system effectively maintained the desired temperature range through real-time monitoring and
automated
control of heating and cooling devices.
• The LCD display provided clear feedback on temperature status, allowing users to easily understand
system performance.
15
SCHEMA
16
APPLICATION
17
Benefits of the System
18
Conclusion
• Project effectively addresses temperature regulation issues.
• Offers a practical solution for both rural and urban settings.
• Future expansion possibilities for more extensive temperature control.
• Advances in technology could further improve the system.
• Reduces standby power consumption and operational costs.
19
References
• Books:
• "Arduino Projects for Dummies" by Brock Craft
• "Introduction to Control Systems" by John S. R. McDonald
• Online Resources:
• Arduino Official Website: www.arduino.cc
• Tinkercad Circuits: www.tinkercad.com/circuits
• Tinkercad Arduino Tutorials:
www.tinkercad.com/learn/arduino
C
20
Thank You Sir/Mam
21