Professional Documents
Culture Documents
1. Introduction
I T = I 0 e ( + )l (1)
where IT represents the intensity of the transmitted light through the sample, I0 the
intensity of the incident light on the sample, the absorption coefficient per unit length,
the turbidity per unit length and l the length of the light path.
Referring to how the turbidity sensor works it can be underlined that an infrared light,
generated by an IR emitters set, is directed at the tested sample, the light being
absorbed or scattered in all directions. The amount of light transmitted directly to the
detector (for a transmission scheme) or being scattered directly into the detector
(scattering scheme) is transduced in an electric voltage using an IR photodiode. The
non-linearity of the photodiode characteristics imposes the implementation of advanced
processing techniques to extract the turbidity information.
3. Hardware description
scattered
LS1 light
ILT
uIRD
LT D
LS2 transmition
ILS2
light
The utilization of two scattering LEDs is related to the increase of sensor's sensitivity for
low values of turbidity (TU<10NTU). For higher values of TU (TU>500NTU) one of the
scattering IR LEDs can be automatically switch off in order to reduce the energy
consumed by the sensor, an important feature when the sensor is battery powered.
The IR LEDs control is made using the DIO0, DIO1 and DIO2 digital input-output lines of
a data acquisition board.(National Instruments PCI-MIO-16E-4) (Fig.2).
DIO0
DIO1
ILS1 DIO2
LS1
ILT
uIRD(t)
LT D
ACH0
ILS2 LS2
+5V
DAQ
100.00
Pn
99.90
99.80
99.70
99.60
99.50
99.40
0 10 20 t(min
30 40 50 60
)
Fig.3. The evolution of IR LED (LD271) emitted optical power evolution versus time in
normalized values
As it is presented in the figure, the global variation of IR emitted power is less than
0.6%. For an hour duration is recorded a larger variation that corresponds to the first 10
minutes, 0.4%, and the variation for steady state functioning is less than 0.2%.
Referring to turbidity scheme timing, it can be underlined that the switch-on period (T)
for each scheme corresponds to T=0.5s. A timing diagram associated to IR LED control
is presented in Fig.4.
ILT(t)
DIO2 DIO1 DIO0 TU scheme
0 0 0 none
t 0 0 1 ls scattering.
T=0.5s 0 1 0 transmission
0 1 1 no applied
ILS1(t), ILS2(t), 1 0 0 ls scaterring
1 0 1 hs scaterring
t 1 1 1 no applied
(a) (b)
4. Software description
The software component of the virtual instrument performs the main tasks related to the
acquisition and data processing and can be divided in different software blocks. As the
main blocks of the virtual instrument software component can be mentioned the digital
signal generation, the voltage acquisition associated to IR detector channel and the data
processing blocks. Referring to the TU sensor calibration, the IR detector signals
UD(TU)|LT=on and UD(TU)|LS1=on, LS2=on are acquired (4000 samples/s, 1000 samples for
each switch-on period) for the nominal schemes and stored in a file. The TU value used
corresponds to the NIST formazin turbidity standards NTU={10, 20, 100, 200, 800,
1000}. The experimental results obtained on the TU sensor calibration phase are
presented on Fig. 5. In the figure, Un represents the normalized values of the acquired
voltage from IR detector for transmission and double excitation scattering scheme. The
normalization factor applied in both cases is the maximum voltage acquired from the IR
detector block that corresponds to transmission scheme TU=0 NTU (distillate water).
As it is presented in the figure, for the transmission scheme the received optical power
that is proportional to uIRD(TU)|LT=on decreases, where for the scattering schemes the
detected optical power that is proportional to uIRD(TU)|LS1=on, LS2=on increases.
norm
UIRD 1
0.9
0.8 transmission
0.7
0.6
0.5 scattering
0.4
0.3
0.2 TU (NTU)
0 200 400 600 800 1000
The non-linearity levels are expressed by non linearity errors that are enLT=2.2% and
enLsi=9.1%. The higher non-linearity requires an additional digital processing that is
made using a neural network (NN) processing architecture.
5. TU processing using NN
Based on the calibration data stored in a file, a NN structure as part of a voltage-to-TU
conversion scheme (Fig.6) is designed in Matlab. The NN architecture used is of the
Multilayer Percepton double input, single output type (DISO)[7] and includes three
layers. The inputs are associated with the TU measurement schemes when the output
corresponds to the TU value. The NN weights and biases (W1, b1, W2, b2) computation
is performed on the NN training phase which is based on a training set, expressed by
the input matrix of the IR detector delivered voltages and an output vector of the NIST
TU values. The used NN training algorithm is Levenberg-Marquardt [8].
Referring to the neurons of the NN these are characterized by different activation
functions. For the hidden layer is used the "tansignoid" function where for the output
W1
b1
uIRD (0) DIO0
DIO1 W2
DIO2
b2
transmissions.
DIO0=1
uIRD(n-1)
Neural processing TUNN
uIRD(n) algorithm
scattering
IR photodiode DIO0=1and/orDIO2=1
voltage values
layer is used the linear function. A simulation study is performed in order to obtain the
optimum number of neurons for the hidden layer. Some results concerning the NN
capability to model the multivariable characteristic as the turbidity versus transmission
voltage and scattering voltage TU (uIRD(TU)|LT=on, uIRD(TU)|LS1,LS2=on) are presented Fig.7.
0.5
0 TU(NTU)
0 200 400 600 800 1000
Fig.7.The neural processing errors values for different number of hidden neurons
On the figure the Nhidden represents the number of neurons of the hidden layer, (NTU) is
NN turbidity modeling error:
=|TU-TUNN| (2)
where the TU is the turbidity of the applied standard solution (real value) and TUNN is the
value of turbidity after neural processing based on above presented scheme. The
optimal number of hidden neurons for the present sensor is six neurons.
The NN designed and tested structure is a part of the virtual turbidity-meter implemented
with LabVIEW. The NN weights and biases are extracted from the ASCII files obtained
in the NN design (created with Matlab) and used for on-line processing of the acquired
voltages. The LabVIEW sequence of TU computation is.
(a) Normalization ( uIRD(n-1) and uIRD(n) uIRDnorm(n-1) and uIRDnorm(n))
(b) Matrix products calculation
u norm
(n 1)
TU norm = W 2 tan sig W 1 IRD norm + b1 + b 2 (3)
u IRD (n)
(c) Denormalization (TUnormTUNN)
The normalization factors arerepresented by the maximum value of the acquired
voltages and the high limit of the TU measurement operational range that is 1000NTU in
the present application.
6. Conclusion
The virtual turbidimeter proposed in this paper present the advantage of the utilization of
infrared turbidity measurement cell characterized by low cost, low dispersion of
characteristics, considering the utilization of only one detector for both TU measuring
schemes. The sensor architecture is extremely flexible and allows the measurement of
turbidity according to the configurations generally in use. As part of a virtual system the
proposed IR turbidity sensor can be used for the laboratory measurements (desktop
computer version) or for the field measurements (laptop computer version). The turbidity
sensor can be also implemented as part of microcontroller based turbidity meter that
represents a future development of the present work.
References