Beruflich Dokumente
Kultur Dokumente
INTRODUCTION
The home automation is made for several reasons of ease, security and
energy efficiency. Home automation is used to control electric appliance like air
conditioner, fan, bulb, gate and door lock etc. it can be control appliance within
home or anywhere. Home automation of appliance may be wired or wireless.
For our convenient we generally use wireless automation because of increasing
smart phones and tablets in recent years. The smart phone provide easy
connectivity with other devices. Through smart phones we can easily control
appliance through Bluetooth, NFC, WLAN, mobile internet etc. if we want to
control appliance from hundreds of mile away, we use internet to control our
appliance and within home we generally use Bluetooth or NFC.
Bluetooth is a standard way to connect the devices and eliminate the wire
between them. It is low power, low cost, and easily available device. Bluetooth
is available in many device like smart phone, tablet etc. Bluetooth technology is
easy to use and understand. Hence it could be used suitably in a cost effective
manner. The embedded system is connected to appliance in home and it is ready
to receive control through blue tooth receiver.
1
appliance. Bluetooth enabled Smartphone which is connected to embedded
system and send control through application installed in phone and which is
easily available on internet.
Android, by Google Inc. provides the platform for the development of the
mobile applications for the Android devices. Home automation system is a
mobile application developed using Android targeting its vast market which will
be beneficial for the masses. According to the International Data Corporation
(IDC) Worldwide Quarterly Mobile Phone Tracker, Android maintained its
leadership position in global market share. Bluetooth is a short-range wireless
communication technology that comes in handy as the solution while
communicating over an ad hoc network environment like the home environment
for connecting the home appliances with the mobile phones. Bluetooth works
over 2.4 GHz frequency range up to the range of 100 m with 1 Mbps speed,
providing a safe and efficient solution for controlling home automation.
2
CHAPTER - 2
LITERATURE SURVEY
Home automation systems aim to control all home activities and functionalities.
Control can be done through a remote control that sends command signals
wirelessly by means of infrared radiation, Bluetooth connectivity, or any other
RF technology as well as via internet or GSM communication. The controlled
target devices usually include domestic appliances, security and safety systems,
HVAC systems, home theatre, lights, and many other home tasks. In this study,
we design, program, and implement a light chandelier with multiple
functionalities. The operational modalities comprise manual and remote on/off,
different working timers, daylight, romance option, light dimming, party style,
on/off luminosity turning, password keys, and motion detection. The chandelier
remote control uses XBee transceivers that fulfill secure commands and prevent
any interference between similar systems. The remote control realization is
based on PIC 16F877A microcontroller and supported by an LCD to display
notifications.
3
2.2 Android mobile based home security and device control using
GSM
4
2.3 Home Automation Using Raspberry Pi through Siri Enabled
Mobile Devices
5
2.4 Employing Cross-Platform Smart Home Control System with
IOT Technology Based
The proposed method changes the original remote controller for home
appliances become IOT (internet of things) technology-based and cross-
platform control by the smart phone remote wireless control. In our research,
smart phone will replace the traditional remote control operation. When the
controller press mobile Web App, in addition to the circuit module will emitting
infrared signals, our hardware module will also upload information to the cloud
database. Such an innovative approach would be able to provide accurate
monitoring by real-time monitoring status and real-time analysis. In the
proposed smart home embedded system, data sent back from each sensor inside
the household can be instantaneously analyzed; Furthermore, the use of
Network Address Translation (NAT) technology to control remotely via the
Internet. In terms of the construction process of the smart factory system, this
dissertation proposes an instantaneous method that carries out the monitoring of
factory area temperature, humidity and air quality using smart mobile phone. At
the same time, the system detects potential flame, analyze and monitor power
loading. These monitoring also include shock detection of operating machines
in factory premises. The study proposes integrating ZigBee and Wi-Fi protocol
smart monitoring system in the structure of the whole factory. Via ZigBee
communication Protocol, the sensors in the factory transmit messages and the
instantaneously detected data to the integrated regulating system. Lastly, this
research study will, in depth, analyse hands-on problems generated during
instantaneous integration of signal packing for various communication
protocols. As well as composing the know-how of overcoming these problems
using the innovative methods of this study while proposing efficient solution
schemes. The above become the greatest features in the building of this
integrated regulation system.
6
2.5 Microcontroller Based Home Automation System Using
Bluetooth, GSM, Wi-Fi and DTMF
7
2.6 Monitoring and Controlling Power Using Zigbee
Communications
8
2.7 Using Bluetooth in a system for integrated control of home
digital network devices
9
CHAPTER – 3
PROJECT DESCRIPTION
• Output capability:
10
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.
11
• VIN The input voltage to 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 The regulated power supply used to power the microcontroller and other
components on the board. This can come either from VIN via an on-board
regulator, or be supplied by USB or another regulated 5V supply.
• 3V3 A 3.3 volt supply generated by the on-board regulator. Maximum current
draw is 50 mA.
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.
• 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.
12
ARDUINO PIN DIAGRAM:
13
Communication:
The RX and TX LEDs on the board will flash when data is being
transmitted via the USB-to-serial chip and USB connection to the computer (but
not for serial communication on pins 0 and 1). A SoftwareSerial library allows
for serial communication on any of the Uno's digital pins. The ATmega328 also
supports I2C (TWI) and SPI communication. The Arduino software includes a
Wire library to simplify use of the I2C bus; see the documentation for details.
For SPI communication, use the SPI library.
Programming:
14
boards) firmware source code is available . The ATmega16U2/8U2 is loaded
with a DFU bootloader, which can be activated by:
On Rev1 boards: connecting the solder jumper on the back of the board (near
the map of Italy) and then resetting the 8U2.
On Rev2 or later boards: there is a resistor that pulling the 8U2/16U2 HWB
line to ground, making it easier to put into DFU mode. You can then use
Atmel's FLIP software (Windows) or the DFU programmer (Mac OS X and
Linux) to load a new firmware. Or you can use the ISP header with an external
programmer (overwriting the DFU bootloader). See this user-contributed
tutorial for more information.
3.2 RELAY:
The coil of a relay passes a relatively large current, typically 30mA for a 12V
relay, but it can be as much as 100mA for relays designed to operate from lower
voltages. Most ICs (chips) cannot provide this current and a transistor is usually
used to amplify the small IC current to the larger value required for the relay
coil.
15
Relays are usually SPDT or DPDT but they can have many more sets of
switch contacts, for example relays with 4 sets of changeover contacts are
readily available. Most relays are designed for PCB mounting but you can
solder wires directly to the pins providing you take care to avoid melting the
plastic case of the relay. The picture shows a working relay with its coil and
switch contacts. You can see a lever on the left being attracted by magnetism
when the coil is switched on. This lever moves the switch contacts. There is one
set of contacts (SPDT) in the foreground and another behind them, making the
relay DPDT.
The relay's switch connections are usually labeled COM, NC and NO:
Schematic diagram:
Schematic explanation:
This circuit is designed to control the load. The load may be motor or
any other load. The load is turned ON and OFF through relay. The relay ON
and OFF is controlled by the pair of switching transistors (BC 547). The relay is
connected in the Q2 transistor collector terminal. A Relay is nothing but
electromagnetic switching device which consists of three pins. They are
Common, Normally close (NC) and Normally open (NO).
17
When low pulse is given to base of transistor Q1 transistor,
the transistor is turned OFF. Now 12v is given to base of Q2 transistor so
the transistor is conducting and relay is turned ON. Hence the common
terminal and NO terminal of relay are shorted. Now load gets the supply
voltage through relay.
Microcontroller or PC
1 on off off
0 off on on
Block diagram
18
Schematic diagram
Working principle
Transformer
The potential transformer will step down the power supply voltage (0-
230V) to (0-15V and 0-9V) a level. If the secondary has less turns in the coil
then the primary, the secondary coil's voltage will decrease and the current or
AMPS will increase or decreased depend upon the wire gauge. This is called a
STEP-DOWN transformer. Then the secondary of the potential transformer
will be connected to the rectifier.
Bridge rectifier
When four diodes are connected as shown in figure, the circuit is called
as bridge rectifier. The input to the circuit is applied to the diagonally opposite
corners of the network, and the output is taken from the remaining two corners.
19
Let us assume that the transformer is working properly and there is a
positive potential, at point A and a negative potential at point B. the positive
potential at point A will forward bias D3 and
reverse bias D4.
One-half cycle later the polarity across the secondary of the transformer
reverse, forward biasing D2 and D4 and reverse biasing D1 and D3. Current
flow will now be from point A through D4, up through Load, through D2,
through the secondary of transformer, and back to point A. Across D2 and D4.
The current flow through Load is always in the same direction. In flowing
through Load this current develops a voltage corresponding to that. Since
current flows through the load during both half cycles of the applied voltage,
this bridge rectifier is a full-wave rectifier.
20
Filter
If a Capacitor is
added in parallel with
the load resistor of a
Rectifier to form a
simple Filter Circuit, the
output of the Rectifier
will be transformed into
a more stable DC Voltage. At first, the capacitor is charged to the peak value of
the rectified Waveform. Beyond the peak, the capacitor is discharged through
the load until the time at which the rectified voltage exceeds the
capacitor voltage. Then the capacitor is charged again and the process repeats
itself.
IC voltage regulators
21
This is a regulated power supply circuit using the 78xx IC series. These
regulators can deliver current around 1A to 1.5A at a fix voltage levels. The
common regulated voltages are 5V, 6V, 8V, 9V, 10V, 12V, 15V, 18V, and 24V.
It is important to add capacitors across the input and output of the regulator IC
to improve the regulation.
3.4 LCD
22
ILLUMINATION:
LCD panels produce no light of their own, they require external light to
produce a visible image. In a "transmissive" type of LCD, this light is provided
at the back of the glass "stack" and is called the backlight. While passive-matrix
displays are usually not backlit (e.g. calculators, wristwatches), active-matrix
displays almost always.
23
PIN DIAGRAM
CCFL: The LCD panel is lit either by two cold cathode fluorescent
lamps placed at opposite edges of the display or an array of parallel CCFLs
behind larger displays. A diffuser then spreads the light out evenly across the
whole display. For many years, this technology had been used almost
exclusively. Unlike white LEDs, most CCFLs have an even-white spectral
output resulting in better color gamut for the display. However, CCFLs are less
energy efficient than LEDs and require a somewhat costly inverter to convert
whatever DC voltage the device uses (usually 5 or 12 V) to ~1000 V needed to
light a CCFL. The thickness of the inverter transformers also limit how thin the
display can be made.
WLED array: The LCD panel is lit by a full array of white LEDs placed
behind a diffuser behind the panel. LCDs that use this implementation will
usually have the ability to dim the LEDs in the dark areas of the image being
displayed, effectively increasing the contrast ratio of the display. As of 2012,
this design gets most of its use from upscale, larger-screen LCD televisions.
RGB-LED: Similar to the WLED array, except the panel is lit by a full
array of RGB LEDs. While displays lit with white LEDs usually have a poorer
color gamut than CCFL lit displays, panels lit with RGB LEDs have very wide
color gamuts.
24
EL-WLED: The LCD panel is lit by a row of white LEDs placed at one
or more edges of the screen. A light diffuser is then used to spread the light
evenly across the whole display. As of 2012, this design is the most popular one
in desktop computer monitors. It allows for the thinnest displays. Some LCD
monitors using this technology have a feature called "Dynamic Contrast" where
the backlight is dimmed to the brightest color that appears on the screen,
allowing the 1000:1 contrast ratio of the LCD panel to be scaled to different
light intensities, resulting in the "30000:1" contrast ratios seen in the advertising
on some of these monitors.
25
Connection to other circuit:
Specifications:
26
inherent limitation of the display while the resolution is a function of the
electronics that make the display work.
Spatial performance:
LCDs come in only one size for a variety of applications and a variety of
resolutions within each of those applications. LCD spatial performance is also
sometimes described in terms of a "dot pitch". The size (or spatial range) of an
LCD is always described in terms of the diagonal distance from one corner to its
opposite. This is an historical remnant from the early days of CRT television
when CRT screens were manufactured on the bottoms of glass bottles, a direct
extension of cathode ray tubes used in oscilloscopes. The diameter of the bottle
determined the size of the screen. Later, when televisions went to a more square
format, the square screens were measured diagonally to compare with the older
round screens.
Temporal/timing performance:
Advantages:
27
50% of the power a CRT monitor of the same size viewing area would use,
and the modern LED backlit models typically use 10–25% of the power a
CRT monitor would use.
Very little heat emitted during operation, due to low power consumption.
No geometric distortion.
The possible ability to have little or no flicker depending on backlight
technology.
Usually no refresh-rate flicker, because the LCD pixels hold their state
between refreshes (which are usually done at 200 Hz or faster, regardless of
the input refresh rate).
Is very thin compared to a CRT monitor, which allows the monitor to be
placed farther back from the user, reducing close-focusing related eye-strain.
Razor sharp image with no bleeding/smearing when operated at native
resolution.
Emits much less undesirable electromagnetic radiation than a CRT monitor
(in the extremely low frequency range).
Can be made in almost any size or shape.
No theoretical resolution limit. When multiple LCD panels are used together
to create a single canvas, each additional panel increases the total resolution
of the display, which is commonly called “stacked” resolution.
Can be made to large sizes (more than 60 inches (150 cm)) lightly and
relatively inexpensively due to established mass production.
Masking effect: the LCD grid can mask the effects of spatial and grayscale
quantization, creating the illusion of higher image quality.
Unconstrained by geographical (hemispheric) location of device with respect
to Earth's magnetic field.
As an inherently digital device, the LCD can natively display digital data
from a DVI or HDMI connection without requiring conversion to analog.
28
Some LCD panels have native fiber optic inputs in addition to DVI and
HDMI.
Many LCD monitors are powered by an external 12 V power supply, which
means that (with a proper cable) they can also be run directly on one of the
computer's 12 V power supply outputs, removing the overhead and
quiescent power consumption of the monitor's own power supply. This can
increase the power efficiency, especially if the computer has a high-
efficiency PFC power supply.
Disadvantages:
3.5Bluetooth Module
HC-05 module is an easy to use Bluetooth SPP (Serial Port Protocol) module,
designed for transparent wireless serial connection setup. Serial port Bluetooth
module is fully qualified Bluetooth V2.0+EDR (Enhanced Data Rate) 3Mbps
Modulation with complete 2.4GHz radio transceiver and baseband. It uses CSR
Blue core 04-External single chip Bluetooth system with CMOS technology and
with AFH (Adaptive Frequency Hopping Feature). It has the footprint as small
29
as 12.7mmx27mm. Hope it will simplify your overall design/development
cycle.
30
Specifications
Hardware features
PIO control.
Software features
Slave default Baud rate: 9600, Data bits:8, Stop bit:1,Parity:No parity.
PIO9 and PIO8 can be connected to red and blue led separately. When
master and slave are paired, red and blue led blinks 1time/2s in interval,
while disconnected only blue led blinks 2times/s.
31
PIN DESCRIPTION:
32
BLUETOOTH WORKING
If there are two MCU which connect to master and slave device
respectively, then before paired (LED will flicker) user can send AT commands
by serial port when the system is power on. Please refer to HC-04 and HC-06’s
data sheet for detailed commands. In the last chapter, the command set will be
introduced. Please pay attention to that the command of HC-04/HC-06 doesn’t
have terminator. For example, consider the call command, sending out AT is
already enough, need not add the CRLF (carriage return line feed).
Pin description:
33
Application circuit (connect to 5V serial system or PC serial)
34
AT command test
Enter to AT mode:
Way1: Supply power to module and input high level to PIN34 at the same time,
the module will enter to AT mode with the baud rate-38400.
Way2: In the first step, supply power to module; In the second step, input high
level to PIN34. Then the module will enter to AT mode with the baud rate-
9600. Way1 is recommended.
Command structure: all command should end up with “\r\n” (Hex: 0X0D X0A)
as the terminator. If the serial helper is installed, user just need enter “ENTER”
key at the end of command.
AT+ROLE=0 ----Set the module to be salve mode. The default mode is salve.
AT+CMODE=1
Set the module to make pair with the other random Bluetooth module (Not
specified address). The default is this mode.
AT+CMODE=1
Set the module to make pair with the other Bluetooth module (specified
address). If set the module to make pair with random one first, then set the
35
module to make pair with the Bluetooth module has specified address. Then the
module will search the last paired module until the module is found.
AT+PSWD=XXXX
36
CHAPTER – 4
WORKING PRINCIPLE
Nowadays, people have smart phones with them all the time. So it makes
sense to use these to control home appliances. Presented here is a home
automation system using a simple Android app, which you can use to control
electrical appliances with clicks or voice commands. Commands are sent via
Bluetooth to Arduino Uno. So you need not get up to switch on or switch off the
device while watching a movie or doing some work.
You are now ready to control the appliances using the app. You can either
use on/off buttons or voice commands to control the appliances. You can
control more electrical appliances by increasing the number of channels in the
relay. For instance, using an 8-channel relay, you can control up to eight
devices. For this, you need to alter the source code by adding input commands
and voice commands to control the devices.
37
BLOCK DIAGRAM:
TRANSMITTER:
LCD
RELAY 1 LAMP 1
BLUETOOTH
RELAY 2 LAMP 3
ARDUINO
MICRO CONTROLLER
RELAY 3 LAMP 3
RECEIVER:
ANDROID
MOBILE
38
39
CHAPTER – 5
The hardware model has been developed. The mobile device i s able to
communicate approximately ten feet away from the microcontroller through
concrete walls. The total time from initiation of a lock/unlock to action was
approximately one second. This could be shortened through use of lesser delays
40
in the program and the delays are left long in this developed model to ensure
that data was sent successfully. The hardware was modified to draw power from
a 120V to 12V transformer that is obtainable, Thus it could be added to any
existing structure. To keep all the electronics relatively stable, the normal
convention of the locking pin in the door was ignored. Instead, the linear
actuator was placed in the door jamb, along with the microcontroller and key
switch.
41
An addition of a delay to the source code of the application fixed this
problem. This problem did not occur in the microcontroller because delays had
already been added to that code. Another problem arose in the choice of a
suitable resistor value for the transistor array. It had to be a relatively small
value, approximately 30 Ω, to supply enough current. While that value was on
hand, it would quickly burn up because it drew too much power. This problem
was overcome by the use of six 180Ω resistors that were placed in parallel.
The system that consists of the main units; the MCU which includes
micro controller and Input / Output Interface (IOI) unit. micro controller, which
has the size of a credit card, is equipped with ARM microprocessor and has all
the common ports of a normal PC or laptops, such as video and audio out,
HDMI port for high definition display, two USB host port and a RJ-45 Local
Area Network (LAN) port. The USB port is connected to a Wi-Fi dongle to add
wireless connectivity to the MCU. What differentiates the micro controller with
normal everyday computer is the availability of general purpose input-output
port (GPIO) which allows easy connectivity with external hardware that makes
home automation easier. The GPIO are then connected to the IOI unit which
contains the switching circuit and power ports for easy appliances installation.
The GUI designed and created using Python Tkinter. It act as the medium
between the user and the MCU for both control and monitoring the current
status of the home appliances connected to the IOI unit, and also for
surveillance and security monitoring using the webcam. In this prototype
system, it has two different outputs, which is the light, fan and one input, which
is the webcam. For the light, user able to turn it on or off while for the fan, user
can also control the speed either speed 1, speed 2 or speed 3 according to his
43
requirements. Moreover, the web camera is also placed in the system for
monitoring purposes and can be placed at any desired point or location.
For this home automation and security system we are targeting Android
platform since it has huge market and open source. Android is a software stack
for mobile devices that includes an operating system, middleware and key
applications. Android Applications are made in a Java-like language running on
a virtual machine called „ Dalvik ‟ created by Google. The Android SDK
provides the tools and APIs necessary to begin developing applications on the
Android platform.
44
Android Application program implemented on an Android based Bluetooth
enabled mobile phone, and an 8 bit microcontroller based relay driver circuit
with Serial Bluetooth Module, which is able to communicate with the Home
Appliances over Bluetooth link. The system is based on serial data transmission
using Bluetooth wireless communication in order to facilitate on wireless
communication. Android enabled mobile phone offers system connection and
control utilities.
45
46
This section describes the technologies used for developing the
mobile phone application of the Home Automation System. The mobile phone
application development presented in this paper is based on the following
technologies: Android, Bluetooth. Android is a platform developing on mobile
devices supporting it. Bluetooth has its own benchmark as a wireless
communication technology for permanent and itinerant devices. Combining the
power of Bluetooth, the best known and used wireless tech short range
communication provide a facility to create Android based mobile applications
using the Bluetooth Wireless Technology. The Android Bluetooth specification
Android is everywhere. Present days Phones, Tablets, Android will be in cars,
in in-flight entertainment systems on planes, and even in Android was originally
created by Andy Rubin as an operating system for mobile phone twenty-first
century. In 2005, Google acquired Android Inc., and made Andy Rubin the
Director of Mobile Platforms for Google. Many think the acquisition was
largely in response to the emergence of the Apple iPhone around that time;
however, there were enough other large players, such as RIM Blackberry, Nokia
Symbian, and Microsoft Windows Mobile, that it seemed a salient business
decision for Google to purchase the talent and intellectual property necessary to
assert the company into this emerging space.
Bluetooth link
47
and uCflash+ for burning HEX file into microcontroller were used for the
development. An ATMEL 89C51, 8 bit was used as an embedded relay
controller.
DEVELOPMENT PLATFORM
Technologies used for developing the mobile phone application of the Home
Automation System. The mobile phone application development presented in
this paper is based on the following technologies: Android, Bluetooth. Android
is a platform developing and deploying android based applications on mobile
devices supporting it. Bluetooth has its own benchmark as a wireless
communication technology for permanent and itinerant devices. Combining the
power of Bluetooth, the best known and used wireless tech short range
communication provide a facility to create Android based mobile applications
using the Bluetooth Wireless Technology. The Android Bluetooth specification,
added in API level 5 of Android APIs. sent days Phones, Tablets, TVs and set-
top boxes powered by Google TV. flight entertainment systems on planes, and
even in robots Android was originally created by Andy Rubin as an operating
system for mobile phone first century.
Android's releases prior to 2.0 (1.0, 1.5, 16) were used exclusively on mobile
phones. Most Android phones and some Android tablets now use a 2.x release
and Android 3.0 was a tablet-oriented release but does not officially run on
mobile phones. The current Android version is 4.3. Android's releases are
nicknamed after sweets or dessert items like Cupcake (1.5), Frozen Yogurt
("Froyo") (2.2), Ginger Bread (2.3), Honeycomb (3.0), Ice Cream Sandwich
(4.0), Jelly Bean (4.1) and KitKat (4.4) being the recent one. Android
applications are written in the Java programming language. The Android SDK
provides tools for code compilation and packaging data and resource files into
an archive file with ‘.apk’ extension called as an Android package. Android
48
devices used the ‘.apk’ file to install the application. Android's application
framework allows for the creation of extremely feature rich and novel
applications by using a set of reusable components.
Using the Bluetooth APIs, an Android application can carry out the following
functions:
• Enquire about the local Bluetooth adapter for paired Bluetooth devices
50
CONCLUSION:
51
REFERENCES
[6] S. Panth, M. Jivani, “Designing Home Automation system (HAS) using Java
ME for Mobile Phone”, International Journal of Electronics and Computer
Science Engineering, Vol. 2 No. 02, pp. 798-807, July 2013
52
[10] Keil µvision IDE, http://www.keil.com/uvision/, last seen April 2013.
53
SAMPLE CODING:
#include <SoftwareSerial.h>
String command;
void setup()
BT.begin(9600);
Serial.begin(9600);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
void loop() {
while (BT.available()){
delay(10);
char c = BT.read();
command += c;
if (command.length() > 0) {
Serial.println(command);
digitalWrite(2, HIGH);
54
}
digitalWrite(2, LOW);
55
digitalWrite (3, HIGH);
command="";
56