Android control Device with energ efficient logic
Project synopsis
On
ANDROID CONTROL DEVICES WITH ENERGY EFFICIENT LOGIC
Submiited to:
Submitted by:
Objective:
- To make application based on mobile
- To make application based on bluetooth Android
Methodology:
- Methodology used in this project is serial communication between bluetooth module and microcontroller.
Introduction
In this project we control devices using android phone. We will use 89s52 IC for this purpose. We will interface blue tooth serially with micro-controller and then after receiving data we will control motor using H bridge circuit. We will use Ttl OUT BLUETOOTH module HC-05 for getting Data. We will make application in java for android controlled .
In energy efficient logic we will use ldr circuit. We can switch on / off lights in night mode only. We will ise ldr- light dependent resisitor.
VARIOUS STEPS OF PROJECT:
- POWER SUPPLY +5V
- MICROCONTROLLER AT89S52
- MAX232 CIRCUIT
- GSM MODEM
- LDR circuit
- H- Bridge circuit for motor
Pin no 40 is connected to the positive supply. In this project we provide a 5 volt dc power supply. This power supply is truly regulated power supply. Pin no 20 is connected to the negative supply. Here we supply a negative voltage on this pin. Crystal is connected to the pin no 18 and 19 of the microcontroller. Crystal provide a clock signal to run the vehicle and process all the internal requirement of the circuit.. For the regulated power supply we use ic 7805 as a regulator to provide a fix 5 volt power supply.
BLOCK DIAGRAM
Serial InterfaceMAX 232 | |||
MCU 89s52 |
RS 232CONNECTOR |
(1) Bluetooth serial interface module:
Industrial level: HC-03, HC-04(HC-04-M, HC-04-S)
Civil level: HC-05, HC-06(HC-06-M, HC-06-S)
HC-05-D, HC-06-D (with baseboard, for test and evaluation)
(2) Bluetooth adapter:
HC-M4
HC-M6
This document mainly introduces Bluetooth serial module. Bluetooth serial module is used for
converting serial port to Bluetooth. These modules have two modes: master and slaver device. The
device named after even number is defined to be master or slaver when out of factory and can’t be
changed to the other mode. But for the device named after odd number, users can set the work mode
(master or slaver) of the device by AT commands.
HC-04 specifically includes:
Master device: HC-04-M, M=master
Slave device: HC-04-S, S=slaver
The default situation of HC-04 is slave mode. If you need master mode, please state it clearly or
place an order for HC-O4-M directly.The naming rule of HC-06 is same.
When HC-03 and HC-05 are out of factory, one part of parameters are set for activating the device.
The work mode is not set, since user can set the mode of HC-03, HC-05 as they want.
The main function of Bluetooth serial module is replacing the serial port line, such
1. There are two MCUs want to communicate with each other. One connects to Bluetooth master
device while the other one connects to slave device. Their connection can be built once the pair is made.
This Bluetooth connection is equivalently liked to a serial port line connection including RXD, TXD signals. And they can use the Bluetooth serial module to communicate with each other.
2. When MCU has Bluetooth salve module, it can communicate with Bluetooth adapter of
computers and smart phones. Then there is a virtual communicable serial port line between MCU and
computer or smart phone.
3. The Bluetooth devices in the market mostly are salve devices, such as Bluetooth printer,
Bluetooth GPS. So, we can use master module to make pair and communicate with them.
Bluetooth Serial module’s operation doesn’t need drive, and can communicate with the other
Bluetooth device who has the serial. But communication between two Bluetooth modules requires at
least two conditions:
(1) The communication must be between master and slave.
(2) The password must be correct.
However, the two conditions are not sufficient conditions. There are also some other conditions
basing on different device model. Detailed information is provided in the following chapters.
In the following chapters, we will repeatedly refer to Linvor’s (Formerly known as Guangzhou HC
Information Technology Co., Ltd.) material and photos.
Component List
S.No. | Item | Quantity | Rate/Unit |
MCU 89C051 | 1 | 80 | |
GSM MODEM | 1 | 800 | |
DC motor | 2 | 640 | |
Thermocouple | 1 | 40 | |
3.38 MHz. | 1 | 25 | |
Buzzer | 1 | 5 | |
Condenser MIC | 1 | 15 | |
Speaker 8 ohm | 1 | 30 | |
Relay 12v 100 ohm | 1 | 10 | |
Transformer 6v 500mA | 1 | 10 | |
Power lead | 1 | 20 | |
Push to On Sw | 4 | 1 | |
SOLDERING WIRE | 1 | 15 | |
SOLDERING IRON | 1 | 80 | |
FLUX | 1 | 45 | |
CONNECTING WIRE | 1 | 15 | |
RESISTENCES | 1 | .5 | |
CAPACITORS 1000µf | 1 | 2 | |
100uf,470uf | 2 | 3 | |
DIODES | 2 | 2 | |
LED | 1 | 1 | |
Crystal 12MHz | 1 | 25 | |
IC BASE | 1 | 30 | |
IC 7805 Volt. Reg | 1 | 15 | |
TRANSFORMER 9 V | 1 | 30 | |
RELAY 9V | 1 | 15 | |
MILER CAP | 1 | 15 | |
CRYSTAL 3.579545 | 1 | 20 | |
HOLDER | 1 | 10 | |
PLY BOARD | 1 | 150 | |
TAPE ROLL | 1 | 45 | |
Copper Clad Board | 1 | 150 |
Applications:
- Machine controlled
- devicesics
- Electrical appliances
- security system password protection.
Advantages:
- It is very easy to use
- it need no network
- it need small circuit
- All components easily available in market
Bibliography:
Book – Ali mazidi