Beruflich Dokumente
Kultur Dokumente
INTRODUCTION
1.1 General
The project aims in designing a Robot that can be operated using
Android mobile phone. The controlling of the Robot is done wirelessly through
Android smart phone using the Bluetooth feature present in it. Here in the
project the Android smart phone is used as a remote control for operating the
Robot. Android is a software stack for mobile devices that includes an operating
system, middleware and key applications. In addition, Android includes a full
set of tools that have been built from the ground up alongside the platform
providing developers with high productivity and deep insight into their
applications. Bluetooth is an open standard specification for a radio frequency
(RF)-based, short-range connectivity technology that promises to change the
face of computing and wireless communication. It is designed to be an
inexpensive, wireless networking system for all classes of portable devices,
such as laptops, PDAs (personal digital assistants), and mobile phones. It also
will enable wireless connections for desktop computers, making connections
between monitors, printers, keyboards, and the CPU cable-free. The controlling
device of the whole system is a Microcontroller. Bluetooth module, DC motors
are interfaced to the Microcontroller. The data received by the Bluetooth
module from Android smart phone is fed as input to the controller. The
controller acts accordingly on the DC motors of the Robot. The robot in the
project can be made to move in all the four directions using the Android phone.
The direction of the robot is indicated using LED indicators of the Robot
system. In achieving the task the controller is loaded with a program written
using Embedded C language.
1
1.2 Android Platform:
Android devices are powerful mobile computers and they become
more and more popular smart phones used worldwide. They becomes more and
more popular for software developers because of its powerful capabilities and
open architecture, also its based on the java programming language. Because
Android uses the Java programming language getting started with the Android
API is easy; the API is open and allows easy access to the hardware
components. Android devices provide numerous communication interfaces like
USB, Wi-Fi and Bluetooth, that can be used to connect to the robot. We think it
is a great platform for a robotic system control, because its much cheaper than
any other ARM-based processing unit. We use android platform because it is the
widest used in the word and runs the largest number ofSmart phones worldwide.
1.4 Purpose
2
The purpose of our research is to provide simpler robots hardware
architecture but with powerful computational platforms so that robots designer
can focus on their research and tests instead of Bluetooth connection
infrastructure. This simple architecture is also useful for educational robotics,
because students can build their own robots with low cost and use them as
platform for experiments in several courses.
The main purpose of this project is to develop a remote user
interface to control a robot via a wireless technology. There is a need to
communicate with the robot remotely in order to control the robot movements
and pass critical data both ways.
The current IR controls are not good enough because the robot
does not have an IR transmitter but only a receiver, meaning that the
communication is one way. The IR communication works only in line of direct
sight and any objects in the way will obstruct the communication.
Bluetooth communication will enable us to control the robot up to
100 meters without the need for direct sight which means that the robot could be
located behind a wall or some other object and the communication would not be
lost.
3
CHAPTER II
EXTINGUISHER ROBOT
4
12v/1A
lead acid battery
AT328
Bluetooth modulemetal
metal L293D
detector motor driver
MOTOR
dc motor
5
mode and other is autonomous mode. Manual mode is operated using joysticks
and for autonomous mode there is no human intervention. In autonomous mode
bomb sensors are used to detect the bomb and robot is coded accordingly to
move in the direction of detected bomb. In manual mode robot is operated by
Human via transmitters.
If the bomb is detected robot is move towards the particular place through
DC motor. Bluetooth transreceiver is used to control DC motors to change the
direction of the motor..
Motor Drivers:
Motor drivers are used to describe the direction of movement of the
robot. It is used to give high voltage and high current as an output to run
the motors which are used in the project for the movement of the robot.
DC Motors:
In this project we use simple DC motor for the rotation of the
wheel which are responsible for the movement of the robot. Usually DC
motors convert electrical energy into mechanical energy.
2.2 WORKING
6
communicate it with the Bluetooth module. The Bluetooth module used is a
HC-05 in smd package which works on a 3.3v and have a serial communication
with any device connected to it the communication speed can be configured on
various speed via AT Command.
7
The robot in the project can be made to move in all the four
directions using the android phone. The direction of the robot is indicators using
LED indicators of the Robot system
CHAPTER III
HARDWARE DESCRIPTION
8
pins or female headers that facilitate connections for programming and
incorporation into other circuits. These may connect with add-on modules
termed shields. Multiple, and possibly stacked shields may be individually
addressable via an IC serial bus. Most boards include a 5 V linear regulator and
a 16 MHz crystal oscillator or ceramic resonator. Some designs, such as the
LilyPad, run at 8 MHz and dispense with the onboard voltage regulator due to
specific form-factor restrictions.
The Arduino board exposes most of the microcontroller's I/O pins for use by
other circuits. The Diecimila Duemilanove and current Uno provide 14 digital
I/O pins, six of which can produce pulse-width modulated signals, and six
analog inputs, which can also be used as six digital I/O pins. These pins are on
the top of the board, via female 0.1-inch (2.54 mm) headers. Several plug-in
application shields are also commercially available. The Arduino Nano, and
9
Arduino-compatible Bare Bones Board and Boarduino boards may provide
male header pins on the underside of the board that can plug into solderless
breadboards
Microcontroller: ATmega328
Operating Voltage: 5V
SRAM: 2 KB (ATmega328)
EEPROM: 1 KB (ATmega328)
10
There are three pools of memory in the microcontroller used on avr-based
Arduino boards :
SRAM (static random access memory) is where the sketch creates and
manipulates variables when it runs.
The ATmega328 chip found on the Uno has the following amounts of memory:
Flash 32k bytes (of which .5k is used for the bootloader)
SRAM 2k bytes
EEPROM 1k byte
The ATmega2560 in the Mega2560 has larger memory space :
Flash 256k bytes (of which 8k is used for the bootloader)
SRAM 8k bytes
EEPROM 4k byte
11
Fig
ure.no.3.1 Block Diagram of Microcontroller
12
In addition, some pins have specialized functions:
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.
PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the
analogWrite() function.
13
LED: 13. There is a built-in LED driven by digital pin 13. When the pin
is HIGH value, the LED is on, when the pin is LOW, it's off.
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.
The main active materials required to construct a lead acid battery are
15
SO4 ions are moving freely in the solution so some of them will
reach to pure Pb plate where they give their extra electrons and become radical
SO4. As the radical SO4 cannot exist alone it will attack Pb and will form PbSO4.
As H+ ions take electrons from PbO2 plate and SO4 ions give electrons to Pb
plate, there would be an inequality of electrons between these two plates. Hence
there would be a flow of current through the external load between these plates
for balancing this inequality of electrons. This process is called discharging of
lead acid battery. The lead sulfate (PbSO4) is whitish in color. During
discharging,
Now we will disconnect the load and connect PbSO 4 covered PbO2
plate with positive terminal of an external DC source and PbO2 covered Pb plate
with negative terminal of that DC source. During discharging, the density of
sulfuric acid falls but there still sulfuric acid exists in the solution. This sulfuric
acid also remains as H+ and SO4 ions in the solution. Hydrogen ions (cation)
being positively charged, move to the electrode (cathode) connected with
negative terminal of the DC source. Here each H + ion takes one electron from
that and becomes hydrogen atom. These hydrogen atoms then attack PbSO 4 and
16
form lead and sulfuric acid. SO4 ions (anions)
move towards the electrode (anode) connected with positive terminal of DC
source where they will give up their extra electrons and become radical SO4.
This radical SO4 cannot exist alone hence reacts with PbSO4 of
anode and forms lead peroxide (PbO2) and sulfuric acid (H2SO4).
Hence by charging the lead acid
storage battery cell,
17
The lead-acid battery was invented in 1859 by French
physicist Gaston Plant and is the oldest type of rechargeable battery. Despite
having a very low energy-to-weight ratio and a low energy-to-volume ratio, its
ability to supply high surge currents means that the cells have a relatively
large power-to-weight ratio. These features, along with their low cost, makes it
attractive for use in motor vehicles to provide the high current required
by automobile starter motors.
3.4.1 Discharge
18
In the discharged state both the positive and negative plates
become lead(II) sulfate (PbSO4), and the electrolyte loses much of its
dissolved sulfuric acid and becomes primarily water. The discharge process is
driven by the conduction of electrons from the negative plate back into the cell
at the positive plate in the external circuit.
Pb(s) + PbO
2(s) + 2H
2SO
19
4(aq) 2PbSO
4(s) + 2H
2O(l)
3.4.4 Charging
Figure. 3.5 Fully recharged: Lead anode, Lead oxide cathode and sulfuric acid
electrolyte
In the fully charged state, the negative plate consists of lead, and
the positive plate lead dioxide, with the electrolyte of concentrated sulfuric acid.
Overcharging with high charging voltages generates oxygen and hydrogen gas
by electrolysis of water, which is lost to the cell. The design of some types of
lead-acid battery allow the electrolyte level to be inspected and topped up with
any water that has been lost.
20
Due to the freezing-point depression of the electrolyte, as the
battery discharges and the concentration of sulfuric acid decreases, the
electrolyte is more likely to freeze during winter weather when discharged.
21
A hydrometer can be used to test the specific gravity of each cell as
a measure of its state of charge.
Note that neither technique gives any indication of charge capacity, only charge
level. Charge capacity of any rechargeable battery will decline with age and
usage, meaning that it may no longer be fit for purpose even when nominally
fully charged. Other tests, usually involving current drain, are used to determine
the residual charge capacity of a battery.
3.5.1 Description
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. Dual H-bridge Motor Driver
22
integrated circuit (IC).The l293d can drive small and quiet big motors as well,
check the Voltage Specification at the end of this page for more info.
3.5.2 Concept
It works on the concept of H-bridge. H-bridge is a circuit which allows
the voltage to be flown in either direction. As you know voltage need to change
its direction for being able to rotate the motor in clockwise or anticlockwise
direction, Hence H-bridge IC are ideal for driving a DC motor.
In a single l293d chip there two h-Bridge circuit inside the IC which can
rotate two dc motor independently. Due its size it is very much used in robotic
application for controlling DC motors. Given below is the pin diagram of a
L293D motor controller.
There are two Enable pins on l293d. Pin 1 and pin 9, for being able to
drive the motor, the pin 1 and 9 need to be high. For driving the motor with left
H-bridge you need to enable pin 1 to high. And for right H-Bridge you need to
make the pin 9 to high. If anyone of the either pin1 or pin9 goes low then the
motor in the corresponding section will suspend working. Its like a switch.
23
The there 4 input pins for this l293d, pin 2,7 on the left and pin 15 ,10 on
the right as shown on the pin diagram. Left input pins will regulate the rotation
of motor connected across left side and right input for motor on the right hand
side. The motors are rotated on the basis of the inputs provided across the input
pins as LOGIC 0 or LOGIC 1.
In simple to provide Logic 0 or 1 across the input pins for rotating the
motor.
3.5.4 L293D
Logic Table
Motor connected
on left side output pins
(pin 3,6). For rotating
the motor in clockwise
direction the input
pins has to be provided
with Logic 1 and Logic
0.
24
Pin 2 = Logic 1 and Pin 7 = Logic 0 | Clockwise Direction
Pin 2 = Logic 0 and Pin 7 = Logic 1 | Anticlockwise Direction
Pin 2 = Logic 0 and Pin 7 = Logic 0 | Idle [No rotation] [Hi-Impedance
state]
Pin 2 = Logic 1 and Pin 7 = Logic 1 | Idle [No rotation]
In a very similar way the motor can also operated across input pin 15,10 for
motor on the right hand side.
VCC is the voltage that it needs for its own internal operation 5v;
L293D will not use this voltage for driving the motor. For driving the motors it
has a separate provision to provide motor supply VSS (V supply). L293d will
use this to drive the motor. It means if you want to operate a motor at 9V then
you need to provide a Supply of 9V across VSS Motor supply.
25
Figure 3.10 L293D Motor Driver
The maximum voltage for VSS motor supply is 36V. It can supply
a max current of 600mA per channel.Since it can drive motors Up to 36v hence
you can drive pretty big motors with this l293d.
VCC pin 16 is the voltage for its own internal Operation. The
maximum voltage ranges from 5v and upto 36v.
TIP: Dont Exceed the Vmax Voltage of 36 volts or it will cause damage.
26
3.6 DC Motor
A DC motor in simple words is a device that converts direct
current(electrical energy) into mechanical energy. Its of vital importance for the
industry today, and is equally important for engineers to look into the working
principle of DC motor in details that has been discussed in this article. In order
to understand the operating principle of dc motor we need to first look into
its constructional feature.
Flemings left hand rule says that if we extend the index finger, middle
finger and thumb of our left hand in such a way that the electric current carrying
27
conductor is placed in a magnetic field (represented by the index finger) is
perpendicular to the direction of current (represented by the middle finger), then
the conductor experiences a force in the direction (represented by the thumb)
mutually perpendicular to both the direction of field and the current in the
conductor.
28
Figure 3.13 Magnetic Flux due to Current Flow
BIL
dF = dq(E + v X B)
For the operation of dc motor, considering E = 0
dF = dq v X B
i.e. its the cross product of dq v and magnetic field B.
or dF = dq (dL/dt) X B [v = dL/dt]
Where dL is the length of the conductor carrying charge q.
Or dF = (dq/dt) dL X B
or dF = I dL X B [Since, current I = dq/dt]
or F = IL X B = ILB Sin
or F = BIL Sin
29
From the 1st diagram we can see that the construction of a DC motor is
such that the direction of electric current through the armature conductor at all
instance is perpendicular to the field. Hence the force acts on the armature
conductor in the direction perpendicular to the both uniform field and current is
constant.
i.e. = 90
So if we take the current in the left hand side of the armature conductor to
be I, and current at right hand side of the armature conductor to be I, because
they are flowing in the opposite direction with respect to each other.
Then the force on the left hand side armature conductor, Fl = BIL Sin90 = BIL
we can see that at that position the force on either side is equal in magnitude
but opposite in direction. And since the two conductors are separated by some
distance w = width of the armature turn, the two opposite forces produces a
rotational force or a torque that results in the rotation of the armature conductor.
Now let's examine the expression of torque when the armature turn crate an
angle of with its initial position.
Or = Fcos.w
Or = BIL w cos
Where is the angle between the plane of the armature turn and the plane
of reference or the initial position of the armature which is here along the
direction of magnetic field.
30
The presence of the term cos in the torque equation very well signifies
that unlike force the torque at all position is not the same. It in fact varies with
the variation of the angle . To explain the variation of torque and the principle
behind rotation of the motor let us do a stepwise analysis.
Step 1:
Initially considering the armature is in its starting point or reference position
where the angle = 0.
= BIL w cos0 = BILw
Since = 0, the term cos = 1, or the maximum value, hence torque at this
position is maximum given by = BILw. This high starting torque helps in
overcoming the initial inertia of rest of the armature and sets it into rotation.
31
Figure 3.15 Direction of Rotation for =0
Step 2:
Once the armature is set in motion, the angle between the actual
position of the armature and its reference initial position goes on increasing in
the path of its rotation until it becomes 90 from its initial position.
Consequently the term cos decreases and also the value of torque.
The torque in this case is given by = BILwcos which is less than BIL
w when is greater than 0
32
Step 3:
In the path of the rotation of the armature a point is reached where the
actual position of the rotor is exactly perpendicular to its initial position, i.e. =
90, and as a result the term cos = 0.
The torque acting on the conductor at this position is given by.
= BILwcos90 = 0
3.6.1 Types
The direct current motor or the DC motor has a lot of application in
todays field of engineering and technology. Starting from an electric shaver to
parts of automobiles, in all small or medium sized motoring applications DC
motors come handy. And because of its wide range of application different
functional types of dc motor are available in the market for specific
requirements.
33
Figure 3.22 Types of DC Motor
This module enables you to wireless transmit & receive serial data. It is a drop
in replacement for wired serial connections allowing transparent two way data
communication. You can simply use it for serial port replacement to establish
connection between MCU or embedded project and PC for data transfer.
3.6.3 Specifications:
Range 10 meters
34
Frequency: 2.4 GHz ISM
Modulation: GFSK
Sensitivity: 84dBm
35
Bluetooth connection is equivalently liked to a serial port line connection
including RXD, TXD signals. And they can communicate with each other.
1. When MCU has Bluetooth salve module, it can communicate with Bluetooth
adapter of computer and smart phones.
2. 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.
3. Bluetooth serial modules operation doesnt need drive, and can
communicate with the other Bluetooth device. But communication
between two Bluetooth module require at two conditions:
i) The communication must be between master and slave.
ii) The password must be correct.
HC-05 HC-06
Master and Slave mode can be Master and Slave mode cant be
Switched Switched
Bluetooth Name: HC-05 Bluetooth Name: HC-06
Password: 1234 Password: 1234
36
Figure. 3.19 Bluetooth module
37
CHAPTER IV
MISCELLANEOUS COMPONENTS
4.1 RESISTOR:
38
The electrical functionality of a resistor is specified by its
resistance: common commercial resistors are manufactured over a range of
more than 9 orders of magnitude. When specifying that resistance in an
electronic design, the required precision of the resistance may require attention
to the manufacturing tolerance of the chosen resistor, according to its specific
application. The temperature coefficient of the resistance may also be of
concern in some precision applications. Practical resistors are also specified as
having a maximum power rating which must exceed the anticipated power
dissipation of that resistor in a particular circuit: this is mainly of concern in
power electronics applications. Resistors with higher power ratings are
physically larger and may require heat sinking. In a high voltage circuit,
attention must sometimes be paid to the rated maximum working voltage of the
resistor.
39
4.2 PRESET:
4.3 CAPACITOR:
40
In electronics, a ceramic capacitor is a capacitor constructed of
alternating layers of metal and ceramic, with the ceramic material acting as
the dielectric. The coefficient depends on whether the dielectric is Class
1 or Class 2. A ceramic capacitor (especially the class 2) often has
high dissipation factor, high frequency coefficient of dissipation.
Bare leadless disc, sits in a slot in the PCB and is soldered in place, used for
UHF applications
41
for high Q filtersa typical class I capacitor will have a dissipation factor of
0.15%. Very high accuracy (~1%) class I capacitors are available (typical ones
will be 5% or 10%). The highest accuracy class 1 capacitors are designated C0G
or NP0.
Class III capacitors: high volumetric efficiency, but poor accuracy and
stability. A typical class III capacitor will change capacitance by -22% to +56%
over a temperature range of 10 C to 55 C. It will have a dissipation factor of
4%. It will have fairly poor accuracy (commonly, 20%, or +80/-20%). These are
typically used for decoupling or in other power supply applications.
42
technology has improved, ceramic capacitors are now commonly available in
values of up to 100 F, and they are increasingly starting to compete.
43
DC polarizing bias. However there are special non-polarized electrolytic
capacitors for AC use which do not require a DC bias. Electrolytic capacitors
also have relatively low breakdown voltage, higher leakage current and
inductance, poorer tolerances and temperature range, and shorter lifetimes
compared to other types of capacitors.
The simplest solution is to connect simple RC circuit which will suppress each
quick voltage change. Since the bouncing time is not defined, the values of
44
elements are not strictly determined. In the most cases, the values shown on
figure are sufficient.
4.5 LED
45
photons. This effect is called electroluminescence, and the color of the light
(corresponding to the energy of the photon) is determined by the energy band
gap of the semiconductor.
FEATURES
High reliability
High radiant intensity
Peak wavelength p = 940nm
2.54mm Lead spacing.
APPLICATIONS
Visual signals where light goes more or less directly from the source
to the human eye, to convey a message or meaning.
Illumination where light is reflected from objects to give visual
response of these objects.
4.6 DIODE
46
In electronics, a diode is a two-terminal electronic component that
conducts electric current in only one direction. The term usually
refers to a semiconductor diode, the most common type today, which is a crystal
of semiconductor connected to two electrical terminals, ap-n junction. A
vacuum tube diode, now little used, is a vacuum tube with two electrodes; a
plate and a cathode.
CHAPTER V
47
5.1 PCB DESGNING AND FABRICATION
With the diagram and all the hand, draw a complete layout plan of
the circuit on a sheet of a tracing paper. As a model, for laying the circuit, a
thermo cole base may be used to hold components. Avoid over crowding of
components while making full space utilization. Keep the ground line on the
side of the PCB and the supply line on other side as far as possible. When all the
components have been mounted on the tracing paper sheet fixed on a piece of
thermo cole base, take out a sketch pen for making in such a way that all the
connecting wires are equal in width, termination rounded off. Re-draw draw it
on a fresh paper if required.
After painting the board, it will be made by the cool air for
sometime. Now take a plastic tray and get some Fe Cl3 chemical powder. The
48
ferric chloride salt is then added with 500ml of water. The color of the solution
is pink. Color of the salt is in yellow, now we add three to five drops of dilute
HCL or H2SO4. This is necessary to quicken the process.
Now we take the painted copper clad board and dip it in the
solution kept in the tray. After 15 to 25 minutes we see the board, with only
printed pattern portion remaining in other place the copper coating is removed
due to the chemical action. Then the board is taken out and washes in water.
After wash the board by using thinner solution. Now a printed circuit has been
formed on the board.
Take fresh water and mix a few teaspoons of FeCL3 add a few
drops of dilute HCL to it, as it speeds the etching process. Shake well immerse
the PC Bin the solution for about 20 minutes occasionally altering the solution
by giving the seesaw reaction to the disk storing reduces the etching time.
Observe the changing color on the copper surface. Take out the PCB only when
the unpainted portion of the copper surface is completely dissolved in the
3solution wash the PCB with the water. After the PCB is thoroughly washed
remove the paint by soft pieces of the cloth dipped in thinner or turpentine.
Then take a drilling machine with 1/32 drill bit to make holes for
the incretion of the components use 1/18 drill bit for inset wires and other thick
components. Now the PCB is ready to use.
ADVANTAGES
49
DIS ADVANTAGES
5.1.7 SOLDERING
The alloy of the filler metal for each type of soldering can be adjusted to
modify the melting temperature of the filler. Soldering appears to be a hot glue
process, but it differs from gluing significantly in that the filler metals alloy
with the work piece at the junction to form a gas- and liquid-tight bond. Soft
50
soldering is characterized by having a melting point of the filler metal below
approximately 400 C (752 F),[2] whereas silver soldering and brazing use
higher temperatures, typically requiring a flame or carbon arc torch to achieve
the melting of the filler. Soft solder filler metals are typically alloys (often
containing lead) that have liquids temperatures below 350C. In this soldering
process, heat is applied to the parts to be joined, causing the solder to melt and
to bond to the work pieces in an alloying process called wetting. In stranded
wire, the solder is drawn up into the wire by capillary action in a process called
'wicking'. Capillary action also takes place when the work pieces are very close
together or touching. The joint strength is dependent on the filler metal used,
where soft solder is the weakest and the brass alloy used for brazing is the
strongest. Soldering, which uses metal to join metal in a molecular bond has
electrical conductivity and is water- and gas-tight. There is evidence that
soldering was employed up to 5000 years ago in Mesopotamia.
CHAPTER VI
RESULT AND DISCUSSION
51
Figure 6.1Extinguisher Robot
6.1 Applications:
Can be used in record maintaining rooms where bomb can cause lose of
valuable data.
Can be used in Server rooms for immediate action in case of bomb
Can be used in extinguishing bomb where probability of explosion is
high. For eg. Hotel kitchens, LPG/CNG gas stores, etc.
Every working environment requiring permanent operator's attention. -At
power plant control rooms. -At captain bridges. -At flight control centers.
6.2 Code Implemenation
52
byte val;
int buttonState = 0;
void setup()
Serial.begin(9600);//Change the baud rate value depending on the default baud rate of your bluetooth
module, for Bluesmirf-115200 and for JY-MCU-9600
pinMode(buttonPin,INPUT);
void loop()
int a=0;
buttonState = digitalRead(buttonPin);
if(Serial.available())
val=Serial.read();
if(int(val)==49)//
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
53
digitalWrite(4,HIGH);
digitalWrite(5,LOW);
else if (int(val)==50)//
digitalWrite(2,LOW);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,LOW);
if(int(val)==51)//
digitalWrite(2,LOW);
digitalWrite(3,HIGH);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
else if(int(val)==52)//
digitalWrite(2,LOW);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,LOW);
54
if(int(val)==53)//
digitalWrite(2,LOW);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(5,LOW);
else if(int(val)==54)//
digitalWrite(2,LOW);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,LOW);
if(int(val)==55)//
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
else if(int(val)==56)//
digitalWrite(2,LOW);
55
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,LOW);
/*if(int(val)==57)
digitalWrite(6,HIGH);
else if(int(val)==48)
digitalWrite(6,LOW);*/
if (buttonState == LOW) {
digitalWrite(6, HIGH);
delay(1000);
digitalWrite(6, LOW);
6.3 Advantages:
Prevention from dangerous incidents
Minimization of
o ecological consequences
o financial loss
o a threat to a human life
Needs no micro-controller programming.
56
The reconstruction of the curse of operators work
6.4 Disadvantages:
CHAPTER VII
REFERENCES
57
[3] Piyare, R. and Tazil, M. (2011) Bluetooth based home automation
system using Android phones. IEEE 15TH International
symposium on consumer electronics (ISCE), 14-17 June 2011,
Singapore.
[10] Gobel, S., Jubeh, R., Raesch, S. L., and Zundorf A., Using the
Android Platform to control Robots, Kassel University Germany.
58