Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Kalyan PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

Department of Electronics and Communication

Engineering
18EC2214- IOT Workshop
MINOR PROJECT

A Project Based Lab Report


On
“HOME AUTOMATION USING RASPBERRY PI”
SUBMITTED BY:
BATCH NUMBER : 7
180040088–S. SAI PRIYANKA
180040100–M. SRINIVAS REDDY
180040103-A. KALYANA PRIYATHAM

UNDER THE GUIDANCE OF

Asst.professor K.T..P.S.SATISH KUMAR

KL UNIVERSITY
Green fields, Vaddeswaram – 522 502
Guntur Dt., AP, India.
Department of Electronics and Communication
Engineering

BONAFIDE CERTIFICATE

This is to certify that the project-based laboratory Report Title :”HOME


AUTOMATION USING RASPBERRY PI” Submitted by : S.SAIPRIYANKA,
M.SRINIVASAREDDY,A.KALYANAPRIYATAMRegisterNumber:18004088,18
0040100,180040103. In the Department of Electronics and Communication
Engineering, KL University in partial fullfillment of the requirements for
the completion of a project-based Laboratory in course in II B Tech IV
Semester, is a bonafide record of the work carried out by him/her under
during the academic year 2019 – 2020.

PROJECT SUPERVISOR HEAD OF THE DEPARTMENT


TABLE OF CONTENTS

S.NO CONTENTS PAGE NO


1. Abstract 5

2. Introduction 5

3. Block Diagram 7

4. Components required 10

5. Working 12

6. Code 12

7. Output 13

8. Advantages 13

9. Conclusion 13

10. References 14
ABSTRACT

With advancement of Automation technology, life is getting simpler and easier


in all aspects. In today’s world Automatic systems are being preferred over
manual system. With the rapid increase in the number of users of internet over
the past decade has made Internet a part and parcel of life, and IoT is the latest
and emerging internet technology. Internet of things is a growing network of
everyday object-from industrial machine to consumer goods that can share
information and complete tasks while you are busy with other activities.
Wireless Home Automation system using IoT is a system that uses computers or
mobile devices to control basic home functions and features automatically
through internet from anywhere around the world, an automated home is
sometimes called a smart home.

It is meant to save the electric power and human energy. The home automation
system differs from other system by allowing the user to operate the system
from anywhere around the world through internet connection. In this paper we
present a Home Automation system using Intel Galileo that employs the
integration of cloud networking, wireless communication, to provide the user
with remote control of various lights, fans, and appliances within their home
and storing the data in the cloud. The system will automatically change on the
basis of sensors’ data. This system is designed to be low cost and expandable
allowing a variety of devices to be controlled.
Introduction

In the present day, security systems play an important role in the protection of
lives and investment. This is achieved by the incorporation of various
subsystems into the security system with a single control unit such as
surveillance, intruder control, access control, fire detection, etc. A smart home
is one that is equipped with lighting, heating, and electronic devices that can be
controlled remotely by Smartphone or via the internet. An internet based home
automation system focuses on controlling home electronic devices whether you
are inside or outside your home. Home automation gives an individual the
ability to remotely or automatically control things around the home.

A home appliance is a device or instrument designed to perform a specific


function, especially an electrical device, such as a refrigerator, for household
use. The words appliance and devices are used interchangeably. Automation is
today’s fact, where things are being controlled automatically, usually the basic
tasks of turning ON/OFF certain devices and beyond, either remotely or in close
proximity. Automation lowers the human judgment to the lowest degree
possible but does not completely eliminate it.

The concept of remote management of household devices over the internet from
anywhere, any time in the world today can be a reality. Assume a system where
from the office desk, the user could view the status of the devices and decides to
take control by tuning his TV set to his favorites channel, turns on the cooling
system, say the air conditioner, and switches on or off some of the lights. This
user could walk back home and only find a very comfortable, pleasant home.
The recent developments in technology which permit the use of Bluetooth and
Wi-Fi have enabled different devices to have capabilities of connecting with
each other.
BLOCK DIAGRAM
Procedure:
Components Required:
1.Raspberry pi board

2.Jumper cables

3. PIR Sensor
4. DHT11 Sensor

5. LDR

6. DC motor
Working:
A WiFi enabled Relay coupled with Raspberry Pi enables to operate Lights/any
other appliances using mobile phone from anywhere any-time. Home
automation is the trending technology, it is the first step towards buzzing word
Iot where every device has an IP address and can be accessedremotely.

Every user who is experienced in the existing system may think of a system that
may add more flexibility and run with some common applications such as
android. The proposed system is designed in such a way to avoid the limitations
of the existing system. The proposed system supports more flexibility, comfort,
ability and security.

The proposed home automation system is working with very popular android
phones. It is having mainly three components; the android enable user device , a
Wi-Fi router having a good scalable range, and a Raspberry pi board. Here the
users have provision to control the home appliances through webpage. This will
improve the system popularity since there is no need for a wired connection,
internet etc. The instruction from the user will be transmitted through the wifi
network.

The proposed system architectures generally incorporate a Raspberry pi


computer for the purposes of network management and provision of remote
access. Raspberry pi can be configured according to our home system. The user
will communicate Raspberry pi through wifi network. The system is flexible
and scalable , allowing additional home appliances designed by multiple
vendors, to be securely and safely added to the home network with the
minimum amount of network with the minimum amount of effort.

The wifi network should be having adequate strength also.we can use awifi
modem for sleeping a wifi. The serial data coming from wifi unit is connected
to Raspberry pi circuit. The core of the home automation system consists of
Raspberry pi circuit. The core of the automation system consists of Raspberry pi
board . It can be viewed as a mini computer capable of doing many functions.
The Raspberry pi board is configured for each home appliances .

So according to user intervention the matched out will make high and the
corresponding relay will switch on and device start function. The system is
scalable and allows multivendor appliances to be added with no major changes
to its core. The project mainly consists of three modules that includes User
Interface ,Wifi Router Configuration, Raspberry pi, Relay circuit and
Appliances.
Code:
import RPi.GPIO as GPIO

from time import sleep

import Adafruit_DHT

PIR_input = 18

LED = 32

buzzer=11

GPIO.setwarnings(False)

GPIO.setmode(GPIO.BOARD)

GPIO.setup(PIR_input, GPIO.IN)

GPIO.setup(LED, GPIO.OUT)

GPIO.output(LED, GPIO.LOW)

while True:

if(GPIO.input(PIR_input)):

GPIO.output(LED, GPIO.HIGH)

print("high")

GPIO.setup(buzzer,GPIO.OUT)

sensor=Adafruit_DHT.DHT11

gpio=16

while(True):

humidity, temperature = Adafruit_DHT.read_retry(sensor, gpio)

while(1):

print('Temp={0:0.1f}*CHumidity={1:0.1f}%'.format(temperature,
humidity))

if(temperature>25 and humidity>75):


GPIO.output(buzzer,GPIO.HIGH)

print ("Beep")

sleep(0.5) # Delay in seconds

GPIO.output(buzzer,GPIO.LOW)

print ("No Beep")

sleep(0.5)

else:

GPIO.output(LED, GPIO.LOW)
Advantages:

 Adds Safety Through Appliance and Lighting Control.


 Secures Home Through Automated Door Locks.
 Increases Awareness Through Security Cameras.
 Increases Convenience Through Temperature Adjustment.
 Saves Time.
 Saves Money and Increases Convenience.
 Contributes to Economy.
 Increases Peace of Mind.
 Allows you Control When out of Town.
 Keeps Tabs On Your Children.

Conclusions:
In this highly developing era, where directly or indirectly, everything is
dependent on computation and information technology, Raspberry Pi proves to
be a smart, economic and efficient platform for implementing the home
automation. This paper provides a basic application of home automation using
Raspberry Pi which can be easily implemented and used efficiently. The code
provided is generic and flexible in a user friendly manner and can be extended
for any future applications like power control, surveillance, etc, easily.
Moreover, this technique is better than other home automation methods is
several ways
References

[1] AI-Ali A. R. and AI-Rousan M., "Java-based home automation system",


IEEE Transactions on Consumer Electronics, vol. 50, no. 2, pp. 498- 504, 2004.
[2] Ali M., V laskamp J.H.A, Eddiny N.N., Falconer B. and Oram c., "Technical
Development and Socioeconomic Implications of the Raspberry Pi as a
Learning Tool in a developing countries“ 5thcomputer science and electronic
engineering conference(CEEC), pp. 103-108,2013. [3] Ardam H. and Coskun I.,
"A remote controller for home and office appliances by telephone", IEEE
Transactions on Consumer Electronics, vol. 44S.

You might also like