SRP 2
SRP 2
Project report on
DepartmentofElectricalandElectronicsEngineering Geethanjali
Institute of Science and Technology
(Affiliated to Jawaharlal Nehru Technological University, Anantapur) Accredited by
NAAC “A” Grade and NBA
(AUTONOMOUS)
Gangavaram, Kovur, S.P.S.R Nellore, A.P-India. 524137
(AUTONOMOUS)
Gangavaram, Kovur, S.P.S.R Nellore,A.P-India. 524137 Affiliated to J.N.T.U,
Anantapur. [email protected] www.gist.edu.in
Department of Electrical andElectronics Engineering
Certificate
This is to certify that the project work entitled“IOTBased Home Automation Using
NodeMCU and Blynk Application“is the work done by
At a very auspicious moment, my heart full thanks to Dr. T.Ravi Kumar, Professor & Head
of Electrical and Electronics Engineering Department, GeethanjaliInstituteofScienceand Technology,
for giving guidelines and suggestions to complete.
We would like to thank the Teaching & Non- teaching staff of the Department of Electrical
and Electronics Engineering for sharingtheir knowledge with us.
Finally, We are thankful to one and all who contributed to my work directly or indirectly. My
Family Members and Friends receive my deepest gratitude and love for their support throughout my
academic years.
WithGratitude
R .Vamsi (192U1A0234)
Md .Mohid (192U1A0221)
GEETHANJALIINSTITUTEOFSCIENCEANDTECHNOLO
GY
INSTITUTEVISION
ToemergeasaleadingEngineeringinstitutionimpartingqualityeducation.
INSTITUTEMISSION
IM1:ImplementEffectiveteaching-
learningstrategiesforqualityeducationIM2:Build
Congenialacademicambienceforprogressivelearning
IM3:FacilitateSkilldevelopmentthroughIndustry-Instituteinitiatives
IM4:Groomenvironmentallyconsciousandsociallyresponsibletechnocrats
DEPARTMENTOFELECTRICALANDELECTRONICSENGINEERING
DEPARTMENTVISION
ToemergeasacompetentlearningcentreproducingprospectiveEngineers.
DEPARTMENTMISSION
DM2:EstablishadequateInfrastructuralsupportforenhancedlearning.
.
GEETHANJALIINSTITUTEOFSCIENCEANDTECHNOLOGY
PROGRAMOUTCOMES
EngineeringGraduateswillbeable to:
PO2. Problem Analysis: Identify, formulate,review research literature, and analyze complex
engineering problems reaching substantiated conclusions using firstprinciples
ofmathematics,naturalsciences,andengineering sciences.
PO3.Design/developmentofsolutions:Designsolutions forcomplexengineering
problemsanddesignsystemcomponentsorprocessesthatmeetthe specified needs with appropriate
consideration for the public health and safety, and the cultural,
societal,andenvironmentalconsiderations.
PO5. Modern toolusage: Create, select, andapplyappropriate techniques, resources, and modern
engineering and IT tools including prediction and modeling to
complexengineeringactivitieswithanunderstandingofthelimitations.
PO6. The engineer and society: Apply reasoning informed by the contextual knowledge toassess
societal,health, safety, legal and cultural issues and the consequent responsibilities relevant to the
professional engineering practice. PO7. Environment and sustainability: Understand theimpact
oftheprofessional engineering solutions in societal and environmental contexts, and demonstrate
the knowledgeof,andneedforsustainabledevelopment.
PO8. Ethics: Applyethical principles and committoprofessional ethics and
responsibilitiesandnorms ofthe engineeringpractice.
PO12. Life-long learning: Recognize the need for, and have the preparation and ability to
engage in independent and life-long learning in the broadest context of technologicalchange.
PROGRAMMESPECIFICOUTCOMES:
PSO1. Professional skills: Apply the concepts of Electrical power systems, Control
systems,andPowerElectronics&Drivestosolveengineeringproblems.
PEO1 Analyse and solve real world Electrical and Electronics Engineering problems by
applyingmodernengineeringconcepts.
s.no HEADINGS
1 ABSTRACT
2 INTRODUCTION
3 IMPLEMENTATION
4 COMPONENTSREQUIRED
5 SPECIFICATIONOFCOMPONENTS
6 CONCLUSION
7 REFERENCE
1.ABSTRACT
ThispaperrepresentsourminithirdyearprojectinwhichcrosswalkisaThe Internet of
Things (IOT) refers to a system of interrelated, internet-connected objects that are
able to collect and transfer data over a wireless network. It used to be controlled by
websites and smartphones applications remotely, also, to control tools and
instruments by codes and algorithms structures for artificial intelligence issues. In
case we want to create advanced systems using different algorithms, Wi-fi or
ethernet connection is connected to our tools, equipment, and devices controlling
them by smartphone applications or internet websites. A smart home to operate
lamps or other home-use devices, it can be used as a security system, for example,
to open or close the main building gate, to operate full automatic industrial
machine, or even to control internet and communication ports using IOT
technology. A huge industrial facilities or governmental institutions have much of
lamps. Employees sometimes forgot to turn them off in the end of the day. This
research suggests a solution that can save energy by letting the security to control
lighting of the building with his smart home by Blynk application. The lamps can
be controlled by switches distributed in the building and Blynk application at the
same time with a certain electrical installation. This research presents a simple
prototype of smart home, or the easy way and low cost to control loads by Wi-fi
connection generally.
2.INTRODUCTION
Hereintroducethepaper,Aloadcontrolledbycomputersystemshasmanya
dvantagescomparedwith manual controlled loads. Nowadays there
aremany programs and applications help to controlthings better using
codes or python algorithms
inartificialintelligenceprojects.Inordertosaveenergyandmakeloadsmo
nitoredeasily,thisresearch suggests smart home project based on
IoTtechnology.ThissmarthomeisanInternetofThings(IoT)projectthatc
ontrolsloadswithinternetconnectionviaWirelessFidelityWIFIconnecti
on. A smart phone connected to
internetwithBlynkapplicationasacontrolpanel,andNodeMCUmicrocon
trollerkitin otherside as acontroller that receives control commands via
WIFIsignal. NodeMCU kit is built with ESP8266
WIFIreceiverthatabletoprocessandanalyzeWIFIsignaltoinputthemicro
controller.TheWIFIreceiver and microcontroller are built in one kit
tobeusedasIoTproject.It‟scalledNodeMCU.To connect the system to
the Internet, needs a
WiFireceiver.InmycaseIusedESP8266thatisconnectedasbuilt-
inintheNodeMCUboardthat contains a firmware runs with the
ESP8266. Thefirmwareisalow-levelcontrolcomputersoftware.
3.IMPLEMENTATION
ThehomeautomationcircuitisbuiltaroundESP8266,BlynkAndroidAp
p,anda4-
channelrelayboard.Thehardwaresetupshouldbeaccordingtothecircuit
diagram.ACmainsappliances(Bulbs) will be connected to relays
whichare controlled by the ESP8266.Once Arduino IDEis installed
on the computer, connect the boardwith the computer using the
USB cable. Now openthe Arduino IDE and choose the correct
board byselectingTools>Boards>NodeMCU1.0(ESP-12EModule),
and choose the correct Port by selectingTools>Port. To get it started
with the NodeMCUboard and blink the built-in LED, load the
examplecodebyselectingFiles>Examples>Basics>Blink.Once the
example code is loaded into your
IDE,clickonthe„upload‟buttongivenonthetopbar. Once the upload is
finished, you should see thebuilt-
inLEDoftheboardblinking.UserhastoinstallandconfiguretheBlynkAp
paspertheabove instructions.NodeMCU to 4- Channel
RelayBoardConnect D0 pin of NodeMCU to D1 pin of 4-Channel
Relay board,Connect D1 pin of NodeMCUto D2 pin of 4- Channel
Relay board,Connect D2pinofNodeMCUtoD3pinof4-
ChannelRelayboard,Connect D3 pin of NodeMCU to D4 pin of 4-
Channel Relay board,Connect 3.3V of NodeMCU toVcc pin of 4-
Channel Relay board,Connect GNDpin of NodeMCU to GNDpin
of 4- Channel Relayboard.Weareincluding ESP8266WiFi
librarywhich provides ESP8266 specific WiFi routines
andwearecallingittoconnecttothenetwork.BlynkSimpleEsp8266libra
ryestablishesthecommunicationbetweenBlynkAppandESP8266.
4.COMPONENTS REQUIRED:
NodeMCU
Arduino Board
5.SPECIFICATIONOFCOMPONENTS-
Figure: ESP8266-12E
.
Features:
• 802.11 b/g/n
• Support Smart Link Function for both Android and IOS devices
• Support Smart Link Function for both Android and iOS devices
• SDIO 2.0, (H) SPI, UART, I2C, I2S, IRDA, PWM, GPIO
• A-MPDU & A-MSDU aggregation and 0.4s guard interval Shenzhen Anxinke
Technology
ESP-12E Pin
design:
Pin Descriptions:
11 IO9 GPIO9
12 IO10 GBIO10
14 SCLK Clock
15 GND GND
18 IO0 GPIO0
19 IO4 GPIO4
20 IO5 GPIO5
Functional Descriptions:
MCU:
Memory Organization:
▪ RAM size < 36kB, that is to say, when ESP8266EX is working under the station
mode and is connected to the router, programmable space accessible to user in
heap and data section is around 36kB.)
This module is mounted with an 4 MB external SPI flash to store user programs. If
larger definable storage space is required, a SPI flash with larger memory size is
preferred. Theoretically speaking, up to 16 MB memory capacity can be supported.
5.2 Temperature and Humidity Module DHT11
Introduction:
DHT11 digital temperature and humidity sensor is a calibrated digital signal output
of the temperature and humidity combined sensor. It uses a dedicated digital
modules capture technology and the temperature and humidity sensor technology
to ensure that products with high reliability and excellent long-term stability.
Sensor includes a resistive element and a sense of wet NTC temperature
measurement devices and with a high-performance 8-bit microcontroller
connected.
MODEL DHT11
Dimensions: (unit----mm):
Front view Back view Side view
Applications:
Typical circuit:
5.3 Arduino IDE
Introduction:
Arduino was born at the Ivrea Interaction Design Institute as an easy tool for fast
prototyping, aimed at students without a background in electronics and
programming. As soon as it reached a wider community, the Arduino board started
changing to adapt to new needs and challenges, differentiating its offer from
simple 8-bit boards to products for IoT applications, wearable, 3D printing, and
embedded environments. All Arduino boards are completely open-source,
empowering users to build them independently and eventually adapt them to their
particular needs. The software, too, is open-source, and it is growing through the
contributions of users worldwide.
Hardware Specifications:
Microcontroller: ATmega328
Operating Voltage: 5V
Input Voltage (recommended):7-12V
Input Voltage (limits): 6- 20V
Digital I/O Pins: 14 (of which 6 provide PWM output)
Analog Input Pins: 6 • DC Current per I/O Pin: 40 mA
DC Current for 3.3V Pin: 50 mA
Flash Memory: 32 KB (ATmega328)
SRAM: 2 KB (ATmega328)
EEPROM: 1 KB (ATmega328)
Clock Speed: 16 MHz
We will learn about the different components on the Arduino board. We will study
the Arduino UNO board because it is the most popular board in the Arduino board
family. In addition, it is the best board to get started with electronics and coding.
Some boards look a bit different from the one given below, but most Arduino’s
have majority of these components in common.
1. Power USB:
Arduino board can be powered by using the USB cable from your computer. All
you need to do is connect the USB cable to the USB connection (1).
Arduino boards can be powered directly from the AC mains power supply by
connecting it to the Barrel Jack (2).
3. Voltage Regulator:
The function of the voltage regulator is to control the voltage given to the Arduino
board and stabilize the DC voltages used by the processor and other elements.
4. Crystal Oscillator:
The crystal oscillator helps Arduino in dealing with time issues. How does Arduino
calculate time? The answer is, by using the crystal oscillator. The number printed
on top of the Arduino crystal is 16.000H9H. It tells us that the frequency is
16,000,000 Hertz or 16 MHz
You can reset your Arduino board, i.e., start your program from the beginning.
You can reset the UNO board in two ways. First, by using the reset button (17) on
the board. Second, you can connect an external reset button to the Arduino pin
labeled RESET (5).
GND (8)(Ground): There are several GND pins on the Arduino, any of which can
be used to ground your circuit.
Vin (9): This pin also can be used to power the Arduino board from an external
power source, like AC mains power supply.
The Arduino UNO board has five analog input pins A0 through A5. These pins can
read the signal from an analog sensor like the humidity sensor or temperature
sensor and convert it into a digital value that can be read by the microprocessor.
Each Arduino board has its own microcontroller (11). You can assume it as the
brain of your board. The main IC (integrated circuit) on the Arduino is slightly
different from board to board. The microcontrollers are usually of the ATMEL
Company. You must know what IC your board has before loading up a new
program from the Arduino IDE. This information is available on the top of the IC.
For more details about the IC construction and functions, you can refer to the data
sheet.
12.ICSP pin: Mostly, ICSP (12) is an AVR, a tiny programming header for the
Arduino consisting of MOSI, MISO, SCK, RESET, VCC, and GND. It is often
referred to as an SPI (Serial Peripheral Interface), which could be considered as an
"expansion" of the output. Actually, you are slaving the output device to the master
of the SPI bus.
13. Power LED indicator:
This LED should light up when you plug your Arduino into a power source to
indicate that your board is powered up correctly. If this light does not turn on, then
there is something wrong with the connection.
On your board, you will find two labels: TX (transmit) and RX (receive). They
appear in two places on the Arduino UNO board. First, at the digital pins 0 and 1,
to indicate the pins responsible for serial communication. Second, the TX and RX
led (13). The TX led flashes with different speed while sending the serial data. The
speed of flashing depends on the baud rate used by the board. RX flashes during
the receiving process.
15. Digital I / O:
The Arduino UNO board has 14 digital I/O pins (15) (of which 6 provide PWM
(Pulse Width Modulation) output. These pins can be configured to work as input
digital pins to read logic values (0 or 1) or as digital output pins to drive different
modules like LEDs, relays, etc. The pins labeled “~” can be used to generate
PWM.
16. AREF:
Introduction:
Blynk was designed for the Internet of Things. It can control hardware remotely, it
can display sensor data, it can store data, visualize it and do many other cool
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 you can build a
graphic interface for your project by simply dragging and dropping widgets. It's
really simple to set everything up and you'll start tinkering in less than 5 mins.
Blynk is not tied to some specific board or shield. Instead, it's supporting hardware
of your choice. Whether your Arduino or Raspberry Pi is linked to the Internet
over Wi-Fi, Ethernet or this new ESP8266 chip, Blynk will get you online and
ready for the Internet Of Your Things.
Fig: Blynk app Overview
Blynk App - 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. Its 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 out coming
commands.
Blynk was designed for the Internet of Things. It can control hardware remotely, it
can display sensor data, it can store data, visualize it and do many other cool
things.
There are three major components in the platform:
Blynk App - 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 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 out coming
commands.
Now imagine: every time you press a Button in the Blynk app, the message travels
to the Blynk Cloud, where it magically finds its way to your hardware. It works the
same in the opposite direction and everything happens in a blynk of an eye.
Features:
Similar API & UI for all supported hardware & devices Connection to the cloud
can be done using Ethernet, Wi-Fi, Bluetooth, BLE and USB (Serial) Set of easy-
to-use Widgets Direct pin manipulation with no code writing Easy to integrate and
add new functionality using virtual pins History data monitoring via History Graph
widget Device-to-Device communication using Bridge Widget Sending emails,
tweets, push notifications, etc.
6.CONCLUSION
Inourplannedmodelahighproportionofaccuracyhasbeenachievedthroughi
mplementation.Thismethodiscapableofdominatingthehouseappliancessu
pportedtheuser‟sdesiredmode.Allthemodesworkwith
sensibleaccuracythatwasfoundthroughoutimplementation.Userssolelyou
ghttochoosemodesfromtheirsmartphonesandoursystemcandotheremaind
erofcontrollingtheappliances.Thisplannedprojectisextremelyreliable.The
reforeitisaforesaidthatthissystemhashigheraccuracywithnicepotency.This
systemhasimmenseopportunitiestoupgradewithinthefuture.Asmentioned
earlierthisisoftentheprimary generation of home automation. It mightbe
upgraded to the second generation by
storingandanalyzingknowledgeonthecloudservers.Then victimization
machine learning algorithms,we have a tendency to even ought not to
selectmodes from smartphones. Rather it'd be ready
toswitchmodeswithitsowncomputerscience.
7.REFERENCES
[5] NarenderMandVijayalakshmiM,“RaspberryPibasedadvancedsche
duledhomeautomationsystemthroughE-
mail,”in2014IEEEInternationalConferenceonComputationalIntell
igenceandComputingResearch
[6] PoojaPatel,MiteshPatel,VishwaPanchal,andVinitNirmal, “Home
automation using Internet of Things,” inImperial Journal of
InterdisciplinaryResearch(IJIR)Vol-2,
Issue-5,2016ISSN:2454-1362