A Minor Project Report

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 18

A MINOR PROJECT REPORT

on

HOMEAUTOMATION CONTROLLING

APPLIANCES USING ESP8266

Submitted in partial fulfillment for the award of the degree

of

BACHELOR OF TECHNOLOGY

in

ELECTRICAL AND ELECTRONICS ENGINEERING

by

SOMA VAMSHIDHAR (RA1711005010257)


I ROHITH (RA1711005010202)
HARSHA VARDHAN (RA1711005010276)

Under the guidance of


Dr. R. Sridhar
(Professor, Department of Electrical and Electronics Engineering)
FACULTY OF ENGINEERING AND TECHNOLOGY

SRM Nagar, Kattankulathur- 603 203


Kancheepuram Dist.

NOVEMBER 2019
iii

BONAFIDE CERTIFICATE

Certified that this minor project report titled “HOMEAUTOMATION CONTROLLING

APPLIANCES USING ESP8266 ” is the bonafide work of SOMA VAMSHIDHAR


(RA1711005010257), I ROHITH (RA1711005010202),HARSHA VARDHAN
(RA1711005010276) who carried out the minor project work under my supervision. Certified
further, that to the best of my knowledge the work reported herein does not form part of any
other project report or dissertation on the basis of which a degree or award was conferred on
an earlier occasion of this or any other candidate.

Signature of the Co-ordinator Signature of the HOD


Dr. R. SRIDHAR Dr. K. VIJAYAKUMAR
Associate Professor Professor and Head
Department of EEE Department of EEE
SRM IST SRM IST

Internal Examiner 1 Internal Examiner 2

Date:
iii

ACKNOWLEDGEMENT

We would like to extend our gratitude to the many people who helped to bring this
project to fruition. First, we would like to thank the management and our Director (E&T), Dr.
C. Muthamizhchelvan for the academic and technical support.

We take this opportunity to express sincere thanks and deep sense of gratitude to
beloved,Dr. K. Vijayakumar, Professor and Head of the departmentwho has been always
our source of inspiration.

We would like to thankDr. Sridhar, project coordinator –Minor Projectfor his


support and valuable inputs throughout our project.

Finally, we express our very profound gratitude to our parents for providing us with
unfailing support and continuous encouragement throughout the process of our education.

(Soma Vamshidhar)

(I. Rohith)

(Harsha Vardhan)
iii

ABSTRACT

This project presents a design and prototype implementation of new home automation system
that uses WiFi technology as a network infrastructure connecting its parts. The proposed
system consists of two main components; the first part is the server (web server), which
presents system core that manages, controls, and monitors users’ home. Users and system
administrator can locally (LAN) or remotely (internet) manage and control system code.
Second part is hardware interface module, which provides appropriate interface to sensors
and actuator of home automation system. Unlike most of available home automation system
in the market the proposed system is scalable that one server can manage many hardware
interface modules 5 as long as it exists on WiFi network coverage. System supports a wide
range of home automation devices like power management components, and security
components. The proposed system is better from the scalability and flexibility point of view
than the commercially available home automation systems.
iii

CHAPTER
NUMBER TITLE PAGE NUMBER
ABSTRACT IV
OBJECTIVE VI
METHODOLOGY VII
LIST OF FIGURES X
1. INTRODUCTION
2. COMPONENTS
2.1 ESP8266
2.2 RELAY
2.3 BLYNK
3. SOFTWARE
4. REFRENCES &BIBLIOGRAPHY
iii

OBJECTIVES

 The goal of this project is to develop a home automation system that gives the user
complete control over all remotely controllable aspects of his or her home.
 The automation system will have the ability to be controlled from a Pocket PC with a
Windows Mobile based application,mobile.
iii

METHODOLOGY
iii

LIST OF FIGERS
iii

CHAPTER.1

INTRODUCTION

The project aims at designing an advanced home automation system using normal web
server and Wi-Fi technology. The devices can be switched ON/OFF and sensors can be read
using a Personal Computer (PC) through Wi-Fi. Automation is the most frequently spelled
term in the field of electronics. The hunger for automation brought many revolutions in the
existing technologies. These had greater importance than any other technologies due to its
user-friendly nature. These can be used as a replacement of the existing switches in home
which produces sparks and also results in fire accidents in few situations. Considering the
advantages of Wi-Fi an advanced automation system was developed to control the
appliances in the house. Wi-Fi (Short for Wireless Fidelity) is a wireless technology that uses
radio frequency to transmit data through the air. Wi-Fi has initial speeds of 1mbps to
2mbps. Wi-Fi transmits data in the frequency band of 2.4 GHz. It implements the concept of
frequency division multiplexing technology. Range of Wi-Fi technology is 40-300 feet. The
controlling device for the automation in the project is a Arduino UNO. The data sent from PC
over Wi-Fi will be received by Wi-Fi module connected to 9 Arduino UNO. Arduino UNO
reads the data and decides the switching action of electrical devices connected to it through
Relays.
iii

CHAPTER 2

COMPONETS

 ESP8266:

The ESP8266 WiFi Module is a self contained SOC with integrated TCP/IP protocol stack
that can give any microcontroller access to your WiFi network. The ESP8266 is capable of
either hosting an application or offloading all Wi-Fi networking functions from another
application processor. Each ESP8266 module comes pre-programmed with an AT command
set firmware, meaning, you can simply hook this up to your Arduino device and get about as
much WiFi-ability as a WiFi Shield offers (and that’ s just out of the box)! The ESP8266
module is an extremely cost effective board with a huge, and ever growing, community.

This module has a powerful enough on-board processing and storage capability that allows it
to be integrated with the sensors and other application specific devices through its GPIOs
with minimal development up-front and minimal loading during runtime. Its high degree of
on-chip integration allows for minimal external circuitry, including the front-end module, is
designed to occupy minimal PCB area. The ESP8266 supports APSD for VoIP applications
and Bluetooth co-existance interfaces, it contains a self-calibrated RF allowing it to work
under all operating conditions, and requires no external RF parts.

There is an almost limitless fountain of information available for the ESP8266, all of which
has been provided by amazing community support. In the Documents section below you will
find many resources to aid you in using

the ESP8266, even instructions on how to transforming this module into an IoT (Internet of
Things) solution!

Features:

• 802.11 b/g/n

• Wi-Fi Direct (P2P), soft-AP

• Integrated TCP/IP protocol stack

• Integrated TR switch, balun, LNA, power amplifier and matching network


iii

• Integrated PLLs, regulators, DCXO and power management units

• +19.5dBm output power in 802.11b mode

• Power down leakage current of <10uA

• 1MB Flash Memory

• Integrated low power 32-bit CPU could be used as application processor

• SDIO 1.1 / 2.0, SPI, UART

• STBC, 1× 1 MIMO, 2× 1 MIMO

• A-MPDU & A-MSDU aggregation & 0.4ms guard interval

• Wake up and transmit packets in < 2ms

• Standby power consumption of < 1.0mW (DTIM3)

RELAY:

Relayboard:-

A relay is an electrical device which is generally used to control high voltages using very low
voltage as an Input. This consists of a coil wrapped around a pole and a two small metal
flaps(nodes) that are used to close the circuit. One of the node is fixed and other is movable.
Whenever an electricity is passed through the coil, it creates a magnetic field and attracts the
iii

moving node towards the static node and the circuit gets completed. So, just by applying
small voltage to power up the coil we can actually complete the circuit for the high voltage to
travel. Also, as the static node is not physically connected to the coil there is very less chance
that the Microcontroller powering the coil gets damaged if something goes wrong.

This is Four Channel relay board controlled by computer USB port. The usb relay board is
with 4 SPDT relays rated up to 10A each. You may control devices 220V / 120V (up to 4)
directly with one such relay unit. It is fully powered by the computer USB port. Suitable for
home automation applications, hobby projects, industrial automation. The free software
allows to control relays manually, create timers (weekly and calendar) and multivibrators, use
date and time for alarms or control from command line. We provide software examples in
Labview, .NET, Java, Borland C++, Python

Features:-

• Datasheet - here

• Power led: Yes

• Relay leds: YesHigh quality

• 4 SPDT Relay channels - selectable by user:

o JQC-3FC/T73 DC5V (7A / 250VAC, 10A / 125VAC, 12A / 120VAC, 10A /

28VDC)

o RAS-05-15 (10A / 250VAC, 15A / 120VAC, 15A / 24VDC)

• PCB parameters: FR4 / 1.5mm / two layers / metalized holes / HAL / white stamp /

solder mask / еxtra PCB openings for better voltage isolation / doubled high voltage

tracks

• Current consumption: 400 mA

• Chip: FT245RL

• Power supply: from USB port

• Supported by DRM software (Windows and Linux): Yes

• Supported by Denkovi Command line tool (Windows, Linux): Yes


iii

• Android software available (low cost but very useful): Yes - New

• Software examples - here

• Documentation: here

Advantages:-

• High quality

• Low cost

• No extra power supply

• Software with many functions

• Control electrical devices according weekday/date/time

• Create timers or pulses with our software

Applications:-

• Home automation

• Robotics

• Alarms

• Timers

• Open doors and windows via PC

• Aquariums applications
iii

BLYINK:

Blynk was designed for the Internet of Things. It can control hardware remotely, it can
display sensor data, it can store data, vizualize 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

Features

Similar API & UI for all supported hardware & devices

Connection to the cloud using:

WiFi

Bluetooth and BLE

Ethernet
iii

USB (Serial)

GSM

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 SuperChart widget

Device-to-Device communication using Bridge Widget

Sending emails, tweets, push notifications, etc.


iii

CHAPTER 3

SOFTWARE

#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>

#include <BlynkSimpleEsp8266.h>

char auth[] = " _INW9OkKppIXyP6O1XSxsgLmUl00t5mw"; // the auth code that you got on
your gmail

char ssid[] = "C3_804"; // username or ssid of your WI-FI

char pass[] = "goodnight69"; // password of your Wi-Fi

void setup()

// Debug console

Serial.begin(9600);

pinMode(D1,OUTPUT); //extend these to D8 if you are using a 8 pin relay

pinMode(D2,OUTPUT);

pinMode(D3,OUTPUT);

pinMode(D4,OUTPUT);

digitalWrite(D1,HIGH); // Make it low if you want everything to go off

digitalWrite(D2,HIGH); // in case of a power cut

digitalWrite(D3,HIGH);

digitalWrite(D4,HIGH);
iii

Blynk.begin(auth, ssid, pass);

void loop()

Blynk.run();

}
iii

CHAPTER 4
REFRENCES & BIBLIOGRAPHY

You might also like