IoT-Home Automation-Test Project
IoT-Home Automation-Test Project
Abstract
This project aims to implement the IoT and Home Automation system in practical life. The test
project is to control the installed electrical devices with an IoT system making them IoT devices
and controlling them smartly through a phone using the phone. Home Wi-Fi is used for
connectivity to control the devices making the home a smart home.
4
Chapter # 1
Introduction
Home Automation
Home automation is the automatic control of electronic devices in your home. These devices are
connected to the Internet, which allows them to be controlled remotely. With home automation,
devices can trigger one another so you don’t have to control them manually via an app or voice
assistant. For example, you can put your lights on schedules so that they turn off when you
normally go to sleep, or you can have your thermostat turn the A/C up about an hour before you
return to work so you don’t have to return to a stuffy house. Home automation makes life more
convenient and can even save you money on heating, cooling, and electricity bills. Home
automation can also lead to greater safety with the Internet of Things devices like security
cameras and systems.
IoT Cloud
The Internet of things describes physical objects with sensors, processing ability, software, and
other technologies that connect and exchange data with other devices and systems over the
Internet or other communications networks.
Blynk provides a remote mobile app for both iOS and Android users to control their devices
smartly through your mobile app. You can manually design the switches on your mobile devices
that you have already allotted and designed manually in the Blynk web portal. Then by using
these switches you can control your devices through the internet anytime and anywhere.
Chapter # 2
Controlling Lights or Fan through Home Automation
This is a test project we designed a prototype in which we controlled the home lights and fan
through ESP8266 Home Automation.
Components Required
A list of the equipment is mentioned below:
Project Description
ESP8266 is the Arduino-based Wi-Fi microcontroller you burn the code into the ESP8266 using
Arduino IDE software. Connect the mechanical relays with the ESP8266. Connect the
mechanical appliances with the mechanical relay. Control them with your mobile.
Circuit Diagram
7
Chapter # 3
Components Description
ESP8266:
The ESP8266 is a low-cost Wi-Fi microchip, with built-in TCP/IP networking software,
and microcontroller capability, produced by Express in Shanghai, China.
The ESP8285 is a similar chip with a built-in 1 MiB flash memory, allowing the design of
single-chip devices capable of connecting via Wi-Fi.
Fig 1: ESP8266
This is a 5V 4-Channel Relay interface board that can control various appliances and other
equipment with a large current. It can be controlled directly by a Micro-controller (Raspberry Pi,
Arduino, ESP8266, NodeMCU, WeMos, 8051, AVR, PIC, DSP, ARM, ARM, MSP430, TTL
logic).
5V 4-Channel Relay interface board and each one needs 15-20mA Driver Current
Equipped with high-current relay, AC250V 10A ; DC30V 10A
8
Chapter # 4
Software and Hardware Compatibility
For designing code, we use Arduino IDE software which also helps to make it compatible with
the hardware.
Arduino IDE
The Arduino Integrated Development Environment - or Arduino Software (IDE) - contains a text
editor for writing code, a message area, a text console, a toolbar with buttons for common
functions, and a series of menus. It connects to the Arduino hardware to upload programs and
communicate with them.
Writing Sketches
Programs written using Arduino Software (IDE) are called sketches. These sketches are written
in the text editor and are saved with the file extension .ino. The editor has features for
cutting/pasting and for searching/replacing text. The message area gives feedback while saving
and exporting and also displays errors. The console displays text output by the Arduino Software
(IDE), including complete error messages and other information. The bottom righthand corner of
the window displays the configured board and serial port. The toolbar buttons allow you to verify
and upload programs, create, open, and save sketches, and open the serial monitor.
10
The Arduino IDE is used to write the program and directly upload it to the hardware
microcontroller component depending upon the project requirement.
11
Chapter # 5
Future advancement in Project
We will control our home appliances using Alexa, Google Assistant, and Apple Home through
voice command control. Simply we just speak and the work is done smartly.
Alexa:
Alexa is Amazon’s voice assistant that’s built into Echo Show and Echo Dot devices. Alexa is
the voice assistant we see integrated into the highest number of smart home devices from
companies like SimpliSafe, Ring Alarm, and Cove.
12
Google-Assistant
Google Assistant, is, as you can imagine, Google’s voice assistant. Although Google Assistant
has fewer “skills” or “actions” than Alexa, it has been proven to be the most accurate voice
assistant in terms of understanding and answering queries correctly. To get Google Assistant,
you’ll need a smart speaker or a smart display; read our Nest Mini review or Nest Hub review to
get started.
Siri is Apple’s voice assistant that’s integrated into the iPhone. While Siri holds 35 percent of the
global market share for voice assistants, compared to nine percent and four percent with Google
Assistant and Alexa respectively, there aren’t too many IoT devices that work with Siri. Rather,
the voice assistant is used mainly on iPhones and iPads in contrast to home automation devices,
where Alexa and Google Assistant reign supreme.
13
These devices are connected to our home Wifi. We just give a command to any of these devices
and the task is done smartly.
These devices are connected with their AI smart cloud where you set the instructions on the
cloud, defining the commands depending upon the project requirement. These AI smart clouds
will then send information to the Haruko or Blynk cloud, which will decode the instruction and
send back information to the wifi router. The router then sends instructions accordingly to the
ESP8266 which controls the home devices according to the command.
Conclusion
The test design project is to control the devices through the Blynk IoT smart app. You have
controlled your home electrical devices smartly through your mobile by simply just switching
On/Off and tapping on your mobile screen and the devices are controlled accordingly using
Blynk cloud sending and receiving data to blynk cloud.
15