Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Home security system using IR, GAS, Temperature sensors and I2C display in proteus

Home security system using IR, GAS, Temperature sensors and I2C display in proteus

In this article we will learn how to interface arduino with IR, Gas, Temperature Sensors and I2C display for Home security in proteus.
In the last post we will learn how to interface arduino with Gas sensor and I2C LCD in proteus. You can visit our website,
I hope you appreciate my work, let’s discuss about today’s project.

Components which we use in this project are listed below:

  1. Arduino UNO
  2. Temperature sensor
  3. IR sensor
  4. Gas sensor
  5. I2c display
  6. Resistor 10k
  7. LEDs
  8. Buzzer
  9. Jumper wires

Diagram’s of this project is below:

Home security system using IR, GAS, Temperature sensors and I2C display in proteus

Construction of Home security system using IR, GAS, Temperature sensors and I2C display in proteus:

  • Connect pin 4 of Arduino UNO with the one side of Resistor
  • Connect the other side of resistor with the +ve side of LED
  • Connect the –ve side of LED with the common point of LED2 and Buzzer
  • Connect the pin 6 of Arduino UNO with the +ve side of LED2
  • Connect the pin 5 of Arduino UNO with the remaining side of Buzzer
  • Connect the pin 10 of Arduino UNO with the out pin of IR sensor
  • Connect the GND pin of IR sensor with the GND
  • Connect the VCC pin of IR sensor with the +ve point
  • Connect out pin of Temperature sensor with the pin A0 of Arduino UNO
  • Connect the one side of Temperature sensor with the +ve
  • Connect the other side of Temperature sensor with the GND
  • Connect the A1 pin of Arduino UNO with the out pin of Gas sensor through one side of R1
  • Connect the other side of R1 with the GND
  • Connect the GND pin of Gas sensor with the GND
  • Connect the VCC pin of Gas sensor with the +ve
  • Connect test pin of Gas sensor with the out pin of resistor Variable
  • Connect the –ve pin of resistor variable with the GND
  • Connect the +ve pin of resistor variable with he +ve
  • Connect the A0,A1,A2 of I2C with the GND
  • Connect the VSS pin of LCD display with the GND
  • Connect the VDD pin of LCD display with the +ve point
  • Connect the P0 pin of I2C with the pin RS of LCD  display
  • Connect the P1 pin of I2C with the pin RW of LCD display
  • Connect the P2 pin of I2C with the pin E of LCD display
  • Connect the P3 pin of I2C with the pin D3 of LCD display
  • Connect the P4 pin of I2C with the pin D4 of LCD display
  • Connect the P5 pin of I2C with the pin D5 of LCD display
  • Connect the P6 pin of I2C with the pin D6 of LCD display
  • Connect the P7 pin of I2C with the pin D7 of LCD display

Home security system using IR, GAS, Temperature sensors and I2C display in proteus

Working of Home security system using IR, GAS, Temperature sensors and I2C display in proteus:

A home security system using IR (Infrared), gas, temperature sensors, and an I2C display can help protect your home by monitoring various environmental and security parameters

Home security system using IR, GAS, Temperature sensors and I2C display in proteus

Applications of Home security system using IR, GAS, Temperature sensors and I2C display in proteus:

  1. Intrusion Detection
  2. Gas Leak Detection
  3. Fire and Temperature Monitoring
  4. Environmental Control
  5. Display Information

Advantages of Home security system using IR, GAS, Temperature sensors and I2C display in proteus:

  1. Comprehensive Detection
  2. Real-time Monitoring
  3. Alerts and Notifications
  4. Remote Control
  5. Energy Efficiency

Program of this project is below:

#include

#include

LiquidCrystal_I2C lcd(0x20, 16, 2);

#define gasSensor A1

#define buzzer 5

#define ledGreen 4

#define ledRed 6

#define SMOKE_THRESHOLD 100 // Adjust this threshold value as needed

int irsensor = 9;

int sensorState=0;

void setup() {

lcd.init();

lcd.backlight();

lcd.setCursor(0, 0);

lcd.print(“Projectiot123”);

pinMode(irsensor, INPUT);

pinMode(gasSensor, INPUT);

pinMode(buzzer, OUTPUT);

pinMode(ledGreen, OUTPUT);

pinMode(ledRed, OUTPUT);

Serial.begin(9600);

delay(100);

}

void loop() {

// Read data from the sensor

int gas_value = analogRead(gasSensor);

float vol = analogRead(A0) * (5.0 / 1023.0) * 100;

delay(10);

sensorState = digitalRead(irsensor);

if (gas_value

{

lcd.clear();

lcd.setCursor(0, 1);

lcd.print(“Normal”);

noTone(buzzer);

digitalWrite(ledGreen, HIGH);

digitalWrite(ledRed, LOW);

delay (100);

}

// Check data from sensor if there is smoke

else if (gas_value >= SMOKE_THRESHOLD) {

lcd.clear();

lcd.setCursor(0, 1);

lcd.print(“Smoke detected”);

tone(buzzer, 1000, 500);

digitalWrite(ledRed, HIGH);

digitalWrite(ledGreen, LOW);

delay (100);

}

else if (sensorState == HIGH)

{

lcd.clear();

lcd.setCursor(0, 1);

lcd.print(“THEIF IS ARRIVED”);

tone(buzzer, 1000, 500);

digitalWrite(ledGreen, LOW);

digitalWrite(ledRed, HIGH);

delay (100);

}

else if (vol >= 32 && vol

{

lcd.clear();

lcd.setCursor(0, 1);

lcd.print(“TEMPERATURE HIGH”);

noTone(buzzer);

digitalWrite(ledGreen, LOW);

digitalWrite(ledRed, HIGH);

delay (100);

}

else if (vol >= 41)

{

lcd.clear();

lcd.setCursor(0, 1);

lcd.print(“Fire Detect”);

tone(buzzer, 1000, 500);

digitalWrite(ledGreen, LOW);

digitalWrite(ledRed, HIGH);

delay (100);

}

delay(250);

}

The post Home security system using IR, GAS, Temperature sensors and I2C display in proteus appeared first on projectiot123 Technology Information Website worldwide.

Share the post

Home security system using IR, GAS, Temperature sensors and I2C display in proteus

×

Subscribe to Projectiot123 Technology Information Website Worldwide - Electronics Blog Ask Question And Solution On Web

Get updates delivered right to your inbox!

Thank you for your subscription

×