0% found this document useful (0 votes)
56 views41 pages

Smart Home Automation System Report

The document presents a project report on a Smart Home Automation System developed by students at Veermata Jijabai Technological Institute for their Electronics Engineering diploma. The system integrates multiple modules for enhanced safety, convenience, and energy efficiency, utilizing technologies like IoT and various sensors for tasks such as gas detection, lighting control, and security monitoring. The project aims to demonstrate the practical application of modern electronic technologies in creating intelligent living spaces while promoting user accessibility and reducing manual effort.

Uploaded by

harshsawant2410
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)
56 views41 pages

Smart Home Automation System Report

The document presents a project report on a Smart Home Automation System developed by students at Veermata Jijabai Technological Institute for their Electronics Engineering diploma. The system integrates multiple modules for enhanced safety, convenience, and energy efficiency, utilizing technologies like IoT and various sensors for tasks such as gas detection, lighting control, and security monitoring. The project aims to demonstrate the practical application of modern electronic technologies in creating intelligent living spaces while promoting user accessibility and reducing manual effort.

Uploaded by

harshsawant2410
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

SMART HOME AUTOMATION SYSTEM

The project report submitted to


Veermata Jijabai Technological Institute, Mumbai
For the award of
DIPLOMA IN ELECTRONICS ENGINEERING BY

Harsh Sakhardande (234130051)


Harsh Sawant (234130054)
Mohammed Zaid Shaikh (234130055)
Kunal Singh (234130060)
Yogesh Vemula (234130067)

Under the guidance of


Dr. Vikram Kehri

Department of Electronics Engineering


Veermata Jijabai Technological Institute, Mumbai,
Maharashtra, India

Academic Year 2025-26


CERTIFICATE

Approval of Guide and External Examiner

Certified on , that the Project titled, “Smart Home


Automation System” has been submitted by the following project group:
1) Harsh Sakhardande (234130051)
2) Harsh Sawant (234130054)
3) Mohammed Zaid Shaikh (234130055)
4) Kunal Singh (234130060)
5) Yogesh Vemula (234130067)

To the Veermata Jijabai Technological Institute, Mumbai, for the award of


DIPLOMA IN ELECTRONICS ENGINEERING and that the students have
been successfully examined in the viva examination held today.

Affiliation: Dept. of Electrical Eng. Veermata Jijabai Technological


Institute, Mumbai, Maharashtra, India.

Signature Signature Signature


(Project Mentor) (Head of Department) (External Professor)

1
ABSTRACT

The increasing need for safety, convenience, and energy efficiency in modern households
has led to the rapid adoption of smart automation technologies. Traditional home systems
require manual operation, which can result in higher power consumption, reduced safety,
and limited user accessibility. This project presents a multi-module Smart Home
Automation System designed to integrate several independent sensing and control
circuits; each managed through dedicated web interfaces for enhanced flexibility and
user control.

The proposed system incorporates eight functional modules: ultrasonic-based smart


garage control, LDR-based solar terrace lighting, gas leakage detection, fire alarm
notification, ESP32-based RFID door locking, PIR-based motion-activated lighting, web-
controlled light switching using relays, and laser-based security monitoring.
Microcontrollers such as the ESP32 and Arduino Nano continuously monitor parameters
including gas concentration, fire presence, motion detection, light intensity, and object
distance. Each ESP32 module hosts its own web interface, allowing users to control
appliances, access door lock functions, monitor motion-triggered responses, or check
laser security status independently over local Wi-Fi.

By integrating IoT principles with sensor-based automation, this project offers a reliable,
energy-efficient, and user-friendly solution for modern home environments. The Smart
Home Automation System aims to enhance safety, reduce manual effort, and
demonstrate how electronic technologies can transform ordinary homes into intelligent
and responsive smart living spaces.

2
ACKNOWLEDGEMENT

The successful completion of this project has been made possible through the guidance,
support, and encouragement of several individuals. We consider ourselves fortunate to
have received continuous assistance throughout the development and execution of this
work. Every milestone achieved in this project is a direct result of the supervision,
motivation, and cooperation extended to us.

We express our sincere gratitude to our project guide, Dr. Vikram Kehri, from the
Electronics Department, for providing invaluable direction, timely feedback, and
constant encouragement. Their expertise and insights significantly contributed to the
successful implementation of our Smart Home Automation System.

We would also like to thank the respected faculty members of the Electronics and
Electrical Department for their consistent support, encouragement, and constructive
suggestions, all of which played a vital role in shaping the outcome of this project.

Lastly, we extend our appreciation to our classmates and peers for their cooperation,
teamwork, and motivation throughout the course of this work.

With heartfelt gratitude,


Thank you all once again!

1. Harsh Sakhardande (234130051)


2. Harsh Sawant (234130054)
3. Mohammed Zaid Shaikh (234130055)
4. Kunal Singh (234130060)
5. Yogesh Vemula (234130067)

Department of Electronic Engineering,


Veermata Jijabai Technological
Institute, Mumbai.

3
DECLARATION

We certify that,

- The work contained in this report is original and has been done by us under the
guidance of our mentor.
- The work has not been submitted to any other Institute for the award of any certificate.
- I have followed the guidelines of the Institute in preparing the report.
- Whenever we have used materials (data, theoretical analyses, figures, text, etc.) from
other sources, we have given due credit to them by citing them in the text of the thesis
and giving their details in the references necessary.

Sr No Name of students Signature

1 Harsh Sakhardande

2 Harsh Sawant

3 Mohammed Zaid Shaikh

4 Kunal Singh

5 Yogesh Vemula

4
CONTENTS
Sr. No. Topics Page No.
1. Cover page
2. Certificate of Approval of Guide & External Examiner 1
3. Abstract 2
4. Acknowledgement 3
5. Declaration by the students 4
6. Index 5
7. List of Figures 6
8. Cost of Components Used in the Project 38

Page
Chapter No Topic
No
Introduction to The Project
1. Introduction
2. Background
I 3. Objective of the Project 7-9
4. Purpose
5. Motivation
6. Future Scope
Description About the Components used on the Project
1. ESP 32
2. Arduino Nano
3. Arduino UNO R3
II 4. Relay Module 10 - 23
5. Flame Sensor
6. Gas Sensor
7. PIR Motion Sensor (HC – SR501)
8. Ultrasonic Sensor (HC – SR04)
9. RC522 RFID Module
10. SG90 Servo Motor
11. Laser Diode Module
12. 5V Solar Panel
13. 3.7V Lithium Battery
14. Buzzer
15. LED
Software for Coding and Wi-Fi Application
III 1. Arduino IDE 24 - 25
2. Cirkit Designer
Implementation & Working of the Proposed System
1. Proposed System
IV 2. Working of Individual Modules 26 - 37
3. Codes for ESP32, Arduino UNO and Arduino Nano
Conclusion 39

References/Bibliography 40

5
LIST OF FIGURES

Figure No. Name of Figure Page No.


2.1 ESP32 DEV Kit V1 10
2.2 Arduino Nano 11
2.3 Arduino UNO R3 12
2.4 Relay Module 13
2.5 1 – Channel Relay Module 14
2.6 2 – Channel Relay Module 15
2.7 Flame Sensor 15
2.8 Gas Sensor (MQ – 135) 16
2.9 PIR Motion Sensor (HC – SR501) 17
2.10 Ultrasonic Sensor (HC-SR04) 18
2.11 RC522 RFID Module 19
2.12 SG90 Servo Motor 20
2.13 Laser Diode Module 20
2.14 5V Solar Panel 21
2.15 3.7V Lithium Batter 22
2.16 Buzzer 22
2.17 LED 23
3.1 Arduino IDE 24
3.2 Cirkit Designer 25
4.1.1 Proposed System design using Cirkit Designer 26
4.2.1 Proposed system for Solar powered terrace light 27
4.2.2 Flowchart for Solar powered terrace light 28
4.2.3 Gas Detection system 28
4.2.4 Flame Detection System 29
4.2.5 Flowchart for Flame and Gas Detection System 29
4.2.6 Smart Garage System 30
4.2.7 Flowchart for Smart Garage System 30
4.2.8 Web Controlled LEDs 31
4.2.9 Laser Security System 31
4.2.10 Flowchart for Web Controlled LEDs and Laser Security System 32
4.2.11 RFID Door Lock System 32
4.2.12 Motion Detector Lights 33
4.2.13 Hardware Model for proposed system 33
4.3.1 Code 1 for RFID Door Lock & PIR Light 34
4.3.2 Code 2 for RFID Door Lock & PIR Light 34
4.3.3 Code 3 for RFID Door Lock & PIR Light 34
4.3.4 Code 4 for RFID Door Lock & PIR Light 35
4.3.5 Code 1 for Smart Garage System 35
4.3.6 Code 2 for Smart Garage System 35
4.3.7 Code 1 for Gas and Flame Sensor 36
4.3.8 Code 2 for Gas and Flame Sensor 36
4.3.9 Code 1 for Web Controlled LEDs and Laser Security System 36
4.3.10 Code 2 for Web Controlled LEDs and Laser Security System 37
4.3.11 Code 3 for Web Controlled LEDs and Laser Security System 37
4.3.12 Code 4 for Web Controlled LEDs and Laser Security System 37

6
CHAPTER I
Introduction to the Project

Introduction:

A Smart Home Automation System integrates modern electronic technologies to enhance the
safety, efficiency, and convenience of residential environments. With the rising demand for
intelligent living spaces, automation systems have become essential for managing household
functions such as lighting, security, door access, and environmental monitoring. This project
presents a modular smart home system comprising multiple sensor-based circuits, each designed
to automate specific tasks while offering seamless user control through independent web
interfaces hosted on ESP32 microcontrollers.

The system includes eight major modules: an ultrasonic-based smart garage controller, a solar-
powered LDR terrace light, a gas leakage detection unit, a fire detection alarm, an ESP32-based
RFID door locking system, PIR-activated motion lighting, web-controlled light automation using
relays, and a laser-based intrusion security circuit. Each module operates autonomously yet
contributes to a unified goal of enhancing home security and automation. With real-time
detection, wireless control, and localized web interfaces, users can monitor and operate critical
home functions without depending on cloud services or external networks.

Overall, this Smart Home Automation System demonstrates how IoT concepts and sensor
technologies can be applied to create intelligent, user-friendly, and energy-efficient home
environments. The project highlights the potential of embedded systems in transforming ordinary
households into modern smart homes while ensuring cost-effectiveness and reliability.

Background:
The demand for smart home solutions has grown significantly due to the increasing focus on
energy conservation, home security, and user convenience. Traditional home systems often
require manual operation, resulting in greater energy consumption, delayed hazard detection, and
limited control. With the advancement of microcontrollers such as the ESP32 and Arduino Nano,
along with affordable sensors and wireless connectivity, home automation has become more
accessible and efficient. IoT technologies have enabled real-time monitoring, automated
decision-making, and remote device control within residential spaces. Users now seek modular,
low-cost systems that can perform tasks such as detecting gas leaks, controlling lights
automatically, monitoring motion, and securing entry points with RFID authentication.

Objective of the Project:


1. Enhance home security through automated sensing modules such as PIR motion detection,
laser-based intrusion detection, and RFID door locking.
2. Improve convenience by enabling wireless control of household appliances through ESP32-
hosted web interfaces.
3. Reduce manual involvement in routine tasks such as lighting control and garage operation.

7
4. Promote energy efficiency by using sensors like LDRs and PIR modules to activate systems only
when necessary.
5. Demonstrate the practical implementation of IoT and embedded technologies in a multi-module
home automation setup.
6. Provide real-time monitoring and immediate hazard detection for gas leakage and fire incidents.
7. Create cost-effective and modular circuits that can be easily expanded or upgraded for future
smart home applications.

Purpose:
The purpose of this project is to design and implement a comprehensive smart home
solution that automates essential household systems, improves safety, and enhances
user accessibility. By integrating different sensors, microcontrollers, and wireless interfaces,
the project aims to:
1. Provide real-time monitoring and control of home appliances and security systems.
2. Minimize energy wastage through intelligent sensor-based automation.
3. Reduce manual operation of repetitive household tasks.
4. Enhance the safety and security of residential premises through early hazard detection
and intrusion monitoring.

Motivation:
The primary motivation for developing this Smart Home Automation System arises from the
need for secure, efficient, and user-friendly living spaces. As modern lifestyles demand greater
convenience and safety, automation technologies play a crucial role in meeting these
expectations.
1. Security Enhancement: Increasing home security concerns motivate the use of RFID-based
access systems, motion detection, and laser intrusion modules.
2. Energy Savings: Automated lighting and sensor-controlled systems help reduce electricity
wastage, addressing rising energy costs. Reducing Manual Labor: Traditional farming practices
require considerable manual labor for irrigation and monitoring. Automating these tasks reduces
the labor burden on farmers, allowing them to focus on more strategic activities.
3. Ease of Access: Web-based control interfaces enable users to operate home systems remotely
within their local Wi-Fi network, enhancing convenience.
4. Hazard Prevention: Early detection of gas leaks and fire hazards ensures quicker response
and reduces potential damage.
5. Technological Advancement: The motivation extends to exploring IoT, embedded systems,
and automation in core areas of modern electronics engineering.

8
6. User Comfort: Automation minimizes manual tasks, making daily living smoother and more
efficient.
7. Innovation and Practical Learning: Implementing multiple circuits in one integrated
project brings valuable hands-on learning and real-world application experience.
8. Customization and Flexibility: Separate modules and independent web interfaces allow
users to adopt only the features they require, making the system scalable.

Future Scope:
1. Advanced IoT Integration: The system can be enhanced with cloud connectivity for global
access, data logging, and analytics.

2. AI-based Automation: Machine learning models can analyze user patterns to automate
lighting, security, and appliance control more intuitively.

3. Unified Dashboard: Future versions may integrate all modules into a single responsive
dashboard without compromising modularity.

4. Smart Energy Management: Integration with smart meters and energy usage analytics can
help optimize consumption further.

5. Voice Assistant Integration: Compatibility with platforms like Amazon Alexa or Google
Assistant can allow voice-controlled automation.

6. Mobile Application Development: A dedicated mobile app can provide improved user
experience beyond web interfaces.

7. Smart Appliance Expansion: Additional modules such as temperature control, smoke


ventilation, and smart curtains can be included.

8. Smart Appliance Expansion: Additional modules such as temperature control, smoke


ventilation, and smart curtains can be included.

9. Emergency Response System: Automatic alerts on mobile devices during gas leaks, fire
detection, or intrusions can enhance safety further.

10. Wireless Mesh Networking: Adopting protocols like ZigBee or LoRa can allow the system
to cover larger homes and outdoor area.

9
CHAPTER II
Description About the Components used in the Project
1. ESP32 DEV KIT V1

Fig 2.1: ESP32 DEV Kit V1


General Description:

The ESP32 DEVKIT V1 is a powerful, low-cost Wi-Fi and Bluetooth-enabled microcontroller


board developed by Espressif Systems. It is built around the ESP32-WROOM-32 module, which
integrates a dual-core processor, multiple communication interfaces, and extensive GPIO
support. The ESP32 DEVKIT V1 is widely used in IoT, smart automation, sensing, and control
applications due to its high processing power, ultra-low power modes, and robust connectivity
options.
Compared to previous Wi-Fi modules like the ESP8266, the ESP32 DEVKIT V1 offers
significantly improved performance, security, peripherals, and dual-core capability, making it
ideal for projects requiring multitasking—such as smart home automation systems, web-
controlled devices, and sensor-based monitoring systems.

Features:

1. Processor: Dual-core Tensilica LX6 microprocessor, Clock speed up to 240 MHz


2. Memory: 520 KB SRAM, External Flash typically 4 MB (varies by board manufacturer).
3. Connectivity: Wi-Fi 802.11 b/g/n, Bluetooth v4.2 & BLE.
4. GPIO Pins: 30 to 36 GPIO pins (depending on board version), Most pins support touch
sensing, PWM, SPI, I2C, I2S, UART, ADC, DAC.
5. ADC & DAC: 18 channels of 12-bit ADC, 2 channels of 8-bit DAC.
6. Timers & PWM: 2 × 64-bit timers, 16-channel PWM for motor/LED control.
7. Communication Interfaces: SPI, I2C, I2S, UART, CAN bus support, Infrared remote
controller
8. Power: Operating voltage: 3.3V, On-board 5V to 3.3V regulator, USB 5V input via micro-
USB
9. Additional Features: Built-in hall sensor, 10 touch-sensing GPIO pins, Ultra-low-power co-
processor for sleep modes

10
Pinout of ESP:
The pinout may vary slightly depending on the board manufacturer, but the most common ESP32
DEVKIT V1 has the following key pins:

1. 3V3 – Regulated 3.3V output supply


2. GND – Ground
3. VIN – 5V input from USB or external supply
4. GPIO0 – Boot mode selection / general I/O
5. GPIO2 – General-purpose I/O
6. GPIO4 / GPIO5 – I/O pins commonly used for sensors
7. GPIO12–GPIO15 – SPI interface pins
8. GPIO16 / GPIO17 – UART / general I/O
9. GPIO18 / GPIO19 – SPI default pins
10. GPIO21 / GPIO22 – Default I2C SDA/SCL
11. GPIO23 – SPI MOSI
12. GPIO25 / GPIO26 – DAC1 and DAC2
13. GPIO32–GPIO39 – ADC pins (for analog sensors)
14. EN – Enable pin (Reset signal)

These pins make the ESP32 DEVKIT V1 highly versatile for interfacing with sensors,
motors, relays, displays, and IoT modules in smart home systems.

2. Arduino Nano

Fig 2.2: Arduino Nano


General Description:

The Arduino Nano is a compact, breadboard-friendly microcontroller board based on the


ATmega328P chipset. It offers the same core functionality as the Arduino Uno but in a much
smaller form factor, making it ideal for embedded and space-constrained projects.
The Nano includes a mini-USB port for programming, onboard voltage regulators, and multiple
GPIO pins for sensor and module interfacing. Because of its low cost, small size, and ease of use,
it is widely used in prototyping, sensor-based automation, security systems, and portable
electronics. In the context of smart home automation, the Arduino Nano is suitable for dedicated
tasks such as gas leakage detection, fire detection, and other safety monitoring circuits due to its
reliability and stability.

11
Features:

1. Microcontroller: ATmega328P
2. Operating Voltage: 5V
3. Input Voltage (recommended): 7–12V
4. Clock Speed: 16 MHz
5. Flash Memory: 32 KB (2 KB used by bootloader)
6. SRAM: 2 KB
7. EEPROM: 1 KB
8. Digital I/O Pins: 22 (14 Digital + 8 Analog)
9. PWM Output Pins: 6
10. Analog Input Pins: 8
11. UART, SPI, and I2C communication support
12. Mini USB Interface
13. On-board voltage regulator
14. Small size for compact circuits

Pinout of Arduino Nano:

1. GND – Ground
2. 5V / 3.3V – Power output
3. VIN – External input voltage
4. D0 (RX) – Serial data receive
5. D1 (TX) – Serial data transmit
6. D2–D13 – Digital I/O pins (some with PWM capability)
7. A0–A7 – Analog inputs
8. RESET – Reset pin
9. AREF – Analog reference voltage
10. ICSP Pins – For low-level programming

3. Arduino UNO R3

Fig 2.3: Arduino UNO R3


General Description:
The Arduino Uno R3 is one of the most popular and versatile microcontroller development
boards based on the ATmega328P microcontroller. It provides an easy-to-use hardware and
software environment suitable for beginners and professional embedded developers.

12
It includes a USB-B interface for uploading programs, a robust 5V regulator, and a standard pin
layout widely supported by sensors, shields, and electronic modules. The Uno R3 is often used
for prototyping automation systems, sensor interfaces, robotics, and IoT-related applications. Its
reliability and simplicity make it ideal for academic projects, especially when multiple sensors
and modules must be integrated in a stable development environment.

Features:

1. Microcontroller: ATmega328P
2. Operating Voltage: 5V
3. Input Voltage (recommended): 7–12V
4. Clock Speed: 16 MHz
5. Flash Memory: 32 KB (0.5 KB used by bootloader)
6. SRAM: 2 KB
7. EEPROM: 1 KB
8. Digital I/O Pins: 14
9. PWM Pins: 6
10. Analog Input Pins: 6
11. USB-B Interface for programming
12. Resettable polyfused for USB protection
13. Excellent community and library support
14. Compatible with various shields

Pinout of Arduino Uno R3:

1. GND – Ground
2. 5V / 3.3V – Power output pins
3. VIN – External input voltage
4. D0 (RX) – UART serial receive
5. D1 (TX) – UART serial transmit
6. D2–D13 – Digital I/O pins
7. PWM Pins: D3, D5, D6, D9, D10, D11
8. Analog Pins: A0–A5
9. AREF – Analog reference input
10. RESET – Manual reset pin
11. ICSP Header – SPI and low-level programming pins
12. Power Jack – For external adapters

4. Relay Module

Fig 2.4: Relay Module

13
General Description:
A relay module is an electrically operated switch used to control high-voltage or high-current
devices using a low-power microcontroller signal. Relay modules are widely used in home
automation, security systems, industrial controls, and IoT-based switching applications.
In this project, relay modules are used to control AC appliances such as lights, fans, and other
electrical loads through the microcontroller (ESP32 / Arduino). These modules provide electrical
isolation using optocouplers, ensuring safe operation while switching high-voltage loads.
Relay modules are available in multiple configurations such as 1-channel, 2-channel, and 4-
channel, depending on the number of external devices to be controlled.

Features:
1. Operating Voltage: 5V
2. Relay Output Rating: 250V AC at 10A or 30V DC at 10A
3. Trigger Voltage: 3.3V or 5V depending on module
4. Optocoupler isolation for electrical safety
5. LED indicators for status display
6. NO (Normally Open), NC (Normally Closed), and COM terminals
7. Compatible with microcontrollers: ESP32, Arduino, NodeMCU, Raspberry Pi
8. High/Low trigger versions available
9. Screw terminals for easy AC load connection
10. Onboard transistor driver circuit for reliable switching.

i. 1 – Channel Relay Module:

Fig 2.5: 1 - Channel Relay Module

Description:

The 1-channel relay module includes a single relay, suitable for controlling one high-voltage
device such as a bulb or fan. It is compact and commonly used when only one appliance needs to
be automated

Pinout:
Input Pins:
1. VCC – 5V power input
2. GND – Ground
3. IN – Control signal from microcontroller

14
Output Terminals:
1. NO – Normally Open
2. COM – Common
3. NC – Normally Closed

ii. 2 – Channel Relay Module:

Fig 2.6: 2 - Channel Relay Module

Description:
The 2-channel relay module contains two independent relays, allowing control of two different
appliances. Each relay works separately and has its own input pin.

Pinout:
Input Pins:
1. VCC – 5V
2. GND – Ground
3. IN1 – Control signal for Relay 1
4. IN2 – Control signal for Relay 2

Output Terminals (for each relay):


1. NO1, COM1, NC1
2. NO2, COM2, NC2

5. Flame Sensor

Fig 2.7: Flame Sensor


15
General Description:

The Flame Sensor is a fire-detection module designed to sense infrared (IR) light emitted by
flames. It uses an IR receiver (photo-diode or phototransistor) that is highly sensitive to
wavelengths emitted during combustion. This sensor is widely used in fire detection, alarm
systems, heat sources monitoring, and safety automation projects. In this project, the flame
sensor is used for fire alarm detection, triggering alerts or activating safety mechanisms through
the microcontroller.

Features:
1. Wavelength Detection Range: 760 nm – 1100 nm
2. Operating Voltage: 3.3V – 5V
3. Digital Output (DO) for fire alert
4. Analog Output (AO) for flame intensity measurement
5. Onboard comparator (LM393) for threshold adjustment
6. High sensitivity and fast response time
7. Potentiometer to adjust detection range
8. Indicator LEDs: Power LED, Output/status LED
9. Wide detection angle (typically 60–120°)
Pinout of Flame Sensor Module:
11. VCC – Power (3.3V–5V)
12. GND – Ground
13. DO – Digital output (HIGH/LOW fire alert)
14. AO – Analog output (flame intensity)

6. Gas Sensor

Fig 2.8: Gas Sensor (MQ-135)


General Description:

The MQ135 Gas Sensor is a widely used air-quality sensing device designed to detect various
harmful gases in the environment. It is particularly sensitive to gases such as ammonia (NH₃),
nitrogen oxides (NOₓ), benzene, smoke, CO₂, and other volatile organic compounds (VOCs). The
sensor uses tin dioxide (SnO₂) as the sensing material, whose conductivity changes in the presence
of different gas concentrations. This change in resistance is converted into an electrical signal and
processed by a microcontroller (such as ESP32, Arduino Nano, or Uno).

16
Features:

1. Wide Gas Detection Range: Detects NH₃, CO₂, alcohol, smoke, NOₓ, benzene, and other
harmful gases.
2. High Sensitivity & Fast Response: Responds quickly to changes in air quality and recovers
rapidly once the air is clean.
3. Analog Output: Provides an analog voltage proportional to gas concentration; can be read using
any ADC-equipped board.
4. Digital Output (via onboard comparator): Many MQ135 breakout modules include a
potentiometer & comparator for threshold-based digital alerts.
5. Long Lifespan & Low Cost: Stable operation with minimal maintenance requirements.
6. Heater Element: Included Internal heating coil stabilizes sensor performance but increases
power consumption.
7. Operating Voltage: 5V typical, Heater consumption approx. 800mW

Pinout of MQ135 Gas Sensor Module:

For the standard 4-pin module:


1. VCC – Power supply (5V)
2. GND – Ground
3. DO – Digital Output (high/low based on threshold)
4. AO - Analog Output (continuous gas concentration level)

7. PIR Motion Sensor (HC – SR501)

Fig 2.9: PIR Motion Sensor (HC – SR501)

General Description:

The PIR (Passive Infrared) Motion Sensor detects motion by sensing infrared radiation
(heat) emitted by humans or animals. It works using a pyroelectric sensor and Fresnel lens
to measure changes in infrared levels within its detection area. It is widely used in security
systems, motion-activated lighting, alarms, and automation.
In smart home automation, PIR sensors are ideal for motion-based lighting systems,
intruder alerts, and energy-efficient systems.

17
Features:

1. Operating Voltage: 5V–12V


2. Detection Range: Up to 7 meters
3. Detection Angle: ~120°
4. Delay Time Adjustable: From 2 seconds to 5 minutes
5. Sensitivity Adjustable
6. Very Low Power Consumption
7. Digital Output (High/Low)
8. Stable and Noise-Resistant Operation

Pinout:

1. VCC – Power supply (5V)


2. OUT – Digital motion output
3. GND – Ground

8. Ultrasonic Sensor (HC-SR04)

Fig 2.10: Ultrasonic Sensor (HC-SR04)

General Description:

The HC-SR04 Ultrasonic Sensor measures distance using ultrasonic waves. It transmits a high-
frequency sound pulse and measures the time taken for the echo to return. It is commonly used in
distance measurement, smart parking, obstacle detection, garage automation, and robots. In your
project, it is used for the smart garage system to automatically open or close based on vehicle
distance.

Features:

1. Operating Voltage: 5V
2. Measuring Range: 2 cm to 400 cm
3. Trigger Pulse Input: 10 µs
4. Echo Output: Pulse-width proportional to distance
5. Low Power Consumption
6. Easy interfacing with Arduino/ESP32
18
Pinout:

1. VCC – 5V
2. Trig – Trigger input
3. Echo – Echo output
4. GND – Ground

9. RC522 RFID Module

Fig 2.11: RC522 RFID Module

General Description:

The RC522 RFID Module is a 13.56 MHz RFID reader used for contactless card/tag
authentication. It uses the MFRC522 chipset, widely used in security systems, door automation,
access control, and attendance systems. In our project, it is used for the RFID-based smart door
lock that also works through the web interface using ESP32.

Features:

1. Operating Voltage: 3.3V


2. RFID Frequency: 13.56 MHz
3. Communication Protocol: SPI
4. Reading Range: Up to 3–5 cm
5. Supports MIFARE 1K, 4K Cards, Tags
6. Low Power Consumption

Pinout (RC522):

1. SDA – SPI SS pin


2. SCK – SPI Clock
3. MOSI – Master Out Slave In
4. MISO – Master in Slave Out
5. IRQ – Interrupt (optional)
6. GND – Ground
7. RST – Reset
8. 3.3V – Power supply

19
10. SG90 Servo Motor

Fig 2.12: SG90 Servo Motor

General Description:

The SG90 Servo is a lightweight, low-power motor widely used for rotational and angular control.
It operates using PWM signals and is ideal for robotics, miniature control, automated flaps, garage
doors, and locks. In our project, it is used for the smart garage mechanism to lift or rotate a
gate/barrier.

Features:

1. Operating Voltage: 4.8–5V


2. Torque: 1.8 kg*cm
3. Rotation Angle: 0° to 180°
4. Gear Type: Nylon
5. Control Signal: PWM
6. Compact & Lightweight

Pinout:

1. Orange – Signal (PWM)


2. Red – VCC (5V)
3. Brown – Ground

11. Laser Diode Module

Fig 2.13: Laser Diode Module

20
General Description:

The Laser Diode Module is a compact light source that emits a narrow red laser beam (typically
650 nm). It is commonly used in security systems, laser alarms, alignment tools, and distance
indicators. In our project, it forms part of the laser security system where the beam breaks when an
intruder crosses it.

Features:

1. Operating Voltage: 3V–5V


2. Wavelength: 650 nm (Red)
3. Low Power Consumption
4. Stable Output Beam
5. Small, Lightweight & Durable

Pinout:

1. VCC – Power supply


2. GND – Ground
3. S – Signal

12. 5V Solar Panel

Fig 2.14: 5V Solar Panel

General Description:

A 5V solar panel is a photovoltaic device that converts sunlight into electrical energy. It is widely
used in solar-powered lighting systems, IoT projects, and energy-harvesting applications. In this
project, it powers the terrace light system and helps charge the 3.7V lithium battery for sustainable
operation.

Features:

1. Output Voltage: 5V DC (typical)


2. Rated Power: Usually 1–5W depending on size
3. Environmentally Friendly & Renewable Energy Source
4. Durable & Weather-Resistant Construction
5. Easy Integration with Battery Charging Circuits
6. Low Maintenance and Long Lifespan

21
13. 3.7V Lithium Battery

Fig 2.15: 3.7V Lithium Battery

General Description:

A 3.7V Lithium-Ion (Li-ion) battery is a rechargeable energy storage device widely used in
portable electronics, solar-powered devices, and IoT systems. It provides stable voltage and high
energy density. In this project, it stores energy from the 5V solar panel to power the terrace lights
and other low-power components.

Features:

1. Rated Voltage: 3.7V nominal


2. Capacity: 500 mAh–3000 mAh (depends on model)
3. Rechargeable via Solar Panel or USB Charger
4. High Energy Density
5. Lightweight and Compact
6. Long Cycle Life with Proper Charging
7. Overcharge & Discharge Protection (if protected battery)

14. Buzzer

Fig 2.16: Buzzer

General Description:

An Active Buzzer is a sound-producing device that includes a built-in oscillator. When powered,
it generates a fixed-frequency sound. It is widely used in alarms, notifications, warnings, and
safety systems.
22
Features:

1. Operating Voltage: 3.3V–5V


2. Built-in Oscillator
3. Easy Digital Control (ON/OFF)
4. Low Power Consumption
5. Loud and Clear Output

Pinout:

1. VCC – +5V
2. GND – Ground

15. Light Emitting Diode

Fig 2.17: LED

General Description:

A Light Emitting Diode (LED) is a semiconductor device that emits light when it is forward biased.
It is widely used in electronic circuits as an indicator and low-power lighting element due to its
high efficiency, long life, fast switching response, and low power consumption. In embedded
systems, LEDs are commonly used to indicate system status such as power ON, device activity,
fault conditions, or sensor detection events.

Pinout:

1. Anode – (+)
2. Cathode – Negative (-)

23
CHAPTER III
SOFTWARE FOR CODING AND Wi-Fi APPLICATION

1. Arduino IDE:

Fig 3.1: Arduino IDE


Arduino IDE is an open-source software developed by [Link], used for writing, compiling,
and uploading code to microcontroller boards. It provides a simple programming environment for
beginners as well as advanced users. The IDE runs on Windows, macOS, and Linux and includes
built-in libraries, debugging tools, and an easy-to-use code editor.
Arduino IDE supports C and C++ programming and generates a HEX file that is uploaded to the
microcontroller. It consists of two main parts:
• Editor – For writing code (sketch)
• Compiler/Uploader – For compiling and uploading the code to the board

It supports multiple Arduino boards such as Arduino Uno, Nano, Mega, and also supports ESP32
boards through additional board manager installation.

1. Connecting ESP32 to Arduino IDE:


To use ESP32 boards with Arduino IDE, the ESP32 board package must be installed from the
Boards Manager.
o Install ESP32 board URL in “Preferences” → Additional Board Manager URLs
o Open “Boards Manager” → search ESP32 by Espressif Systems → Install
o Select board: ESP32 DevKit V1
o Connect ESP32 via USB cable
o Select appropriate Port (COM port)
o Upload code normally using the Upload button

2. Connecting Arduino Nano:


o Select board: Arduino Nano
o Processor: ATmega328P (Old Bootloader) or ATmega328P depending on module
o Connect via mini-USB cable
o Select correct COM port
o Upload code

24
3. Connecting Arduino Uno R3:
o Select board: Arduino Uno
o Connect via USB Type-B cable
o Select correct Port
o Upload the program directly
The Arduino IDE environment simplifies code uploading for all three microcontrollers used
in the project—ESP32 DevKit V1, Arduino Nano,

2. Cirkit Designer

Fig 3.2: Cirkit Designer


Circuit Designer is a graphical electronic circuit simulation and documentation tool used for
designing, visualizing, and analyzing electronic circuits. It helps users create professional circuit
diagrams, breadboard layouts, and wiring schematics required for academic projects and
hardware documentation.

Circuit Designer provides a drag-and-drop interface with symbols for microcontrollers, sensors,
LEDs, power modules, and other components, allowing students to build clean and accurate
circuit representations.

Features:
1. Schematic diagram creation

2. Breadboard layout visualization

3. Electronic component library

4. Auto-routing & wiring support

5. Export options (PNG, JPG, PDF)

6. Ideal for academic documentation and project presentations

Use in This Project:


Circuit Designer was used in this project for the following purposes:

o To create neat and well-structured schematic diagrams of all circuits.

o To plan and visualize breadboard connections before actual wiring.

o To avoid hardware errors by verifying component placements and wiring digitally.

25
CHAPTER IV
Implementation And Working of the Proposed System

1. Proposed System

Fig 4.1.1: Proposed System Designed using Cirkit Designer


26
Working Process of overall system:

The proposed smart home system is a modular, sensor-based automation platform that integrates
local microcontroller control with Wi-Fi connectivity for enhanced safety, convenience, and
energy efficiency. Individual modules such as lighting, security, garage automation, and access
control operate independently using Arduino (UNO/Nano) or ESP32 controllers. Various sensors
continuously monitor environmental conditions and provide inputs to the microcontrollers, which
process the data using preset logic and control actuators like relays, LEDs, and motors. The
ESP32 hosts a web server that allows users to remotely monitor and control appliances over a
local Wi-Fi network. Efficient power management is achieved using regulated supplies and a
solar-powered battery system for terrace lighting. Built-in safety features and autonomous
operation ensure reliable and secure system performance.

2. Working Process of Individual Components:

1. Solar Powered Terrace Light:

Fig4.2.1: Proposed system for LDR Light

i. The solar panel converts sunlight into electrical energy and charges the
rechargeable battery through the charging circuit.
ii. The LDR continuously senses ambient light intensity and produces a
corresponding voltage signal.
iii. The microcontroller reads the LDR analog value and compares it with a preset
threshold level.
iv. When light intensity falls below the threshold (night condition), the controller
activates the relay
v. The terrace LED is powered by the battery and turns ON automatically.
vi. When daylight returns, the controller switches OFF the relay and the LED
remains OFF to conserve power.

27
Working Flow of the Circuit

Fig.4.2.2: Flowchart for Solar Powered Terrace Light

2. Flame & Gas Detection System:

Fig 4.2.3: Gas Detection System

28
Fig.4.2.4: Flame Detection System

i. The gas sensor continuously monitors the presence of combustible or harmful


gases in the environment.
ii. The flame sensor detects infrared radiation emitted by fire.
iii. Sensor outputs are read by the microcontroller through analog and digital input
pins.
iv. The controller compares sensor readings with predefined safety threshold values.
v. If gas leakage or flame is detected, the controller activates alert indicators (LED
& buzzer).
vi. The detection status is displayed locally and can be transmitted to the main
controller for further action.

Working Flow of the Circuit

Fig 4.2.5: Flowchart for Flame & Gas Detection System


29
3. Smart Garage System:

Fig 4.2.6: Smart Garage System


i. The ultrasonic sensor continuously emits ultrasonic pulses and receives reflected echoes.
ii. The microcontroller calculates the distance of the object using echo time.
iii. When a vehicle comes within the preset distance range, the controller detects vehicle
presence.
iv. The controller sends a control signal to the servo motor.
v. The servo motor rotates and opens the garage door.
vi. After a fixed delay or once the vehicle passes, the controller commands the servo to close
the door automatically.

Working Flow of the Circuit

Fig.4.2.7: Flowchart for Smart Garage System

30
4. Web Controlled LEDs and Laser Security System

Fig 4.2.8: Web Controlled LEDs

Fig 4.2.9: Laser Security System

i. The ESP32 connects to the local Wi-Fi network and starts an embedded web server.
ii. The user accesses the web dashboard using a browser and sends LED ON/OFF
commands.
iii. Based on the received command, the ESP32 toggles the respective GPIO pins to control
LEDs via relays.
iv. The laser continuously projects a beam onto the LDR or photodiode sensor.
v. If the laser beam is interrupted, the sensor output changes immediately.
vi. The ESP32 detects the interruption and triggers an intrusion alert indication.

31
Working Flow of the Circuit:

Fig 4.2.10: Flowchart for Web Controlled LEDs and Laser Security System

5. RFID Door Lock and Motion Sensor Light

Fig 4.2.11: RFID Door Lock System

32
Fig 4.2.12: Motion Detector Lights

i. The RFID reader scans the RFID card/tag when it is brought near the reader.
ii. The RFID UID is transmitted to the microcontroller.
iii. The controller compares the UID with stored authorized IDs.
iv. If authorized, the controller activates the relay/solenoid and unlocks the door.
v. The door remains unlocked for a predefined time and then locks automatically.
vi. The PIR sensor detects human motion in the area.
vii. Upon motion detection, the controller turns ON the light automatically.
After no motion is detected for a set time, the light is switched OFF.

Fig 4.2.13: Hardware Model for proposed system

33
3. Codes for ESP32, Arduino UNO and Arduino Nano

i. Code for RFID Door lock and PIR light

Fig 4.3.1: Code 1 of RFID Lock & PIR Light

Fig 4.3.2: Code 2 for RFID Lock & PIR Light

Fig 4.3.3: Code 3 for RFID Lock & PIR Light

34
Fig 4.3.4: Code 4 for RFID Lock & PIR Light

ii. Code for Smart Garage

Fig 4.3.5: Code 1 for smart garage

Fig 4.3.6: Code 2 for smart garage

35
iii. Code for Gas and Flame Sensor

Fig 4.3.7: Code 1 for Gas and Flame Sensor

Fig 4.3.8: Code 2 for Gas and Flame Sensor


iv. Code for Web controlled LED and Laser Security

Fig 4.3.9: Code 1 for Web controlled LED and Laser Security System

36
Fig 4.3.10: Code 2 for Web controlled LED and Laser Security System

Fig 4.3.11: Code 3 for Web controlled LED and Laser Security System

Fig 4.3.12: Code 4 for Web controlled LED and Laser Security System

37
COST OF THE COMPONENTS

SR NO. Name of the Components Cost

1 ESP32 Devkit V1 x 2 700

2 Arduino Nano 250

3 Arduino UNO R3 Free of Cost

4 Flame Sensor 40

5 Gas Sensor (MQ – 135) 150

6 Relay Module 90

7 LDR Module 40

8 5V Solar Panel 90

9 Laser Module 35

10 Ultrasonic Sensor 149

11 PIR Sensor 75

12 RFID 169

13 3.7V Lithium Battery 90

14 Servo Motor 100

15 Buzzer 10

16 LED 40

17 LDR 10

18 Connecting Wires 100

Total Price 2138

38
CONCLUSION

The Smart Home Automation Project successfully demonstrates how modern technology can
transform everyday living into a safer, more convenient, and energy-efficient experience. By
integrating sensors, actuators, and microcontrollers, the system provides automated control over
essential home functions such as lighting, door access, and security. Modules like the RFID-
based door lock, PIR-controlled lighting, and laser/LDR security system operate seamlessly to
ensure safety, comfort, and real-time responsiveness. The modular design allows each subsystem
to function independently while maintaining smooth communication, making the overall system
scalable and easy to maintain. This flexibility ensures that additional features such as fire alarms,
gas detection, smart garage control, or voice-controlled appliances can be incorporated in the
future with minimal effort.

The project’s web-based dashboard enhances usability by offering a centralized interface for
monitoring and controlling multiple devices over a local Wi-Fi network. Users can remotely
manage appliances, check sensor statuses, and receive alerts during security breaches, thereby
increasing convenience and situational awareness. Security features, including motion detection
and laser-based intrusion alerts, combined with the RFID door lock, provide multiple layers of
protection. Meanwhile, energy management is addressed through automated lighting that
operates based on occupancy and ambient light, reducing unnecessary electricity consumption
and promoting sustainability. This integration of automation, security, and energy efficiency
highlights the practical benefits of IoT-enabled smart home systems.

Overall, this project illustrates the potential of combining electronics, microcontrollers, and IoT
technology to create intelligent and connected living environments. It not only improves safety,
convenience, and energy efficiency but also provides a foundation for future advancements in
smart home technology. By demonstrating real-time control, modular expansion, and web-based
monitoring, the system serves as a practical example of how automation can simplify daily life
and enhance quality of living. The Smart Home Automation Project emphasizes the growing role
of technology in modern homes and provides insights into the future of intelligent, responsive,
and sustainable living spaces.

Harsh Sakhardande (234130051)


Harsh Sawant (234130054)
Mohammed Zaid Shaikh (234130055)
Kunal Singh (234130060)
Yogesh Vemula (234130067)

Department of Electronics Engineering,


Veermata Jijabai Technological Institute,
Mumbai.

39
References/Bibliography

1. Arduino IDE Software


[Link]
2. Cirkit Designer
[Link]
3. ESP 32
[Link]
4. Arduino Nano
[Link]
5. RFID Module (MFRC522) Datasheet
NXP Semiconductors, MFRC522 RFID Reader IC Datasheet.
[Link]
6. ESP32 Wi-Fi Library Documentation
Espressif, ESP32 Wi-Fi API Guide.
[Link]
reference/network/esp_wifi.html
7. Arduino MFRC522 RFID Library
GitHub Repository – Miguel Balboa RFID Library.
[Link]
8. ESP32 Servo Motor Control Documentation
Arduino Community, ESP32 Servo Motor Control.
[Link]
9. Webserver Library for ESP32
Arduino ESP32 Core Documentation.
[Link]

40

You might also like