Documente Academic
Documente Profesional
Documente Cultură
ABSTRACT
This project is based on the construction of a model simulating a home automation with
different operation modes which can be controlled also by a mobile application.
To achieve this objective, a scale house that captures different signals, both digital and
analog, has been developed. To approach the house to a real home automation application
the variables under study and control are interior temperature and lighting, movement
around the house and water level of the pool.
The house has three main operating modes. In automatic mode, it performs the
measurement and executes the control of the variables, regulating itself according to the
conditions to which it is exposed. In contrast, the remote mode is achieved using the mobile
application that allows user to modify the variables. Finally, in alarm mode it controls the
parameters that assure the security of the house when proprietor is away from home.
The core of the project is an Arduino Uno board that allows the application operation and
receives, from an Android mobile application, operating modes commands and, if it is
operating remotely, orders to individually controls the different actuators. For the data
transmission from the mobile to the board, is used communication via Bluetooth.
Page |3
INTRODUCTION
Home automation system is use of information technologies and control system to
reduce the human labour. The rapid growth of technologies influences us to use smart
phones to remotely control the home appliances. An automated devices has ability to work
with versatility, diligence and with lowest error rate. The idea of home automation system is
a significant issue for researchers and home appliances companies. Automation system not
only helps to decrease the human labour but it also saves time and energy. Early home
automation systems were used in labour saving machines but nowadays its main objective is
provide facilities to elderly and handicapped people to perform their daily routine tasks and
control the home appliances remotely.
Page |4
WHAT IS AUTOMATION
This project is based in automation technology and more specifically in home automation
systems.
Automation is the transfer of tasks normally performed by humans to a set of technological
elements.
The inclusion of control in the automation system, allows to decide on the development of a
process, manipulating certain variables to get these or other variables to act in the desired
way.
OBJECTIVE
The objective of the project to implement a low cost, reliable and scalable home automation
system that that can be remotely switches ON/OFF any household appliance, using a
microcontroller to achieve hardware simplicity, and a android application to switch between
on or off state.
• Breadboard
• 5v power supply
• Wire(2 meter)
• 2 pin plug
• Bulb holder
SOFTWARE REQUIREMENT:-
COMPONENTS DESCRIPTION
ARDUINO UNO
"Uno" means one in Italian and was chosen to mark the release of Ar duino
Software (IDE) 1.0. The Uno board and version 1.0 of Arduino Software (IDE) were
the reference versions of Arduino, now evolved to newer releases. The Uno board
is the first in a series of USB Arduino boards, and the reference model for the
Arduino platform; for an extensive list of current, past or outdated boards see the
Arduino index of boards.
TECHNICAL SPECIFICATION
Microcontroller ATmega328P
Operating Voltage 5V
PIN CONFIGURATION
POWER
The Arduino Uno 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 be unstable. If using
more than 12V, the voltage regulator may overheat and damage the board. The
recommended range is 7 to 12 volts.
The power pins are as follows:
VIN- The input voltage to the Arduino 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.
Memory
The ATmega328 has 32 KB (with 0.5 KB used for the bootloader). It also has 2 KB of SRAM
and 1 KB of EEPROM (which can be read and written with the EEPROM library).
Serial: 0 (RX) and 1 (TX)- Used to receive (RX) and transmit (TX) TTL serial data. These pins
are connected to the corresponding pins of the ATmega8U2 USB-to-TTL Serial chip.
External Interrupts: 2 and 3 :- These pins can be configured to trigger an interrupt on a low
value, a rising or falling edge, or a change in value. See the attachInterrupt() function for
details.
PWM: 3, 5, 6, 9, 10, and 11:- Provide 8-bit PWM output with the analogWrite() function.
SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK)- These pins support SPI communication using
the SPI library.
LED: 13 :- There is a built-in LED connected to digital pin 13. When the pin is HIGH value,
the LED is on, when the pin is LOW, it's off.
The Uno has 6 analog inputs, labelled A0 through A5, 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 the
analogReference () function. Additionally, some pins have specialized functionality:
TWI: A4 or SDA pin and A5 or SCL pin. Support TWI communication using the Wire library.
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.
P a g e | 11
BLUETOOTH COMMUNICATION
RELAY MODULE
A relay is an electrically operated switch of mains voltage. It means that it can be turned on
or off, letting the current go through or not. Controlling a relay with the Arduino is as simple
as controlling an output such as an LED.
My relay has two channels. There are other varieties with one, four and eight and 12
channels.
NO (Normally Open): there is no contact between the common pin and the normally
open pin. So, when you trigger the relay, it connects to the COM pin and supply is
provided to a load
NC (Normally Closed): there is contact between the common pin and the normally
closed pin. There is always connection between the COM and NC pins, even when
the relay is turned off. When you trigger the relay, the circuit is opened and there is
no supply provided to a load.
Pin wiring
The connections between the relay module and the Arduino are really simple:
RELAY MODULE
P a g e | 15
FLOW CHART
P a g e | 16
Electronic deigns
P a g e | 17
BLOCK DIAGRAM
P a g e | 18
Default settings of HC-05 Bluetooth module can be changed using certain AT commands.
As HC-05 Bluetooth module has 3.3 V level for RX/TX and microcontroller can detect 3.3
V level, so, there is no need to shift TX voltage level of HC-05 module. But we need to
shift the transmit voltage level from microcontroller to RX of HC-05 module.
For more information about HC-05 Bluetooth module and how to use it, refer the
topic HC-05 Bluetooth module in the sensors and modules section.
Default Bluetooth name of the device is “HC-05” and default PIN (password) for
connection is either “0000” or “1234”.
P a g e | 19
We can also power the 4 relay module using the external power by giving voltage from 5 to
24V DC.
COM (Common connection): The COM is the center terminal of the relay and it is used in
both (Normally open and normally closed) connections.
NO (Normally open): This act like a switch. In normally open connection, there will be no
contact between COM and NO, since it is normally open. But when we will activate the relay
module, then it will get connected to the COM and will supply power to the load, which will
power up the light. Thus the circuit will initially be in open state until we trigger the state.
NC (Normally closed): its behaviour is opposite to the normally open connection. It always
remains in contact with COM, even when relay module is not powered. When we will trigger
the relay module then it will open the circuit, so the connection is lost.
We will use the normally open connection. When you will use the relays in NO (Normally
Open) connection and you set the corresponding IN pin to LOW, then the power will flow
from the COM connector and out of the normally open connector powering your device.
P a g e | 20
#define le 3
char data = 0;
void setup()
pinMode(led, OUTPUT);
pinMode(le, OUTPUT);
Serial.begin(9600);
digitalWrite(led, LOW);
void loop()
if (Serial.available() > 0)
data = Serial.read(); //Read the incoming data and store it into variable data
P a g e | 22
if(data == '2')
digitalWrite(led, HIGH);
digitalWrite(led, LOW);
if(data == '4')
digitalWrite(led, HIGH);
digitalWrite(led, LOW);
}
P a g e | 23
How it works
When we touch any button in Bluetooth controller app then Android phone sends a value to
Bluetooth module, after receiving this value, Bluetooth module sends the received value to
the microcontroller and then microcontroller reads it and compare it with predefined value.
If any match is occurred then microcontroller performs relative operation. Same operation
will performed each time when button pressed.
when user touch ‘Fan On’ button in Bluetooth controller app then microcontroller receives
‘1’ via Bluetooth module and then controller Switch ‘On’ the Fan by using relay driver
and relay. And when user touch ‘Fan Off’ button in Bluetooth controller app then
microcontroller receives ‘2’ via Bluetooth module and then controller Switch ‘Off’ the Fan by
using relay driver and relay.
ADVANTAGES
It is a robust and easy to use system.
There is no need for extra training of that person who is using it.
All the control would be in your hands by using this home automation system.
This project can provide the facility of monitoring all the appliances with in the
communication range through Bluetooth.
By using this system the users can check the status of the appliances at whatever time
of the day
Manual control is also given in this project so the unskilled person can easily change the
status.
DISADVANTAGES
Bluetooth is used in this home automation system, which have a rage 10 to 20 meters
so the control cannot be achieved from outside this range.
Application is connected after disconnect of the Bluetooth.
when the new users want to connect the first download application software then the
code and configuration must be done
P a g e | 25
Future development
For the future development we can upgrade the android application which not only have
the on or off option but also have
Secondly we can replace the Bluetooth module with the GSM module or a Wi-Fi module by
which we are able to control the system from a very long distance
P a g e | 26
REFFERENCES
• Website
http://microcontrollerslab.com/bluetooth-home-automation-system-
android/
https://electronicsforu.com/electronics-projects/hardware-diy/arduino-
home-automation-system-android
https://circuitdigest.com/microcontroller-projects/smart-phone-
controlled-arduino-home-automation
https://www.electronicshub.org/arduino-project-ideas/?ref=menu
https://creately.com/app/?tempID=gc7qvpsj1&login_type=demo#
https://en.wikipedia.org/wiki/Home_automation