You are on page 1of 5

See

discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/316926871

HOME AUTOMATION ON ESP8266

Article April 2017

CITATIONS READS

0 681

4 authors, including:

Malathi Murugesan Gowsalya Arumugam


Sri Krishna College of Technology Sri Krishna College of Technology
9 PUBLICATIONS 0 CITATIONS 1 PUBLICATION 0 CITATIONS

SEE PROFILE SEE PROFILE

Janani Arunachalam
Sri Krishna College of Technology
5 PUBLICATIONS 39 CITATIONS

SEE PROFILE

All content following this page was uploaded by Malathi Murugesan on 15 May 2017.

The user has requested enhancement of the downloaded file.


SSRG International Journal of Computer Science and Engineering - (ICRTECITA-2017) - Special Issue - March 2017

HOME AUTOMATION ON ESP8266


Ms.M.Malathi A.Gowsalya
Assistant Professor: Dept. of I.T., UG Scholor: Dept of I.T.,
Sri Krishna College of Technology, Sri Krishna College of Technology,
Coimbatore, India Coimbatore, India

M.Dhanushyaa A.Janani
UG Scholor: Dept of I.T., UG Scholor: Dept of I.T.,
Sri Krishna College of Technology, Sri Krishna College of Technology,
Coimbatore, India Coimbatore, India

Abstract Smart homes refers to energy efficient, time objective of the project is to help handicapped people
saving includes reduces the human efforts. Commercial and aged people by alerting in the critical situations.
content distribution network (CDNs) has Video-on-demand All the devices can be used in our own sitting place
(VOD) services for on-demand capacity provisioning on itself. The problem overcome by this paper is about
smart television (Home Automation). The content has full that home automation is generally implemented by
control and customization, so they prefer self- managed
content infrastructure. The initial capital investment for
using Bluetooth through our PC. Pin check algorithm
physical infrastructure was so expensive and quite difficult is used to implement this set-up by using the cable
for management. The objective of key providers was to network other than the wireless communication. The
reduce the server rental cost by accessing through the device ESP8266, which is the embedded device used
efficient and inexpensive ESP8266 chip to the cloud to access the cloud. The home automation using
platforms on which dynamic server provisioning to reduce Bluetooth with the help of PC has implemented by
the server rental cost which was the key objective for N.Srikanthan [4].The range is limited by using the
content providers. In this paper we addressed the Bluetooth device. The devices are controlled by the
challenges of reducing the cost of accessing the cloud telephone and with PIC controlling remote device by
platforms. We present the construction of ESP8266 with the
Arduino or microcontroller are attached to get the smart
Hasan [5]. The IOT devices uses different types of
television, where all our choice of videos can be stored and protocol. MQTT (Message Queuing Telemetry
retrieved at any time. Adafruit, Electrodragon, Sparkfun Transport) is one of the useful and advance. Because
helps to get the chip. Through the software development kit it is easy to implement, open, lightweight, low
(SDK) in ESP8266 that allow the chip to be programmed bandwidth protocol. We can also use PIR sensor and
which remove the need of the microcontroller. Generally proximity. Where the devices in IOT is used for
accessing cloud facility will produce high cost but in this controlling or nominating the devices where all of
paper gives the replacement of the accessing the cloud them are far away from this. MQTT and TCP
with the ESP8266 serial chip which operated in low protocols are also used to implement the ESP8266
power consumption with the low cost because it has the
three configurable sleep modes.
Wi-Fi module. The potential IOT applications
develop the environment that covers all together the
KeywordsAutomation; ESP8266; Sensors applications, command, control and routing process
and security of the node and system. All the IOT
I. INTRODUCTION devices include various objects like personal
Home automation is commonly called smart home computer, smart phones, tablets, which gives the
[1]. It involves the control and handle the things like communication between the things and people and
light, fan, door, alarming for certain remainders, also the things between them [6]. To reduce the need
security purposes etc. All the things are connected to for the home intervention, we are used to control the
the internet and all of them can accessed at any place home automation through the use of control systems
and any time. Most popular protocol communication [7].
for the products include X10, Ethernet, ZigBee and II. PROPOSED SYSTEM
Z-Wave, or other protocols [2] are all incompatible
ESP8266 (currently ESP8266EX) is a chip which
with other. The web server is simultaneously updated
is a highly integrated Wi-Fi SoC solution where in
by sensing the status of the things which are
the Internet of Things industry, the users overcomes
connected to the network. The status of the
the efficient power usage efficiently, design and
appliances is controlled by the switch it either ON or
performance also provides networkable foundation of
OFF using the computer technology. It also provides
networkable foundation for facilitating end-point IOT
the security, energy efficient [3], and ease of use,
developments. The vendors repeatedly created the
hence it is adopted more. It also helps by providing to
ESP8266 chip at their cores includes multitude of
control and monitoring on web browser. The main
modules. As well as the Olimex, Adafruit, Sparkfun,

ISSN : 2348 8387 www.internationaljournalssrg.org Page 1


SSRG International Journal of Computer Science and Engineering - (ICRTECITA-2017) - Special Issue - March 2017

WeMos, ESPert (ESPresso) all make various


modules. ESP8266 can act either as the slave to a
host MCU or as a standalone application. When it act
as a host, it promptly boots up from flash. The high
speed cache helps to increase the system performance
and the system memory gets optimized

A. Home Automation
The ESP8266 with on board Wi-Fi capabilities
and also has integrated processor. Acts as an perfect
chip for Home Automation field. In this paper we are
going to use the Adafruit HUZZAH ESP8266
breakout, which will be easy to use in the ESP8266
breakout board and two components such as a sensor
module and a lamp controller. We can able to control
the small home automation system anywhere in the
world through Adafruit IO.
Fig2:server (cloud network)
B. Protocols of the Wi-Fi
Direct Wi-Fi support. E. Power Supply
802.11 b/g/n/e/i support.
P2P Discovery, P2P GO (Group Owner) a)Digital Power Supply: The chip has two digital
mode, GC(group Client) mode and P2P pins for power supply, pin 11 and pin 17. The
Management of Power. additional filter capacitor is not needed for digital
Security features such as 802.11i which power supply.
provides pre-authentication, and TSN.
Seamless roaming support. b)Analog Power Supply: The chip has five
analog pins for providing power supply, includes the
C. Local Device pin 1, pin 3, pin 4. pin 28, pin 29 are used for internal
A device want to connect to the router by ESP- PLL. This type of power supply will damage due to
TOUCH, the server-side is deactivated. The Fig 1, increase of current when analog signal is passed over
device is used to accessible over Wi-Fi network but in it. The digital power supply is efficient.
not over to the cloud.
F. Power Consumption
The ESP8266 series chip provides the three
configurable sleep modes. The sleep mode is chosen
by the users. The 3 sleep modes are:
Modem-sleep
Light sleep
Deep-sleep
To enable the modes whether the device should
act either Modem-sleep or Light-sleep is done by the
SDK. The user can control the Deep-sleep mode and
can also be able to enable by calling the function
Fig1 : Local network instantly.

D. Cloud Device a) Modem-Sleep: When the chip is connected to


A device want to connect to the router by ESP- the router in the station mode, the Modem-sleep
TOUCH,the server-side is activated. The Fig 2,the mode is activated. The connection is enabled by the
device is connected with the cloud platform and DTIM beacon mechanism. Here, the power is saved
accessed through cloud status, online status, and when the Wi-Fi module circuit is close to the
offline status. ESP8266 chip, the circuit between the two DTIM
Beacon intervals. According to the interval time of
the router , the sleep time is decided. During the
sleep, the chip can receive the interactive information
from any server or mobile phone where the ESP8266
chip is always connected to the Wi-Fi. The router
interval is generally 100ms-1000ms.

ISSN : 2348 8387 www.internationaljournalssrg.org Page 2


SSRG International Journal of Computer Science and Engineering - (ICRTECITA-2017) - Special Issue - March 2017

b) Light-Sleep: The power consumption is too Then connect the two pins on the right on the GND
lower when it is in this mode, which is similar to the pin of ESP8266 board and the +in pin to the pin
Modem-sleep. Except from Wi-Fi circuit, ESP8266 number 5 of ESP8266. Finally the construction gets
also power powers off clock and immediately over by connecting the lamp or any electrical device
suspends the internal CPU. Which would be made as to the PowerSwitch, the other end of the
the less power than in Modem-sleep mode. PowerSwitch is maintained with electricity.Refer
Fig.4,
c) Deep-Sleep: Automatically, the system cannot go
into Deep-sleep. To enable the Deep-sleep mode the
interface function system_deep_sleep is called by the
users. The ESP8266 chip will be turn off Wi-Fi
connectivity and data connection. The periodic wake-
ups are controlled by the working of the RTC
module.

G. Requirements
Hardware and Software
We are going to use two different modules such as
lamp controller and a sensor board. The two modules
needs Adafruit HUZZAH ESP8266 breakout, male
jumper wires for the need of necessary connections
and a breadboard. To measure the temperature and
humidity, we use the DHT11 sensor with the sensor
board. PowerSwitch Tail2 is used to attach a lamp in Fig4: Lamp Controller Module
the lamp controller. Finally we need one FTDI friend
board (USB cable) to program the ESP8266 breakout H. Features of the ESP8266
board. On the software side, we need the Arduino
IDE install it including the ESP8266 package which For low-power operation, the radio biasing
is to be installed. is adaptive.
Signal processing is so advanced.
a) Sensor Module Spur cancellation.
The construction starts by configure the hardware Common cellular, LCD interference
to the sensor module by placing the ESP8266 mitigation, LVDS, Bluetooth, all uses radio
breakout board and DHT sensor on the breadboard. co-existence mechanism.
The DHT sensor is connected by connecting the first
pin of the sensor to the V+ (VCC)pin from the I. Project Control
ESP8266 board. Then connecting the ground pin of
the ESP8266 to the last pin of the sensor. At last, Using the Adafruit IO we can control the project.
connecting the pin number 5 of ESP8266 breakout Anywhere in the world, we can control our device
board to the pin number 2 of the DHT sensor. The using the Adafruit IO dashboard and used to control
sensor module construction gets over. Refer Fig3, our modules. The other way is to create the feeds that
we used in our project that include temperature,
humidity and lamp. Add Gauge widget, and connect
to the temperature feed, same as for humidity. Then,
create a toggle button widget, and then connect it
with the lamp feed. Thus any devices can be
accessed.ss

III. RELATED WORK


The earlier implementation can be done either in
one of the following classifications:

J. ASP.net
It is a server-side web application, where dynamic
web pages, web services and application can be
Fig3: Sensor module designed. The status of the appliances are handled by
b) Lamp Controller Module: The first construction this web server. The users are able to control the
is to connect the ESP8266 breakout board on the status of the appliances according to their desires.
breadboard also connect the PowerSwitch Tail Kit.

ISSN : 2348 8387 www.internationaljournalssrg.org Page 3


SSRG International Journal of Computer Science and Engineering - (ICRTECITA-2017) - Special Issue - March 2017

K. Software Design burned by the users heating bill and also it is cheap in
Normal way of controlling the IOT devices by cost for our home automation.
developing the website. In that, it has the functions
like light, humidity, and temperature control. With [1] Dr. E. Sulaiman, Human health monitoring using wireless
the help of these functions we can check and also sensors network (WSN) International Journal of Application
check the status based on our wishes. The server and or Innovation in Engineering & Management (IJAJEM)
sensors together used in the distributed automation Volume 2, Issue 12, December 2013.
system. The control of the sensor and monitors are [2] Chen Tian, Yi Wang, Yan Luo, Hongbo Jiang, Wenyu Liu,Jie
Wu and Hao Yin, Member, IEEE on Minimizing Content
done with the various sensors. Wi-Fi technology
Reorganization and Tolerating Imperfect Workload
connects server and the sensors, used to improve
Prediction for Cloud-Based Video-on-Demand Services in
security, mobility and scalability. IEEE TRANSACTIONS ON SERVICES COMPUTING,
VOL. 9, NO. 6, NOVEMBER/DECEMBER 2016.
L. Arduino [3] Smart Home Automation using IOT Dhakad Kunal1, Dhake
Based on the ATmega2560, the Arduino Tushar2, Undegaonkar Pooja3, Zope Vaibhav4, Vinay
microcontroller is chosen. Sensors are attached to it Lodha5 Student, Computer Department, PVGCOE, Nasik,
and updating the status of the appliances is done on Maharashtra, India1,2,3,4 Assistant professor, Computer
web server. The C++ coding is very helpful for the Department, PVGCOE, Nasik, Maharashtra on
development and to do more specific functions. International Journal of Advanced Research in Computer
and Communication Engineering Vol. 5, Issue 2, February
M. Hardware Design 2016 Copyright to IJARCCE DOI 10.17148/
IJARCCE.2016.52131576
PCB, humidity sensor and Arduino are used in the
[4] Knud Lasse Lueth March 2015 IoT basics: Getting started
hardware parts. Two devices say fan and light, both
with the Internet of Things
are connected to the PCB. Sensor is connected to [5] N. Sriskanthan and Tan Karand.Bluetooth Based Home
Arduino for sensing the humidity and temperature. Automation System. Journal of Microprocessors and
Arduino and PCB are interacted through PC. Amul Microsystems, Vol. 26, pp.281-289, 2002.
Jadhav [8]used XML format for automation system [6] Nikhil, Shambhu Shankar Bharti, Rupal Singh,Dushyant
which has been earlier easily ported to other mobile Kumar Singh, "Remotely controlled home automation
devices. R.Piyare [9]used design which has low cost, system",Advances in Engineering and Technology Research
free from wire connection to home automation. (ICAETR),International Conference on. IEEE, 2014
Jitendra R [10] used ZigBee network concepts [7] E. Yavuz, B. Hasan, I. Serkan and K. Duygu. Safe and
introduced the elimination of wiring in case of Secure PIC Based Remote Control Application for
Intelligent Home. International Journal of Computer
automation which of wired.
Science and Network Security, Vol. 7, No. 5, May 2007.
IV. CONCLUSION [8] Amul Jadhav, S. Anand, Nilesh Dhangare, K.S. Wagh
Universal Mobile Application Development (UMAD) On
This paper gives the basic knowledge of IOT, Home Automation Marathwada Mitra Mandals Institute of
where all the appliances are controlled and can also Technology, University of Pune, India Network and Complex
update the status of the device. ESP8266 is very Systems ISSN 2224-610X (Paper) ISSN 2225-0603 (Online)
useful in IOT industry where it is cost efficient, Vol 2, No.2, 2012
security, power is saved , compact in design and its [9] R.Piyare, M.Tazi Bluetooth Based Home Automation
performance is reliable. Mainly used for aged people, System Using Cell Phone, 2011 IEEE 15th International
handicapped where all the devices are easily control Symposium on Consumer Electronics
when the users are in out of town. The convenience is [10] Rana, Jitendra Rajendra and Pawar, Sunil N., Zigbee Based
Home Automation (April 10,2010). Available at SSRN:
increased by accessing wherever and saves our
http://ssrn.com/abstract=1587245 or
valuable time, cost. ESP8266 would be no longer
http://dx.doi.org/10.2139/ssrn.1587245

ISSN : 2348 8387 www.internationaljournalssrg.org Page 4

View publication stats

You might also like