Skip to content

ToYoNiX/smart-home-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Smart Home Automation System

Overview

This project implements a comprehensive smart home automation system using Arduino Mega as the main controller. The system integrates multiple sensors and actuators to provide home security, environmental monitoring, and automated control of various home functions.

Features

  • Security System: Password and RFID-based access control for doors and gates
  • Fire Detection: Automatic alarm system when fire is detected
  • Gas Detection: Automatic ventilation when harmful gases are detected
  • Environmental Monitoring: Temperature and humidity monitoring
  • Water Leak Detection: Alerts and indicators for water leakage
  • Automated Lighting: Motion-activated and light-sensitive lighting control
  • Automated Doors/Gates: Servo-controlled doors, gates, and garage door

Hardware Components

  • Arduino Mega 2560 (Main controller)
  • LCD Display (I2C 20x4)
  • Servo Motors (for doors, gates, windows)
  • Sensors:
    • DHT11 (Temperature and Humidity)
    • Flame Sensor
    • MQ135 Gas Sensor
    • Water Sensor
    • Light Sensor
    • Ultrasonic Distance Sensors (HC-SR04)
  • PN532 NFC/RFID Module
  • 4x4 Matrix Keypad
  • Buzzer (for alarms)
  • LEDs (for indicators and lighting)
  • Relay Module (for controlling high-power devices)
  • Breadboard and Jumper Wires

Pin Configuration

Digital Pins

  • LCD: Connected via I2C (SDA, SCL)
  • Servo Motors:
    • Door Right: Pin 5
    • Door Left: Pin 6
    • Gate: Pin 4
    • Garage: Pin 9
  • Keypad: Rows (52, 50, 48, 46), Columns (44, 42, 40, 38)
  • Buzzer: Pin 41
  • DHT11: Pin 32
  • Ultrasonic Sensors:
    • Sensor 1: Trig 26, Echo 24
    • Sensor 2: Trig 53, Echo 51
    • Sensor 3: Trig 39, Echo 31
  • Gas Sensor Digital: Pin 22
  • Water Sensor Power: Pin 7
  • Light Sensor: Pin 30
  • Fan: Pin 34
  • LEDs:
    • Garage Light: Pin 47
    • Outside Lights: Pins 35, 33
    • Salon Light: Pin 45
    • Room Light: Pin 43
    • Water Leak Indicator: Pin 49

Analog Pins

  • Flame Sensor: A15
  • Gas Sensor Analog: A14
  • Water Sensor Signal: A13

Setup Instructions

  1. Hardware Assembly:

    • Connect all components according to the pin configuration
    • Refer to the datasheets in the datasheets folder for detailed component information
  2. Software Installation:

    • Install the Arduino IDE
    • Install the required libraries:
      • LiquidCrystal_I2C
      • Servo
      • DHT
      • Keypad
      • Wire
      • PN532 (for RFID)
  3. Upload the Code:

    • Open src.ino in the Arduino IDE
    • Select Arduino Mega 2560 as the board
    • Upload the code to the board
  4. System Configuration:

    • Default password: "1234" (can be changed in the code)
    • RFID tag ID: "D3 61 6A 0B" (can be changed in the code)

System Operation

  1. Initial Access:

    • Enter the password on the keypad (default: 1234)
    • The gate will open upon successful authentication
    • Present the RFID card to unlock the door
  2. Automated Functions:

    • Fire detection triggers alarm and warning on LCD
    • Gas detection activates ventilation fan
    • Motion detection turns on room lights automatically
    • Darkness detection turns on outside lights
    • Water leak detection activates indicator
  3. Monitoring:

    • LCD displays current temperature and humidity
    • Serial monitor outputs all sensor readings

Troubleshooting

  • System Not Responding: Check power connections and Arduino board
  • Sensors Not Working: Verify pin connections and sensor functionality
  • Servo Motors Not Moving: Check servo connections and power supply
  • RFID Not Detecting: Ensure proper I2C connection and card compatibility

Future Enhancements

  • Mobile app integration
  • Wi-Fi connectivity for remote monitoring
  • Voice control capabilities
  • Energy consumption monitoring
  • Additional sensors for enhanced functionality

License

This project is open-source and available for educational and personal use.

Credits

Developed as a smart home automation project using Arduino technology.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages