An Arduino-Based EIS With A Logarithmic Amplifier For Corrosion Monitoring
An Arduino-Based EIS With A Logarithmic Amplifier For Corrosion Monitoring
di elettronica
Politecnico di Torino,
Email: simone.corbellini@polito.it, franco.ferraris@polito.it, marco.parvis@polito.it
Dipartimento di Scienza Applicata e Tecnologia
Politecnico di Torino,
Email: emma.angelini@polito.it, sabrina.grassini@polito.it
I. I NTRODUCTION
The EIS is an interesting non-invasive technique that permits
to analyze both the effectiveness of protective coatings and
the corrosion rate of metallic objects by means of electrical
measurements [1] [2]. The analysis is performed by measuring
amplitude and phase of the coatings electrical impedance at
different frequencies. The impedance is usually measured by
means of an electrochemical cell that relies on an electrolyte to
establish a suitable connection with the coating surface and,
at the same time, to create a desired corrosive environment
[3]. Since the solution usually exhibits a non negligible
electrical resistance, as shown in the scheme of Fig. 1, the
electrochemical cell often exploits three electrodes rather than
two [4], namely: Counter electrode (C), Reference electrode
(R) and Working electrode (W). The R-C pair is used to
stimulate the coating surface compensating the voltage drop
across the solution; the Working electrode, which is directly
connected to the metallic object is used instead to measure the
current that flows through the structure as a consequence of
the stimulus. The impedance of interest is thus obtained as the
ratio between the voltage established at the R electrode and
the current flowing from C to W. In order to avoid perturbing
the electrochemical equilibrium of the solution-coating-metal
structure, however, the applied stimulus has to be quite small.
Fig. 1.
II. T HE
PROPOSED ARCHITECTURE
(1)
where IL is the input current, k is the amplifier scale factor, which is internally trimmed to 200 mV/decade (i.e.
10 mV/dB), and IZ is the current for which the output
becomes zero, which is often called intercept. The selected
amplifier is very suitable for this application since it exhibits
an overall dynamic of 160 dB and an intercept of 100 pA,
permitting to measure currents in the range from 100 pA to
10 mA with a single stage.
One should note, however, that, if from the one hand the
logarithmic font-end greatly simplifies the instrument hardware, on the other hand, special care and non conventional
algorithms have to be employed to implement the sin-fit on
the acquired current samples, which now follow a logarithmic
relationship with the input current. In addition, it is important
to note that the logarithmic amplifier, by definition, can deal
only with positive currents (in this case greater than the
intercept), thus a suitable bias has to be superimposed to
permit the measurement of bipolar signals. The block diagram
of the measurement chain shown in Fig.3 helps to analyze the
overall behavior of the system.
Fig. 3.
(2)
(3)
NLSB ln(10)
kG 0.01 NLSB kG
kG
Fig. 4. This figure shows the effects of changes in the acquisition gain kG
on the computed impedance . If the coefficient kG increases from its nominal
value of 3%, the system underestimates the impedance magnitude up to about
40%. However, when the gain deviates, a second harmonic appears in the
linearized signal and its amplitude and phase can help to detect the problem.
If the gain decreases, the second harmonic has the same phase of the main
component, while if the gain increases. the second harmonic rotates by 180 .
(5)
Fig. 5.
Photograph of the Arduino Due board and of the home-made
prototypal shield which can be plugged on top of Arduino to add the analog
front-end with the logarithmic amplifier.
Fig. 8. Magnitude deviations between the measured R-C network and the
expected values obtained by fitting the network model. All over the frequency
range the deviations are almost within 2%.
Fig. 9. Phase deviations between the measured R-C network and the expected
values obtained by fitting the network model. All over the frequency range
the deviations are within 0.8 .
the achievable accuracy. During these tests the best value of the
acquisition gain kG has been estimated finding the minimum
of the amplitude of the residuals second harmonic, and it
resulted of 242.32.
Fig. 6 and 7 show amplitude and phase, respectively, obtained during the measurement of a R1 + R2 //C network,
with R1 = 470 k, R2 = 100 M and C = 330 pF, from
1 Hz to 100 kHz. Fig. 8 and 9 show instead the deviations
between measurements and the expected values obtained from
the fitted model of the measured network: the phase deviations
are within 0.8 over the whole frequency band. The magnitude
deviations instead are within 2 3%. Some peaks appear at
center band where the magnitude changed and the bias current
had to be changed as well.
Fig. 11. Bode diagram of a capacitor of 330 pF measured in the range from
0.1 Hz to 100 kHz. The plot reports the phase of the measured impedance
and the expected curve obtained by fitting the capacitor model.
of the cases.
1 k 5 G
0.01 Hz 100 kHz
50 mVpp 2 Vpp
100 mA
better than 5%
better than 3
180 s
80 s
100 s
30 s
IV. C ONCLUSIONS
In this paper a very low-cost EIS system has been presented
and described. The system is based on a low-cost Arduino
Due board and on a specifically designed analog font-end
that makes use of a logarithmic amplifier to achieve the
required dynamic without substantially increasing the system complexity and cost. A preliminary investigation on the
achievable accuracy has been carried out measuring electrical
components. The obtained results are very promising and
already confirmed the capability of the instrument to measure
with acceptable accuracy impedances over 6 decades of range.