Report Phase 2
Report Phase 2
Report Phase 2
A
PROJECT PHASE -2 REPORT
ON
“SMART HOME
LIGHTS CONTROL BY
IOT SYSTEMS”
A Dissertation submitted in the partial fulfillment of the requirement for the award of the Degree
of
BACHELOR OF ENGINEERING
IN
MECHANICAL ENGINEERING
Submitted By
PRATHAMESH (3BK20ME006)
OMKAR (3BK18ME019)
RAHUL (3BK21ME400)
BASAVAKALYAN – 585327
ISO 9001:2015 CERTIFIED
2…………………………………..
ACKNOWLEDGMENT
It gives us immense pleasure to write an acknowledgement to this project, contribution of all people
who helped me realize it.
We would like to sincerely thank our Project Guide Prof.Syed Maheboob patel, and Project
Coordinator Prof.Praveen Belkire for their valuable guidance, constant assistance, support,
endurance and constructive suggestions for the betterment of the project, without which this
project would not have been possible.
We would like to convey heart full thanks to our Head of Department Prof.Ramesh Bhosle for
giving us the opportunity to embark upon this topic and for her continue encouragement
throughout the preparation of this presentation.
We acknowledge and expressour sincere thanks to our beloved Principal Dr. Ashok kumar Vangeri
for supporting our in the academic endeavors.
We also indebted to our friends for their continued moral and material support throughout the course
of the project report and in helping us finalize the presentation.
Our heartfelt thanks to all the staff members of mechanical department, who have contributed bits,
bytesand words to accomplish this project.
PRATHAMESH (3BK20ME006)
OMKAR (3BK18ME019)
RAHUL (3BK21ME400)
DECLARATION
We here by declare that the Project report entitled “SMART HOME LIGHTS CONTRL BY IOT
SYSTEM” submitted by us to Institution/Visvesvaraya Technological University, Belagavi in Partial
fulfillment of the requirement for the award of the degree of BE in MECH is a record of bonafide Project
work carried out by us under the guidance of Prof.Syed Maheboob patel and Project coordinator Prof.
Praveen Belkire.
We further declare that the work reported in this project followed the guidelines provided by the VTU
/Institute in preparing the project report.
This project explores the implementation of a smart home lighting control system using Internet of Things
(IoT) technology. The system integrates sensors and actuators to enable automated and remote management
of lighting conditions. Through a user-friendly interface, residents can customize settings, schedule lighting
events, and monitor energy consumption. The IoT-based architecture enhances efficiency, convenience, and
energy conservation, contributing to a more sustainable and intelligent home environment.
SL.NO CONTENTS Page No
01 CHAPTER 1
03 CHAPTER 3
04 CHAPTER 4
ABOUT ARDUINO NANO
05 CHAPTER 5
ABOUT HC-05 BLUETOOTHMODULE
06 CHAPTER 6
ABOUT RELAY MODULE
07 CHAPTER 7
ABOUT RELAY POWER SUPPLY
08 CHAPTER 8
ABOUT IOT BASE HOME LIGHT CONTROLLING
09 CHAPTER 9
PROGRAMMING ARDUINO NANO
10 CHAPTER 10
MIT APP INVENTOR
11 CHAPTER 11
What is Automation ?
Automatic with operation it’s called as automation
Histroy of automation ?
Manual Process
Pneumatic Process
Relay Control Process
Micrologic control base Process
Arduino Nano
Bulb Holder
• Relay modules contain other components than the relay unit. These
include indicator LEDs, protection diodes, transistors, resistors, and
other parts. But what is the module relay, which makes the bulk of the
device? You may ask. Here are facts to note about it:
• AC to DC
• DC to DC
• DC to AC
• AC to AC
• A basic isolated AC to DC switched-mode power supply consists of:
• The Arduino Nano, which functions as the system’s brain, is at its center.
The HC-05 Bluetooth module is then included, creating a wireless
communication link between the Arduino and the Android application.
The circuit incorporates a 4-channel relay module for controlling
numerous appliances. The load is immediately linked to the neutral
when the power source, which supplies 220 volts, is put into the system.
The usually open output of the relay is connected to the load, and the
line from the power supply is connected to the relay’s common terminal.
A 5-volt, 2-ampere power adapter powers the whole arrangement,
providing a steady source of power for the Arduino Nano, Bluetooth
module, and relay module. The MIT App Inventor website was utilized
to create the Android app, which serves as the linked appliances’ user
interface. After gaining an understanding of the circuit layout, the next
step is to physically connect the hardware parts according to this
schematic in order to activate the system. This thorough integration
creates a unified home automation system by enabling smooth
communication between the Arduino, Bluetooth module, and Android
application.
CHAPTER 9
PROGRAMMINGARDUINO NANO
#include <EEPROM.h>
#include<SoftwareSerial.h>
voidsetup(){
Serial.begin(9600);
BT_Serial.begin(9600);
load1 = EEPROM.read(1);
load2 = EEPROM.read(2);
load3 = EEPROM.read(3);
load4 = EEPROM.read(4);
power = EEPROM.read(5);
delay(500);
}
voidloop() {
if(BT_Serial.available()>0){bt_data = BT_Serial.read();}
bt_data = '0';
if(power==1){
digitalWrite(Relay1, 1);
digitalWrite(Relay2, 1);
digitalWrite(Relay3, 1);
digitalWrite(Relay4, 1);
}else{
digitalWrite(Relay1, load1);
digitalWrite(Relay2, load2);
digitalWrite(Relay3, load3);
digitalWrite(Relay4, load4);
}
BT_Serial.print(power); //senddistance to MIT App
BT_Serial.print(";");
BT_Serial.print(load1); //senddistance to MIT App
BT_Serial.print(";");
BT_Serial.print(load2); //send distance to MIT App
BT_Serial.print(";");
BT_Serial.print(load3); //senddistance to MIT App
BT_Serial.print(";");
BT_Serial.print(load4); //senddistance to MIT App
BT_Serial.println(";");
delay(500);
}
Explanation :-
• To maintain the load’s status, the EEPROM library is first incorporated
into the Arduino code that is given. The configuration of the system is
maintained even after a power cycle thanks to the EEPROM, which is
used to save the status of each load. In addition, the Bluetooth module
(HC-05) does not need to be detached during code upload since the
SoftwareSerial library is used to create a custom serial (BT_Serial).
Initialization is done for the Bluetooth data and load status variables, as
well as the pin configurations for the 4-channel relay module. The setup
step sets the relay pin configuration, baud rates for the built-in serial
and Bluetooth serial, and starting states for the loads depending on
EEPROM data.
• In the loop section that follows, the code reads data from the Bluetooth
serial continually. Corresponding actions are performed based on the
received data (A, B, C, D, or E, reflecting various loads and the power).
For example, ‘A’ indicates a request to activate Load 1 (a light, for
example), change its variable to 0 and update the EEPROM
appropriately. On the other hand, ‘a’ denotes a request to set its variable
to 1 and disable Load 1. The power state (E) and the other loads (B, C,
D) follow a similar logic, offering a complete control system.
• With the help of Bluetooth instructions, the code updates load statuses
and power circumstances in a methodical manner, guaranteeing
synchronizationbetweenthe Arduino and the Android application. Real
time updates on the Android app are made possible by the code, which
prints the current power and load status. Furthermore, a 500
millisecond delay is included to ensure that the loop runs smoothly. The
software component for the home appliance control system is then fully
integrated when the code is uploaded to the Arduino Nano using the
Arduino IDE.
CHAPTER 10
MIT APP INVENTOR
• The MIT App Inventor was used to create the companion Android
application for the home appliance control system. This tool offered an
easy-to-use interface for designing graphical user interfaces without
requiring a deep understanding of programming. To start the process, go
to the MIT App Inventor website, sign in using your Gmail account, and
start a new project. After that, the graphical user interface (GUI) for the
app was built, with buttons to regulate different loads, a button to link
Bluetooth, and labels to show the current state of each load and power.
The MIT App Inventor’s blocks component, which depicts the app’s visual
programming logic, was demonstrated. Each block was well explained,
showing how it worked with the Bluetooth module and converted user
inputs into commands for the Arduino. Users received real-time feedback
on the application’s interface through the explanation of the color-coded
text updates based on the power and load condition. Users were guided
through the steps to download and install the APK file from MIT App
Inventor on an Android device by outlining the process of producing the
APK file. In order to connect the Bluetooth module to the Arduino-based
home appliance controlsystem, the last step was to pair it with the app. All
things considered, the combination of the Arduino hardware with the MIT
App Inventor provided a complete home automation solution, enabling
consumers to simply operate their appliances using both voice and
physical controls.
• Here is the blocks you need on the MIT app inventor. It is fairly
simple. You need a list picker, two buttons and a Bluetooth
client, which can be picked easily from the 'Design' section.
• You can name the components however you like. I just stuck to
simple names like Button1 and Button2, as can be seen. You can
rename your components on the pane which is the furthest to the
right. You can choose components and designs on the pane
furthest to the left.
• The two panes in the middle are for the design and component
listing. I have gone for a very simple design, as can be seen. A list
picker is essential. This is what I have named 'Bluetooth'.
• We will code so that when this button is pressed, it displays all
Bluetooth devices nearby. The Bluetooth client can be seen in one
of the middle panes, listed. It is not on the screen, as the user will
not be able to see it, but it is what will be tracking other
Bluetooth devices. The 'ON' and 'OFF' I have used are the buttons.
• Then, the rest is very simple! All you have to do is download
the MIT app inventor companion app onto your phone, and
then scan a code from the website, and you can have the app on
your phone.
• You just have to open your app which you made on the website,
click on connect, and then select AI companion. Then, you just
just scan the QR code from your phone's MIT app, and then you
will have the app on your phone, but only temporarily. You
have to scan every time you want to use it. It will stay open for
a while, but it will lose connection if you close it, or leave it
inactive for long.
• Next, just click on the list picker, and choose a Bluetooth device.
The password for HC-05 is generally 1234 or 0000. Connect to
the HC-05, and then click on the 'ON' and 'OFF' buttons (or
however you have named them) and it will work, if you have
connected the circuit properly!
• Once you have learnt this, you can use the same principle to
make other amazing projects using Bluetooth! Just remember
to send text from the module to Arduino via the app, and then
program the Arduino to make something happen! It is as easy
as programming a button-but you just have to be careful to use
'char' with text and not 'int' while programming. I made that
mistake! I plan to make a Bluetooth-controlled robot next,
which you can control from your phone.
CHAPTER 11
HOW TO OPERATE APP
Step 1
Click on Bluetooth button
Select HC05 Module
Step 2
Next Click on Power ON
button
Step 3
Next Click on Any ON
button its ON the OUTPUT
Step 3
• Energy Efficiency: Home automation can also help you save energy and
reduce your carbon footprint. For example, you can set your smart
thermostat to automatically adjust the temperature based on whether
you’re at home or away, or to turn off the lights in rooms that are not in
use.
• Cost Savings: Finally, home automation can also save you money in the
long run. By reducing your energy consumption and automating your
home security, you can lower your monthly utility bills and potentially
even reduce your insurance premiums.
• Disadvantages of Home Automation:
• Cost: One of the main drawbacks of home automation is the cost. Smart
devices and systems can be expensive, and the cost can add up quickly
if you want to fully automate your home.
2.
Majid Al Kuwari, Ramadan Abdulrahman et al., "Smart-Home
Automation using IOT-based Sensing and Monitoring Platform", IEEE
12th International Conference on Compatibility Power Electronics and
Power Engineering, 2018.
Show in Context View Article
Google Scholar
3.
Kishore. P. T. Veeramanikandasamy, K. Sabbath and S. Veerakumar,
"Internet of Things based Low-Cost Real-Time Home Automation and
Smart Security System", International Journal of Advanced Research in
Computer and Communication Engineering, vol. 6, no. 4, 2017.
Google Scholar
4.
International Journal of Advanced Research in Computer and
Communication Engineering, vol. 6, no. 4, April 2017.
Show in Context Google Scholar
5.
Son SeungChul, Kim NakWoo, Lee ByungTak, Cho Chae Ho et al., "A
Time Synchronization Technique for CoAP based Home Automation
Systems", IEEE Transactions on Consumer Electronics, February 2016.
Show in Context Google Scholar