You are on page 1of 15

HOME

AUTOMATION
USING
RASPBERRY PI
PRESENTED BY
DEEPAK BORA
SACHIN GOYAL
PRIYANKA SHRIVASTAVA
SAMRADHI SHARMA
What is home automation ?
● Home automation is a wireless home appliance
control system accessed by remote device such
as mobile phone(Android or Ios) to allow a home
owner to control , monitor and coordinate home
appliances , without changing the home
infrastructure.
Why home automation ?

● Save time
● Save money (long run)
● Self maintenance
● Security
● Makes life easy
System Requirement
1. Hardware requirements
● Raspberry Pi 3
● Memory card
● 5V Relays
● Connection Blocks
● Resistors
● Transistors
2. Software Requirements

● Zila
● Webopi
● Android studio
Problem Statement
There is a great energy crisis in current situation of our country. Moreover, people have become
negligent in proper utilization of the available energy. People often forget to turn off the light
sources and other home appliance while staying out from home. Even in those situations,
application of home automation makes it possible to control them from a distant place in easy
way with our smartphone.
People are constantly running from place to place, working to accomplish everything on our
never-ending “to-do” list. Because of the home automation system, we never have to worry about
opening the door, switching off the appliances and so on. In short, we can save precious time and
experience more daily productivity
Use Case Diagram
Class Diagram
Activity Diagram
Sequence Diagram
Preparing the Raspberry Pi

To update the raspberry Pi below commands and then reboot the


RPi;

sudo apt-get update


sudo apt-get upgrade
sudo reboot

wget http://sourceforge.net/projects/webiopi/files/WebIOPi-
0.7.1.tar.gz
To turn on the lights :

import org.openhab.model.script.actions.
import org.openhab.core.library.types.
import java.util.
* rule "voice"
when Item VoiceCommand received command then var String command = VoiceCommand.state.toString.toLowerCase
logInfo("Voice.Rec","VoiceCommand received "+command) if (command.contains("turn on fan") ||
(command.contains("turn on the fan"))) { fan.sendCommand(ON) } else if (command.contains("turn off fan") ||
(command.contains("turn off the fan"))) { fan.sendCommand(OFF) } else if (command.contains("turn off light") ||
(command.contains("turn off the light"))) { light.sendCommand(OFF) } else if (command.contains("turn on light") ||
(command.contains("turn on the light"))) { light.sendCommand(ON) } else if (command.contains("turn on night lamp") ||
(command.contains("turn on the night lamp"))) { night_light.sendCommand(ON) } else if (command.contains("turn off night
lamp") || (command.contains("turn off the light lamp"))) { night_light.sendCommand(OFF) } else if (command.contains("turn
on exhaust fan") || (command.contains("turn on the exhaust fan"))) { exhaust.sendCommand(ON) } else if
(command.contains("turn off exhaust fan") || (command.contains("turn off the exhaust fan"))) {
exhaust.sendCommand(OFF) } end
To turn on the fan :

Switch fan "Fan" <fan_ceiling> { gpio="pin:17 activelow:yes initialValue:low" }


Switch night_light "Night Lamp" <light> { gpio="pin:27 activelow:yes initialValue:high" }
Switch exhaust "Exhaust Fan" <fan_box> { gpio="pin:23 activelow:yes initialValue:high" }
Switch light "Light" <light> { gpio="pin:5 activelow:yes initialValue:low" }

You might also like