You are on page 1of 28

Android Based Home Automation System

Under the Guidance of

Prof. M.K. Neharkar

Submitted by
Mr. Victor Awchitte Mr. Shubham Solanke
Mr. Mangesh Swami
1. ABSTRACT

• The project is designed to operate electrical loads using an

Android application device.

• This system operates electrical loads depending on the data

transmitted from the Android application device.

• Remote operation is achieved by any smart-phone/Tablet etc.,

with Android OS, upon a GUI (Graphical User Interface) based

touch screen operation


PROJECT BLOCK DIAGRAM
HARDWARE REQUIREMENT

8051 series Microcontroller

 Bluetooth device, Relays

 Relay Driver IC, Crystal.

 Resistors, Capacitors, LED, Diodes.

 Transformer, Voltage Regulator, Lamps.


POWER SUPPLY
230 V AC Bridge rectifier 5v Regulator
50 Hz
5V
DC

Filter(470µf)
12V step down
transformer
MICROCONTROLLER

• It is a smaller computer
• Has on-chip RAM, ROM, I/O ports...

CPU RAM ROM


A single chip
Serial
I/O Timer COM Microcontroller
Port
Port
INTERNAL STRUCTURE OF A MICRO CONTROLLER-AT89S52/51

External interrupts
On-chip Timer/Counter
ROM for
Interrup program On-chip Timer 1 Counter
t code RAM Inputs
Control Timer 0

CPU

Bus Serial
4 I/O Ports Port
OSC Control

P0 P1 P2 P3 TxD RxD

Address/Data
Features of AT89S51/52
• Compatible with MCS®-51 Products
• 8K Bytes of In-System Programmable (ISP) Flash Memory
• Endurance: 10,000 Write/Erase Cycles
• 4.0V to 5.5V Operating Range
• Fully Static Operation: 0 Hz to 33 MHz
• 256 x 8-bit Internal RAM
• 32 Programmable I/O Lines
• Three 16-bit Timer/Counters
• Eight Interrupt Sources
• Full Duplex UART Serial Channel
• Interrupt Recovery from Power-down Mode
• Watchdog Timer
• Dual Data Pointer
Pin Description
What is called Android..?
• Android is an open-source operating
system which means that any manufacturer
can use it in their phones free of charge.
• It was built to be truly open. For example,
an application can call upon any of the
phone’s core functionality such as making
calls, sending text messages, or using the
camera. 
ABOUT
Android is built on the open Linux Kernel.
Furthermore, it utilizes a custom virtual
machine that was designed to optimize
memory and hardware resources in a
mobile environment.
What is an android application
on mobile phones?

• An android app is meant for phones with


an android based operating systems. They
can be downloaded from the android app
Market which is pre-loaded on every
android phone.
• Blue control APP and Bluetooth Spp APP
are some examples.
Android-The world's most powerful
mobile platform
Very customizable. Open source operating
system is easily changed, hacked,
manipulated, and molded to fit whatever
functionality you had in mind. Found on all
platforms for all prices depending on what
hardware and software version you are
interested in. The battery is usually
replaceable.
COMPARISION OF ANDROID
WITH OTHER OS
ANDROID OS : Android is open source
software, manufacturers can modify the
operating system to suit their respective
needs and phones. This becomes a cheap
and feasible alternative for the
manufacturer, as opposed to developing
an operating system in-house or hiring a
software company to do it.
 
i-OS:

It's not available on all carriers but this


is expanding. The battery is not
replaceable which is why all the I
Phone users you know have it plugged
in all the time as the battery
degrades .In house development of
software and cannot be modifiable.
Windows Phone:

Windows Phone is a closed-sourced, which


means that it is solely developed by the
company and protected by copyright. The
Windows Store is limited as there only a
few number of apps
ANDROID APPLICATION
OPERATED BLUETOOTH
• The Android platform includes support for
the Bluetooth network stack, which allows
a device to wirelessly exchange data with
other Bluetooth devices.
• The application framework provides
access to the Bluetooth functionality
through the Android Bluetooth APIs.
FEATURES OF BLUETOOTH
 
• Super simple and easy way to interface
using Bluetooth stack.
• 3.3V Device with standard 5V DC Power source.
• Can also support SPI Protocol, pins are made
available.
• Low power consumption, Low cost.
• Has high-performance wireless transceiver system
• Can be used to interface with PC, Mac or Android
phones/tablets.
• Generic Default Visibility at Software
side:BLUEBOT
• Default Pairing code is not '0000' but
'1234'.
• Please use Baud Rate with 8-N-1
connectivity from other device.
• Works with any microcontroller with
Serial connectivity.
RELAY

IT IS A ELECTRO MAGNETIC SWITCH

USED TO CONTROL THE ELECTRICAL DEVICES

COPPER CORE MAGNETIC FLUX PLAYS MAIN ROLE HERE


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 itch.
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
RELAY DRIVER (ULN 2003)

ULN2003 is a high voltage and high current Darlington


transistor array
It consists of seven NPN Darlington pairs that feature high-
voltage outputs with common-cathode Clamp diode for
switching inductive loads.
The ULN2003 has a 2.7kW series base resistor for each
Darlington pair for operation directly with TTL or 5V
CMOS devices.
Current, Output Max:500mA
Voltage, Input Max:5V
Voltage, Output Max:50V
Fig: ULN 2003
Soft ware Requirements

• Keil an ARM Company makes C compilers, macro assemblers, real-


time kernels, debuggers, simulators, integrated environments,
evaluation boards, and emulators for ARM7/ARM9/Cortex-M3,
XC16x/C16x/ST10, 251, and 8051 MCU families.

• Compilers are programs used to convert a High Level Language to


object code. Desktop compilers produce an output object code for the
underlying microprocessor, but not for other microprocessors.
 i.e the programs written in one of the HLL like ‘C’ will compile
the code to run on the system for a particular processor like x86
(underlying microprocessor in the computer).

 For example compilers for Dos platform is different from the


Compilers for Unix platform  So if one wants to define a compiler
then compiler is a program that translates source code into object
code.
REFERENCES
 “The 8051 Microcontroller and Embedded systems” by
Muhammad Ali Mazidi and Janice Gillispie Mazidi , Pearson
Education.
 ATMEL 89S52 Data Sheets.

• www.atmel.com

• www.beyondlogic.org

• www.wikipedia.org

• www.howstuffworks.com

• www.alldatasheets.com
THANK YOU

You might also like