Professional Documents
Culture Documents
Home Report
Home Report
Home Report
The Internet of Things (IoT) connects devices and devices to the Internet network so that
websites and smartphone apps, tools and devices can be remotely controlled through code and
algorithm frameworks for artificial intelligence issues. To control. If we want to build modern
systems using the Python algorithm, we have a Wi-Fi or Ethernet connection connected to our
tools, devices and devices that control them via smartphone apps or websites. This is actually a
simple definition of IoT. Instead of using IoT as a smart home lamp or other home appliance, it
can be used as a security system or industrial use system, for example, the main building door or
automatic industrial machine self-opening of the. Turn off, be fully operational or even control
Internet and communication ports. And more ideas can be created using IoT technology. A large
industrial plant or government agency has too many lamps. Employees sometimes forget to close
them at the end of the day. This research suggests energy-saving solutions while ensuring the
safety of building lighting control with your smart home through the Blank app. The lamp can be
controlled simultaneously in a special electrical installation building with a switch and a blank
app. This research offers a simple smart home prototype, or an easy way to handle loads, usually
on Wi-Fi and at low cost. In this home automation system. We have connected 6 home
appliances like fans, lamps, street lights to the relay using the free app. The ESP8266 MCU Wi-
Fi module node receives wireless commands from a smartphone via the Internet. We need the
best IoT platform to encode the on / off signal and send it to the server and ESP 8266 board. This
project requires internet connectivity and cannot work without internet connection.
CHAPTER # 01
1 INTRODUCTION
1.1 Introduction
The load controlled by the computer system has many advantages over the load controlled
manually. Many programs and applications today use artificial intelligence projects to better
control things using Python code or algorithms. To save energy and easily monitor loads, this
research suggests a smart home project based on IoT technology. This is a smart home Internet
of Things (IoT) project that controls loads with an internet connection through wireless fidelity
Wi-Fi. A smartphone connected to the internet with a flashing app as the control panel and a
Node MCU microcontroller kit as a controller that receives control commands via a Wi-Fi signal.
The Node MCU kit is built with the Wi-Fi receiver -Fi ESP 8266 capable of processing and
analyzing Wi-Fi signals to insert a microcontroller. The Wi-Fi receiver and the microcontroller are
integrated in a kit that will be used as an IoT project. This is called the MCU node.
A Wi-Fi receiver is required to connect the system to the Internet. In my case, I used ESP8266
which is attached to the NodeMCU board as a built-in that runs firmware with ESP8266.
Firmware is low level computer software.
Node MCU is encoded via Arduino Integrated Development Environment (IDE) via Universal
Serial Bus Port (USB) to tell Node MCU what to do. I want to control the four-channel relay kit
through the Blank phone app and display the temperature. Which is measured with an LM35
sensor.
1.2 Background
The concept of "home automation" has been around for years. "Smart Home", "Intelligent
Home" are the terms used to introduce the concept of home networking devices. Home
automation systems (HAS) include central control and remote monitoring of lighting, security
systems and other devices and systems inside. HAS enables energy efficiency, improves safety
systems and certainly provides comfort and convenience to consumers. In today's emerging
market, HASs are gaining popularity and attracting the interest of many consumers. HAS come
with their own challenges. Basically, in the current era, the end users especially the elderly and
the disabled, although they have benefited greatly, do not seem to accept the system due to
complications and cost factors.
1.5 Scope
The going with stage for home robotization advertise will happen subject to a couple of key
overhauls in the progression open in Automation, for example, improvement in Wireless
Automation blueprints and moreover bringing down of regard appears as the market starts
perceive home mechanization use in more noteworthy volumes. A couple of examples that we
foresee for this time of the business are,
Big associations like Philips, Siemens and Schneider will as time go on bring out truly mass-
market mechanization things with interfacing with UI in any case at lower esteem point as
contrast with today, and more people will be able to bear the cost of the things.
Solution commitments will bit by bit move to an all the more straightforward structure, where
next to two or three key parts, customers will have the ability to buy and use the
Automation things themselves without the guide of any specific ace.
Future Scope for the home automation system involves making homes even smarter. Homes
can be interfaced with the sensors including the motion sensors, light sensors and
temperature sensors and thus this may provide the automatic toggling of the devices
according to the conditions.
More energy can be conserved by ensuring occupation of the house before turning on devices
and checking the brightness and turning off the light if not necessary.
The system can be integrated closely with the home security solutions enhancing the safety
for home owners.
1.6.2 Design
This phase was, designing layout of the application, and the necessary features to be included.
This involved the complete hardware assembly and installing the code to Node MCU. The
power strip was designed to connect the home appliances that can be controlled via GPIO pins.
1.7.4 Security
As the connection of the control of the HAS is established over a secure network the system
ensures security to the maximum extent.
Because of the mobile phone and GSM technology, the GSM based home automation is lure to
research. The SMS based home automation, GPRS based home automation and dual tone multi
frequency (DTMF) based home automation, these options we considered mainly for
communication in GSM. The home sensors and devices interact with the home network and
communicates through GSM and SIM (subscriber identity module). The system use transducer
which convert machine function into electrical signals which goes into microcontroller. The
sensors of system convert the physical qualities like sound, temperature and humidity into
some other quantity like voltage. The microcontroller analysis all signal and convert them into
command to understand by GSM module. Select appropriate communication method among
SMS, GPRS and DTFC based on the command which received GSM module.
This system uses mobiles or computers to control basic home control and function
automatically through internet from anywhere around the world globally, an automated home
is sometimes called a smart home. The proposed system is a distributed home automation
system, consists of server i.e., NodeMCU Esp-8266 Wi-Fi module, sensors, Relays. The Blynk
Server controls and monitors the various sensors, and can be easily configured. It can be
handling 14 Loads; it can be a sensor as input or can be a relay which will act as output. The
NodeMCU board, with built in Wi-Fi module acts as web server. Automation System can be
accessed from the using Blynk which is available on play store, Mobile is used to control device
connected to the internet with appropriate Blynk Community App, Blynk Server.
CHAPTER # 03
3 METHODOLOGY
3.1 Methodology
Make connection as per circuit diagram, make connection on NodeMCU and connect NodeMCU
to the Wi-Fi using hotspot/Router. Then connect the NodeMCU pins output to the relay driver
circuit then start programming the NodeMCU module. Programme the NodeMCU using
Arduino IDE Software. Download the Blynk library zip file, install it from add library files.
Download the NodeMCU boards from preferences, by inserting the library link in it. Set the
output of NodeMCU (D0 – D14) for different control function. Compile the typed programme
check whether er are occur or not…. Upload the Programme onto NodeMCU using micro-type
USB cables. Then connect the NodeMCU module to the Internet using Router/Hotspot. Now
pair the NodeMCU module with Android application. I.e., Blynk App.
3.1.1 Flow of The System
The system is based on NodeMCU board as an internet of things system. The NodeMCU is
connected to the internet from the hotspot of the smart phone via WIFI connection as the
NodeMCU has ESP8266 circuit to connect with the internet.
NodeMCU to be connected to the hotspot of the smart phone, needs to be identified to the
name of hotspot, the password and token code letting the server of Blynk connects them
together. You may need the computer once to transfer code from Arduino IDE to the NodeMCU
kit to prepare the software part of the project. Figure 1 shows that the server of Blynk
application will process the smartphone-NodeMCU connection. Blynk libraries are ZIP files can
be downloaded from GitHub website to be imported to the Arduino IDE library.
Blynk server will check for internet connection, NodeMCU with android hotspot, the NodeMCU
code includes the token code, the name of hotspot and its password. The information included
to the code must be match with the hotspot information to allow ESP8266 connect with the
WIFI to be as a channel to exchange commands between smart phone and NodeMCU.
Remaining processes are just commands sent from Blynk application to NodeMCU to control
loads those are connected to the relay kit as shown in Figure 2. And sensor output value is sent
reverse to the Blynk application from NodeMCU kit.
Start
Y
Bulbs ON/OFF from
Blynk application
Bulbs ON/OFF
controlled by relay kit
End
3.1.2 Block Diagram of the System
3.1.2.1 Smart Phone
Used for controlling Purpose, for giving command and gain output, for this Blynk Android app
is required.
Basically, the output of microcontroller is in Mili-volts so this output volt is not sufficient to run
the bulky load output.
So as to run the appliances on 230v we require a Relay module so the output is fed to the relay
module according to given input to the relay module it will generate output and drive
various appliances and load e.g., Lamp, Fan, Tube light, T.V, etc.
3.1.2.4 Output
These are the output Generated from the given input by the user The user can set the various
output sections and can gain output through any of the section like Home appliance A for lights,
Home appliance B for fans, Home appliance C for T. V .and many more……….
Home Appliance A
Home Appliance B
Home Appliance C
3.1.3.3 Applications/Appliances
The Load Can be of any type which is the output of the circuit. The Output of relay drives
the appliances. i.e switch the Loads.
Fan
Led Bulbs
Computers
Motors
Pumps
LED
Air Conditioner
Refrigerator
Switches etc.…………….
3.1.4 Circuit Diagram
So as to run the appliances on 230v we require a Relay module so the output is fed to the relay
module according to given input to the relay module it will generate output and drive various
appliances and load e.g., Lamp, Fan, Tube light, T.V, etc.
3.1.4.3 Output
These are the output Generated from the given input by the user. The user can set the various
output sections and can gain output through any of the section like Home appliance A for lights,
Home appliance B for fans, Home appliance C for T. V .and many more……….
3.1.5 Debug Circuit Diagram
3.2.1.1 Features
3.2.1.2 Specifications
Voltage: 3.3V.
Wi-Fi Direct (P2P), soft-AP.
Current consumption: 10uA~170mA.
Flash memory attachable: 16MB max (512K normal).
Integrated TCP/IP protocol stack.
Processor: Tensilica L106 32-bit.
Processor speed: 80~160MHz.
RAM: 32K + 80K.
GPIOs: 16 (multiplexed with other functions).
Analog to Digital: 1 input with 1024 step resolution.
+19.5dBm output power in 802.11b mode
802.11 support: b/g/n.
Maximum concurrent TCP connections: 5.
3.2.2 LCD
A liquid crystal display (LCD) is a flat panel display or other electronic modulation optics using
optical modulation properties of liquid crystal. Rather than emitting light directly, liquid crystal
created monochrome image or a color with the help of backlight or a mirror. A liquid crystal
display is used to flash any image (such as a general-purpose computer monitor) or a fixed
image that can display or hide low information content, such as preset words, numbers, and 7-
segment displays, such as digital clocks. They used the same basic technique, except that any
image consists of a large number of small pixels, while the other displays have larger elements.
3.2.3.2 Principle
From the picture below, you can see that when the signal port is at low level, the signal light
will light up and the opto-coupler Relay (it transforms electrical signals by light and can isolate
input and output electrical signals) will conduct, and then the transistor will conduct, the relay
coil will be electrified, and the normally open contact of the relay will be closed. When the
signal port is at high level, the normally closed contact of the relay will be closed. So you can
connect and disconnect the load by controlling the level of the control signal port.
3.2.3.4 Features
Size: 75mm (Length) * 55mm (Width) * 19.3mm (Height)
Weight: 61g
PCB Color: Blue
There are four fixed screw holes at each corner of the board, easy for install and fix.
The diameter of the hole is 3.1mm
High quality Single relay is used with single pole double throw, a common terminal,
a normally open terminal, and a normally closed terminal
Optical coupling isolation, good anti-interference.
Closed at low level with indicator on, released at high level with indicator off
VCC is system power source, and JD_VCC is relay power source. Ship 5V relay by
default. Plug jumper cap to use
The maximum output of the relay: DC 30V/10A, AC 250V/10A
The regulated power supply will accept an AC input and give a constant DC output.
So, we have powered the Kit/ set-up with the Adaptor which gives exact 5V output voltage we
have used the micro-type USB cables for connection of Controller with Adaptor.
3.2.4.3 Description
The basic building blocks of a regulated DC power supply are as follows:
Step-down transformer
Rectifier
DC filter
Regulator
3.2.4.3.2 Rectification
Rectifier is an electronic circuit consisting of diodes which carries out the rectification process.
Rectification is the process of converting an alternating voltage or current into corresponding
direct (DC) quantity. The input to a rectifier is ac whereas its output is unidirectional pulsating
DC. Usually, a full wave rectifier or a bridge rectifier is used to rectify both the half cycles of
the ac supply (full wave rectification). Figure below shows a full wave bridge rectifier.
3.2.4.3.3 DC Filtration
The rectified voltage from the rectifier is a pulsating DC voltage having very high ripple
content. But this is not we want; we want a pure ripple free DC.
3.2.4.3.4 Regulation
This is the last block in a regulated DC power supply. The output voltage or current will change
or fluctuate when there is change in the input from ac mains or due to change in load current
at the output of the regulated power supply or due to other factors like temperature changes.
This problem can be eliminated by using a regulator. A regulator will maintain the output
constant even when changes at the input or any other changes occur. Transistor series
regulator, Fixed and variable IC regulators or a zener diode operated in the zener region can be
used depending on their applications. IC’s like 78XX and 79XX are used to obtained fixed values
of voltages at the output waveform. Hence a filter is used. Different types of filters are used
such as capacitor filter, LC filter, Choke input filter, π type filter.
Node MCU Amica is an ESP8266 Wi-Fi module-based development board. It has got
Micro USB slot that can directly be connected to the computer or other USB host
devices. Ti has got 15X2 header pins and a Micro USB slot, the headers can be
mounted on a breadboard and Micro USB slot is to establish connection to USB host
device. It has CP2120 USB to serial converter.
In order to install CP2120 (USB to serial converter), user is needed to download the
driver for the same.
Once user downloads drivers as per its respective operating system, the system
establishes connection to Node MCU.
The user needs to node down the COM post allotted to newly connected USB device
(Node MCU) from device manager of the system. This com port number will be required
while using Node MCU Amica.
To begin with the latest Arduino IDE version, we’ll need to update the board manager with a
custom URL. Open up Arduino IDE and go to File > Preferences. Then, copy below URL into the
Additional Board Manager URLs text box situated on the bottom of the window:
Then navigate to the Board Manager by going to Tools > Boards > Boards Manager. There
should be a couple new entries in addition to the standard Arduino boards. Filter your
search by typing ESP8266. Click on that entry and select Install.
Before we get to uploading sketch & playing with LED, we need to make sure that the board is
selected properly in Arduino IDE. Open Arduino IDE and select Node MCU 0.9 (ESP-12 Module)
option under your Arduino IDE > Tools > Board menu.
Now, plug your ESP8266 NodeMCU into your computer via micro-B USB cable. Once the board
is plugged in, it should be assigned a unique COM port. On Windows machines, this will be
something like COM#, and on Mac/Linux computers it will come in the form of
/dev/tty.usbserial-XXXXXX. Select this serial port under the Arduino IDE > Tools > Port menu.
Also select the Upload Speed: 115200
1. The line which says ‘char auth [] = “YourAuthToken”, replace YourAuthToken part with
your Blynk’s authentication token that was generated by the Blynk server.
2. The line which says char ssid [] = “YourNetworkName”, replace YourNetworkName part
with the name of Wi-Fi network that the Node MCU must connect to.
3. The line where it says char pass [] = “YourPassword” and replace the YourPassword part
with the password of the Wi-Fi network.
The code is ready to be uploaded to the hardware. On clicking upload button, the code
is uploaded to Node MCU and the next time it’s powered on, it automatically connects
to the assigned Wi-Fi network.
CHAPTER # 04
4 RESULT AND DISCUSSION
5.1 Limitations
Android devices having lower API version than 16 requires internet access to convert the speech
data to string data. Currently, the application is made for Android Smart Phones; other OS
platform doesn’t support our application. During voice mode, external noises (voice) may affect
our result. The speech instruction that we command in our voice mode may not give exact
result as expected. There hence lies an ambiguity in result.
5.2 Conclusion
Based on the results of analysis of all data obtained by testing the smart home with the Internet
of Things based NodeMCU ESP6288 module, the following conclusions can be drawn:
Smart Home with Internet of Things (IoT) based NodeMCU ESP8266 Module can be
designed with various components hardware and software support so that it can be
arranged into a smart home system that is controlled with the Blynk android application
according to what is intended.
The Smart Home with this Internet of Things (IoT) based NodeMCU ESP8266 Module can
be implemented to control some of the home electronics performance including lighting
controls, fan control, temperature monitoring, early warning systems and etc.