An Internet and Microcontroller-Based Remote Operation Multi-Sensor System For Water Quality Monitoring
An Internet and Microcontroller-Based Remote Operation Multi-Sensor System For Water Quality Monitoring
Authorized licensed use limited to: Universidad Peruana de Ciencias Aplicadas (UPC). Downloaded on August 29,2022 at 05:15:48 UTC from IEEE Xplore. Restrictions apply.
Sensors The Model 11 pH sensor used is a field sensor that is
The measurement block includes a IS1 pH meter Model 11, suitable for submersion. It features a recessed probe design
a WQ7700 turbidity sensor from Water Global and a that tends to be self-cleaning even for solutions containing
PtlOOO resistor used as a temDerature sensor. suspended solids. The reference cell is a patented liquid
junction chemically inert and the pH glass electrode is
Web sensor
made up of a patented material designated Plunger. The
measuring range is 0 to 14 pH with the theoretical slope
block
provided by the manufacturer of k59.16 mV/pH unit at
V
25°C.
Referring to the temperature measurement a RTD probe
(PT 1000) is used.
ConditioningCircuits
To obtain pH, temperature and turbidity values, different
conditioning circuits (CCs) are designed and implemented.
A few meters may separate sensors and microcontroller. In
order not to degrade the analog signals output by the
... sensors, the transmission between each sensor and the
microcontroller is in current. Thus, the main components of
CCpH, CCT and CCnr conditioning blocks (Figure 1) are the
preconditioning circuits, which adapt sensors outputs to the
inputs of 4-20 mA transmitters, and 4-20mA current loop
receivers.
The pH sensor output impedance is higher than 500 MQ.
Thus, a MAX406 micro-power, precision operational
amplifier is connected to sensor's output for impedance
adaptation purposes. The main features of this operational
Web sensor
amplifier that recommend its use are the low supply current
measurement
block (less than 1.2pA) and input offset voltage (0.25mV). The
output signal of op amp is directly input to a XTRlOl 4-20
mA two wire transmitter to convert the input voltage
received from the MAX406 into a current corresponding to
pH values (ex.20 mA. for pH=l and 4 mA for pH=ll).
After 4-20 mA transmission, the current signal is converted
near the microcontroller analog input into a voltage (UpH)
included in the 0+5V interval. The current-to-voltage
conversion is made using a RCV420 4-20 mA current loop
receiver.
In what concerns the temperature sensor, the resistance-to-
current features of XTRlOl are used. Thus, using the
PtlOOO together with a XTR101, a 4 to 20 mA current is
-igure 1. Web-sensor proposed architectures, A I ant obtained for the temperature values included in the 5+3OoC
A2.
temperature interval. The 4-20mA current signal is
The WQ770 is a submersible turbidity meter with the converted into a voltage, UT,using also a RCV420.
sensor mounted in a rugged anodized housing and fully The WQ770 turbidity-sensing unit includes two remote
encapsulated, to be used in-situ environmental monitoring. selectable measuring ranges (O-SONTU, 0- 1000NTU) for
The probe has a light emitting diode (LED) as light source higher sensitivity. In our application (river water), the 4-
and optical lenses that are able to focus light into a dark- 20mA WQ770 output for O-5ONTU is normally
field sample region. Two detectors with limited acceptance recommended. Once again the current to voltage conversion
angles collect light: one collects direct light and the other is performed before microcontroller's input using a
collects light at 90" to the focused beam. The sensor RCV420. The results obtained with this sensor are
operates from battery power and ratio measurements are presented in Figure 2.
computed. The measured light level is converted into an
electrical signal, filtered, resulting in a raw 4-2OmA signal. Microcontroller
The manufacturer guarantees a linearity of f0.05 NTU in Voltages Upw, UT and UTu delivered by CCpH, CCT and
the range 0.1 to 200NTU. CCTU are acquired using the analog input channels
1533
Authorized licensed use limited to: Universidad Peruana de Ciencias Aplicadas (UPC). Downloaded on August 29,2022 at 05:15:48 UTC from IEEE Xplore. Restrictions apply.
ANO+AN2 of a I'IC16F877 microcontroller. One of To publish sensors data pages, both architectures are
microcontroller's digital outputs, RCO, is used to select the considered in two versions, one using a cable connection
turbidity sensor operational range (RCO=l for 0-50 NTU, between the Ethernet controller and the Internet service
and RCO=O for 0-1000NTU). provider (normal Internet connection), and the other using a
GSM to assure that connection (wireless Internet
connection).
apH, b p H
1534
Authorized licensed use limited to: Universidad Peruana de Ciencias Aplicadas (UPC). Downloaded on August 29,2022 at 05:15:48 UTC from IEEE Xplore. Restrictions apply.
is microcontroller's memory capacity. A Web server needs
ample storage for Web pages, and the on-chip ROM is
clearly inadequate for this [7]
Multi-web sensor
Water parameters
__I
118 2
Status page
Home Pwe
CONCLUSION
Figure 4. Architecture A I : Web page. Taking into consideration the application of the telemetric
system to be built, a wireless Internet connection version of
To overcome this limitation, a 32K EEPROM external architecture A2 is chosen. In fact, the wide coverage of
memory (Microchip 24C32.) is included in the system. The GSM services in Portugal makes possible the operation of
communication between the microcontroller and this mobile communication-based telemetric systems all over
external memory is made using the 12C two wires bi- the country and, in particular, in critical points of the most
directional interface [81. Also connected to the important Portuguese rivers such as in the Tagus estuary
microcontroller through 12C bus is a real time clock. This near Lisbon. Presently, a Siemens M20 GSM cellular
clock is read every time the Web page is refreshed and the engine is utilized to connect the Ethernet controller to the
corresponding time published together with the values of Internet service provider. This mobile phone is hlly
the measured quantities. The Ethernet connection is made controlled by the microcontroller using dedicated
using a Realtek RTL8019 Ethemet controller that includes commands. If proved necessary, a GPRS dual mode GSM,
the network interface controller, a serializer and a buffer such as Siemens MC35, will replace the M20.
RAM [91. As strength of the proposed solution it can be underlined
The microcontroller drives the Ethernet controller the data sensor acquisition (pH, turbidity and temperature
simulating ISA bus activity. For that purpose, the data), linearization and on-line correction (temperature
microcontroller performs actions such as address and data correction in the pH case) and wireless distribution of the
lines setting. To implement those actions, 15 processed data, making it available to any user on the
microcontroller digital lines are used (MO, RB1 for read World Wide Web.
and write outputs, M 2 e R B 7 Ethernet address lines, As already referred, the work here reported represents a
RCO+RC7 Ethernet data lines). From the above-mentioned first step in the design and implementation of a stand-alone
lines, only the first two are used full time to drive the Web-based telemetric system for water river quality
Ethernet interface. monitoring. The final equipment will include several other
The main components necessary to materialize the multi- sensors to measure namely conductivity, dissolved oxygen,
Web sensor architecture A2 just described are included in content of heavy metal ions (lead, copper, mercury, etc).
Microchip MPLAB-ICD and Microchip PICDEM.net. Presently, we are studying the possibility of integrating
Figure 5 shows the Web page published using that several of these sensors into an integrated tailor-made
architecture. circuit. The results will be presented in the near hture.
1535
Authorized licensed use limited to: Universidad Peruana de Ciencias Aplicadas (UPC). Downloaded on August 29,2022 at 05:15:48 UTC from IEEE Xplore. Restrictions apply.
ACKNOWLEDGMENTS Institutului Politehnic din Iasi, Tomul XLV (IL) Fax.
This work was supported in part by Portuguese Science and 5A, pp. 285-290, Iasi, Romania, November 1999.
Technology Foundation PRAXIS XXI program [4] National Instruments, "Using LabVIEW with TCP/IP
FCT/BPD/2203/99 and the Project FCT PNAT/1999 and UDP", Application Note 160, National Instruments
EEV15052. This support is gratefully acknowledged. We Corporation Press, July 2000.
would also like to thank the Centro de Electrotecnia [5] National Instruments -"Integrating the Internet into
Te6rica e Medidas Elktricas, IST, Lisboa, for their Your Measurement System - Datasocket Technical
important technical support. Overview", National Instruments Corporation Press,
November 2000.
REFERENCES [6] 0. Postolache, P. Silva G i r b , H. Geirinhas Ramos, M.
[l] A. Bacciagalupi, A. Bemieri, D. Capriglione, "A Web- Dias Pereira,' "A Distributed Virtual Instrument for
based Network fix Distributed Measurements", Proc. Indoor Air Monitoring", Proc. ICEMI'2001, Guilin,
l l t h IMEKO TC-4 Symposium, pp. 182-185, Lisbon, China, November 2001.
Portugal, September 2001. [7] J. Bentham, "TCP/IP Lean -Web Servers for Embeded
[2] F. Toran, D. Ramirez, A. E. Navarro, S . Casans, J. Systems", CMP Books, 2000.
Pelegri, J.M Espi, "Design of a virtual instrument for [8] J.Peatman, "Design with PIC Microcontrollers",
water quality monitoring across the intemet", Sensors Prentice Hall, New Jersey, 1997.
and Actuators B, 3766, pp. 1-5, June 2001. [9] Microchip, "PICDEM.net Intemet Solutions",
[3] Paul0 Maia Santas and Pedro Silva GirBo, "Telemetry Microchip Inc. Press, 2001.
Using Cellular ]Mobile Communications", Buletinul
1536
Authorized licensed use limited to: Universidad Peruana de Ciencias Aplicadas (UPC). Downloaded on August 29,2022 at 05:15:48 UTC from IEEE Xplore. Restrictions apply.