Professional Documents
Culture Documents
All praises to ALLAH, the cherisher and the sustainer of the entire world, the most
gracious, the most merciful, who bestowed us with health and abilities to complete
this project in a success full manner.
We acknowledge all the teachers, friends and specially our parents who helped us not
only completing this project but also in other curriculums of our degree completion.
Once again thanks to all.
ABSTRACT
Phase-I of the project involves the acquisition of data from different sensors and logs
this into a personal computer having data base in visual basics where the data is
displayed for monitoring. Also set value defined which compares the actual data with
the set values and generates commands to control the controlling elements (in our
case relays) accordingly. So by the automatic control is achieved. The invention of
the remote control facilities the people in ordered to control their electrical and
electronics devices without manually operating them. Besides controlling the
equipment at the place of installation we have uploaded this on the internet to monitor
and control the equipment anywhere in the world.
Phase-II of the project involves the controlling and monitoring of different electronic
devices using GSM.
How It Works
Phase-I
Phase-II
Data logged is PC software can be accessed remotely by running the client program
on any PC in the world which is connected to the internet. Client software has also
the similar front panel view as host. We can also see all parameters on he remote PC
and can also change set point.
Introduction
SCADA is an acronym that stands for supervisory Control and Data Acquisition.
SCADA refers to a system that collects data from various sensors at a factory, plant
or in the other remote locations and then send this data to a central computer which
then manages and controls the data.
A properly designed SCADA system saves time and money by eliminating the need
for service personnel to visit each site for inspection, data collection\logging or make
adjustments, Real-time monitoring, system modifications,troubleshooting,increased
equipment life, automatic report generating . . .these are just a few of the benefits that
come with today’s SCADA system.
The master station would receive the I\O transmission from the RTU through a
telemetry network and then store the data on mainframe computers.
In the early seventies, DCS (Distributed Control System) were developed. the
ISAS5.1 standards defines a distributed control system as a system that while being
functionally integrated consists of subsystems, which may be physically separate and
remotely located from one another. Large manufactures and process facility utilize
DCS primarily because they required large amount of analog control.
Good SCADA systems today not only control processes but are also used for
measuring,forecasting,billing,analyzing and planning, today’s SCADA system must
meet a whole new level of control automation, interfacing with yesterday’s obsolete
equipment yet flexible enough to adapt to tomorrow’s changes.
Whether you need a new system or are upgrading an older one, it is important to
know the system components before you decide on whom to talk with what
equipment you will need for your particular applications.
Communication Equipment
The way the SCADA system network (topology) is set up can vary with each system
but there must be uninterrupted, bidirectional communication between the MTU and
the RTU for a SCADA or Data Acquisition system to function properly. This can be
accomplished in various waysides. private wire lines, buried
cable,telephone,radios,modems,microwaves dishes,satellites,or other atmospheric
means, and many times, systems employ more than one means of communicating to
the remote site. this may include dial-up or dedicated voice grade telephone lines,
DSL (Digital Subscriber Line).integrated services digital network(ISDN).cable, fiber
optics,WiFi.or other broadband services.
In industry we are interested in the quality as well as the quality of the final product.
So the productivity of an industry should increase.fortunately, the industrial
automation results in the improved quality of product in the following aspects.
Increasing production by avoiding manual delays.
Improving productivity by achieving the optimum efficiency of the machine.
Avoiding reprocessing and improving the productivity.
Automation improves the power saving possibilities and hence the cost of product
goes down.
By avoiding manual error it improves the quality of product and hence
productivity.
Automation can give useful data of the machines which increases the possibility
of analyzing the causes of low of poor productivity.
Introduction
Data acquisition system, as the name implies, are products and\or processes used to
collect information to document or analyze some phenomenon. In the simplest form,
a technician logging the temperature of an oven on a piece of paper is performing
data acquisition. As technology has progressed, this type of process has been
simplified and made more accurate, versatile, and reliable through electronic
equipment.equiment ranges from simple recorder to sophisticated computer systems.
The component of data acquisition system included appropriate sensors that convert
any measurement parameters to an electrical signal, which is acquired by data
acquisition hardware.
Signal may be digital (also called logic signals sometimes) or analog depending on
the transducer used.
Signal conditioning may be necessary if the signal from the transducer is not suitable
for the DAQ hardware to be used. The signal may be amplified or deamplified, or
may require filtering, or a lock-in amplifier is included to perform demodulation.
Various other examples of signal conditioning might be bridge completion, providing
current or voltage excitation to the sensor.isolation, linearization, etc.
Analog signals tolerate almost no cross talk and so are converted to digital data.
Before coming closer to a PC or before traveling along the long cables. For analog
data to have a high signal to noise ratio, the signal to be very high. And sending+-10
Voltages along a fast signal path with a 50 Ohm termination requires powerful
drivers. With a slightly mismatched or no termination at all, the voltage along the
cable right rings multiple time until it is settled in the seeded precision. Digital data
can have +-0.5 volts. The same is true for DACs.also digital data can be sent over
glass fiber for high voltage isolation or by means of Manchester encoding or similar
through RF-couplers. Which prevent net distortion.
Components of the Data Acquisition System
The LM35 is rated to operate over a -55C to +150C temperature range. While the
LM35C is rated for a -40 to 110C range (-10 with improved accuracy).the LM35
series is available packaged in hermetic TO-46 transistor package, the LM35d is also
available in an 8-lead surface mount small outline package and a plastic To-220
package.
Features of LM35
Calibrated directly in ° Celsius (Centigrade)
Linear + 10.0 mV/°C scale factor
0.5°C accuracy guarantee able (at +25° C)
Rated for full -55° to +150°C range
Suitable for remote applications
Low cost due to wafer-level trimming
Operates from 4 to 30 volts
Less than 60 µA current drain
Low self-heating, 0.08°C in still air
Nonlinearity only ±1D4°C typical
Low impedance output, 0.1 W for 1 mA load
ADC0808
In our Phase-1 we have used ADC0808 A/D converter for converting the eight analog
inputs coming from different sensors into 3-bits digital outputs. The ADC0808 data
acquisition component is a monolithic CMOS device with an 8-bit analog-to-digital
converter, 8-channel multiplexer and microprocessor compatible control logic. The 8-
bitA/D converter uses successive approximation as the conversion technique. The
converter features a high impedance chopper stabilized comparator, a256R voltage
divider with analog switch tree and a successive approximation register. The 8-channel
multiplexer can directly access any of 8-single-ended analog signals. The device
eliminates the need for external zero and full-scale adjustments. Easy interfacing to
microprocessors is provided by the latched and decoded multiplexer address inputs and
latched TTL TRI-STATEÉ outputs.
The design of the ADC0808, ADC0809 has been optimized by incorporating the most
desirable aspects of several A/D conversion techniques. The ADC0808, ADC0809 offers
high speed, high accuracy, minimal temperature dependence, excellent long-term
accuracy and repeatability, and consumes minimal power. These features make this
device ideally suited to applications from process and machine control to consumer and
automotive applications.
Features of ADC 0808
Key Specification
8051 Microcontroller
The Intel 8051 is an 8-bit microcontroller which means that most available operations are
limited to 8 bits. There are 3 basic "sizes" of the 8051: Short, Standard, and Extended.
The Short and Standard chips are often available in DIP form, but the Extended 8051
models often have a different form factor, and are not "drop-in compatable". All these
things are called 8051 because they can all be programmed using 8051 assembly
language, and they all share certain features (although the different models all have their
own special features).
Features
8-bit data bus
16-bit address bus
32 general purpose registers each of 8 bits
16 bit timers (usually 2, but may have more, or less).
3 internal and 2 external interrupts.
Bit as well as byte addressable RAM area of 16 bytes.
Four 8-bit ports, (short models have two 8-bit ports).
16-bit program counter and data pointer
Typical Applications
8051 chips are used in a wide variety of control systems, telecom applications,
robotics as well as in the automotive industry. By some estimations, 8051 family
chips make up over 50% of the embedded chip market.
Basic Pins
PIN 9: PIN 9 is the reset pin which is used reset the microcontroller’s internal registers
and ports upon starting up.2 machine cycyle should be high at this pin.
PINS 18 & 19: The 8051 has a built-in oscillator amplifier hence we need to only
connect a crystal at these pins to provide clock pulses to the circuit.
PIN 40 and 20: Pins 40 and 20 are VCC and ground respectively. The 8051 chip needs
+5V 500mA to function properly, although there are lower powered versions like the
Atmel 2051 which is a scaled down version of the 8051 which runs on +3V.
PINS 29, 30 & 31: As described in the features of the 8051, this chip contains a built-in
flash memory. In order to program this we need to supply a voltage of +12V at pin 31. If
external memory is connected then PIN 31, also called EA/VPP, should be connected to
ground to indicate the presence of external memory. PIN 30 is called ALE (address latch
enable), which is used when multiple memory chips are connected to the controller and
only one of them needs to be selected. We will deal with this in depth in the later
chapters. PIN 29 is called PSEN. This is "program select enable". In order to use the
external memory it is required to provide the low voltage (0) on both PSEN and EA pins
Ports
PORT P1 (Pins 1 to 8): The port P1 is a general purpose input/output port which can be
used for a variety of interfacing tasks. The other ports P0, P2 and P3 have dual roles or
additional functions associated with them based upon the context of their usage.
PORT P3 (Pins 10 to 17): PORT P3 acts as a normal IO port, but Port P3 has additional
functions such as, serial transmit and receive pins, 2 external interrupt pins, 2 external
counter inputs, read and write pins for memory access.
PORT P2 (pins 21 to 28): PORT P2 can also be used as a general purpose 8 bit port
when no external memory is present, but if external memory access is required then
PORT P2 will act as an address bus in conjunction with PORT P0 to access external
memory. PORT P2 acts as A8-A15, as can be seen from fig 1.1
PORT P0 (pins 32 to 39) PORT P0 can be used as a general purpose 8 bit port when no
external memory is present, but if external memory access is required then PORT P0 acts
as a multiplexed address and data bus that can be used to access external memory in
conjunction with PORT P2. P0 acts as AD0-AD7,
Oscillator Circuits
The 8051 requires the existence of an external oscillator circuit. The oscillator circuit
usually runs around 12MHz, although the 8051 (depending on which specific model)
is capable of running at a maximum of 40MHz. Each machine cycle in the 8051 is 12
clock cycles, giving an effective cycle rate at 1MHz (for a 12 KHz clock) to 3.33MHz
(for the maximum 40MHz clock).
Internal Architecture
The 8051 Microprocessor can be programmed in PL/M, 8051 Assembly, C and a number
of other high-level languages. Many compilers even have support for compiling C++ for
an 8051.
Program memory in the 8051 is read-only, while the data memory is considered to be
read/write accessible. When stored on EEPROM or Flash, the program memory can be
rewritten when the microcontroller is in the special programmer circuit.
The 8051 starts executing program instructions from address 0x00 in the program
Direct Memory
The 8051 has 256 bytes of internal addressable RAM, although only the first 128 bytes
are available for general use by the programmer. The first 128 bytes of RAM (from 0x00
to 0x7F) are called the Direct Memory, and can be used to store data.
Special Function Register
The Special Function Register (SFR) is the upper area of addressable memory, from
address 0x80 to 0xFF. This area of memory cannot be used for data or program storage,
but is instead a series of memory-mapped ports and registers. All port input and output
can therefore be performed by memory mov operations on specified addresses in the
SFR. Also, different status registers are mapped into the SFR, for use in checking the
status of the 8051, and changing some operational parameters of the 8051.
The 8051 has 4 selectable banks of 8 addressable 8-bit registers, R0 to R7. This means
that there are essentially 32 available general purpose registers, although only 8 (one
bank) can be directly accessed at a time. To access the other banks, we need to change
the current bank number in the flag status register.
The A register is located in the SFR at memory location 0xE0. The A register works in a
similar fashion to the AX register of x86 processors. The A register is called the
accumulator, and by default it receives the result of all arithmetic operations. The B
register is used in a similar manner, except that it can receive the extended answers from
the multiply and divide operations. When not being used for multiplication and Division,
the B register is available as an extra general-purpose register.
MAX 232
The MAX232 is an integrated circuit that converts signals from an RS-232 serial port to
signals suitable for use in TTL compatible digital logic circuits. The MAX232 is a dual
driver/receiver and typically converts the RX, TX, CTS and RTS signals.
The drivers provide RS-232 voltage level outputs (approx. ± 7.5 V) from a single + 5 V
supply via on-chip charge pumps and external capacitors. This makes it useful for
implementing RS-232 in devices that otherwise do not need any voltages outside the 0 V
to + 5 V range, as power supply design does not need to be made more complicated just
for driving the RS-232 in this case.
The receivers reduce RS-232 inputs (which may be as high as ± 25 V), to standard 5 V
TTL levels. These receivers have a typical threshold of 1.3 V, and a typical hysteresis of
0.5 V.
The later MAX232A is backwards compatible with the original MAX232 but may
operate at higher baud rates and can use smaller external capacitors – 0.1 F in place of
the 1.0 F capacitors used with the original device
Features
2.7V Operation
Dual Band, Triple Mode
Three LNA Gain Settings (Cellular)
Two LNA Gain Settings (PCS)
18mA in Low-Gain Mode
19.5mA in Paging and Madigan Mode
26.5mA in High-Gain, High-Linearity Mode
16.5mA in FM Mode, High-Gain, Low-Linearity
Mode
2.5dB (type) Cascade Noise Figure
Adjustable LNA IIP3, +5dBm to +13dBm
Ultra-Small 28-Pin Package (5mm x 5mm)
Applications
Portable Computers
Low-Power Modems
Interface Translation
Multi drop Rs-232 Networks
Relays
A relay is an electrically operated switch. Current flowing through the coil of the relay
creates a magnetic field which attracts a lever and changes the switch contacts. The coil
current can be on or off so relays have two switch positions and they are double throw
(changeover) switches.
Relays allow one circuit to switch a second circuit which can be completely separate
from the first. For example a low voltage battery circuit can use a relay to switch a 230V
AC mains circuit. There is no electrical connection inside the relay between the two
circuits; the link is magnetic and mechanical.
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. The maximum output current for the
popular 555 timer IC is 200mA so these devices can supply relay coils directly without
amplification.
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. For further
information about switch contacts and the terms used to describe them please see the
page on switches.
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 supplier'
s catalogue should show you the relay's connections. The coil will be
obvious and it may be connected either way round. Relay coils produce brief high voltage
'
spikes'when they are switched off and this can destroy transistors and ICs in the circuit.
To prevent damage you must connect a protection diode across the relay coil.
Advantages of relays:
Relays can switch AC and DC, transistors can only switch DC.
Relays can switch high voltages, transistors cannot.
Relays are a better choice for switching large currents (> 5A).
Relays can switch many contacts at once.
Disadvantages of relays:
Relays are bulkier than transistors for switching small currents.
Relays cannot switch rapidly (except reed relays), transistors can switch
many times per second.
Relays use more power due to the current flowing through their coil.
Relays require more current than many ICs can provide, so a low power
transistor may be needed to switch the current for the relay'
s coil
The programming languages and software used in our Phase-1 are listed below:
C language
Keil version 3
Proteus
Express PCB
Ms visual basic
Microsoft Excel
Microsoft Access
C Language
C is a general-purpose computer programming language developed in 1972 by Dennis
Ritchie at the Bell Telephone Laboratories to implement the Unix operating system
Despite its low-level capabilities, the language was designed to encourage machine-
independent programming. A standards-compliant and portably written C program can be
compiled for a very wide variety of computer platforms and operating systems with little
or no change to its source code, while approaching highest performance. The language
has become available on a very wide range of platforms, from embedded
microcontrollers to supercomputers.
The code is given below:
#include <reg51.h>
#include <lcd.h>
void main()
{
byte *text1=" Temprature ";
byte *text2="\n SET-VALUE : \n";
byte *text3=" SET-VALUE : " ;
byte *text4=" Current Temprature \n" ;
byte sat_value;
#ifndef MONITOR51
SCON = 0x50; /* SCON: mode 1, 8-bit UART, enable rcvr */
TMOD |= 0x20; /* TMOD: timer 1, mode 2, 8-bit reload */
TH1 = -3; /* TH1: reload value for 9600 baud @ 11.0592MHz */
TR1 = 1; /* TR1: timer 1 run */
TI = 1; /* TI: set TI to send first char of UART */
#endif
s1=0;s2=0;d2=0;d1=0;
read_adc=25;
rw=0;
lcd_ini();
send_string(text4);
lcdcmd(0xC6);
bcd();
send(d2+48);
send(d1+48);
send('C');send('
\n'
);
while(1)
{
int preview;
lcdcmd(0x81);
lcdprint(text1);
lcdcmd(0xC6); //LINE TWO POSITION
preview=tlong;
get_temp();
read_adc=value;
bcd();
if(tlong!=preview){send(d2+48);send(d1+48);send('
C');}//show temperature on
Serial Port
if(tlong>=sat_value)out=0;
else out=1;
if(sw1==0)
{
s2=receive();send(s2);s1=receive();send(s1);
lcdcmd(0x0C6);
lcddata(s2);
lcddata(s1);
s2=s2-48;s1=s1-48;
sat_value=s2*10;
sat_value=sat_value+s1;
MSDelay(150);
//while(sw1==1);
lcdcmd(lcd_clr);
}
s_delay(100);
}
void get_temp()
{
W_R = 0;
W_R = 1; //start conversion high to low pulse
while(INTR==1); //wait for end of conversion
R_D = 0; //conversion finished enable rd
value= P1;
MSDelay(1);
if(sw1==0)break;
}
Keil software
When starting a new project, simply select the microcontroller you use from
the Device Database and the µVision IDE sets all compiler, assembler, linker,
and memory options for you.
Numerous example programs are included to help you get started with the
most popular embedded 8051 devices.
The Keil µVision Debugger accurately simulates on-chip peripherals (I²C,
CAN, UART, SPI, Interrupts, I/O Ports, A/D Converter, D/A Converter, and
PWM Modules) of your 8051 device. Simulation helps you understand
hardware configurations and avoids time wasted on setup problems.
Additionally, with simulation, you can write and test applications before target
hardware is available.
When you are ready to begin testing your software application with target
hardware, use the MON51, MON390, MONADI, or FlashMON51 Target
Monitors, the ISD51 In-System Debugger, or the ULINK USB-JTAG Adapter
to download and test program code on your target system.
Proteus
Visual Basic was one of the first products to provide a graphical programming
environment and a paint metaphor for developing user interfaces. Instead of worrying
about syntax details, the Visual Basic programmer can add a substantial amount of code
simply by dragging and dropping controls, such as buttons and dialog boxes, and then
defining their appearance and behavior.
Although not a true object-oriented programming language in the strictest sense, Visual
Basic nevertheless has an object-oriented philosophy. It is sometimes called an event-
driven language because each object can react to different events such as a mouse click.
Since its launch in 1990, the Visual Basic approach has become the norm for
programming languages. Now there are visual environments for many programming
languages, including C, C++, Pascal, and Java. Visual Basic is sometimes called a Rapid
Application Development (RAD) system because it enables programmers to quickly
build prototype applications.
Language features
Visual Basic was designed to be easy to learn and use. The language not only allows
programmers to create simple GUI applications, but can also develop complex
applications. Programming in VB is a combination of visually arranging components or
controls on a form, specifying attributes and actions of those components, and writing
additional lines of code for more functionality. Since default attributes and actions are
defined for the components, a simple program can be created without the programmer
having to write many lines of code. Performance problems were experienced by earlier
versions, but with faster computers and native code compilation this has become less of
an issue.
Although programs can be compiled into native code executables from version 5
onwards, they still require the presence of runtime libraries of approximately 1 MB in
size. This runtime is included by default in Windows 2000 and later, but for earlier
versions of Windows like 95/98/NT it must be distributed together with the executable.
Forms are created using drag-and-drop techniques. A tool is used to place controls (e.g.,
text boxes, buttons, etc.) on the form (window). Controls have attributes and event
handlers associated with them. Default values are provided when the control is created,
but may be changed by the programmer. Many attribute values can be modified during
run time based on user actions or changes in the environment, providing a dynamic
application. For example, code can be inserted into the form resize event handler to
reposition a control so that it remains centered on the form, expands to fill up the form,
etc. By inserting code into the event handler for a key press in a text box, the program can
automatically translate the case of the text being entered, or even prevent certain
characters from being inserted.
Visual Basic can create executables (EXE files), ActiveX controls, or DLL files, but is
primarily used to develop Windows applications and to interface database systems.
Dialog boxes with less functionality can be used to provide pop-up capabilities. Controls
provide the basic functionality of the application, while programmers can insert
additional logic within the appropriate event handlers. For example, a drop-down
combination box will automatically display its list and allow the user to select any
element. An event handler is called when an item is selected, which can then execute
additional code created by the programmer to perform some action based on which
element was selected, such as populating a related list.
Alternatively, a Visual Basic component can have no user interface, and instead provide
ActiveX objects to other programs via Component Object Model (COM). This allows for
server-side processing or an add-in module.
The language is garbage collected using reference counting, has a large library of utility
objects, and has basic object oriented support. Since the more common components are
included in the default project template, the programmer seldom needs to specify
additional libraries. Unlike many other programming languages, Visual Basic is generally
not case sensitive, although it will transform keywords into a standard case configuration
and force the case of variable names to conform to the case of the entry within the
symbol table entry. String comparisons are case sensitive by default, but can be made
case insensitive if so desired.
The Visual Basic compiler is shared with other Visual Studio languages (C, C++), but
restrictions in the IDE do not allow the creation of some targets (Windows model DLL's)
and threading models.
Visual Basic has the following traits which differ from C-derived languages:
Multiple assignment available in C language is not possible. A = B = C does
not imply that the values of A, B and C are equalled. The boolean result of "Is
B = C?" is stored in A. The result stored in A could therefore be false(0) or
true(-1)
Boolean constant True has numeric value −1.[3] This is because the Boolean
data type is stored as a 16-bit signed integer. In this construct −1 evaluates to
16 binary 1s (the Boolean value True), and 0 as 16 0s (the Boolean value
False). This is apparent when performing a Not operation on a 16 bit signed
integer value 0 which will return the integer value −1, in other words True =
Not False. This inherent functionality becomes especially useful when
performing logical operations on the individual bits of an integer such as And,
Or, Xor and Not.[4] This definition of True is also consistent with BASIC
since the early 1970s Microsoft BASIC implementation and is also related to
the characteristics of CPU instructions at the time.
Logical and bitwise operators are unified. This is unlike some C-derived
languages (such as Perl), which have separate logical and bitwise operators.
This again is a traditional feature of BASIC.
Variable array base. Arrays are declared by specifying the upper and lower
bounds in a way similar to Pascal and Fortran. It is also possible to use the
Option Base statement to set the default lower bound. Use of the Option Base
statement can lead to confusion when reading Visual Basic code and is best
avoided by always explicitly specifying the lower bound of the array. This
lower bound is not limited to 0 or 1, because it can also be set by declaration.
In this way, both the lower and upper bounds are programmable. In more
subscript-limited languages, the lower bound of the array is not variable. This
uncommon trait does exist in Visual Basic .NET but not in VBScript.
Relatively strong integration with the Windows operating system and the
Component Object Model.
Banker' s rounding as the default behavior when converting real numbers to
integers with the Round function.
Integers are automatically promoted to reals in expressions involving the
normal division operator (/) so that division of an odd integer by an even
integer produces the intuitively correct result. There is a specific integer
divide operator (\) which does truncate.
Earlier counterparts of Visual Basic (prior to version 5) compiled the code to P-Code or
Pseudo code only. Visual Basic 5 and 6 are able to compile the code to either native or P-
Code as the programmer chooses. The P-Code is interpreted by the language runtime,
also known as virtual machine, implemented for benefits such as portability and small
code. However, it usually slows down the execution by adding an additional layer of
interpretation of code by the runtime although small amounts of code and algorithms can
be constructed to run faster than the compiled native code. Visual Basic applications
require Microsoft Visual Basic runtime MSVBVMxx.DLL, where xx is the relevant
version number, either 50 or 60. MSVBVM60.dll comes as standard with Windows in all
editions after Windows 98 while MSVBVM50.dll comes with all editions after Windows
95. A Windows 95 machine would however require inclusion with the installer of
whichever dll was needed by the program.
Microsoft Excel
Microsoft Excel (full name Microsoft Office Excel) is a spreadsheet-application written
and distributed by Microsoft for Microsoft Windows and Mac OS X. It features
calculation, graphing tools, pivot tables and a macro programming language called VBA
(Visual Basic for Applications). It has been the most widely used spreadsheet application
available for these platforms since version 5 in 1993.
Features
Excel offers users the useful ability to write code using the programming language Visual
Basic for Applications (VBA). Programmers write this code using an editor viewed
separately from the spreadsheet. Manipulation of the spreadsheet entries is controlled
using objects. With this code any function or subroutine that can be set up in a Basic- or
Fortran-like language can be run using input taken from the spreadsheet proper, and the
results of the code are instantaneously written to the spreadsheet or displayed on charts
(graphs). The spreadsheet becomes an interface or window to the code, enabling easy
interaction with the code and what it calculates.
The most common and easiest way to generate VBA code is by use of the macro recorder
function that writes the code for the actions that the user carries out with
mouse/keyboard. There is a relative/absolute toggle button that allows the user to switch
between the two whilst recording a macro. Relative/absolute in this context means the
relative to the start cell location or an absolute cell reference for example cell A1 (column
A, row 1).Certain features such as loop functions and screen prompts by their own
properties cannot be recorded, but must be entered into the VBA module directly by the
programmer.
The macros can easily be activated using a button using the form menu, and advanced
users can use user prompts to create an interactive program.Although conceptually simple
to understand (especially using a macro recorder), the combination of multiple steps
under many different constraints/conditions requires a robust testing/quality control
processes to gain regular/reliable/predictable results for the product to realise its benefits.
Microsoft Access Database
Microsoft Access database is available with the Microsoft Office Professional
suite of business products therefore no additional database software is
required if your company purchases computers with this suite of products
already installed.
Microsoft Access database is likely to be available and supported for years to
come because Microsoft is the premier software company in the world.
MS Access is the most widely used desktop database system in the world.
If database support is important to you then Access may be your best choice
since Access has more support and development consultants than any other
desktop database system.
It is significantly cheaper to implement and maintain compared to larger
database systems such as Oracle or SQL Server.
Company consulting rates are typically lower for Access database consultants
compared to Oracle or SQL Server consultants.
Fairly complex databases can be setup and running in 1/2 the time and cost of
other large database systems (the simpler the database the greater the cost
advantage).
Access integrates well with the other members of the Microsoft Office suite of
products (Excel, Word, Outlook, etc.).
Other software manufacturers are more likely to provide interfaces to MS
Access than any other desktop database system.
When designed correctly, Access databases can be ported (usually with some
difficulty) to SQL Server or Oracle. This is important if you want to start
small or develop a pilot database system and then migrate to the larger
database management systems.
An Access database can be placed on a website for access for remote users.
Simple screens can be developed within Access, Data Access Pages. Or full
control and functionality can be implemented using Active Server Page (ASP)
programming. Note that you still have the same simultaneous connection
limitations described above.
Features
The original concept of Access was for end users to be able to “access” data from any
source. Access offers the ability to import and export data to many formats including
Excel, Outlook, ASCII, dBase, Paradox, FoxPro, SQL Server, Oracle, ODBC, etc. It also
has the ability to link to data in its existing location and use it for viewing, querying,
editing, and reporting. This allows the existing data to change and the Access platform to
always use the latest data. It can even perform heterogeneous joins between data sets
stored a
cross different platforms. Access is often used by people downloading data from
enterprise level databases for manipulation, analysis, and reporting locally.
A significant strength of Microsoft Access is its Jet Database format (MDB or ACCDB in
Access 2007) which can contain the application and data in one file. This makes it very
convenient to distribute the entire application to another user, who can run it in
disconnected environments.
GSM Mobile
Interface between device panel and GSM Mobile
Base Station
Software
GSM Tube
Interface Panel
Mobile Well
GSM
Mobile PC
We have used SONY ERICSSON T290 for this purpose mainly because of two reasons
Data sheet
We have developed a interface which will convert electrical signal into GSM based
signal and vice versa. The interface receives electrical signal and status information and
converts it to the GSM signal.
We have designed a circuit which will act as a bridge between the device panel and the
mobile phone. The idea behind this circuit is very simple
We have used a microcontroller ATMEL (89C51) which will serve as a heart of the
circuit, a MAX232 IC is used to translate TTL into RS232 standard because our mobile
phone is connected serially with our circuit. A ULN 2803 IC is used to provide interface
between the controller and the relays, thus in this way we have achieved our goal, our
circuit is very simple, efficient and proven.
Base Station
A Base station is the main room handling all the operations regarding Phase-2, it will act
as a main control unit compromising of a PC and a mobile phone attached to it through a
serial port.
We have designed a GUI in Visual Basic which provides user friendly and simple
environment for the user to handle and manage all the activities.
The best option to connect a phone to the PC is to use a standard RS232 serial cable.
Software
Visual Basic was designed to be easy to learn and use. The language not only allows
programmers to create simple GUI applications, but can also develop complex
applications. Programming in VB is a combination of visually arranging components or
controls on a form, specifying attributes and actions of those components, and writing
additional lines of code for more functionality. Since default attributes and actions are
defined for the components, a simple program can be created without the programmer
having to write many lines of code. Performance problems were experienced by earlier
versions, but with faster computers and native code compilation this has become less of
an issue.
Conclusion and Future Work
The current trends towards industrial automation are to develop an INTERNET and GSM
based system that provides insensitivity to electromagnetic noise in industry, and
communication and control capabilities within one module. This project demonstrates the
versatile use of INTERNET and GSM in automation industry. It is cheaper and more
efficient solution to monitoring and control. So this project is a good effort to
demonstrate the use of INTERNET and GSM in automation industry.
This system has created more efficient and failsafe operating conditions, enabling
operators to monitor and controls and processes from remote locations in real-time. The
automation introduced increases the efficiency of production process through more
reliable monitoring and increased control.
The technique used in this project can be modified in more refined and controllable
automated solution for industrial processes, by developing some control not only on the
central control console, but also on the remote terminal unit side. This will help in the
more distributed control. Though the complexity of the whole system will increase but
the tendency to manage a large magnitude of the process variables can be effectively
enhanced
References
Stuart A boyar ,SCADA: supervisory control and data acquisition, second edition,
MC graw-hill,N.Y,1992
P. Bhartia and R.E Collins, Modern principles of automations, third edition, MC
graw-hill,N.Y,1996
David bailey, practical SCADA for industry, wiley, N.Y,1995
www.ni.com/labviewzone
www.verio.co.uk
www.gsm-modem.de/gsm-modem-module.html
www.bioenabletech.com/gsm
GSM And Personal Communications Handbook by Sigmund Redl,
Matthias Weber, Malcolm W. Oliphant
The GSM Network: The GPRS Evolution: One Step Towards UNTS (Paperback)
www.gsmarena.com/sony_ericsson_t290-909.php
www.atmel.com/
www.electro-tech-online.com/micro-controllers/21879-microcontroller-89c51-
atmel.html
Microelectronic Circuit Analysis and Design by Donald Neamen (Hardcover -
Feb 21, 2006)
Computer Methods for Circuit Analysis and Design (Electrical Engineering) by
Kishore Singhal and Jiri Vlach (Hardcover - Aug 19, 1993)