SBL Iii 4
SBL Iii 4
SBL Iii 4
By
AKSHAY DESAI
University of Mumbai
Department of Electrical Engineering
A. C. Patil College of Engineering,
Kharghar Navi Mumbai-
410210 Accredited by NAAC 2021-22
ABSTRACT
This project presents the overall design of Home Automation System (HAS) with low cost and
wireless system. It specifically focuses on the development of an IOT based home automation
system that is able to control various components via internet or be automatically programmed to
operate from ambient conditions. In this project, we design the development of a firmware for smart
control which can successfully be automated minimizing human interaction to preserve the integrity
within whole electrical devices in the home. We used Node MCU, a popular open source IOT
platform, to execute the process of automation.
Different components of the system will use different transmission mode that will be implemented
to communicate the control of the devices by the user through Node MCU to the actual appliance.
The main control system implements wireless technology to provide remote access from smart
phone. We are using a cloud server-based communication that would add to the practicality of the
project by enabling unrestricted access of the appliances to the user irrespective of the distance
factor. We provided a data transmission network to create a stronger automation. The system
intended to control electrical appliances and devices in house with relatively low-cost design, user-
friendly interface and ease of installation. The status of the appliance would be available, along with
the control on an android platform.
This system is designed to assist and provide support in order to 1fulfil the needs of elderly and
disabled in home. Also, the smart home concept in the system improves the standard living at home.
List of Figures
Fig 1.1 Model of phases in project management 5
Fig 2.1 Working of IOT enabled care devices 8
Fig 3.1 Block diagram of proposed system. 9
Fig 3.2 Creating an account and generating unique ID in Blynk Server. 10
Fig 3.3 Setup to control Node MCU from Blynk application 10
Fig 3.4 Connection diagram of Node MCU controlling 4 channel relay modules 11
Fig 4.1 Working principle of Blynk application. 13
Fig 4.2 Voice and switch mode control 13
Contents
Chapter 1 (Introduction)
1.1 Introduction 4
1.2 Background 4
1.3 Project objective 4
1.4 Scope 5
1.5 Project management 5
1.6 Overview and Benefits 6
Chapter 2 (Theory)
2.1 IOT Internet of Things 7
Features of IOT 7
Advantages of IOT 7
Disadvantages of IOT 7
Application grounds of IOT 8
Chapter 3
Block diagram of proposed system 9
Proposed system 9
Overview of the project 9
Circuit diagram 11
• Industrial Automation
For a higher return of investment this field requires both fast developments and quality of products.
This vitality thus coined the term IIOT. This whole schematic is reengineered by IOT applications.
Following are the domains of IOT applications in industrial automation
• Factory Digitalization
• Product flow Monitoring
• Inventory Management
• Safety and Security
• Quality Control
• Packaging optimization
• Logistics and Supply Chain Optimization
• Government and Safety
IOT applied to government and safety allows improved law enforcement, defence, city planning,
and economic management. The technology fills in the current gaps, corrects many current flaws,
and expands the reach of these efforts. For example, IOT can help city planners have a clearer view
of the impact of their design, and governments have a better idea of the local economy.
Chapter 3
Block diagram of the proposed system
*
Figure 3.1 Block diagram of proposed system.
The block diagram gives the functionality of the overall project. The Node MCU unit is the
microcontroller or the main controlling unit of the system. The user uses the mobile application in
setting commands for functioning of the appliances. The mobile application interprets the command
form in user in voice or switch mode and sends signal to the Node MCU unit, over a wireless
network established by Wi-Fi communication. Hence the Wi-Fi module (actually inbuilt into Node
MCU), helps the microcontroller establish Wi-Fi communication with a device and take commands
from an application over wireless network. The Node MCU on further receiving the signal then
turns on/off the appliance with the help of relay. The Node MCU, relay and the final appliances are
physically connected. There is a power supply unit that powers the microcontroller, the relay as
well as the final appliances. There is also a display unit that displays the status of the application.
Proposed system
The android OS provides the flexibility of using the open source. The inbuilt sensors can be
accessed easily. The application used to control the system has the following features.
Android Phone acts as a client and data are sent via sockets programming. The application takes
command from user in two different modes.
• Switch mode: Switch mode uses the radio buttons that are used to control the home appliances. The
radio button sends the status of the switch.
• Voice mode: Voice Mode is used to control the home appliances using voice command. Using the
inbuilt microphone of Smartphone, the application creates an intent that fetches the speech data to
the Google server which responds with a string data. The string data are further analysed and then
processed.
More detailed discussion about the modes of control and how they actually control the system is
discussed if coming chapters.
Overview Of Project
The following describes the process of creating an account in Blynk application and generating
unique ID against a particular device. This ID acts as an identifier for the particular device on the
Blynk server.
Figure 3.2 Creating an account and generating unique ID in Blynk Server.
Once the unique Id is generated the next step would be to include this key into the coding written in
embedded C to establish communication between Node MCU and Blynk Server. The following
describes this process.
Figure 3.4 Connection diagram of Node MCU controlling 4 channel relay modules.
Chapter 4
Principle And Operation
Node MCU is an open source IOT platform. It includes firmware which runs on the ESP8266 Wi-Fi
SoC from Espressif Systems, and hardware which is based on the ESP12 module. The term “Node
MCU” by default refers to the firmware rather than the development kits. The firmware uses the
Lua scripting language. It is based on the eLua project, and built on the Espressif Non-OS SDK for
ESP8266. It uses many open source projects, such as lua-cjson, and spiffs.
Advantages of Node MCU
• Low cost, the Node MCU is less costly compared to any other IOT based device.
• Node MCU has Arduino Like hardware I/O. It is becoming very popular in these days that Arduino
IDE has extended their software to work in the field of ESP 8266 Field module version.
• Node MCU has easily configurable network API.
• Integrated support for Wi-Fi network: ESP 8266 is incorporated in Node MCU, which is an easily
accessible Wi-Fi module.
• Reduced size of board.
• Low power consumption.
Disadvantages of Node MCU
• The operation of the circuit depends on the working internet connection. If the working internet
connection is not available then it will not run.
• Node MCU also depends on the free server provided by the third party, if the free server is not
working then it will not run.
• Node MCU has less resources of official documentation
• Need to learn a new language and IDE
• Reduced pinout
• Scarce documentation
Blynk application
The Blynk application was designed for the primary purpose of Internet of Things. Blynk is a
platform with IOS and Android apps to control Arduino, Raspberry Pi and the likes over the
Internet. It’s a digital dashboard where graphic interface for a prototype can be built by simply
dragging and dropping widgets. It can control hardware remotely, it can display sensor data, can
store and visualize data and possessed a lot more functionality. There are three major components in
the platform:
• Blynk Application: allows to you create amazing interfaces for your projects using various widgets
we provide.
• Blynk Server: responsible for all the communications between the smartphone and hardware. You
can use our Blynk Cloud or run your private Blynk server locally. It’s an open- source, could easily
handle thousands of devices and can even be launched on a Raspberry Pi.
• Blynk Libraries: for all the popular hardware platforms – enable communication with the server and
process all the incoming and outgoing commands.
Every time a radio button is accessed in the Blynk application, the message travels to the Blynk
Cloud, where it finds the specific hardware by the unique generated authentication token. It works
in the same way for the opposite direction. appliances. This is because Wi-Fi has its own
advantages over other wireless communication protocols.
Figure 5.1 Working principle of Blynk application.
Wireless Communication Network
The prototype aims to wireless control over home appliances with the technology of IOT. As
discussed earlier, IOT supports various wireless communication protocols, like Bluetooth, Z-
Wave, Zigbee etc. this prototype uses Wi-Fi as wireless communication network to establish remote access
over home
Voice mode control
The prototype works in both switch mode and voice mode of control. The switch mode is simply be
accessing the radio buttons on the Blynk application, and the process of control has been discussed
earlier in this chapter in the section before. Here we will discuss the voice mode control of the
prototype. We use application IFTTT and Google assistant on smart phone to achieve control by
voice commands. IFTTT stand for ‘If This Then That’, is an interface that provides web based
service in which devices are connected to mobile application.
We cannot connect the Google Assistant to the Node MCU directly, and that is the only reason we
are using the Blynk app. Blynk app can directly connect to the Node MCU and send data to it. So, if
we can send the voice commands interpreted by Google assistant directly to the Blynk app, the
Blynk app can then forward those commands to the NodeMCU. But the problem is Google
Assistant cannot directly understand foreign commands like “turn on the fan” or “turn on relay one”
etc. on its own. So, to solve this we use another intermediate application/website called ‘IFTTT’.
Simply, to control our home appliances over the internet we are using Node MCU and to connect
Node MCU with the home appliances we use a relay board. Now to send on or off signals to the
Node MCU we use our smartphone, and we do this using the Blynk app. But we want to send the on
or off signals using voice commands.