IOT INTELLIGENCE AND AUTOMATION
WITH THINGER.IO
Dr. G R K Prasad, Professor, ECE Department P Yaswanth , Student , ECE Department K L
K L University University
P. Mony Preetham, Student , ECE Department P.Prasanth, Student , ECE Department K L
K L University University
Abstract—A home automation is nothing but controlling the home home automation, home electrical appliances such as Water
appliances such as the electrical appliances it may also consists of pump, fridge, fan, television, light, Air conditioner, etc. are
a home security such as entry control, fire alarm systems and thief assigned a unique IP address and are internet connected through
detection security system. When it gains accesses with the internet, a common home Wifi. The home electrical appliances or gained
home appliances are an important constituent of the IOT. Early controlled and controlled from any laptop connected with
home automation began with labour-saving machines. Home internet, mobile having internet connection. That can generally
automatic electric rice cooker or gas oriented home decrease power consumption and get good the living
appliances became viable in the 1900s with the connection environment and as well as increasing the indoor safety.
of electric power and led to the invention of washing machines
1904, water heaters 1889, fridge, sewing machine, washing With the fast revolution in technology, the electrical devices in
machine and clothes dryer. The home automation system connects the recent years are becoming smarter. In the real-world
controlling devices to a central hub. Automated House Application appliances are being manufactured with AI and fast computing
using IOT is a technique where basic home electrical appliances capability so that they can arrange themselves accordingly. The
can be handled by device from any geographical locations such as main sensors and activators fixed to embedded devices along
ON and Off of Water pump, fridge, fan, television, light, Air
with the low power consumption wireless connectivity can
conditioner. We can control all this home appliances with help of
flexible to gain remotely monitor and to gain control the devices.
special devise called NodeMCU ESP8266, Android Application,
This gives an integral component of Internet of Things network.
Internet Connection. In this paper we tell about the functionality
of NodeMCU ESP8266. We are connecting with either of above The Internet of Things also helps a lot in transferring of data from
given house application like fan, light, water pump, gardening fixed sensors through wireless network, achieving recognition of
with coding and by using Thinger.io It is an online web server. All data and formational exchange of data in open computing
the home electrical appliances are handled by Mobile android network. Things that we are using in our daily life are becoming
application or my using laptop connected with internet. smart with the current technologies but it isn’t sufficient until we
connect them to act with the dynamic environment and in
Keywords==NodeMCU ESP8266, Mobile or laptop, tinger.io. addition to make their own inter-network, that is, machine-to-
machine communication. The Objects like electronics devices,
softwares, sensors, actuators, home appliances and vehicles are
connected to a wireless network. Internet of Things is considered
I INTRODUCTION
as a wireless network of these objects and they can exchange data
Now a days internet of things in recent years have become
lifestyle of every human being with high potential. Even it is through light weight protocols like MQTT, CoAP etc. There are
concentrating in different task that are requirement of day to day so many types of radio modules out of which GSM, 3G, WiFi,
usage for human intelligence. In today’s life of humans IoT has Bluetooth, ZigBee, etc. are common. However, owing to the
created a great flatform to meet the needs all requirements of surging number of WiFi hotspots and range sufficient to perform
human dealings in their every day life. If we see an the required control and monitoring, WiFi is chosen as the mode
example like buying the goods, controlling the resources and of communication in the prototype and the devices are controlled
controlling them from any geographical locations. If think a little through tinger.io web sight implemented using ESP8266
about a world were personal fridge will give data to you list of
all your things required for upcoming few days base on your
present day utilization in it. your smart fridge is interactive with
Home automation refers to control the monitoring the tasks of
home and performing the required actuation. Through this smart
II.LITERATURE REVIEW
At present days the smart cities are mainly based on Internet
of Things network technology are advancing more and more
advanced. Initial goal of Internet of Things network to
connect electrical devices to internet by using Wifi. Then,
Web of Things become easily connect sensors to the web, get
the data to and from the web that has been created by the
devices Smart Cities aims at dropping energy utilization and
Carbon dioxide emission in the cities making use of
associated data. The project is actually intended to produce
and supply power-related data such as weather, air pollution,
traffic, activities etc. But it doesn’t encompass vital Internet
of Things like healthcare, smart agriculture etc. and neither
does it mention need to corporate a reasoning engine to
compare Internet of Things data. The Smart city project are
being implementing in four cities like Dublin, Bologna,
Miami and Rio. They use semantic web technologies to
identify and forecast road traffic Jams. As per the design, they
Figure 1Block diagram of IoT Architecture [10]
have used six heterogeneous sources: road weather
conditions, weather information, Dublin bus stream, social
media feeds, road works and maintenance, and city events.
They use Semantic Web Rule Language rules such as heavy IV.RELATED WORK
traffic flow. The project is mainly focused on the traffic
investigation. The City Pulse project is intended for public
parking space availability calculation, real time travel The system is divided into two major parts: software and
planner, air pollution counter-measures, and opting efficient hardware design. Hardware configuration involves arranging
routes and public transfer. The project is aimed on large-scale microprocessors, microcontrollers, sensors, and actuators
analysis and real-time processing. The Smart Santander whereas the software portion encloses programming that is
project deployed 20,000 sensors measuring hotness, written and uploaded in each of the microcontrollers and
moisture, particles, CO and NO2 for monitoring parks and microprocessors. The system consists of a microcontroller
gardens irrigation, outdoor parking are organization, traffic connected to sensors and electrical devices that are to be
intensity monitoring, and smart metering. monitored and controlled. This section shows how different
hardware components are set up. The specifications and
information regarding various components used in this
III.IOT ARCHITECTURE system are descriptively explicated below. The main aim of
Smart Home is useful in order to provide batter energy
utilization, efficiency, comfort and to provide better true
The physical layer consists of devices that are to be security. Nowadays Smart Home automation is more used in
controlled. The sensors which are to be used to sense the India because of the cost and the easily getting devices. Also,
surrounding environmental conditions are also connected to devices for automation are easily available. The main
this layer. The data link layer consists of IoT gateway router objective here is to present a Small IoT system designed and
and here, we have used NodeMCU as a router gateway, created by utilizing a WLAN network based on Node MCU
device manager and various communication protocols. This ESP8266. The System is able to control
layer links the household appliances to the webserver or cloud
through Wi-Fi communication. Raspberry pi is used as a
private server to store the sensor data and also it sends data to
home electronics devices by the mobile phone via the
the end-users upon request. In this system, raspberry pi falls
internet. Results from the test of the system show proper
under the database/server layer. The app and OSI layer
control and monitoring functions can be performed from a
consists of web protocols. This layer helps in designing a
device linked to a network. A. Microprocessor Unit
webpage for accessing the devices connected to the
NodeMCU ESP8266 ESP8266 is a system-on-chip (SoC) that
perception layer through a laptop or computer or building an
integrates a 32- bit microcontroller, standard digital
android or iOS mobile application.
peripheral interfaces, antenna switches, RF balun, power
amplifier, and low noise receive amplifier, filters, and power
management modules into a small package. Features of Node
MCU ESP8266 are as follows: Node MCU is the main
component in the above diagram. It is connected with an
external power source with cable. The next important
component is the relay. Here we use 5V DC relay as a switch.
Using the relay, we can convert DC power to AC. Relay is
connected with Node MCU and bulb. Using the tinger.io we infrastructure for connecting a number of devices. Developers
can operate all devices using the tinger server. In the tinger and Industries can start controlling their things from the
app different buttons are added, using those buttons we can internet (Wi-Fi) in seconds, without worrying about the
on/off the switch. The graphical interfaces in smartphones required cloud architecture connection.
and tablets are designed in the form of android and iOS
applications by putting buttons, graph-plotter, LCD and Features Thinger.io offers on board.
sensor-value display. The user can simply download the app, 1.Opensourse
log in and then monitor and control her entire home 2.HardwareAgnostic
appliances. The interface should enable the user to look at the 3.CloudPlatform
device status and regulate them. 4.Easycoding
5.For Makers and companies
A.NodeMCU ESP8266 Section
NodeMCU is an open source development board and C Dashboard
firmware based in the broadly used ESP8266 -12E Wi-Fi The place where we can see the operation we can do the IoT
module. It allows the user to program the ESP8266 Wi-Fi device whch we are connected to Internet Using Node MCU
module with the simple ,powerful ,robust and blazing speed
LUA programming language or Arduino IDE. With just a few .
lines of code you can establish a Wi-Fi connection and define
i/o pins according to your needs exactly like Arduino, making
your ESP8266 into a web server , host a lot more. It is the Wi-
Fi equivalent of ethernet module. Now you have internet of
things (IoT) a useful tool. Specifications of Nodemcu are
mentioned below.
Microcontroller ESP8266-12F
Analog pins 1
Clock Speed 80MHz/160MHz
Operating Voltage 3.3V
Flash 4M bytes
Length, Width 63.3 mm/29.1
mm
Table I Specifications of NodeMcu
Figure 3 Dashboard of Thinger.io
D Data buckets
The data received from the Iot device that is Node MCU is
stored in the data buckets. These can be transferred through
the CVS files to the respected mail what we have and share
the data of the IOT.
Figure 2 Pin Diagram of NodeMCU ESP8266
B.Thinger.io section
Thinger.io platform is an Open Source platform for the IoT,
it provides a platform for ready to use scalable and reusable
cloud
Figure 4 Databucket of Thinger.io
E End points smartphones or tablets from the various sensors using an
ESP8266 (Node MCU) as the private server. Basically,
The data buckets can be share and access the application with control of turning ON or OFF the whole system is at owner’s
the third party application by connecting the end point of hand. As the system gets powered up, it searches for the
the Thinger.io to the other online tools. present Service Set Identifier) and connects automatically to
the Internet otherwise remains offline and performs the
automated-controlling job that doesn’t require commands
from the owner. The main sensors accumulate the ambient-
conditions and send them to the controller which processes
the data which is sent by each sensor separately and then
concurrently send the acquired data to the web server. The
values of each sensor can be controlled by the user from any
geographical location at any time. With this we can collect all
the sensors data are logged per second for future analysis
purpose. The system can operate in two modes automatic
mode and manual mode. When it is set at automatic mode, all
the home appliances like fan, heaters etc. They are automated
to function as per the surrounding conditions recognised by
the sensors. On the other side, when it is set at manual mode,
the user can control or remotely monitor and control each of
the home electrical appliances with a smart phone or from a
laptop connected to internet or office desktop PC. Beyond the
auto-manual mode of functionalities, some of the
Figure 5 End point of Thinger.io functionalities like regular water level monitoring and
F Data Transmission turning OFF or ON the water pump, ring alarms when detect
the human-presence at the front of the door which can also
The data live transmission rate with 24/7 accuracy and the bits be used for security by cautiously the motion detectors on
transmitted and received data with IP address location with home or office so as to alert owner remotely. The user need
additional Device status is appeared and the time connected not to switch these devices at regular times as they are auto
by the device to the Thinger.io using WiFi connectivity. and under the commands of the microcontroller continuously.
Similarly, some of the alert signals and warnings like house
on fire, gas leakage, intruder’s detection etc. are wirelessly
conveyed and notified about the situation to the house owner
via e-mail and phone notification. Using GPS, we can track
the owner and can locate the car at any moment from
geographical location. To sum up, Internet of Things provides
greater extent of security with all rich in features.
Figure 6 Live transmission of Thinger.io
V.WORKING OF THE SYSTEM
Figure 7 Schematic Plan of the Project
The system consists of three isolated sub-systems: first IV.RESULTS AND APPLICATIONS
subsystem consisting of Thinger.io App module to get the
status of the equipment, second sub-system you can attach Relay module system connected to the house appliances to be
multiple sensors DHT11 temperature sensor to measure controlled and connected to each another via Wi-
temperature, PIR sensor to detect motion and ultrasonic Fi with Node MCU ESP8266 controller chip. For program,
sensor to measure the distance, and the third subsystem IOS,Android and Windows version.
consisting of a master microcontroller which functions as the
central coordinator that communicates with other subsystems Figure five Screenshots showing appliance switch
via Wi-Fi. The master microcontrollers also interfaced with a of Thinger.io app with bespoke layout and buttons was wont
relay module to control the appliance sat the site. The sensor to facilitate observation and dominant numerous connected
data are fetched to the user interface facilitated by things.
By pressing virtual buttons on the Mobile phones or personal The response of the IoT device can be controlled by the Node
computer, the home machines can be controlled from any MCU with the help of the Application or the website from the
remote area. One preferred position of this application is that computer. Considering the working of the mobile application
it very well may be shared inside all the relatives of the house. the whole entire operation can be done by the digital pins in
At the point when one-part turns ON or OFF a machine, the the application from anywhere in world when it connected to
activity will be evident to every single other part sharing the the WiFi with the help of Thinger.io. The circuit components
application. So also, constant just as verifiable information of are mentioned below.
estimations of temperature, moistness, GPS area, separation -
measure and so forth can be gotten from anyplace utilizing Thinger.io
the application. 2 channel Relay circuit
Node MCU
AC Operated Bulb
Mobile to operate
Table 2 Components used
When all the circuits connects are provided with node MCU
and Relay circuit D0 as the digital pin the node MCU and
ground and power supply is provided as usual. 5V power
supply is recommended to drive 2 channels. The connection
are provide below with help of images of circuit.
Figure 8 Application view of Thinger.io (Android)
Further, this framework can be utilized in numerous spots, for
example, banks, emergency clinics, research centers, traffic Figure 10 Working of Thinger.io in circuit OFF condition
stations, private lofts, house, lanes, poultry ranches, nursery
and so forth. More or less, this framework can be utilized at
different fields and zones so as to cause them to work keenly
and perfectly
Figure 11 Working of Thinger.io in circuit ON condition
Hence we successfully operated the Devices with the help of
Thinger.io using node MCU and Relay circuit board with
application in mobile as well as in desktop and we collected
Figure 9 Desktop view of Thinger.io the iot device data and stored in the data buckets, created
digital switches/buttons for the IoT device in the thinger.io,
Created End points to access the third parts apps and to find
the data transmission rate with the device status 24/7 with
accuracy.
VII.REFERENCES
[1], "http://www.nodemcu.com/," Nodemcu, 2019. Node
MCU [Online]. Available: http://www.nodemcu.com/.
[2] Andi Adriansyah, Akhmad Wahyu Dani, "Design of
Small Smart Home Control Systems Based on Wireless
Sensor Networks and Power Line Communications," in
IEEE, 2014.
[3] Security [Online] https://thinger.io/securing-the-
internet-of-things/
[3] Kim Baraka, Marc Ghobril, Sami Malek, Rouwaida Kanj,
Ayman Kayssi, " Low cost Arduino/Android-based Energy-
Efficient Home Automation System with Smart Task
Scheduling," in Fifth International Conference on
Computational Intelligence, 2013.
[4 Documentation https://docs.thinger.io/mobile.
[5] D. Zeng, S. Guo, and Z. Cheng, "The Web of Things: A
Survey," in Journal of Communications, 2011.
[6]Storing the Data [Online]
https://community.thinger.io/t/how-to-store-data-of-
iot-device-node-mcu-connected-to-thinger-io-into-
service-now-table/2619
[7] Thinger IoT event [Online] https://thinger.io/4570-
2/