Final Report
Final Report
PROJECT REPORT ON
EGE-207
1
ACKNOWLEDGMENT
The success of this project is not the lone effort of only one member but combine Effort all the
team members and other helping hands ,we owe our deep gratitude to Narayani Bahupravidhik
Shikchalaya Bharatpur -10 chitwan and department of Diploma in electrical engineering for
providing this platform to do the project then with all due respect, special thanks to our
supervisor Er. tek Nath lamichhane. Who Continuous assisted, guide and encouragded us.this
helped us to complete all the task regarding. the project from start to end .we should also to
thanks to our project coordinator HOD Er. shiva Shrestha For giving us all support and
guidance, which made us come complete the project on time .we would also like to express our
gratitude towards Er.Samir Raj Bhandhari for his technical advice and Er. devendra Yadav for
assisting us during, the fabrication Of this system. Final, we want to express our heartily thanks
to all those who directly or indirectly provided us their cooperation in this project.
TEAM MEMBERS
Rabin Chaudhary
Rajan Chaudhary
Radheshyam Ray
2
ABSTRACT
The main objective of this project is to develop a home automation system using an Arduino
board with Bluetooth being remotely controlled by any Android OS smart phone. As technology
is advancing so houses are also getting smarter. Modern houses are gradually shifting from
conventional switches to centralized control system, involving remote controlled switches.
Presently, conventional wall switches located in different parts of the house makes it difficult
for the user to go near them to operate. Even more it becomes more difficult for the elderly or
physically handicapped people to do so. Remote controlled home automation system provides
a most modern solution with smart phones.
In order to achieve this, a Bluetooth module is interfaced to the Arduino board at the receiver
end while on the transmitter end, a GUI application on the cell phone sends ON/OFF commands
to the receiver where loads are connected. By touching the specified location on the GUI, the
loads can be turned ON/OFF remotely through this technology. The loads are operated by
Arduino board through opto-isolators and thyristors using triacs.
TABLE OF CONTENTS
3
ACKNOWLEDGMENT...................................................................................................................
ABSTRACT................................................................................................................................................3
CHAPTER-1..................................................................................................................................
INTRODUCTION.......................................................................................................................................6
CHAPTER -2.................................................................................................................................
LITERATURE REVIEW...................................................................................................................
2.1 COMPONENT REQUIRED.......................................................................................................
2.1.1 ARDUINO NANO.................................................................................................................
2.1.2 4 CHANNEL RELAY MODULE..............................................................................................
2.1.3 BLUETOOTH HC05 Module.................................................................................................
2.1.4 MALE TO FEMALE JUMPER WIRE.......................................................................................
2.1.5 POWER ADAPTER (5v,2A)...................................................................................................
2.1.6 MATRIX PCB BOARD...........................................................................................................
2.1.7 POWER SOCKET..................................................................................................................
2.1.8 BULB...................................................................................................................................
2.1.9 FAN.....................................................................................................................................
2.2 PAST,PRESENT AND FUTURE OF HOME AUTOMATION........................................................
METHODLOGOY..........................................................................................................................
BLOCK DIAGRAM OF HOME AUTOMATION USING MOBILE OR VOICE.......................................
COST ANALYSIS............................................................................................................................
RESULT........................................................................................................................................
CONCLUSION...............................................................................................................................
REFERENCE..................................................................................................................................
APPNDEX A: CODE.......................................................................................................................
ARDUINO NANO CODE......................................................................................................................20
APPNDEX B: DATA SHEET.......................................................................................................................23
CONTENT OF FIGUERS
4
figure1 : Arduino Nano.................................................................................................................. 7
Figure 3: 4 channel relay module...................................................................................................8
Figure 4: HC 05 Bluetooth module.................................................................................................8
Figure 5:point of Bluetooth hc05 module......................................................................................8
Figure 6:Male to female jumper wire............................................................................................9
Figure 7: Power Adapter( 5V,2A).................................................................................................10
Figure 8: Matrix PCB board..........................................................................................................10
Figure 9:POWER SOCKET............................................................................................................. 11
Figure 10: BULB............................................................................................................................12
Figure 11:Ceiling Fan....................................................................................................................12
Figure 12:Flow chart of home automation..................................................................................15
Figure 13:Block diagram of home automation............................................................................16
figure 14: home automation voice or mobile..............................................................................17
CHAPTER-1
5
INTRODUCTION
Nowadays, we have remote or mobile controls for our bulb, power socket and other electronic
systems, which have made our lives real easy. Have you ever wondered about home
automation which would give the facility of controlling tube lights, fans and other electrical
appliances at home using a remote or mobile or voice control? Off-course, Yes! But, are the
available options cost-effective? If the answer is No, we have found a solution to it. We have
come up with a new system called Arduino nano based home automation using Bluetooth. This
system is super-cost effective and can give the user, the ability to control any electronic device
without even spending for a remote control. This project helps the user to control all the
electronic devices using his/her smartphone. Time is a very valuable thing. Everybody wants to
save time as much as they can. New technologies are being introduced to save our time. To
save people’s time we are introducing Home Automation system using Bluetooth. With the help
of this system you can control your home appliances from your mobile phone. You can turn
on/off your home appliances within the range of Bluetooth.
6
CHAPTER -2
LITERATURE REVIEW
The Arduino Nano is a small, complete, and breadboard-friendly board based on the
ATmega328P released in 2008. It offers the same connectivity and specs of the Arduino Uno
board in a smaller form factor.
The Arduino Nano is equipped with 30 male I/O headers, in a DIP-30-like configuration, which
can be programmed using the Arduino Software integrated development environment (IDE),
which is common to all Arduino boards and running both online and offline. The board can be
powered through a type-B mini-USB cable or from a 9 V battery.
The 4 Channel Relay Module is a convenient board which can be used to control high voltage,
high current load such as motor, solenoid valves, lamps and AC load. It is designed to interface
with microcontroller such as Arduino, PIC and etc. The relays terminal (COM, NO and NC) is
being brought out with screw terminal. It also comes with a LED to indicate the status of relay.
7
This is a 5V 4-channel relay interface board, and each channel needs a 15-20mA driver current.
It can be used to control various appliances and equipment with large current. It is equiped
with high-current relays that work under AC250V 10A or DC30V 10A. It has a standard interface
that can be controlled directly by microcontroller.
8
2.1.4 MALE TO FEMALE JUMPER WIRE
These are male to female jumper wires used in connecting the female header pin of any
development board to other development boards having a male connector. They are simple
wires that have connector pins at each end allowing them to be used to connect two points to
each other. Jumper wires are typically used with breadboards and other prototyping tools in
order to make it easy to change a circuit as needed.40 strip Male to female jumper wire each
cable length about 20cm or 8-inch
Wires are the connecting parts of a circuit. Jumper wires are small wire ducts that can be used
to connect components to each other on breadboards or elsewhere. The male and female
header of this wire provides easier connections without the need to solder.
An AC adapter or AC/DC adapter is a type of external power supply, often enclosed in a case
similar to an AC plug. Other common names include wall wart, power brick, wall charger, and
power adapter. Adapters for battery-powered equipment may be described as chargers or
rechargers (see also battery charger). AC adapters are used with electrical devices that require
power but do not contain internal components to derive the required voltage and power from
mains power. The internal circuitry of an external power supply is very similar to the design that
You can use these wires to make quick and easy prototyping connections on most of the
boards available in market. Multiple jumpers can be connected next to one another on a
0.1"(100mil or 2.54mm) header.
An adapter or adaptor is a device that converts attributes of one electrical device or system to
those of an otherwise incompatible device or system. Some modify power or signal attributes,
while others merely adapt the physical form of one connector to another.
9
Figure 6: Power Adapter( 5V,2A)
A printed circuit board (PCB; also printed wiring board or PWB) is a medium used in electrical
and electronic engineering to connect electronic components to one another in a controlled
manner. It takes the form of a laminated sandwich structure of conductive and insulating
layers: each of the conductive layers is designed with an artwork pattern of traces, planes and
other features (similar to wires on a flat surface) etched from one or more sheet layers of
copper laminated onto and/or between sheet layers of a non-conductive substrate.[1] Electrical
components may be fixed to conductive pads on the outer layers in the shape designed to
accept the component's terminals, generally by means of soldering, to both electrically connect
and mechanically fasten them to it. Another manufacturing process adds vias: plated-through
holes that allow interconnections between layers.
10
has no moving parts. Instead, it contains metal strips which make contact with the prongs of an
electric plug inserted into the socket. It’s through these contacts that the electric current is
transmitted.
Electrical devices which connect to a power source through a power socket are considered to
be portable because they can easily be connected and disconnected from the power source.
Portable electric devices have a length of cable terminating in a two-, three- or four-prong plug.
The prongs are shaped like blades or cylinders, and may be a combination of the two. When a
plug is inserted into a power socket, a circuit is completed. Every power socket thus needs at
least two slots — one with a live or “hot” contact strip to transmit current to the device being
plugged in, and one to return the current.
Most modern plug and socket combinations are configured so that the plug will fit into the
socket only one way. This ensures that the current is transmitted to the device only through a
single hot wire. Standard power sockets for most electrical devices worldwide contain two or
three slots — the third slot is for grounding, a safety feature that diverts current in the event of
a short-circuit in the device. Some contain a fourth slot; this slot is for an additional hot wire for
devices requiring double the standard voltage.
2.1.8 BULB
An LED lamp or LED light bulb is an electric light that produces light using light-emitting diodes
(LEDs). LED lamps are significantly more energy-efficient than equivalent incandescent lamps
and can be significantly more than most fluorescent lamps. The most efficient commercially
available LED lamps have efficiencies of 200 lumen per watt (Lm/W). Commercial LED lamps
have a lifespan many times longer than incandescent lamps.
LED lamps require an electronic LED circuit to operate from mains power lines, and losses from
this circuit means that the efficiency of the lamp is lower than the efficiency of the LED chips it
uses. The driver circuit may require special features to be compatible with lamp dimmers
intended for use on incandescent lamps. Generally the current waveform contains some
amount of distortion, depending on the luminaires’ technology. LEDs come to full brightness
immediately with no warm-up delay. Frequent switching on and off does not reduce life
expectancy as with fluorescent lighting. Light output decreases gradually over the lifetime of
the LED.
11
Some LED lamps are drop-in replacements for incandescent or fluorescent lamps. LED lamps
may use multiple LED packages for improved light dispersal, heat dissipation, and overall cost.
The text on retail LED lamp packaging may show the light output in lumen, the power
consumption in watts, the color temperature in Kelvin or a color description such as "warm
white", "cool white" or "daylight", the operating temperature range, and sometimes the
equivalent wattage of an incandescent lamp delivering the same output in lumen.
Figure 9: BULB
2.1.9 FAN
A ceiling fan is a fan mounted on the ceiling of a room or space, usually electrically
powered, that uses hub-mounted rotating blades to circulate air.They cool people
effectively by increasing air speed. Fans do not reduce air temperature or relative
humidity, unlike air-conditioning equipment but create a cooling effect by helping to
evaporate sweat and increase heat exchange via convection. Fans may add a small amount
of heat to the room mainly due to waste heat from the motor, though partially due to
friction. Fans use significantly less power than air conditioning as cooling air is
thermodynamically expensive. In the winter a ceiling fan can also be used to bring warm
air, which naturally rises, back down to occupants. This can affect both thermostat
readings and occupants' comfort, thereby improving climate control energy efficiency.
Many ceiling fan units also double as light fixtures, eliminating the need for separate
overhead lights in a room.
It is is a device suspended from the ceiling of a room, with hub-mounted rotating blades
that circulate the air, thereby producing a cooling or destratification effect. Most ceiling
fans have an electrical switch that allows one to reverse the direction of rotation of the
blades.
In the summer, the direction of rotation of the blades is set to blow air downward, so that
the breeze created evaporates sweat on a person's skin and the person experiences a
cooling effect. In the winter, the direction of rotation of the blades is reversed, so that
cooler air (which normally sinks to the floor) is drawn upward, and warmer air that is near
the ceiling is made to circulate downward. In this manner, a ceiling fan can be useful
during both hot and cold seasons.
12
Figure 10:Ceiling Fan
The following awesome progress accompanied the presentation of the home TV in the 1950s
and the later presentation of the infrared remote control. The two innovations were helpful for
point-to-control correspondence between gadgets however did not have a two-route trade of
data. X10 was discharged in the 1970's as a standard convention for wiring houses for home
automation.
2000's: The early 2,000's saw a further ascent in brilliant home innovation, including local tech,
home systems administration, and different devices showing up available. A combination of
short-range technologies created by Zen-Sys in 2005, this wireless technology creates a mesh
network at the user’s home and sends signals at the 900 MHz spectrum. The Z-Wave
technology is capable of connecting a variety of devices to control appliances, door locks and
even flood monitors.
13
In recent years the Internet of Things (IOT) have enabled shrewd innovation to end up plainly a
vital piece of our day by day lives. Everything from refrigerators, to apparatuses, to home
security can be controlled with smart home innovation. Home devices, when remotely
observed and controlled through the Internet, are an essential constituent of the Internet of
Things. The present smart homes are more about security and living greener. Current patterns
in home mechanization incorporate remote versatile control, computerized lights, robotized
indoor regulator modification, booking machines, portable/email/content warnings, and
remote video observation Sensors are the eyes and ears of the home system. There are sensors
for an extensive variety of uses, for example, measuring temperature, dampness, light, fluid,
and gas and recognizing development or commotion.
2.2.2.1 Bluetooth
Bluetooth is a remote standard that has a place with the PAN convention family. It works in the
2.4 GHz band partitioned into 79 sub channels with 1MHz separating, utilizing FHSS.GFSK and
additionally PSK regulations are utilized, contingent upon the Bluetooth variant utilized. Full
duplex exchanges are acknowledged by means of TDD.
2.2.2.2 Wi-Fi
Wi‐Fi is probably the most exploited wireless technology nowadays. It belongs to the family of
(W) LAN networks, but with latest amendments it could also be belonging to the (WMAN
family).In distinction to Bluetooth, the Wi‐Fi range is partitioned into just 13 halfway overlaying
sub channels(fourteenth accessible in Japan just), each involving the band of 22MHz.
14
technologies continue to advance, you can expect the house of tomorrow to be even more
automated than that of today.
METHODLOGOY
START
OPEN APPLICATION ON
ANDRIOD PHONE
If Bluetooth module is
connected
If text matches
15
Execute command
END
DC POWER AC POWER
Device1
4 Channel Device2
Bluetooth Arduino
Relay Device3
HC05 Nano
module
Device4
COST ANALYSIS
16
4 Matrix pcb board 1 50 50
5 Male and female header 3pcs 350 350
6 Male to female jumper wire 40pcs 310 310
7 Adapter (charge)5v,2A 1 250 250
8 4 channel relay module 1 660 660
9 Male to male jumper wire 40pcs 314 314
Total=3425
RESULT
Prior to the construction of the project the circuit was first design using proteus design suite.
The program was written in c++ and then uploaded on the Arduino. The program was compiled
using Hitech software. This was done in order to see how the circuit would work under real
condition.The GSM modem was also connected to Arduino and command is given from the
computer so as to send commands to the working circuit and see real time simulatoion for the
GSM based home automation .with the whole the set of all simliation established and the
circuit was seen to performed required task and then real construction of the project began.
17
CONCLUSION
The system as the name indicates, ‘Home automation’ makes the system more flexible and
provides attractive user interface compared to other home automation systems. In this system
we integrate mobile devices into home automation systems. A novel architecture for a home
automation system is proposed using the relatively new communication technologies. The
system consists of mainly three components is a BLUETOOTH module, Arduino microcontroller
and relay circuits. WIFI is used as the communication channel between android phone and the
Arduino microcontroller. We hide the complexity of the notions involved in the home
automation system by including them into a simple, but comprehensive set of related concepts.
This simplification is needed to fit as much of the functionality on the limited space offered by a
mobile device’s display. This paper proposes a low cost, secure, ubiquitously accessible, auto-
configurable, remotely controlled solution. The approach discussed in the paper is novel and
has achieved the target to control home appliances remotely using the WiFi technology to
connects system parts, satisfying user needs and requirements. WiFi technology capable
solution has proved to be controlled remotely, provide home security and is cost-effective as
compared to the previously existing systems. Hence we can conclude that the required goals
and objectives of home automation system have been achieved. The system design and
architecture were discussed, and prototype presents the basic level of home appliance control
and remote monitoring has been implemented. Finally, the proposed system is better from the
scalability and flexibility point of view than the commercially available home automation
systems.
18
REFERENCE
1.Wikipedia
3.Jump up^ "Research and Markets: Global Home Automation and Control Market 2014-2020 -
Lighting Control, Security & Access Control, HVAC Control Analysis of the $5.77 Billion Industry".
Reuters. 2015-01-19. Archived from the original on 2016-05-05.
4. Home Automation & Wiring (1 ed.). New York: McGraw-Hill/TAB Electronics. 1999-03-31.
ISBN 9780070246744
6. http://homes.yahoo.com/news/5-high-tech-smart-homes-for-the-supe
7. http://www.cnet.com/1990-10839 1-6224211-1.htmlr-rich.html
8. http://www.homeauto.com/Products/Price/What DoesThisCost.asp
9. http://expert-corner.com/2010/05/disadvantages-of-home-automation/
11. http://www.loxone.com/pages/de/default.aspx
12. http://home-automation-systems-review.toptenreviews.com/
19
13. http://fireflyintegrations.com/products/crestron-electronics/
15. http://www.liveautomatic.com/reviews/insteon-vs-x10-zigbee-and-zwave
APPNDEX A: CODE
ARDUINO NANO CODE
#include <EEPROM.h>
#include <SoftwareSerial.h>
void setup(){
Serial.begin(9600);
BT_Serial.begin(9600);
20
load1 = EEPROM.read(1);
load2 = EEPROM.read(2);
load3 = EEPROM.read(3);
load4 = EEPROM.read(4);
power = EEPROM.read(5);
delay(500);
void loop() {
if(BT_Serial.available()>0){bt_data = BT_Serial.read();}
bt_data = '0';
if(power==1){
digitalWrite(Relay1, 1);
digitalWrite(Relay2, 1);
digitalWrite(Relay3, 1);
digitalWrite(Relay4, 1);
21
}else{
digitalWrite(Relay1, load1);
digitalWrite(Relay2, load2);
digitalWrite(Relay3, load3);
digitalWrite(Relay4, load4);
BT_Serial.print(";");
BT_Serial.print(";");
BT_Serial.print(";");
BT_Serial.print(";");
BT_Serial.println(";");
delay(500);
22
APPNDEX B: DATA SHEET
ARDUINO NANO
Arduino Nano Features
Microcontroller: ATmega328
Architecture: AVR
Operating Voltage: 5 V
SRAM: 2 KB
Analog IN Pins: 8
EEPROM: 1 KB
Power Consumption: 19 mA
PCB Size: 18 x 45 mm
Weight: 7 g
23
PIN DESCRIPTION
POWER PIN (Vin, 3. 3V, 5V, GND):
Vin
Vin is the input voltage of the board, and it is used when an external power source is used from 5v to
7v.5V is the regulated power supply voltage of the nano board and it is used to give the supply to the
board as well as components.3.3V is the minimum voltage which is generated from the voltage
regulator on the board.
GND
These pins are used to calculate the analog voltage of the board within the range of 0V to 5V.
These pins are used to transmit & receive TTL serial data.
24
AREF:
Features:
- Weight: 61g
- There are four fixed screw holes at each corner of the board, easy for install and fix. The diameter of
the hole is 3.1mm
- High quality Single relay is used with single pole double throw, a common terminal, a normally open
terminal, and a normally closed terminal
- Closed at low level with indicator on released at high level with indicator off
25
- VCC is system power source, and JD_VCC is relay power source. Ship 5V relay by default. Plug jumper
cap to use
BLUETOOTH HC05
Specifications
Hardware features
Typical -80dBm sensitivity
PIO control
Software features
Default Baud rate: 38400, Data bits:8, Stop bit:1,Parity:No parity, Data control: has.Supported
baud rate: 9600,19200,38400,57600,115200,230400,460800.
PIO10 and PIO11 can be connected to red and blue led separately. When master and slave
are paired, red and blue led blinks 1time/2s in interval, while disconnected only blue led blinks
2times/s.
26
AT command Default:
How to set the mode to server (master):
3. Using baud rate 38400, sent the “AT+ROLE=1\r\n” to module, with “OK\r\n”
4. Connect the PIO11 to low level, repower the module, the module
2. Click on connect/pair device option; default pin for HC-05 is 1234 or 0000.
After pairing two Bluetooth devices, open terminal software (e.g. Teraterm, Realterm etc.) in
PC, and select the port where we have connected USB to serial module. Also select default
baud rate of 9600 bps.
In smart phone, open Bluetooth terminal application and connect to paired device HC-05.
27
Pin Description:
The HC-05 Bluetooth Module has 6pins. They are as follows:
ENABLE:
When enable is pulled LOW, the module is disabled which means the module will not turn on
and it fails to communicate.When enable is left open or connected to 3.3V, the module is
enabled i.e the module remains onand communication also takes place.
Vcc:
GND:
Ground pin
STATE:
It acts as a status indicator. When the module is not connected to paired with any other
bluetooth device, signal goes Low. At this low state,the led flashes continuously which denotes
that the module is not paired with other device.When this module is connected to/paired with
any other bluetooth device,the signal goes High.At this high state,the led blinks with a constant
delay say for example 2s delay which indicates that the module is paired.
BUTTON SWITCH:
This is used to switch the module into AT command mode.To enable AT command mode,press
the button switch for a second.With the help of AT commands,the user can change the
parameters of this module but only when the module is not paired with any other BT device. If
the module is connected to any other bluetooth device, it starts to communicate with that
device and fails to work in AT command mode.
28