Upload
jaswanthchowdary
View
17
Download
0
Tags:
Embed Size (px)
DESCRIPTION
jar filler
Citation preview
A MINI PROJECT REPORT
ON
WIRELESS MOBILE OPERATED FIRE EXTINGUISHER ROBOT USING BLUETOOTH
(VIA ANDROID MOBILE)Submitted in partial fulfillment for the award of the degree
of
BACHELOR OF TECHNOLOGY
in
ELECTRONICS &COMMUNICATION ENGINEERING
Submitted by
T.MEGHANA 11B81A0458
V.JASWANTH 11B81A0443
B.MAHESH 11B81A0453
CVR COLLEGE OF ENGINEERING(AUTOMONOUS, Affiliated to JNTU, Hyderabad)
Vastunagar, RangaReddy District-501506
2014-2015
A MINI PROJECT REPORT
ON
WIRELESS MOBILE OPERATED FIRE EXTINGUISHER ROBOT USING BLUETOOTH (VIA
ANDROID MOBILE)Submitted in partial fulfillment for the award of the degree
of
BACHELOR OF TECHNOLOGY
in
ELECTRONICS &COMMUNICATION ENGINEERING
Submitted by
T.MEGHANA 11B81A0458
V.JASWANTH 11B81A0443
B.MAHESH 11B81A0453
Under the Guidance of
NAGA MALLESHWARI
Associate professor
CVR COLLEGE OF ENGINEERING(AUTOMONOUS, Affiliated to JNTU, Hyderabad)
Vastunagar, RangaReddy District-501506
2014-2015
CVR COLLEGE OF ENGINEERINGACCREDITED BY NBA,AICTE&Affiliated to JNTU-H
Vastunagar, Mangalpalli (V), Ibrahimpatan (M), R.R. District, PIN – 501 510
Web: http://cvr.ac.in, email: [email protected]
Department of
Electronics & Communication Engineering
CERTIFICATE
This is to certify that the project report titled “WIRELESS MOBILE OPERATED FIRE EXTINGUISHER ROBOT USING BLUETOOTH (VIA ANDROID MOBILE)” is a
bonafide work done as Mini project and submitted by
T.MEGHANA 11B81A0458
V.JASWANTH 11B81A0443
B.MAHESH 11B81A0453
in partial fulfillment of requirement for the award of Bachelor of Technology degree in Civil Engineering, CVR College of Engineering, Ibrahimpatan. This work has not been submitted to any university or institution for the award of any degree or diploma.
Project Guide Head of the Department
Naga Malleshwari Nayanathara
Associate Professor
ACKNOWLEDGEMENT
We would like to express our sincere thanks and gratitude to our Principal, Mr. and
Head of the Department Nayanthara, Department of Electronics and Communication
Engineering, CVR College of Engineering for having guided us in developing the
requisite capabilities for taking up this project.
I thank Mr. , Assoc. Professor, B.Tech Project Coordinator, ELECTRONICS AND
COMMUNICATION ENGINEERING for providing seamless support and right
suggestions are given in the development of the project.
We specially thank our internal guide Naga Malleshwari for his suggestions and
constant guidance in every stage of the project. We would also like to thank all our
lecturers for having us in every possible way whenever the need arose.
On a more personal note we thank our beloved parents and friends for their moral
support during the course of our project.
ABSTRACT
The goal of this project is to monitor and control of the fire existed in particular
location with the help of robot using Bluetooth protocol. Monitoring can be done
by fire sensor and controlling can be done by water.
This project “Wireless mobile operated fire extinguisher robot using Bluetooth
(Via Android Mobile)” deals with controlling of robot through the Android
Application installed in Mobile Phone.
The robot can move through any path whose motion is controlled through the
Bluetooth network. When the robot faces a fire then it is made to extinguish the
fire with the help of pump motor connected to a water tank mounted on its body.
Remote to control the motion of the robot to move it forward, backward, right and
left respectively.
A micro-controller is interfaced that delivers output accordingly for the motors via
motor driver IC.
A Bluetooth module interface is used to transfer the information to the user android
mobile. A 128-bit wide memory interface and unique accelerator architecture
enable 32-bit code execution at maximum clock rate.
DECLARATION
We hereby declare that the whole information furnished in this project is entirely
our own Endeavour and is not imitation or copy of pre-prepared report. We have
taken care at our best to not put any furnished information which should not be
published by any means. Henceforth we claim our project report to be genuine,
unique and entirely a work of our own knowledge. We have been guided by Naga
Malleshwari, Associate Professor, and had approved our project for submission to
meet our curriculum needs and published as a project. Reproduction of this project
is an offence.
PROJECT ASSOCIATES:
T.MEGHANA (11B81A0458)
V.JASWANTH (11B81A0443)
B.MAHESH (11B81A0451)
CONTENTS
Certificate i
Acknowledgement ii
Abstract iii
Declaration iv
Contents v
List of figures vi
Chapter1. INTRODUCTION
Chapter2. METHODS
2.1 Manual Method (Traditional Method)
2.2 Automatic Method
Chapter3. COMPONENTS
3.1 8051 eleTIX board
3.11 8051 microcontroller
3.12 Motor Driver
3.13 Voltage Regulator
3.14 MAX 232 & USB to serial cable
3.2 IR Obstacle Sensor
3.3 DC Motor
3.4 Mechanical Arrangement
Chapter4. TOOLS USED
4.1 Keil Software
4.2 Flash Magic
Chapter5. WORKING PRINCIPAL
5.1 Benefits
5.2 Block Diagram
Chapter6. DESIGN AND IMPLEMENTATION
6.1 Program
6.2 Operation
6.3 Output
Chapter7. APPLICATIONS
CONCLUSION
SCOPE FOR FUTURE WORK
BIBLIOGRAPHY
APPENDIX
LIST OF FIGURES
CHAPTER 1
INTRODUCTION
Isnt it always better to get things done faster? Even better, wouldn’t it be easier if we reduce our
effort and save time too? These were the small thoughts that grew into big ideas and led us to a
completely automated environment. We have succeeded in making life simpler with the help of
machines that man has so efficiently crafted. With a similar intention in mind and a similar
minute thought we have come up with the idea of making this automatic cup filler.
In huge industries like coca cola etc. the containers of different sizes are automatically filled
using a similar system. A continuous process involving detection of the empty bottles, filling
them up to a fixed limit and moving it forward so as to repeat the same with the next bottle is
followed. This gave us an idea to create a similar system to fill cups at a faster and smoother rate
than the manual mode generally opted.
CHAPTER 2
METHODS
2.1 Manual Method
Manual Method is the traditional method of filling the cups/bottles where cups are filled by man
itself. By this method there are many disadvantages. Following are few of them:
Spilling of water while filling the cups.
Less accuracy.
Overflow of overhead tank.
Increase in manual labour.
Less production.
In order to overcome this, we automated everything using microcontrollers, by writing program
using editor and dumping it on to the motherboard. So that the things are done automatically.
2.2 Automatic Method
In this method filling is done automatically using microcontrollers, sensors, motor drivers etc.
Program is written according to our requirement and it is dumped on to the motherboard.
Advantages of automatic method over manual method are:
No spillage of water.
Increased accuracy.
No overflow of overhead tank.
Decreased labour.
High production.
This method is the latest method used in the industries.
CHAPTER 3
COMPONENTS
3.1 8051 elecTIX BOARD
The 8051 elecTIX board is a low cost, feature rich development board based on P89V51RD2.
This board is ideal for making autonomous robots, simple embedded system applications, hobby
projects etc. The onboard peripherals include 1A DC motor drivers with position and velocity
control, RS232 to TTL level convertor, 16x2 LCD, LEDs, switches, ISP facility etc. For further
expansion rest of on-chip peripherals and microcontrollers pins can be accessed through open
pads.
Specifications:
• P89V51RD2 microcontroller working at 11.0592 MHz
• On board regulated power supply.
• Power indicator LED.
• Buzzer.
• Two onboard 1A dual full H-Bridge motor drivers.
• Separate ON/OFF switches for power and motor drivers.
• 4 LEDs used for status or debugging purposes.
• 4 switches for external inputs/interrupts.
• Onboard RS232 interface (DB9 Female Connector) for UART communication.
• 16x2 alphanumeric LCD.
• In system programming facility.
• Wide operating voltages ranging from 7V-15V.
• Programming: Using Flash Magic or any other similar software via serial port.
3.11 8051 Micro-controller:
The P89V51RD2 is an 8051 microcontroller with a 64KB flash and 1024B of data RAM. In this
project we are using a plastic dual inline package of 40 leads.
Pins 1-8: Port 1 Each of these pins can be configured as an input or an output.
Pin 9: RS A logic one on this pin disables the microcontroller and clears the contents of most
registers. In other words, the positive voltage on this pin resets the microcontroller. By applying
logic zero to this pin, the program starts execution from the beginning.
Pins10-17: Port 3 Similar to port 1, each of these pins can serve as general input or output.
Besides, all of them have alternative functions:
Pin 10: RXD Serial asynchronous communication input or Serial synchronous communication
output.
Pin 11: TXD Serial asynchronous communication output or Serial synchronous communication
clock output.
Pin 12: INT0 Interrupt 0 input.
Pin 13: INT1 Interrupt 1 input.
Pin 14: T0 Counter 0 clock input.
Pin 15: T1 Counter 1 clock input.
Pin 16: WR Write to external (additional) RAM.
Pin 17: RD Read from external RAM.
Pin 18, 19: X2, X1 Internal oscillator input and output. A quartz crystal which specifies
operating frequency is usually connected to these pins. Instead of it, miniature ceramics
resonators can also be used for frequency stability. Later versions of microcontrollers operate at
a frequency of 0 Hz up to over 50 Hz.
Pin 20: GND Ground.
Pin 21-28: Port 2 If there is no intention to use external memory then these port pins are
configured as general inputs/outputs. In case external memory is used, the higher address byte,
i.e. addresses A8-A15 will appear on this port. Even though memory with capacity of 64Kb is
not used, which means that not all eight port bits are used for its addressing, the rest of them are
not available as inputs/outputs.
Pin 29: PSEN If external ROM is used for storing program then a logic zero (0) appears on it
every time the microcontroller reads a byte from memory.
Pin 30: ALE Prior to reading from external memory, the microcontroller puts the lower address
byte (A0-A7) on P0 and activates the ALE output. After receiving signal from the ALE pin, the
external register (usually 74HCT373 or 74HCT375 add-on chip) memorizes the state of P0 and
uses it as a memory chip address. Immediately after that, the ALU pin is returned its previous
logic state and P0 is now used as a Data Bus. As seen, port data multiplexing is performed by
means of only one additional (and cheap) integrated circuit. In other words, this port is used for
both data and address transmission.
Pin 31: EA By applying logic zero to this pin, P2 and P3 are used for data and address
transmission with no regard to whether there is internal memory or not. It means that even there
is a program written to the microcontroller, it will not be executed. Instead, the program written
to external ROM will be executed. By applying logic one to the EA pin, the microcontroller will
use both memories, first internal then external (if exists).
Pin 32-39: Port 0 Similar to P2, if external memory is not used, these pins can be used as
general inputs/outputs. Otherwise, P0 is configured as address output (A0-A7) when the ALE pin
is driven high (1) or as data output (Data Bus) when the ALE pin is driven low (0).
Pin 40: VCC +5V power supply.
3.12 Motor Driver:
Microcontrollers provide only 30 mA of current, which is not sufficient to drive the motor. And
also motor needs 12V supply. To drive the motors, we have used L293D. It will give 1 ampere of
current which is sufficient for motor.
L293D is a typical Motor driver or Motor Driver IC which allows DC motor to drive on either
direction. L293D is a 16-pin IC which can control a set of two DC motors simultaneously in any
direction. It means that you can control two DC motor with a single L293D IC. It works on the
concept of H-bridge. H-bridge is a circuit which allows the voltage to be flown in either
direction. All inputs are TTL compatible.
3.13 Voltage Regulator:
7805 is a voltage regulator integrated circuit. It is a member of 78xx series of fixed linear voltage
regulator IC’s. 7805 provides +5V regulated power supply. It is a 3 pin IC. Capacitors of suitable
values can be connected at input and output pins depending upon the respective voltage levels.
3.14 MAX 232 & USB to serial cable:
Data which comes from PC would in form of CMOS level. If we give this directly to
microcontroller it gets damaged. So, MAX232 is introduced to take care of this issue. It will
convert from CMOS level to TTL Level.
8051 elecTIX board has onboard RS232 interface for PC. A DB-9 female connector is present
onboard. A MAX232 IC is used for converting RS232 level to TTL level. The TxD of DB9
connector is connected to 13 pin of MAX232. The RxD is connected to 14 pin of MAX232. Now
the connections from MAX232 to microcontroller are as follows: 11th pin (T1IN) of MAX232 is
connected to TxD of microcontroller (pin number 11), and 12th pin (R1OUT) of MAX232 is
connected to RxD (pin 10) of microcontroller. In this way we can convert RS232 level to TTL
level and vice versa. We can use this for UART communication between microcontroller board
and PC.
3.2 IR obstacle sensor:
The basic concept of IR (infrared) obstacle detection is to transmit the IR signal (radiation) in a
direction and a signal is received at the IR receiver when the IR radiation bounces back from a
surface of the object.
3.3 DC Motor:
A DC motor in simple words is a device that converts direct current (electrical energy) into
mechanical energy. Here motor is the output. When sensor senses the obstacle, it gives signal to
the microcontroller. Microcontroller gives signal to the motor indicating that obstacle is sensed
and liquid should be flown in to the cup. As voltage provided by microcontroller is not sufficient,
we use a motor driver to drive the motor.
3.4 Mechanical Arrangement:
The mechanical arrangement has two wooden planks (upper and lower). The lower plank is a
fixed one whereas the upper plank can be adjusted to a height required. Two rods are placed in
between the upper and lower planks as a support. The rods are provided with holes and nails so
that the upper plank can be adjusted according to the required height. The bottle is placed on the
lower fixed plank.
CHAPTER 4
TOOLS USED
4.1 KEIL SOFTWARE:
Keil C51 is the industry-standard tool chain for all 8051-compatible devices; it supports all 8051
based devices. The µVision IDE/Debugger integrates complete device simulation, interfaces to
many target debug adapters, and provides various monitor debug solutions.
4.11 Loading projects on KEIL:
Step 1: Open the Keil Compiler first for loading the projects.
Step 2: Go to Project Menu – Select New – uVision Project – save it with a name which has
extension as *.uV2.
Step 3: Now a window opens which asks us to select the device for Target. Select NXP (founded
by Philips) – P89V51RD2.
Step 4: Then a check box opens which asks for copying a Start Up code – Select No for it.
Step 5: Now Go to File – New File. A new editor window opens. And this is the place where the
user writes his code. After writing the code, you have to save it in a location where the project is
created. If the code is written in C-language then it has to be saved with ‘.c’ extension. If it is
written in ASM then save it with ‘.asm’ extension.
Step 6: Now we have to add this code to the Source group. For this – Right Click on Source
Group 1 which is present in Project Workspace – Click Add Files to Source Group 1 – Now add
the file which you have saved with .c or .asm extension.
Step 7: Now we have to select the options for this target such as Crystal frequency and to create
Hex file.
Step 8: Now we have to translate the file and build all the target files.
Step 9: Now we can see the working of our code in the simulator itself. For this we have to
debug the code. For this – Go to ‘Debug’ – Click on ‘Start/Stop debug session (Ctrl+F5)’.
Step 10: Now Go to ‘Peripherals’ – Select I/O Ports – Port 1.
Step 11: Now we can see the execution step-by-step or the entire code can be executed at once.
For seeing the step-by-step execution, Go to ‘Debug’ – Select Step or F11. Continue pressing
F11 for step-by-step execution. For running the entire code Go to ‘Debug’ – Select ‘Run’ or F5.
4.2 FLASH MAGIC:
Flash Magic is Windows based tool for the downloading of code into NXP flash
microcontrollers. By using microcontroller future called ISP, which allows the transfer of data
serially between a PC and the selected device. USB to Serial cable is medium for
communication.
4.21 How to download a code into eleTIX board using Flash Magic:
Step 1: In the Flash Magic, go to ‘Options’ – ‘Advanced Options’. This will give a dialog box as
follows:
• In the dialog box select ‘Half-duplex Communications’ in the Communications tab.
• And select ‘Assert DTR & RTS when COM port Open’ in the Hardware-Config tab.
Step 2: Communications.
Select COM1 for Serial Communication.
Set Baud Rate as 9600.
Select the target device as 89V51RD2
Interface should be None (ISP).
Step 3: Erasing all Flash.
Step 4: Loading HEX file.
Step 5: Verification after programming.
Step 6: Download the code to eleTIX board.
CHAPTER 5
WORKING PRINCIPLE
This project which we call The ACF (Automatic Cup Filler) works on the principle of obstacle
sensing. The machine is pre-programmed to sense cups and fills them with water/coffee up to a
specific level.The ACF frame consists of two planks. A PCB and a water tank are fixed on the
upper plank, which supply water to the cup that is placed on the lower plank. Thus it is useful in
preventing spillage. Also the absence of switches/buttons prevents functional and mechanical
errors.
5.1 BENEFITS:
There will be no overflow of the overhead tank.
There will be no overheating of the motor due to neglect of stopping the motor.
There will be no spillage.
There will be no mechanical or functional errors as there are no switches or buttons.
5.2 BLOCK DIAGRAM:
CHAPTER 6
DESIGN AND IMPLEMENTATION
6.1 Program:
#include<p89v51rd2.h>
#include<delay.h>
#define level1 P1_1
#define sensor P1_2
#define level2 P1_3
void main()
{
P2_0=0;
P2_1=0;
sensor=1;
level1=1;
level2=1;
while(1)
{
if((level1==0)&&(sensor==1))
{
P2_0=0;
P2_1=1;
delay_ms(20000);
P2_0=0;
P2_1=0;
delay_ms(10000);
}
else if((level2==0)&&(sensor==1))
{
P2_0=0;
P2_1=1;
delay_ms(1000);
P2_0=0;
P2_1=0;
delay_ms(3000);
}
else
{
P2_0=0;
P2_1=0;
}
}
}
6.2 Operation
The HEX file obtained is dumped on to the 8051 eleTIX board using a flash magic with the help
of MAX 232 and USB to serial cable.
8051 eleTix board and the water tank with motor in it, is placed on the upper plank. Sensor is
placed under the upper plank. When the bottle is placed in the mechanical arrangement, the IT
transmitter sends the radiation and the radiation hits the object and bounces back. This radiation
is received at the IR receiver and the led glows. So the object is detected. Now the sensor sends
the signal to the microcontroller and the microcontroller drives the motor as soon as the sensor
sends the signal. The microcontroller drives the motor with the L293D motor driver IC. So the
water pump motor is driven and the water from the tank is flown in to the bottle placed on the
lower plank through a pipe like arrangement.
The water flows in to the bottle for some time which is derived according to the height of the
upper plank. For example if the upper plank is at 10 cm from the lower one then 100ml of water
is filled. In the program we mentioned 2 such levels, which can be adjusted by switching the
pins. The amount of liquid which flows into the cup depends upon the time (delay) mentioned in
the program corresponding to the particular level.
6.3 Output
CHAPTER 7
APPLICATIONS
In huge industries like coca cola etc. the containers of different sizes are automatically filled
using a similar system. A continuous process involving detection of the empty bottles, filling
them up to a fixed limit and moving it forward so as to repeat the same with the next bottle is
followed.
CONCLUSION
Depending on the input levels and sensor, the filler would be ON and sent liquid respectively.
We are hereby concluding that this module would helpful to increase the production and
decrease the cost of the labor.
SCOPE FOR FUTURE WORK
BIBLIOGRAPHY
APPENDIX