R&D Report
R&D Report
(22MEC37)
Project report on
ROOM TEMPERATURE CONTROLLER BY
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:
Step 5: Simulate
CIRCUIT DIAGRAM:
CODE:
#include <LiquidCrystal.h>
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() {
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*/
LCD.clear();
LCD.print("Now temp is OK!");
LCD.setCursor(0, 1);
LCD.print("Turn off FAN!");
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.