Professional Documents
Culture Documents
CHAPTER 1
INTRODUCTION
1.2 Functions
Send signals to switch lights and appliances on or off. Open and close contacts to
operate high and low voltage devices. Schedule and initiate events, such as watering the
garden Issue and accept infra-red commands Interface [2] with other systems, i.e. X 10,
telephone, computer, heating etc.
Home automation is anything that gives you remote or automatic control of things
in & around the home. The systems that you can control include: Lighting, Appliances,
Heating and cooling, Security and monitoring systems, Entertainment (home audio and
video), Communications (telephones and intercoms, internet), Lawn sprinklers, Curtain
movements, Pool filter pump, Spa heater, Filtration unit, Gate/garage door motor, Shade
motor control, Roof sprinklers, Electric strikes, Keyless entry etc.
This central controller can be accessed and controlled through interfaces like
keypad, wired or wireless touch-screens (with/without video), universal remotes, mobile
devices. Home automation provides a more convenient & elegant atmosphere for the
family to compliment and match the lifestyle. Everyone in the family experiences the
comfort of automation with added convenience through integrated control of scheduled
common lifestyle activities performed every day. An automated home can provide
security, temperature, lighting, and audio control for comfort, convenience, and safety.
It creates reliable and coordinated controls to operate home devices automatically for
simplifying operations.
Home automation saves your time and effort by controlling you home
automatically for performing routine functions such as watering your grass, or turning
off all lights, setting the thermostat to economy mode, control scheduled appliances
operation and arming the security system when you retire for the night
Home automation provides you with the comfort of whole home audio/video
integration so that any source could be placed anywhere in a home and still be enjoyed
everywhere in a home.
Home automation provides you pro-active home security so that you can look in
on your home remotely from anywhere in the world, or that your home will phone you
if it finds anything suspicious, or that a fire will alert your home to wake you, shut down
the gas and ventilation system, turn on a lighting path for your escape, and
automatically phone the fire/police department. In other words, it integrates your alarm
system with other home systems for a response to intrusion that meets your needs of
enhanced Safety.
Home Automation Saves Money by lowering your monthly utility bills with the
remote & scheduled control of lights, appliances, sprinklers and your air conditioning
Most controllers will offer all of the above plus more. When you use controllers
connected in the appropriate fashion, you can realize all sorts of benefits, limited
primarily by your imagination.
For example: -
When on holiday or working late, have the lights come on automatically and draw the
curtains.
Set room moods, i.e. one button push to switch off the main light, dim the perimeter
lights and switch the surround sound system on ready to play a movie.
RRCE, DEPT. OF ECE 3
IoT Based Home Automation Using Arduino
The controller can be either standalone or combined into a security system to give
additional benefits.
Security
There are real benefits to having your automation controller and security system
combined in one unit. You have the advantage of infra-red detectors from the alarm
system being available to perform/trigger automation tasks. You can also benefit from
the alarm system knowing whether you’re at home or not (i.e. whether the alarm is set
or not). This can give numerous benefits, for example we could set the system so that if
no movement is detected in the home for a given period, say 16 hours, then it rings a
mobile telephone and conveys a message to the recipient. This can be particularly
relevant when you have concerns about ailing relatives having accidents around the
home etc.
Needless to say, if the alarm system forms the basis of our automation system,
then it needs to be of a particularly high standard, able to expand to suit all
requirements. You should be able to connect smoke detectors in to the system and when
triggered, automatically switch on lights to illuminate the exit route whilst at the same
time dialing the fire brigade with a prerecorded message. For further information, see
details of our Comfort System.
PC Networking
Who remembers the time when having our own PC in the home seemed like a
dream that could never happen?
Who sees a future when PC’s have a function in most rooms in our home?
Many families already have more than one PC in the home, the kids want one each, dad
has one for business use, but they only have one printer and one internet access line.
RRCE, DEPT. OF ECE 4
IoT Based Home Automation Using Arduino
Network
Networking involves tying all of your computers together so that you can pass
information easily between them, and also share devices such as printers and internet
access. This is traditionally done with interface cards and cable although several
manufacturers now offer a wireless solution. Systems offering network connections via
the existing in house power lines are now starting to emerge. Using cable gives higher
data transfer rates and greater reliability at a more affordable price, but wireless
solutions are neater and easier to install especially where running cables would prove
difficult or messy. Tying your PC into your automation system generally requires
installing a serial cable between the two.
Convenience
An automated home is about the convenience of saving your time and effort by
having your home automatically do routine functions such as watering your grass (but
only if it has not rained recently), or turning off all lights, setting the thermostat to
economy mode and arming the security system when you retire for the night.
CHAPTER 2
LITERATURE SURVEY
The survey is a recognized and accepted part of the modern society. It is one of the
means by which society keeps it informed, a way of bringing under central situations of
increasing size and complexity of obtaining perceptive and standard of comparison. A
survey gives an oversight of a field and is thus distinguishing from a sort of study which
consists of a microscopic examination of a turf; it is a map rather than a detailed plan.
The survey must be planned before a start is made.
1. Ajah, G, David, N, Abioye, A, Web Based Security System, Sch. J. Eng. Tech,
1(3):112-116, 2013.
This paper presents a low cost and flexible home control and environmental
monitoring system. It employs an embedded micro – web server in Arduino Mega 2560
microcontroller, with IP connectivity for accessing and controlling devices and
appliances remotely. These devices can be controlled through a web application or via
Bluetooth Android based Smart phone app. The proposed system does not require a
dedicated server PC with respect to similar systems and offers a novel communication
protocol to monitor and control the home environment with more than just the switching
functionality. To demonstrate the feasibility and effectiveness of this system, devices
such as light switches, power plug, temperature sensor, gas sensor and motion sensors
have been integrated with the proposed home control system.
To acquiesce to the request of man’s need to protect his life, investment, property and
to maintain law and order in a society, security systems are employed to achieve
these goals. For the effective realization of these goals, the system must be able
to incorporate different function and monitor several activities instantaneously in real
time. These activities include access control-motion-detection, fire hazard & the ease of
monitoring the system via the Internet. The system has a way of monitoring requests for
access to the secured areas as well as reacting to intruder attempts. To achieve this a
successful hardware data acquisition unit based on a microcontroller is designed. The data
from the hardware unit is connected to the PC via the parallel port interface so as to monitor
all status signals in real Time. The GUI provides graphic display of the trends from the
sensor devices.
CHAPTER 3
HARDWARE IMPLEMENTATION
RRCE, DEPT. OF ECE 8
IoT Based Home Automation Using Arduino
Microcontroller ATmega2560
Operating Voltage 5V
Input Voltage
7-12V
(recommended)
SRAM 8 KB
EEPROM 4 KB
Length 101.52 mm
Width 53.3 mm
Weight 37 g
Each of the 54 digital pins on the Mega can be used as an input or output,
using pinMode(),digitalWrite(), and digitalRead() functions. They operate at 5 volts.
Each pin can provide or receive 20 mA as recommended operating condition and has an
internal pull-up resistor (disconnected by default) of 20-50 k ohm. A maximum of
40mA is the value that must not be exceeded to avoid permanent damage to the
microcontroller.
Serial: 0 (RX) and 1 (TX); Serial 1: 19 (RX) and 18 (TX); Serial 2: 17 (RX) and
16 (TX); Serial 3: 15 (RX) and 14 (TX). Used to receive (RX) and transmit (TX) TTL
serial data. Pins 0 and 1 are also connected to the corresponding pins of the
ATmega16U2 USB-to-TTL Serial chip.
The Mega 2560 has 16 analog inputs, each of which provide 10 bits of resolution (i.e.
1024 different values). By default they measure from ground to 5 volts, though is it
possible to change the upper end of their range using the AREF pin
and analogReference() function.
There are a couple of other pins on the board:
>AREF. Reference voltage for the analog inputs. Used with analogReference().
RRCE, DEPT. OF ECE 12
IoT Based Home Automation Using Arduino
>Reset. Bring this line LOW to reset the microcontroller. Typically used to add a reset
button to shields which block the one on the board.
3.1.4 Power
The Mega 2560 can be powered via the USB connection or with an external power
supply. The power source is selected automatically.
External (non-USB) power can come either from an AC-to-DC adapter (wall-wart)
or battery. The adapter can be connected by plugging a 2.1mm center-positive plug into
the board's power jack. Leads from a battery can be inserted in the GND and Vin pin
headers of the POWER connector.
The board can operate on an external supply of 6 to 20 volts. If supplied with less
than 7V, however, the 5V pin may supply less than five volts and the board may
become unstable. If using more than 12V, the voltage regulator may overheat and
damage the board. The recommended range is 7 to 12 volts.
Vin. The input voltage to the board when it's using an external power source (as
opposed to 5 volts from the USB connection or other regulated power source). You can
supply voltage through this pin, or, if supplying voltage via the power jack, access it
through this pin.
5V. This pin outputs a regulated 5V from the regulator on the board. The board can be
supplied with power either from the DC power jack (7 - 12V), the USB connector (5V),
or the VIN pin of the board (7-12V). Supplying voltage via the 5V or 3.3V pins
bypasses the regulator, and can damage your board. We don't advise it.
3V3. A 3.3-volt supply generated by the on-board regulator. Maximum current draw is
50 mA.
IOREF. This pin on the board provides the voltage reference with which the
microcontroller operates. A properly configured shield can read the IOREF pin voltage
and select the appropriate power source or enable voltage translators on the outputs for
working with the 5V or 3.3V.
3.1.5 Communication
The Mega 2560 board has a number of facilities for communicating with a
computer, another board, or other microcontrollers. The ATmega2560 provides four
hardware UARTs for TTL (5V) serial communication. An ATmega16U2 (ATmega 8U2
on the revision 1 and revision 2 boards) on the board channels one of these over USB
and provides a virtual com port to software on the computer (Windows machines will
need a .inf file, but OSX and Linux machines will recognize the board as a COM port
automatically. The Arduino Software (IDE) includes a serial monitor which allows
simple textual data to be sent to and from the board. The RX and TX LEDs on the board
will flash when data is being transmitted via the ATmega8U2/ATmega16U2 chip and
USB connection to the computer (but not for serial communication on pins 0 and 1).
A Software Serial library allows for serial communication on any of the Mega 2560's
digital pins.
The Mega 2560 also supports TWI and SPI communication. The Arduino Software
(IDE) includes a Wire library to simplify use of the TWI bus
3.2 IR SENSOR
The module consists of 358 comparator IC. The output of sensor is high whenever
it IR frequency and low otherwise. The on-boarded indicator helps user to check status
of the sensor without using any additional hardware.
Application Ideas:
Obstacle detection
Shaft encoder
Fixed frequency detection
is maximum at this point. If the sensing distance (i.e., Sensitivity) of the receiver is
needed to be reduced, then one can tune the potentiometer in the anti-clockwise
direction from this point.
Further, if the orientation of both TX and Rx LED’s is parallel to each other, such
that both are facing outwards, then their sensitivity is maximum. If they are moved
away from each other, such that they are inclined to each other at their soldered end,
then their sensitivity reduces.
Tuned sensitivity of the sensors is limited to the surroundings. Once tuned for a
particular surrounding, they will work perfectly until the IR illumination conditions of
that region nearly constant. For example, if the potentiometers tuned inside
room/building for maximum sensitivity and then taken out in open sunlight, it will
require retuning, since sun’s rays also contain Infrared (IR) frequencies, thus acting as a
IR source (transmitter). This will disturb the receiver’s sensing capacity. Hence it needs
to be returned to work perfectly in the new surroundings.
The output of IR receiver goes low when it receives IR signal as shown 4.1(b) .
Hence the output pin is normally low because though the IR LED is continuously
transmitting, due to no obstacle, nothing is reflected back to the IR receiver. The
indication LED is off. When an obstacle is encountered, the output of IR receiver goes
low, IR signal is reflected from the obstacle surface. This drives the output of the
comparator low. This output is connected to the cathode of the LED, which then turns
ON.
An LCD is a small low cost display. It is easy to interface with a micro-controller because
of an embedded controller (the black blob on the back of the board). This controller is
standard across many displays (HD 44780) which means many micro-controllers (including the
Arduino) have libraries that make displaying messages as easy as a single line of code. Hence
itis very important device in embedded system. It offers high flexibility to user as he can display
the required data on it
Next step after initialization is to send data bytes to required display data RAM
memory location. Firstly, set the address location using address set command byte and
then send data bytes using the DDRAM write command. To address specific location in
display data RAM one must have the knowledge of how the address counter is
incremented.
In recent years the LCD is finding widespread use replacing LEDs This is due to
following reasons
Even limited to character based modules, there is still a wide variety of shapes
and sizes available. Line lengths 8, 16,2,024,32 and 40 character are all standard, in one,
two and 4 lines versions.
Several different liquid crystal technologies based exist.” Supertwist” types, for
Example, offer improved contrast and viewing angle over the older “twisted nematic”
types. Some modules are available with backlighting, so that they can viewed in dimly
lit conditions.
3.3.3 Connections
A 14 pin access is provided having 8 data lines,3 control lines and 3 power
lines.The function of each of the connections is shown in table 4.7.
Pin 1 and 2 are the power supply lines, Vss and Vdd. The Vdd pin should be connected
to positive supply and Vss to 0V supply or ground. Although the LCD module data
sheets specify a 5VDC supply,Supplies of 6V and 4-5V both work well, and even 3V is
sufficient for some modules.
Pin 3 is a control pin ,Vee , which is used to alter the contrast of the display. Ideally, this
pin should be connected to a variable voltage supply.
Pin 4 is the (RS)register select line. When this line is low, data bytes transferred to the
display are treated as commands and data bytes read from the display indicate its status.
By setting the RS line high, character data can be transferred to and from the module.
Pin 5 is read/write line. this line is pulled low in order to write commands or character
data to the module, or pulled high to read character data or status information from its
registers.
Pin 6 is the enable line. this input is used to initiate the actual transfer of commands or
character data between the module and the data lines. When writing to the display, data
is transferred only on high to low transition of this signal.
Pin 7 to 14 are data bus lines (D0 to D7).data can be transferred to and from the display
either as a single 8-bit byte or two 4 bit nibbles. The other two pins LED+ and LED- is
used for back light of the LCD.
Table
Features
The Grove - Gas Sensor(MQ2) module is useful for gas leakage detection (in
home and industry). It is suitable for detecting H2, LPG, CH4, CO, Alcohol, Smoke or
Propane. Due to its high sensitivity and fast response time, measurements can be taken
as soon as possible. The sensitivity of the sensor can be adjusted by using the
potentiometer.
3.5.1 Features
3.5.3 Specifications
Heating
PH 0.5 - 800 mW
consumption
RH Heater resistance - 33 - Ω
Rs Sensing Resistance 3 - 30 kΩ
This is an Analog output sensor. This needs to be connected to any one Analog
socket in Base Shield. The examples used in this tutorial makes uses of A0 analog pin.
Connect this module to the A0 port of Base Shield.
The output voltage from the Gas sensor increases when the concentration of gas
increases. Sensitivity can be adjusted by varying the potentiometer.
5V VCC
GND GND
NC NC
Analog A0 SIG
3.6 Relay
A relay is an electrically operated switch. Current flowing through the coil of the
relay creates a magnetic field which attracts a lever and changes the switch contacts. The
coil current can be on or off, so relays have two switch positions and they are double
throw (changeover) switches.
Relays allow one circuit to switch a second circuit which can be completely
separate from the first. For example, a low voltage battery circuit can use a relay to switch
a 230V AC mains circuit. There is no electrical connection inside the relay between the
two circuits, the link is magnetic and mechanical.
The coil of a relay passes a relatively large current, typically 30mA for a 12V
relay, but it can be as much as 100mA for relays designed to operate from lower voltages.
Most ICs (chips) cannot provide this current and a transistor is usually used to amplify the
small IC current to the larger value required for the relay coil. The maximum output
current for the popular 555 timer IC is 200mA so these devices can supply relay coils
directly without amplification.
Relays are usually SPDT or DPDT but they can have many more sets of switch
contacts, for example relays with 4 sets of changeover contacts are readily available. Most
relays are designed for PCB mounting but you can solder wires directly to the pins
providing you take care to avoid melting the plastic case of the relay.
The coil will be obvious and it may be connected either way round. Relay coils
produce brief high voltage 'spikes' when they are switched off and this can destroy
transistors and ICs in the circuit. To prevent damage, you must connect a protection diode
across the relay coil.
The animated picture shows a working relay with its coil and switch contacts. You
can see a lever on the left being attracted by magnetism when the coil is switched on. This
lever moves the switch contacts. There is one set of contacts (SPDT) in the foreground
and another behind them, making the relay DPDT.
The relay's switch connections are usually labeled COM, NC and NO:
COM = Common, always connect to this, it is the moving part of the switch.
NC = Normally Closed, COM is connected to this when the relay coil is off.
NO = Normally Open, COM is connected to this when the relay coil is on.
Connect to COM and NO if you want the switched circuit to be on when the relay
coil is on.
Connect to COM and NC if you want the switched circuit to be on when the relay
coil is off.
Physical size and pin arrangement : If you are choosing a relay for an existing
PCB you will need to ensure that its dimensions and pin arrangement are suitable.
Coil voltage : The relay's coil voltage rating and resistance must suit the circuit
powering the relay coil. Many relays have a coil rated for a 12V supply but 5V
and 24V relays are also readily available. Some relays operate perfectly well with
a supply voltage which is a little lower than their rated value.
Coil resistance: The circuit must be able to supply the current required by the
relay coil. You can use Ohm's law to calculate the current:
The Figure 3.5.3 shows a working relay with its coil and switch contacts. We can
see a lever on the left being attracted by magnetism when the coil is switched on. This
lever moves the switch contacts. There is one set of contacts (SPDT) in the foreground
and another behind them, making the relay DPDT.
The relay's switch connections are usually labeled COM, NC and NO:
COM = Common, always connect to this; it is the moving part of the switch.
NC = Normally Closed, COM is connected to this when the relay coil is off.
NO = Normally Open, COM is connected to this when the relay coil is on.
Connect to COM and NO if you want the switched circuit to be on when the relay coil
is on.
Connect to COM and NC if you want the switched circuit to be on when the relay coil
is off.
We need to consider several features when choosing a relay:
If you are choosing a relay for an existing PCB you will need to ensure that its
dimensions and pin arrangement are suitable. You should find this information in the
supplier's catalogue.
• Coil voltage
The relay's coil voltage rating and resistance must suit the circuit powering the
relay coil. Many relays have a coil rated for a 12V supply but 5V and 24V relays are also
readily available. Some relays operate perfectly well with a supply voltage which is a
little lower than their rated value.
• Coil resistance
The circuit must be able to supply the current required by the relay coil. You can
use Ohm's law to calculate the current:
supply voltage
Relay coil current =
coil resistance
The relay's switch contacts must be suitable for the circuit they are to control. You
will need to check the voltage and current ratings. Note that the voltage rating is usually
higher for AC, for example: "5A at 24V DC or 125V AC".
relay. However, transistors cannot switch AC or high voltages (such as mains electricity)
and they are not usually a good choice for switching large currents (> 5A). In these cases,
a relay will be needed, but note that a low power transistor may still be needed to switch
the current for the relay's coil.
Advantages of relays:
• Relays can switch AC and DC; transistors can only switch DC.
• Relays can switch high voltages, transistors cannot.
• Relays are a better choice for switching large currents (> 5A).
• Relays can switch many contacts at once.
Disadvantages of relays:
The ULN2003 has a 2.7kW series base resistor for each Darlington pair for
operation directly with TTL or 5V CMOS devices.
RRCE, DEPT. OF ECE 29
IoT Based Home Automation Using Arduino
Features
Vo Output voltage 50 V
Vi Input voltage 30 V
minimal PCB area. ESP8266EX also integrates an enhanced version of Tensilica’s L106
Diamond series 32-bit processor, with on-chip SRAM, besides the WiFi functionalities.
ESP8266EX is often integrated with external sensors and other application specific
devices through its GPIOs; sample codes for such applications are provided in the
software development kit (SDK). Espressif Systems
3.7.2 Features
802.11 b/g/n
Integrated low power 32-bit MCU
Integrated 10-bit ADC
Integrated TCP/IP protocol stack
Integrated TR switch, balun, LNA, power amplifier and matching network
Integrated PLL, regulators, and power management units
Supports antenna diversity
WiFi 2.4 GHz, support WPA/WPA2
Support STA/AP/STA+AP operation modes
Support Smart Link Function for both Android and iOS devices
SDIO 2.0, (H) SPI, UART, I2C, I2S, IR Remote Control, PWM, GPIO
STBC, 1x1 MIMO, 2x1 MIMO • A-MPDU & A-MSDU aggregation & 0.4s
guard interval
Deep sleep power < 5uA
Wake up and transmit packets in < 2ms
Standby power consumption of < 1.0mW (DTIM3)
+20 dBm output power in 802.11b mode
Operating temperature range -40C ~ 125C
FCC, CE, TELEC, WiFi Alliance, and SRRC certified
3.7.3 Applications
Home Appliances
Home Automation
Smart Plug and lights
Mesh Network
Industrial Wireless Control • Baby Monitors
IP Cameras
Sensor Networks
Wearable Electronics
Portable Modem
The pin assignments for 32-pin QFN package is illustrated in Fig. 3.7.2.
Table 3.7.1 below presents an overview on the general pin attributes and the functions of
each pin.
T
Pin Name ype Function
CHAPTER 4
SOFTWARE IMPLEMENTATION
setup(): a function that runs once at the start of a program and that can initialize
settings.
loop(): a function called repeatedly until the board powers off.
After compiling and linking with the GNU toolchain, also included with the IDE
distribution, the Arduino IDE employs the programavrdude to convert the executable
code into a text file in hexadecimal coding that is loaded into the Arduino board by a
loader program in the board's firmware.
You also need a standard USB cable (A plug to B plug): the kind you would connect to
a USB printer, for example.
Get the latest version from the download page. You can choose between the
Installer (.exe) and the Zip packages. We suggest you use the first one that installs
directly everything you need to use the Arduino Software (IDE), including the drivers.
When the download finishes, proceed with the installation and please allow the driver
installation process.
Step 1
Step II
Choose the installation directory (we suggest to keep the default one)
Step III
The process will extract and install all the required files to execute properly the Arduino
Software (IDE)
While in the Control Panel, navigate to System and Security. Next, click on
System. Once the System window is up, open the Device Manager.
Look under Ports (COM & LPT). You should see an open port named "Arduino
UNO (COMxx)". If there is no COM & LPT section, look under "Other Devices" for
"Unknown Device".
Right click on the "Arduino UNO (COmxx)" port and choose the "Update Driver
Software" option.
Finally, navigate to and select the driver file named "arduino.inf", located in the
"Drivers" folder of the Arduino Software download (not the "FTDI USB Drivers" sub-
directory). If you are using an old version of the IDE (1.0.3 or older), choose the Uno
driver file named "Arduino UNO.inf"
Step IV
Step V
A few seconds after the upload finishes, you should see the pin 13 (L) LED on the board
start to blink (in orange). If it does, congratulations! You've gotten Arduino or Genuino
up-and-running. If you have problems, please see the troubleshooting suggestions.
When you connect the board, Windows should initiate the driver installation process (if
you haven't used the computer with an Arduino board before).
You can check that the drivers have been installed by opening the Windows Device
Manager (in the Hardware tab of System control panel). Look for a "USB Serial Port" in
the Ports section; that's the Arduino board.
CHAPTER 5
PROJECT DESIGN
Project design is the model on the basis of which we proceed with the designing
part, in our project a low cost and efficient smart home system is presented. This system
has two main modules: the hardware interface module and the software communication
module. At the heart of this system is the Arduino Mega 2560 microcontroller which is
also capable of functioning as a micro web server and the interface for all the hardware
modules. All communication and controls in this system pass through the
microcontroller. Arduino can sense the surroundings by receiving input signal from a
variety of sensors and can affect its environment via actuators. An analog temperature
sensor is a chip that tells you what the ambient temperature is.
The Infra-Red (IR) sensors allow one to sense motion, almost always and is used
to detect whether a human has moved in or out of the sensors range. The IR Sensor-
Single is a general purpose proximity sensor. Here we use it for Motion detection. This
RRCE, DEPT. OF ECE 44
IoT Based Home Automation Using Arduino
motion can be detected by checking for a high signal on a signal I/O pin. They are
small, inexpensive, low-power, easy to use and don't wear out. For that reason, they are
commonly found in appliances and gadgets used in homes or businesses. MQ2 is a
semiconductor type sensor, which can appropriately sense the presence of smoke, LPG,
methane, butane, propane and other hydrocarbon combustible gases. The sensitive
material in this sensor is tin-dioxide (SnO2). When it comes in contact with the gas to
be monitored, the electrical resistance of the sensor decreases; enabling the
microcontroller to respond to the situation. When it detects the concentration of
combustible gas in the air it outputs its reading as an analog voltage. The sensor can
measure concentrations of flammable gas of 300 to 10,000 ppm. The sensor can operate
at temperatures from -20 to 50°C and consumes less than 150 mA at 5 V.To allow
connection for power plugs and switching of electrical load within the home, relay
switches are used. The relay switches have capability to carry a maximum load of 10A
at 240V. This is sufficient to carry any household appliance as these devices do not
draw much current. To enable Wi-Fi connectivity on the microcontroller, ESP8266 Wi-
Fi modem is used. To receive sensor data an android app called Termtcp app is used.
This application allows the user to control devices and monitor Sensor data like
temperature gas leakage by using internet.
CHAPTER 6
Start
No
Object
Detected?
Yes
Trigger Buzzer
Start
No
If temp>35
Yes
Trigger Fan
No
If Gas Leaked
Yes
Trigger Light
CHAPTER 7
EXPERIMENTAL RESULTS
CHAPTER 8
Reliability
Low cost
Quality of service
Scalability
Network co-existence
Security and Privacy
Efficiency
Energy
8.2 Applications
2- Lighting
3- Natural lighting
4- Audio
Major companies associated with Audio Distribution include: There are three
components that allow the consumer to listen to audio throughout your home, or
business:
5- Video
Integration of the intercom to the telephone, or of the video door entry system to the
television set, allowing the residents to view the door camera automatically.
6- Security
With Home Automation, the consumer can select and watch cameras live from an
Internet source to their home or business. Security cameras can be controlled, allowing
the user to observe activity around a house or business right from a Monitor or touch
panel. Security systems can include motion sensors that will detect any kind of
unauthorized movement and notify the user through the security system or via cell
phone.
7- Intercoms
An intercom system allows communication via a microphone and loud speaker between
multiple rooms.
Ubiquity in the external control as much internal, remote control from the Internet,
PC, wireless controls electrical equipment.
Transmission of alarms.
Intercommunications.
Using special hardware, almost any device can be monitored and controlled
automatically or remotely.
8 - Plant Watering
CONCLUSION
This project is developed for Houses, small, Large, Medium size national and
multinational organizations which keeps large amount of money in their office and want
100% security. Their main requirements were they wanted a system that could alert
them when burglary takes place at the time when office is closed. These organizations
are very big and have many employees; most of the employees do overtime and stay at
office for late nights. Supervisor is responsible to switch off the electric lights, other
RRCE, DEPT. OF ECE 52
IoT Based Home Automation Using Arduino
appliances and lock the office after everyone leaves but the main problem was this
supervisor had to stay with employees for long time until they finish their work, so we
proposed this system to these organizations that can solve out their problems. Now
supervisor can monitor the employees from their houses using live web cams, turn off
lights and doors when everyone is gone.
FUTURE SCOPE
(1) Dedicated Home Automation Hardware Will Still Have Its Place
But the kind of dedicated home automation hardware that we are going to see are
the components usually hidden from the view of the home owner. Dedicated gateway
products that specialize on translating automation protocols to and from the home IP
network are still needed. The mass consumer electronics industry will have little interest
to target this area, at least not yet.
Expect to see less and less dedicated touch screens or dedicated home automation
controllers that are easily replaced with off-the-shelf products. Their pricing, and
therefore their utility, can only exist at the very peak of the luxury market, targeting
high-net-worth-individual homes, not the mass market. There's not much space at
the peak of the consumer pyramid, few vendors will survive in this segment but most
will need to adjust their business models to cater to a different kind of home owner.
As with the off-the-shelf hardware, IP networks are already in the homes, already
installed around the house in new buildings, and they are being used to transfer media
for user consumption. Undoubtedly, whether it is music, video, photos etc. the
distribution happens on an IP network. Media centers are enabled for IP based controls.
Web's HTTP protocol and Universal Plug'n'Play protocols are being used over IP to
control things.
Both off-the-shelf hardware and IP networks are generic technical solutions that
must be adapted to automation purposes accordingly.
IT industry today uses these same components to support critical functions in the
business enterprise. Same can be done for automation. But it requires establishing new
processes that tackles the challenges of quality assurance in testing components,
ensuring they work together and ultimately, certifying them as a supported solution for
an automation installation. Training programs will need to be created and updated to
include technical and configuration details of third party components.
REFERENCES
1. Ajah, G, David, N, Abioye, A, Web Based Security System, Sch. J. Eng. Tech,
1(3):112-116, 2013.