Smart Home
Smart Home
Smart Home
Lab Report On
Smart Home
Submitted By:
Group 6
MD MEHEDI HASAN
Registration No: 2020331075
Members:
Avijit Debnath
Registration No: 2020331025
Khaled Bin
Registration No: 2020331055
Ajor Saha
Registration No: 2020331066
Submitted To:
Abdullah Al Noman
Lecturer
Department of Computer Science & Engineering, SUST
Introduction:
Objective:
The objective of this thesis is to integrate smart parking, advanced lighting control
via Wi-Fi and smartphones, and a robust theft detection system into a seamless,
efficient, and secure smart home environment, aiming to optimize convenience
and energy efficiency while enhancing home security.
Home(front side):
Home(back side):
Hardware Components:
Function: Arduino UNO works as the brain of the robot; controlling the
motor and sensors as per the programmed instructions.
Function: Detects obstacles in the robot's path and sends distance data to
the Arduino. This information is used to stop or navigate around obstacles.
Light Sensor: Measures light intensity using a photo-resistor that adjusts its
resistance based on light levels.
Function: Used in conjunction with a light sensor, this resistor helps stabilise and
adjust the signal output based on the detected light intensity, ensuring accurate
and reliable photo detection in various electronic applications.
ESP8266 NodeMCU:
Function: As the central controller in the project, the NodeMCU connects to Wi-
Fi networks and processes commands from the Blynk app. It controls peripherals
such as relay modules, enabling seamless communication and automation in IoT
applications.
Relay Module:
Gas Detector:
Functionality: Used for safety and monitoring purposes, a gas detector in this
project senses the presence of gases such as carbon monoxide or methane. Upon
detection, it triggers alerts or actions to mitigate risks, ensuring the safety of
occupants in indoor environments
Software Requirement:
Arduino IDE:
software is required for the project. Custom programs according to the project's
requirements have been written using the IDE.
Blynk App:
Description: The Blynk app is a mobile application designed for IoT projects,
providing an easy-to-use interface to control and monitor devices over the
internet. It supports various widgets to create custom control panels.
Functionality: The Blynk app allows users to interact with the NodeMCU via the
internet. Users can toggle buttons on the app to send commands to the NodeMCU,
which then controls the relays to switch the lights on or off.
3. Home Construction:
We selected cardboard to build a demo home to house all components. The
home included motors, sensors, lights, wires, relay modules, a breadboard,
a Wi-Fi module, etc.
● Arduino UNO: Placed at the back of the house (in the storage room)
for aesthetic purposes.
● Servomotor: Positioned in front of the garage for opening and
closing the door.
● Sonar Sensor (HC-SR04): Mounted at the front of the garage for
clear car/obstacle detection, and also placed at the room’s door for
thief detection.
● Light Sensor: Placed on the roof for optimal light detection.
● LED lights: Installed both inside and outside the room to eliminate
darkness.
● ESP8266 NodeMCU and Relay Module: Both positioned near the
Arduino UNO and the power supply area.
● Gas Detector: Installed inside the house to detect gas leaks and
ensure fire safety.
● External Power Supply: Positioned at the back of the house, near
the Arduino and Relay Module, to ensure uninterrupted power
supply.
A simplified circuit diagram and also a diagram of all the connections has
been given below.
Figure: Connections of the components(without wifi module)
● LED Pins:
○ LED Pin 1: D0 (Mapped to ledPin1)
○ LED Pin 2: D1 (Mapped to ledPin2)
○ LED Pin 3: D2 (Mapped to ledPin3)
● Relay Pins:
○ Relay Pin 1: D3 (Mapped to relayPin1)
○ Relay Pin 2: D4 (Mapped to relayPin2)
○ Relay Pin 3: D5 (Mapped to relayPin3)
Functionality:
Initial Tests:
Integrated Testing:
Troubleshooting:
Final Assembly:
Conclusion:
In the process of smartening the home, we encountered challenges that
contributed to refining the final product. This project showcases the integration
of various electronic components to achieve home automation. It highlights the
practical applications of IoT and serves as a foundational exercise in
understanding autonomous systems and sensor integration principles.