krishiv_jasujasumitbranfigo
Published © LGPL

Energy efficient and Heat protection system for buildings

An Arduino based inlet temperature control and alerting system.

IntermediateFull instructions provided914
Energy efficient and Heat protection system for buildings

Things used in this project

Hardware components

Temperature Sensor
Temperature Sensor
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
RGB Diffused Common Cathode
RGB Diffused Common Cathode
×1
Development Kit Accessory, DC Motor
Development Kit Accessory, DC Motor
×1
Arduino UNO
Arduino UNO
×1
Alphanumeric LCD, 16 x 2
Alphanumeric LCD, 16 x 2
×2
Resistor 220 ohm
Resistor 220 ohm
×2
Buzzer, Piezo
Buzzer, Piezo
×1

Software apps and online services

Arduino IDE
Arduino IDE
Tinkercad
Autodesk Tinkercad

Story

Read more

Schematics

Energy efficient and Heat protection system for buildings

This is the image of the working Energy efficient and Heat protection system for buildings project.

Energy efficient and Heat protection system for buildings

This is the video of working Energy efficient and Heat protection system for buildings project

Code

code

C/C++
Copy and paste the code in arduino softare and upload it
#include <LiquidCrystal.h>
LiquidCrystal lcd (13,12,11,10,9,8);
LiquidCrystal lcd2(7,6,5,4,3,2);
float temp;
float voltage;
int wait =700;
int temp_in_celcuis;
int temp_in_faherneit;
int green=A4;
int blue=A3;
int red=A2;

void setup() {
pinMode(A0,INPUT);
pinMode(red,OUTPUT);
pinMode(green,OUTPUT);
pinMode(blue,OUTPUT);
pinMode(A1,OUTPUT);
lcd.begin (16,2);
lcd2.begin (16,2);
}void loop() {
temp_in_celcuis=(voltage-0.5)*100;
temp=analogRead(A0);
voltage=temp*0.0048828125;
if(temp_in_celcuis<=25)
{
analogWrite(green,255);
analogWrite(red,0);
analogWrite(blue,0);
lcd2.print("AC is turned off");
lcd.print("celcuis: ");
lcd.print(temp_in_celcuis);
delay(wait);
lcd2.clear();
lcd.clear();
digitalWrite(A1,LOW);
}
else if(temp_in_celcuis>=25&&temp_in_celcuis<=55)
{
analogWrite(green,255);
analogWrite(red,255);
analogWrite(blue,0);
lcd2.print("AC is turned on");
lcd.print("celcuis: ");
lcd.print(temp_in_celcuis);
delay(wait);
lcd2.clear();
lcd.clear();
digitalWrite(A1,HIGH);
}
else if(temp_in_celcuis>55)
{
analogWrite(green,0);
analogWrite(red,255);
analogWrite(blue,0);
lcd2.print("It is unsafe"); digitalWrite(A1,LOW);
lcd.print("celcuis: ");
lcd.print(temp_in_celcuis);
delay(wait);
lcd.clear();
lcd2.clear();
}
}

Untitled file

C/C++
copy and past the code on arduino software
#include <LiquidCrystal.h>

 LiquidCrystal lcd (13,12,11,10,9,8);

 LiquidCrystal lcd2(7,6,5,4,3,2);

 float temp;

 float voltage;

 int wait =700;

 int temp_in_celcuis;

 int temp_in_faherneit;

 int buzzer = A5;

 int green=A4;

 int blue=A3;

 int red=A2;

 int motor = A1;



void setup() {

 pinMode(A0,INPUT);

 pinMode(red,OUTPUT);

 pinMode(green,OUTPUT);

 pinMode(blue,OUTPUT);

 pinMode(motor,OUTPUT);

 pinMode(buzzer,OUTPUT);

 lcd.begin (16,2);

 lcd2.begin (16,2);

 }void loop() {

 temp_in_celcuis=(voltage-0.5)*100;

 temp_in_faherneit = ( temp_in_celcuis * 9.0/5.0 ) + 32.0;

 temp=analogRead(A0);

 voltage=temp*0.0048828125;

 if(temp_in_celcuis<=25)

 {

 digitalWrite(green,255);

 digitalWrite(red,0);

 digitalWrite(blue,0);

 lcd2.print("AC is turned off");

 lcd.print("Celcuis: ");

 lcd.print(temp_in_celcuis);

 lcd.setCursor(0,1);

 lcd.print("Faherneit: ");

 lcd.print(temp_in_faherneit);

 delay(wait);

 lcd2.clear();

 lcd.clear();

 digitalWrite(A1,LOW);

 }

 else if(temp_in_celcuis>=25&&temp_in_celcuis<=55)

 {

 digitalWrite(green,255);

 digitalWrite(red,255);

 digitalWrite(blue,0);

 digitalWrite( motor,HIGH);

 digitalWrite( buzzer,LOW);

 lcd2.print("AC is turned on");

 lcd.print("Celcuis: ");

 lcd.print(temp_in_celcuis);

 lcd.setCursor(0,1);

 lcd.print("Faherneit: ");

 lcd.print(temp_in_faherneit);

 delay(wait);

 lcd2.clear();

 lcd.clear();



}

 else if(temp_in_celcuis>55)

 {

 digitalWrite(green,0);

 digitalWrite(red,255);

 digitalWrite(blue,0);

 digitalWrite( motor,LOW);

 digitalWrite( buzzer,HIGH);

 lcd2.print("It is unsafe");

 lcd.print("Celcuis: ");

 lcd.print(temp_in_celcuis);

 lcd.setCursor(0,1);

 lcd.print("Faherneit: ");

 lcd.print(temp_in_faherneit);

 delay(wait);

 lcd.clear();

 lcd2.clear();

 }

 }

Credits

krishiv_jasuja
1 project • 0 followers
Contact
sumitbranfigo
7 projects • 6 followers
Contact

Comments

Please log in or sign up to comment.