0% found this document useful (0 votes)
19 views11 pages

R&D Report

Uploaded by

tarun1552003k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views11 pages

R&D Report

Uploaded by

tarun1552003k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Robotics and Drones Laboratory

(22MEC37)
Project report on
ROOM TEMPERATURE CONTROLLER BY

NAME OF THE CANDIDATE Roll number


A.ANUSHKA 1601-22-748-001
B.SREEJA 1601-22-748-003
G.NANDINI REDDY 1601-22-748-005
G.LAKSHMI JAHNAVI 1601-22-748-009
K.SRINIJA 1601-22-748-011
M.HARSHINI 1601-22-748-012
U.MALLIKARJUN 1601-22-748-061

Under the Mentorship of


SRIRAM KALLURI
ASSISTANT PROFESSOR

Branch: Department of computer science and machine learning


SUBMITTED TO

Department of Mechanical Engineering


CHAITANYA BHARATHI INSTITUTE OF TECHNOLOGY (A)
(Affiliated to Osmania University)
Gandipet, Hyderabad – 500075
2022 - 2023
CERTIFICATE

This is to certify that the project entitled “ROOM TEMPERATURE


CONTOLLER” by the following students has carried out under my mentorship.

NAME OF THE CANDIDATE Roll number


A.ANUSHKA 1601-22-748-001
B.SREEJA 1601-22-748-003
G.NANDINI REDDY 1601-22-748-005
G.LAKSHMI JAHNAVI 1601-22-748-009
K.SRINIJA 1601-22-748-011
M.HARSHINI 1601-22-748-012
U.MALLIKARJUN 1601-22-748-061

Faculty Name - SRIRAM KALLURI


Designation Assistant Professor
AIM:

To measure the room temperature and display it on the LCD display.

Apparatus and Tools used:

SOFTWARE: TINKERCAD
Component: range Quantity
Arduino Uno 3 1
Resistors: 221ohm 3
Temperature Sensor 1
LED 1
Diode 1
DC Motor 1
LCD Display: 16x2 1
Transistor NPN 1
Potentiometer 1

Procedure:

In Tinkercad, we can create a virtual simulation of a room


temperature controller using Arduino. Here's a step-by-step procedure
to create a simple room temperature controller simulation in
Tinkercad:
Step 1: Add Components
• Search for "Arduino" in the components menu on the right-hand
side and drag the Arduino board into the workspace.
• Search for "Temperature Sensor" or "LM35" and add it to the
workspace.
• Search for "Relay" and add it to the workspace. The relay will
represent the heating or cooling device.
Step 2: Connect Components
• Connect the GND pin of the Arduino to the GND pin of the
LM35 temperature sensor.
• Connect the 5V pin of the Arduino to the VCC pin of the LM35
temperature sensor.
• Connect the A0 pin of the Arduino to the OUT pin of the LM35
temperature sensor (analog input).
• Connect a digital pin of the Arduino to the input of the relay.
• Connect the remaining points to the LCD display as given in the
circuit diagram
Step 3: Code
• Click on the Arduino board in the workspace to open the code
editor.
• Write the code to read the temperature from the LM35 sensor
and control the relay based on the temperature readings.

Step 5: Simulate

• Click on the "Start Simulation" button to run the


simulation.
• Observe the temperature readings and the status of the
relay (represented by the LED on the relay component) as
the simulated temperature changes.
SCHEMATIC DIAGRAM:

CIRCUIT DIAGRAM:
CODE:

// Declare/assign Arduino IO-pins

const int temp_trans_pin = A0,


Heater_pin = 13,
FAN_pin = 6;

// Set the range of the desired temperature

float MinTemp = 20, MaxTemp = 25;/*Room temperature is [20,25] degree C


*/

// Include the LCD library code

#include <LiquidCrystal.h>

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

LiquidCrystal LCD(12, 11, 5, 4, 3, 2);

void setup() {

// System initialization

LCD.begin(16, 2);
pinMode(Heater_pin, OUTPUT);//LED in our case
pinMode(FAN_pin, OUTPUT);
// Display the desired range of temperature

LCD.print("Room temp(C):");
LCD.setCursor(2,1);
LCD.print(MinTemp); LCD.print("-");LCD.print(MaxTemp);

delay(2000);
}

void loop() {

float Eqv_volt, SensorTemp;

// Read voltage and convert to temperature (Celsius)

Eqv_volt = analogRead(temp_trans_pin) * 5.0 / 1023;


SensorTemp = 100.0 * Eqv_volt-50.0;

// Display the sensor reading

LCD.clear();
LCD.print("Sensor reading:");
LCD.setCursor(2,1);
LCD.print(SensorTemp); LCD.print(" C");

delay(2000);
/*Compare the sensor reading with the range of
acceptable temperatures*/

if(SensorTemp > MaxTemp){


LCD.clear();
LCD.print("temp is HIGHER!");//higher than the max

/*Turn on FAN (dc motor)! to regulate the temp.


Increase FAN speed at a slow rate*/

LCD.setCursor(0, 1);LCD.print("Turn on FAN!");


for( int i = 0; i <= 255; i++ ) {
analogWrite(FAN_pin, i);
}
delay(2000);

LCD.clear();
LCD.print("Now temp is OK!");
LCD.setCursor(0, 1);
LCD.print("Turn off FAN!");

// Turn off FAN slowly


for( int i = 255; i >= 0; i-- ) {
analogWrite(FAN_pin, i);
}
delay(2000);
}
else if(SensorTemp < MinTemp){
LCD.clear();
LCD.print("temp is LOWER!");//Less than the mini
LCD.setCursor(0, 1);
LCD.print("Turn on HEATER!");

//Turn the heater ON, LED in our case

digitalWrite(Heater_pin, HIGH);

delay(3000);

LCD.clear();
LCD.print("Now temp is OK!");
LCD.setCursor(0, 1);
LCD.print("Turn off HEATER!");

delay(1000);

digitalWrite(Heater_pin, LOW);
LCD.clear();
}
else if(SensorTemp > MinTemp && SensorTemp < MaxTemp)
LCD.clear();
LCD.print("Temp is NORMAL!");LCD.setCursor(2,1);
LCD.print("Turn off all!");
delay(1000);
LCD.clear();
}
else {
LCD.clear();
LCD.print("Something went");
LCD.setCursor(2,1); LCD.print("WRONG in the ckt");
delay(1000);
LCD.clear();
}
delay(1000);
}
OUTPUT:
Room temperature is displayed on the LCD monitor

CONCLUSION:
A room temperature controller is a highly beneficial device that offers
numerous advantages to users. By utilizing temperature sensors,
microcontrollers, and heating or cooling devices, it efficiently maintains a
comfortable and consistent room temperature within a desired range. It
contributes to a reduced environmental impact and promotes a healthier indoor
environment by minimizing temperature fluctuations.

You might also like