<?xml version="1.0" encoding="UTF-8"?><?xml-model type="application/xml-dtd" href="http://jats.nlm.nih.gov/publishing/1.1d3/JATS-journalpublishing1.dtd"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1d3 20150301//EN" "http://jats.nlm.nih.gov/publishing/1.1d3/JATS-journalpublishing1.dtd">
<article xmlns:ali="http://www.niso.org/schemas/ali/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" dtd-version="1.1d3" specific-use="Marcalyc 1.2" article-type="research-article" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="redalyc">429</journal-id>
<journal-title-group>
<journal-title specific-use="original" xml:lang="pt">Eclética Química</journal-title>
<abbrev-journal-title abbrev-type="publisher" xml:lang="pt">Eclética quím.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="ppub">0100-4670</issn>
<issn pub-type="epub">1678-4618</issn>
<publisher>
<publisher-name>Universidade Estadual Paulista Júlio de Mesquita Filho</publisher-name>
<publisher-loc>
<country>Brasil</country>
<email>ecletica@journal.iq.unesp.br</email>
</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="art-access-id" specific-use="redalyc">42964416005</article-id>
<article-id pub-id-type="doi">https://doi.org/10.26850/1678-4618eqj.v45.4.2020.p57-70</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Sin sección</subject>
</subj-group>
</article-categories>
<title-group>
<article-title xml:lang="en">Electrochemical noise analysis to obtain the Rsn value via FFT using Excel</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="no">
<name name-style="western">
<surname>Barrozo</surname>
<given-names>Sidineia</given-names>
</name>
<xref ref-type="aff" rid="aff1"/>
</contrib>
<contrib contrib-type="author" corresp="no">
<name name-style="western">
<surname>Peres</surname>
<given-names>Riberto Nunes</given-names>
</name>
<xref ref-type="aff" rid="aff2"/>
</contrib>
<contrib contrib-type="author" corresp="no">
<name name-style="western">
<surname>Witzler</surname>
<given-names>Marcus José</given-names>
</name>
<xref ref-type="aff" rid="aff3"/>
</contrib>
<contrib contrib-type="author" corresp="no">
<name name-style="western">
<surname>Benedetti</surname>
<given-names>Assis Vicente</given-names>
</name>
<xref ref-type="aff" rid="aff4"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name name-style="western">
<surname>Fugivara</surname>
<given-names>Cecílio Sadao</given-names>
</name>
<xref ref-type="corresp" rid="corresp1"/>
<xref ref-type="aff" rid="aff5"/>
<email>sadao.fugivara@unesp.br</email>
</contrib>
</contrib-group>
<aff id="aff1">
<institution content-type="original">São Paulo State University (Unesp), Institute of Chemistry, Engineering, Physics and Mathematics Department, Araraquara, São Paulo, Brazil</institution>
<institution content-type="orgname">São Paulo State University (Unesp), Institute of Chemistry, Engineering, Physics and Mathematics Department</institution>
<country country="BR">Brasil</country>
</aff>
<aff id="aff2">
<institution content-type="original">São Paulo State University (Unesp), Institute of Chemistry, Department of Analytical Chemistry, Physical Chemistry, and Inorganic, Araraquara, São Paulo, Brazil</institution>
<institution content-type="orgname">São Paulo State University (Unesp), Institute of Chemistry, Department of Analytical Chemistry, Physical Chemistry, and Inorganic</institution>
<country country="BR">Brasil</country>
</aff>
<aff id="aff3">
<institution content-type="original">EMBRAER</institution>
<institution content-type="orgname">EMBRAER</institution>
<country country="BR">Brasil</country>
</aff>
<aff id="aff4">
<institution content-type="original">São Paulo State University (Unesp), Institute of Chemistry, Department of Analytical Chemistry, Physical Chemistry, and Inorganic, Araraquara, São Paulo, Brazil</institution>
<institution content-type="orgname">São Paulo State University (Unesp), Institute of Chemistry, Department of Analytical Chemistry, Physical Chemistry, and Inorganic</institution>
<country country="BR">Brasil</country>
</aff>
<aff id="aff5">
<institution content-type="original">São Paulo State University (Unesp), Institute of Chemistry, Department of Analytical Chemistry, Physical Chemistry, and Inorganic, Araraquara, São Paulo, Brazil</institution>
<institution content-type="orgname">São Paulo State University (Unesp), Institute of Chemistry, Department of Analytical Chemistry, Physical Chemistry, and Inorganic</institution>
<country country="BR">Brasil</country>
</aff>
<author-notes>
<corresp id="corresp1">
<email>sadao.fugivara@unesp.br</email>
</corresp>
</author-notes>
<pub-date pub-type="epub-ppub">
<year>2020</year>
</pub-date>
<volume>45</volume>
<issue>4</issue>
<fpage>57</fpage>
<lpage>75</lpage>
<history>
<date date-type="received" publication-format="dd mes yyyy">
<day>02</day>
<month>06</month>
<year>2020</year>
</date>
<date date-type="accepted" publication-format="dd mes yyyy">
<day>06</day>
<month>08</month>
<year>2020</year>
</date>
<date date-type="pub" publication-format="dd mes yyyy">
<day>01</day>
<month>10</month>
<year>2020</year>
</date>
</history>
<permissions>
<ali:free_to_read/>
</permissions>
<abstract xml:lang="en">
<title>Abstract</title>
<p>Electrochemical noise (EN) measurements are based on the fluctuations of the electrochemical potential and the current that occur during, for example, a corrosion process without an external signal perturbation. EN analysis (ENA) allows assessment of the type of corrosion and rapid determination of the corrosion rate. Microsoft Excel®, an inexpensive and readily available software package, is an excellent tool for performing repetitive calculations, with automation that saves time for the users. It is a useful tool for the analysis of EN data using fast Fourier transform (FFT), a process that is often made repeatedly and, if not automated, is quite laborious. This work presents a step-by-step procedure using Excel to perform these calculations, automating the process of obtaining the spectral electrochemical noise resistance,  Importar imagen. This routine was used to analyze experimental potential and current noise data recorded for chalcopyrite. The results were comparable to those obtained for the same set of experimental data using Origin® software.</p>
</abstract>
<kwd-group xml:lang="en">
<title>Keywords</title>
<kwd>ENA</kwd>
<kwd>Excel</kwd>
<kwd>spectral electrochemical noise resistance</kwd>
<kwd>detrending</kwd>
<kwd>Hann window</kwd>
</kwd-group>
<counts>
<fig-count count="34"/>
<table-count count="1"/>
<equation-count count="8"/>
<ref-count count="11"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro">
<title>1. Introduction</title>
<p>Electrochemical noise (EN) measurements concern the fluctuations of the electrochemical potential and the current that occur during corrosion processes, without applying an external signal perturbation. EN can be used to monitor the type of corrosion and to rapidly obtain the corrosion rate. The electrochemical potential and current noises are simultaneously measured either by coupling two nominally similar working electrodes connected by a zero-resistance ammeter (ZRA), so that the potential difference between the working electrodes is zero, or by measuring with respect to a reference electrode<sup>
<xref ref-type="bibr" rid="redalyc_42964416005_ref1">1-3</xref>
</sup>. In EN studies, the electrochemical noise resistance (R<sub>n</sub>), determined as the standard deviation of the potential noise divided by the standard deviation of the electrical current noise, is generally considered as an estimation of the corrosion rate<sup>
<xref ref-type="bibr" rid="redalyc_42964416005_ref1">1</xref>
</sup>.</p>
<p>Time domain analysis does not lead directly to comparative values of corrosion rates between systems being studied, hence necessitating frequency domain analysis. In the frequency domain, the power spectral density (PSD) is useful for predicting the corrosion mechanism and, in some cases, has been used in calculating noise impedance. PSD plots are computed using algorithms such as fast Fourier transforms (FFT)<sup>
<xref ref-type="bibr" rid="redalyc_42964416005_ref2">2</xref>
</sup>, which are advantageous when repetitive signals are measured, and the data sets acquired have large numbers of sampling points. The square root of the ratio of the voltage PSD to the current PSD, as a function of frequency, enables calculation of the low frequency noise impedance, <italic>R<sub>sn</sub>
</italic>.</p>
<p>Excel software is an excellent tool for performing repetitive calculations, with automation providing considerable saving of time for users. In order to automate a repetitive task, a macro is recorded using the Macro Recorder in Excel<sup>
<xref ref-type="bibr" rid="redalyc_42964416005_ref4">4</xref>
</sup> , applying the desired format, which can then be replayed whenever needed. An example of this is the possibility of its use, still little explored, for the treatment of electrochemical noise data using FFT, a process that is usually performed repeatedly and is quite laborious, if not automated. Therefore, this work presents a stepby-step procedure for performing these calculations using Excel software, automating the process of obtaining the spectral electrochemical noise resistance, 𝑅<sub>𝑠𝑛</sub> 0 , using experimental potential and current noise data recorded for chalcopyrite in the laboratory. The 𝑅<sub>𝑠𝑛</sub> 0 value is calculated, as proposed by Mansfeld and Lee<sup>
<xref ref-type="bibr" rid="redalyc_42964416005_ref5">5</xref>
</sup> , using <xref ref-type="disp-formula" rid="e1">Eq. 1</xref>:</p>
<p>
<disp-formula id="e1">
<label>(1)</label>
<graphic xlink:href="42964416005_ee2.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>with</p>
<p>
<disp-formula id="e2">
<label>(2)</label>
<graphic xlink:href="42964416005_ee3.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>where 𝑃𝑆𝐷<sub>𝐸</sub>(𝑓) and 𝑃𝑆𝐷<sub>𝑖</sub>(𝑓) are the power spectral density of the potential, <italic>E(t)</italic>, and the current density, <italic>i(t)</italic>, respectively, in the frequency domain 𝑓.</p>
<p>In the practical process, 𝑅𝑠𝑛 0 is determined by the linear regression of 𝑙𝑜𝑔( 𝑅<sub>𝑠𝑛</sub>(𝑓)) 𝑣𝑠. 𝑙𝑜𝑔( 𝑓) at the “plateau” in the low frequency region, as suggested in the literature<sup>
<xref ref-type="bibr" rid="redalyc_42964416005_ref3">3</xref>
</sup> , covering a minimum of 10 frequency points. The straight-line equation fitted is evaluated using the lowest frequency of the recorded data, with the result being the 𝑅𝑠𝑛 0 value. In this work, the PSD calculation employs <xref ref-type="disp-formula" rid="e3">Eq. 3</xref>
<sup>
<xref ref-type="bibr" rid="redalyc_42964416005_ref6">6</xref>
</sup> : </p>
<p>
<disp-formula id="e3">
<label>(3)</label>
<graphic xlink:href="42964416005_ee4.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>where 𝑋<sub>𝑇</sub>(𝑓) is the Fourier transform of <italic>x(t)</italic>, given by <xref ref-type="disp-formula" rid="e5">Eq. 5</xref>, 𝑇 is the experimental time (𝑇 = 𝑁𝛥𝑡, where N is the number of experimental data points and 𝛥𝑡 is the time interval between measurements), and the number 2 indicates that only positive frequencies are considered, since the Fourier transform can also apply to negative frequencies. The Fourier transform of a function <italic>x(t)</italic> is defined by <xref ref-type="disp-formula" rid="e4">Eq. 4</xref>:</p>
<p>
<disp-formula id="e4">
<label>(4)</label>
<graphic xlink:href="42964416005_ee5.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>where 𝑗<sup>2</sup> = −1 is the imaginary unit and, among other properties, converts the time domain into a frequency domain. Since the signals are considered in the time interval between 0 and 𝑇, the Fourier transform calculations are made from the integral, according to <xref ref-type="disp-formula" rid="e5">Eq. 5</xref>:</p>
<p>
<disp-formula id="e5">
<label>(5)</label>
<graphic xlink:href="42964416005_ee6.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>with the integral being numerically calculated by <xref ref-type="disp-formula" rid="e6">Eq. 6</xref>, called a discrete Fourier transform<sup>
<xref ref-type="bibr" rid="redalyc_42964416005_ref6">6</xref>
</sup>:</p>
<p>
<disp-formula id="e6">
<label>(6)</label>
<graphic xlink:href="42964416005_ee7.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>where 𝑓𝑚 = 𝑚𝛥𝑓 is the frequency related to the m-th sampling point and x is the function to be transformed (in this case, the potential <italic>E</italic> and the current density <italic>i</italic>). The FFT is an algorithm that optimizes the calculations by making them faster, compared to the discrete Fourier transform, and for its use the data set should contain a number of points equal to a power of 2 (for example, 2048= 2<sup>11</sup>). In Excel, this algorithm is implemented using the “Fourier Analysis” function.</p>
<p>Note that <xref ref-type="disp-formula" rid="e2">Eq. 2</xref>, for calculation of 𝑅𝑠𝑛(𝑓), involves the ratio between <italic>PSD<sub>E</sub>
</italic> and <italic>PSD<sub>i</sub>
</italic>, so the factor 2/T of <xref ref-type="disp-formula" rid="e3">Eq. 3</xref> will be canceled in the operation. Hence, in this work, <italic>PSD<sub>E</sub>
</italic> and <italic>PSD<sub>i</sub>
</italic> will be obtained using <xref ref-type="disp-formula" rid="e7">Eq. 7</xref>:</p>
<p>
<disp-formula id="e7">
<label>(7)</label>
<graphic xlink:href="42964416005_ee8.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>since 𝑋𝑇(𝑓) is a complex number, and the modulus of a complex number <italic>z</italic> =<italic> a</italic> + <italic>bj</italic> is given by |𝑧| = √𝑎<sup>2</sup> + 𝑏<sup>2</sup>, so |𝑧|<sup>2</sup> = 𝑎<sup>2</sup> + 𝑏<sup>2</sup>. </p>
<p>As the goal of this work is to provide a routine to obtain R0sn using Excel software, we indicate the criterion that will be used for delimiting the frequency region, without elaborating on any particular merits of this procedure, leaving it to the ENA user to select the criterion most suitable for the study being undertaken. In addition to describing how the value of R0sn can be calculated using Excel, the results are compared with those obtained for the same set of experimental data using Origin<sup>®</sup> software.</p>
</sec>
<sec sec-type="materials|methods">
<title>2. Methodology</title>
<p>The Excel commands presented in this guide follow the 2010/2013 versions of the software. If another version is used, it would be necessary to check the equivalent commands. It is recommended to use the configuration with a dot as the decimal separator, since the original data is generated in this format. To make the change from comma to dot, follow these commands: File → Options → Advanced → Editing options → Use system separators → make the change.</p>
<p>This analysis considered 2048 points of an experimental data set obtained in the low frequency region, but the routine can be applied to any other number of points, as long as the number is a power of 2. The experimental data were arranged in three columns, considering time (t) in seconds (s), potential (E) in volts (V), and current (I) in amperes (A), in a worksheet named Data. It is possible that the experimental data set could have more than 2048 points, so it is important to count the number of data points in the spreadsheet (Formulas → Insert Function → COUNT → OK → select a set of data (column) → OK), in order to leave only 2048 points, deleting the points in excess in the high frequency region. An example of an input spreadsheet is shown in <xref ref-type="fig" rid="gf51">Fig. 1</xref>.</p>
<p>
<fig id="gf51">
<label>Figure 1.</label>
<caption>
<title>Example of data presentation used in the analysis.</title>
</caption>
<alt-text>Figure 1. Example of data presentation used in the analysis.</alt-text>
<graphic xlink:href="42964416005_gf42.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Considering that it is often necessary to remove the drift before analyzing the data7,8, this guide suggests a polynomial removal procedure. For this, graphs are constructed of potential or current against time, adding a trendline that provides the best fit to the data. This can be performed using the following commands: position the cursor on the graph and press the right button of the mouse → Add Trendline → Polynomial → choose the order that provides the best fit → mark Display Equation on chart → Close. Note that the polynomial orders for potential and current may be different each other. Format the graph and trendline, as desired. <xref ref-type="fig" rid="gf52">Fig. 2</xref> shows examples.</p>
<p>
<fig id="gf52">
<label>Figure 2.</label>
<caption>
<title>Examples of potential and current graphs, with trendlines.</title>
</caption>
<alt-text>Figure 2. Examples of potential and current graphs, with trendlines.</alt-text>
<graphic xlink:href="42964416005_gf43.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>In order to remove the drift, create new columns with the following parameters: time (<italic>t</italic>); potential value from the trendline (y<sub>E</sub>(<italic>t</italic>)), using the polynomial coefficients given by the potential fit; current value from the trendline (y<sub>I</sub>(<italic>t</italic>)), using the polynomial coefficients given by the current fit; and the differences between the experimental and fitted values for potential and current (E(<italic>t</italic>) - y<sub>E</sub>(<italic>t</italic>) and I(<italic>t</italic>) - y<sub>I</sub>(<italic>t</italic>), respectively), as shown in <xref ref-type="fig" rid="gf53">Fig. 3</xref>.</p>
<p>
<fig id="gf53">
<label>Figure 3.</label>
<caption>
<title>Example of columns for removal of the drift from the potential and current data.</title>
</caption>
<alt-text>Figure 3. Example of columns for removal of the drift from the potential and current data.</alt-text>
<graphic xlink:href="42964416005_gf44.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>It is recommended to construct graphs of potential and current after removing the drift, in order to visualize the results and confirm that the values are near <italic>y</italic> = 0. <xref ref-type="fig" rid="gf55">Figure 4</xref> shows an example.</p>
<p>
<fig id="gf55">
<label>Figure 4.</label>
<caption>
<title>Examples of potential and current graphs after removing the drift.</title>
</caption>
<alt-text>Figure 4. Examples of potential and current graphs after removing the drift.</alt-text>
<graphic xlink:href="42964416005_gf46.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>In many cases, it is necessary to use appropriate windows to improve the quality of treatment by FFT. This guide uses the Hann window<sup>
<xref ref-type="bibr" rid="redalyc_42964416005_ref6">6</xref>,<xref ref-type="bibr" rid="redalyc_42964416005_ref9">9</xref>
</sup>, which is one of the most suitable. It is defined by the function:</p>
<p>
<disp-formula id="e9">
<label>(8)</label>
<graphic xlink:href="42964416005_ee10.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>where <italic>N</italic> is the total number of points used (in this case, 2048) and <italic>n</italic> is the position of each experimental point, initiating at zero. This function must be multiplied by the values of E(<italic>t</italic>) - y<sub>E</sub>(<italic>t</italic>) and I(<italic>t</italic>) - y<sub>I</sub>(<italic>t</italic>), which are calculated as described above. Figure 5 shows the Data spreadsheet updated so far, where a column with numbers <italic>n</italic> was created (column T) to apply the Hann window (columns U and V) and the value of N (fixed, in this case given in cell D2). Note that to fix a cell, just click on it, and press the F4 key on the keyboard.</p>
<p>
<fig id="gf56">
<label>Figure 5.</label>
<caption>
<title>Spreadsheet example with the Hann window applied to data of the R and S columns.</title>
</caption>
<alt-text>Figure 5. Spreadsheet example with the Hann window applied to data of the R and S columns.</alt-text>
<graphic xlink:href="42964416005_gf47.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Therefore, if the Hann window is not applied, the data of columns O, R, and S should be directly used in the analysis; if the Hann window is applied, the data of columns O, U, and V should be used.</p>
<p>Once the input data are organized, insert a new worksheet in the spreadsheet, in this example named Analysis, to perform the calculations. The step-by-step procedures for building the Analysis worksheet are presented below.</p>
<p>Save the spreadsheet with extension .xlsm (Excel Macro Enabled Workbook). Copy the input data (columns O, R, and S of the Data worksheet, if the Hann window is not used in the input data, or columns O, U, and V, if it is used) and paste from the 5<sup>th</sup> or 6<sup>th</sup> row of the first column (A) of the Analysis worksheet, in order to leave the starting lines for captions, comments, and new data to be inserted. We suggest, for example, that the number of data points (N) is informed at the beginning of column A, the time interval between measurements (∆<italic>t</italic>) in column B, the electrode area (cm2) in column C, and a scale factor with magnitude of 102 or 103 in column D, as this information will be used in future calculations. We also suggest using Excel facilities to count the number of data and the value of ∆<italic>t</italic>, which will minimize errors. The electrode area and the scale factor must be entered manually, as they are values known by the user.</p>
<p>It is important to note that Excel works internally with 14 significant digits. Therefore, since the input data values can be very small, especially for the current data, some values may be considered null and the FFT calculation may fail. A way to overcome this issue is to introduce a scale factor at the beginning of the spreadsheet (in this example, in cell D2), which is used to multiply the current density values before calculating the FFT, increasing the values to the required order of magnitude (10<sup>2</sup>, 10<sup>3</sup>, ...). After the calculations, the scale factor is removed by means of a division. However, it is not necessary to perform this calculation manually since it is included in the automation of the FFT calculations. It is necessary to insert the scale factor according to the order of magnitude of <italic>i</italic> (which in this case is 10<sup>-14</sup> or 10<sup>-13</sup>, consequently requiring a correction with minimal order of 10<sup>3</sup>). <xref ref-type="fig" rid="gf57">Figure 6</xref> shows this procedure.</p>
<p>The calculations presented here are performed using Hann window and current density (<italic>i</italic>, in A cm<sup>-2</sup>), so the experimental data related to current are divided by the electrode area, placing the result (=C6/$C$2) in column D. Note that as the electrode area is constant, it must be fixed when dividing. In column E, list the input data (<italic>n</italic> = 0, 1, 2, 3, ...) used for calculating the frequency (in Hz). The frequencies will be calculated in column F, using the formula: <italic>f</italic> = <italic>n</italic> / (<italic>N*</italic> ∆<italic>t</italic>). Although there is no zero frequency, it is necessary to start at n = 0 for the FFT calculation. To insert the formula, position the cursor in the desired cell (in the example, F6) and do: =E6/($A$2*$B$2). Note that <italic>N</italic> and ∆<italic>t</italic> are fixed, so it is necessary to fix these values, which in the example are in cells A2 and B2. Remember to copy a formula for all cells in the column, just positioning the cursor at the lower right corner of the cell to be copied and, when a cross appears, double-click. An example of the spreadsheet up to this step is shown in <xref ref-type="fig" rid="gf57">Fig. 6</xref>.</p>
<p>
<fig id="gf57">
<label>Figure 6.</label>
<caption>
<title>Example of a spreadsheet constructed to calculate R<sub>sn</sub>.</title>
</caption>
<alt-text>Figure 6. Example of a spreadsheet constructed to calculate Rsn.</alt-text>
<graphic xlink:href="42964416005_gf48.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>To calculate the FFT<sub>E</sub> of the potential, place the cursor in column G, aligned to the data, and follow the commands: Data → Data Analysis → Fourier Analysis → OK. A window similar to the one shown in <xref ref-type="fig" rid="gf58">Fig. 7</xref> appears and, in the Input Range option, select the data from the Potential column (in the example, the data from column B). As an output option, choose “Output Range” and click on the cell where it is desired to place the FFT<sub>E</sub> values (in the example, cell G6). Click OK and all the FFT<sub>E</sub> values are calculated.</p>
<p>
<bold>Note</bold>: <italic>If the Data Analysis option is not enabled in the version of Excel used, follow the commands</italic>: File → Options → Add-ins → Manage: Excel Add-ins → Go → Analysis Tools or Analysis ToolPak → OK).</p>
<p>
<fig id="gf58">
<label>Figure 7.</label>
<caption>
<title>Fourier Analysis function window in Excel.</title>
</caption>
<alt-text>Figure 7. Fourier Analysis function window in Excel.</alt-text>
<graphic xlink:href="42964416005_gf49.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Repeat the same procedure to generate a column with FFT<sub>i</sub> (to calculate the FFT of the current density data), changing only the Input data to column D, and the output location to cell H6.</p>
<p>The result of the FFT is a complex number, so in order to perform the following calculations, it is necessary to separate the real and the imaginary parts into different columns. To do this, place the cursor on the next free column, aligned to the data (in the example, I6), and follow the commands for the real part: Formulas → Insert Function → IMREAL → click on the cell of the complex number (G6) and then on OK. The command window is shown in <xref ref-type="fig" rid="gf59">Fig. 8</xref>.</p>
<p>
<fig id="gf59">
<label>Figure 8.</label>
<caption>
<title>Function window of Excel for discrimination of the real part of a complex number.</title>
</caption>
<alt-text>Figure 8. Function window of Excel for discrimination of the real part of a complex number.</alt-text>
<graphic xlink:href="42964416005_gf50.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Then, drag the formula to all the data (<italic>double-click on the little cross in the lower right corner of the cel</italic>l). Do the same for the column of the imaginary part, using the function IMAGINARY. After performing the procedure for the potential and current data, a spreadsheet similar to the one shown in <xref ref-type="fig" rid="gf60">Fig. 9</xref> is obtained.</p>
<p>
<fig id="gf60">
<label>Figure 9.</label>
<caption>
<title>Spreadsheet with FFT values and their real and imaginary parts discriminated.</title>
</caption>
<alt-text>Figure 9. Spreadsheet with FFT values and their real and imaginary parts discriminated.</alt-text>
<graphic xlink:href="42964416005_gf51.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>The PSD<sub>E</sub> of the potential is calculated using <xref ref-type="disp-formula" rid="e7">Eq. 7</xref>, which must be introduced in the next free column (M). In this example, it is: =I6^2+J6^2. Drag to all cells in the column and repeat the procedure to calculate the PSD<sub>i</sub> of the current, which should be entered in column N.</p>
<p>In the next free column (O), where <italic>R<sub>sn</sub>
</italic> is calculated using <xref ref-type="disp-formula" rid="e2">Eq. 2</xref>, type: =SQRT(M6/N6) and drag to all cells in the column.</p>
<p>To calculate the slope and linear coefficients of the line obtained by the linear regression of log(<italic>R<sub>sn</sub>
</italic>) <italic>vs</italic>.log(<italic>f</italic>), it is necessary to calculate the logarithms (base 10) for these two columns. To do this, in the next two free columns (P and Q) do: =LOG10(F6) and =LOG10(O6), respectively, and drag to the entire columns. Note that as the first frequency value is <italic>f</italic> = 0, its logarithm cannot be calculated, so the expression “#NUM!” appears in cell P6. This is not a problem, as this point can be excluded during graph construction. <xref ref-type="fig" rid="gf61">Figure 10</xref> shows the example in progress.</p>
<p>
<fig id="gf61">
<label>Figure 10.</label>
<caption>
<title>Spreadsheet with the calculations required to obtain <italic>R<sub>sn</sub>
</italic>.</title>
</caption>
<alt-text>Figure 10. Spreadsheet with the calculations required to obtain Rsn.</alt-text>
<graphic xlink:href="42964416005_gf52.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>This work presents a way to build the graph in Excel by adding a slider on the abscissa axis to define the region of linear regression. This selection is important for the final result of the analysis and can be performed by following the steps below. However, it is also desirable that the user should be able to see the entire graph in a background, together with the interval chosen for linear regression and using a logarithmic scale, in order to facilitate interpretation of the results, observing the results as frequency, rather than logarithm of frequency. Therefore, the graph is constructed using a logarithmic scale.</p>
<p>Firstly, insert two slider bars in an empty region on the worksheet, using the following commands: Developer → Insert → Scroll Bar (in Form Controls box) → choose the place where you want to put the bars, click, and drag the mouse horizontally. The bars must be placed in a position where there is space to put a graph above them (<xref ref-type="fig" rid="gf62">Fig. 11</xref>).</p>
<p>Note: <italic>If the “Developer” option is not enabled in the ribbon, follow the commands</italic>: Files → Options → Customize Ribbon → Developer (in Main Tabs box)  OK.</p>
<p>
<fig id="gf62">
<label>Figure 11.</label>
<caption>
<title>Illustration of commands for creating a slider bar in Excel.</title>
</caption>
<alt-text>Figure 11.  Illustration of commands for creating a slider bar in Excel.</alt-text>
<graphic xlink:href="42964416005_gf53.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Position the cursor in a cell next to the bars (in the example, T16) and type a name for the cell in the identification space (upper left corner of the worksheet), for example, “Start_Point”, as shown in <xref ref-type="fig" rid="gf63">Fig. 12</xref>. Repeat the procedure in the cell below, naming it “End_Point”. On the left side of these cells, it is recommended to write the words “Initial index” and “Final index”, to indicate that the cells on the right show the positions (<italic>n</italic>) of the first and last points used in the linear fit. With this procedure, these cells have the function of variables for delimitation of the graph, using the slider.</p>
<p>
<fig id="gf63">
<label>Figure 12.</label>
<caption>
<title>Cells declaring the variables.</title>
</caption>
<alt-text>Figure 12. Cells declaring the variables.</alt-text>
<graphic xlink:href="42964416005_gf54.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Now position the cursor in cell P7 (the first valid value of the log (<italic>f</italic>) column) and give it a name (in the example, Ref_X_Plot), as shown in <xref ref-type="fig" rid="gf65">Fig. 13</xref>. These names are now used as variables in the following formulas and commands.</p>
<p>
<fig id="gf65">
<label>Figure 13.</label>
<caption>
<title>Referencing the start of the log (<italic>f</italic>) data for plotting.</title>
</caption>
<alt-text>Figure 13.  Referencing the start of the log (f) data for plotting.</alt-text>
<graphic xlink:href="42964416005_gf55.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Click with the right button of the mouse on each bar, select the option “Format Control” and configure each bar according to the information in <xref ref-type="fig" rid="gf66">Fig. 14</xref>.</p>
<p>
<fig id="gf66">
<label>Figure 14.</label>
<caption>
<title>Configuration for formatting the sliders in this example.</title>
</caption>
<alt-text>Figure 14.  Configuration for formatting the sliders in this example.</alt-text>
<graphic xlink:href="42964416005_gf56.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>It is then necessary to declare the variables not linked to cells, in order to store the data range to be plotted. For this, the OFFSET function is used, so that they have a dynamic behavior, following the commands: Formulas → Name Manager → New. A name is then typed for the first variable. In this example, Range_X is suggested. Then type the expression: =OFFSET(Ref_X_Plot; Start_Point; -10; End_Point-Start_Point; 1) in the option “Refers to” in the box → OK. <xref ref-type="fig" rid="gf67">Figure 15</xref> shows this procedure.</p>
<p>
<fig id="gf67">
<label>Figure 15.</label>
<caption>
<title>Declaring variables to store a range of data.</title>
</caption>
<alt-text>Figure 15. Declaring variables to store a range of data.</alt-text>
<graphic xlink:href="42964416005_gf57.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Repeat the procedure for the other variables, as shown below:</p>
<p>Name: Range_X_Lin → Refers to: =OFFSET(Ref_X_Plot; Start_Point; 0; End_Point-Start_Point; 1)</p>
<p>Name: Range_Y → Refers to: =OFFSET(Ref_X_Plot; Start_Point; -1; End_Point-Start_Point; 1)</p>
<p>Name: Range_Y_Lin → Refers to: =OFFSET(Ref_X_Plot; Start_Point; 1; End_Point-Start_Point: 1)</p>
<p>Now, clicking on “Name Manager”, a window similar to the one shown in<xref ref-type="fig" rid="gf68"> Fig. 16</xref> opens.</p>
<p>
<fig id="gf68">
<label>Figure 16.</label>
<caption>
<title>Window showing the variables declared in order to store a range of data.</title>
</caption>
<alt-text>Figure 16.  Window showing the variables declared in order to store a range of data.</alt-text>
<graphic xlink:href="42964416005_gf58.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>It is now possible to make the graph. Place the cursor in an empty cell, click on “Insert” (in the ribbon) and, in the Charts group, choose preferentially the option “Scatter with Straight Lines” (<xref ref-type="fig" rid="gf69">Fig. 17</xref>).</p>
<p>
<fig id="gf69">
<label>Figure 17.</label>
<caption>
<title>Steps to build the graph.</title>
</caption>
<alt-text>Figure 17.  Steps to build the graph.</alt-text>
<graphic xlink:href="42964416005_gf59.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>This command generates a clean graph area. Press the right mouse button on the area of that graph and select the option “Select Data”. In the dialog box that opens, select the option “Add” (<xref ref-type="fig" rid="gf70">Fig. 18</xref>) and a new dialog box (Edit Series) appears. In the “Series <underline>X</underline> values” option, select the frequency data (except<italic> f</italic> = 0), and in the “Series <underline>Y</underline> values” option, select the data for <italic>R<sub>sn</sub>
</italic>, except the value corresponding to<italic> f</italic> = 0. Click OK in both windows and the graph appears, with a linear scale. To change the scale of the graph to logarithmic, press the right mouse button on the scale of the axes → Format Axis → Logarithmic scale (Base 10). Do this for both axes.</p>
<p>
<fig id="gf70">
<label>Figure 18.</label>
<caption>
<title>Windows to finish building the graph.</title>
</caption>
<alt-text>Figure 18.  Windows to finish building the graph.</alt-text>
<graphic xlink:href="42964416005_gf60.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Change the color of the data to a light color, as it is overlaid by the region that is chosen for analysis. To do this, click on the graph with the right mouse button, select Format Data Series → Line Color → Solid Line, and choose a light color, as shown in <xref ref-type="fig" rid="gf71">Fig. 19</xref>. Also format the window type, line thickness, axis scale, font, etc., as desired by the user.</p>
<p>
<fig id="gf71">
<label>Figure 19.</label>
<caption>
<title>Choosing the color of the data string.</title>
</caption>
<alt-text>Figure 19.  Choosing the color of the data string.</alt-text>
<graphic xlink:href="42964416005_gf61.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>A new data string must be inserted in the graph to overlay the data selected by the scroll bars. To do this, click with the right mouse button on the graph area and select the options: Select Data → Add. Fill the fields “Series <underline>X</underline> values” and “Series <underline>Y</underline> values”, as shown in <xref ref-type="fig" rid="gf72">Fig. 20</xref>, and click on OK. A new box “Select Data Source” appears; click on OK.</p>
<p>
<fig id="gf72">
<label>Figure 20.</label>
<caption>
<title>Dialog box to insert the part of the graph where the linear regression is to occur.</title>
</caption>
<alt-text>Figure 20.  Dialog box to insert the part of the graph where the linear regression is to occur.</alt-text>
<graphic xlink:href="42964416005_gf62.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Following the procedure shown above, choose a dark color for this second data stream.</p>
<p>For the purposes of this work, it is necessary to add a trendline, which is used to perform the linear fit of the experimental data to a mathematical function (linear regression), using the least squares method. To do this linear regression, click with the right mouse button on the new data sequence (the darkest graph) and choose the option “Add Trendline”. Click on “Power”, as shown in <xref ref-type="fig" rid="gf73">Fig. 21</xref>, since the graph axes are on a logarithmic scale and the logarithm properties transform powers into products, so the result is a line. Change the properties “Line Color” and “Line Style”, as desired.</p>
<p>
<fig id="gf73">
<label>Figure 21.</label>
<caption>
<title>Window to choose and format the trendline.</title>
</caption>
<alt-text>Figure 21. Window to choose and format the trendline.</alt-text>
<graphic xlink:href="42964416005_gf63.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Position the graph above the slider bars. If highlighting is desired, select the cells behind the graph, color them, and describe the function of the control, in order to facilitate its use. <xref ref-type="fig" rid="gf74">Figure 22</xref> shows an example.</p>
<p>Note that the purpose of the slider bars (placed below the graph) is to delimit the region that will be fitted by the trendline, which can be done by clicking on the arrows (to move 1 point each click), or on the bar itself (to move 10 points for each click). It is also possible to click on the vertical mark and drag.</p>
<p>
<fig id="gf74">
<label>Figure 22.</label>
<caption>
<title>Example image of the graph generated.</title>
</caption>
<alt-text>Figure 22. Example image of the graph generated.</alt-text>
<graphic xlink:href="42964416005_gf64.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>The angular and linear coefficients of the fitted line must be inserted in a cell since they are used to calculate R0sn. Hence, the cursor is placed in the cell where the slope is to be located (in this example, T8), typing: =SLOPE(Range_Y_Lin; Range_X_Lin). In the cell where the intercept or linear coefficient is to be inserted (in this example, T9), type: =INTERCEPT(Range_Y_Lin; Range_X_Lin).</p>
<p>In the cell where it is desired to insert the calculation of y using the first value of <italic>x</italic> (lowest value of the experimental frequency), in this example named log(R0sn), type: =(REF_X_Plot)*T8+T9, since REF_X_Plot is the cell that indicates the first x value used in the plot, and T8 and T9 are the cells in which the slope and y-intercept values of the trendline were calculated, respectively. If different cells are used, then the same logic should be followed.</p>
<p>Once log(R0sn) has been obtained, calculate R0sn by doing 10<sup>log(R0sn) </sup>(in this example: =10^T10). To facilitate visualization of the initial and final values of the fitted region, the following formulae can be inserted in cells next to the graph: =INDEX(F7:F2053; Start_Point + 1), for the initial value of the frequency range, and =INDEX(F7:F2053; End_Point), for the end value of the frequency range. <xref ref-type="fig" rid="gf75">Figure 23</xref> illustrates the example being used in this work.</p>
<p>
<fig id="gf75">
<label>Figure 23.</label>
<caption>
<title>Chart with calculated values of interest.</title>
</caption>
<alt-text>Figure 23. Chart with calculated values of interest.</alt-text>
<graphic xlink:href="42964416005_gf65.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Once the spreadsheet is built, the goal is to use it to automate the work, performing the analysis of the quantity of data sets it is desired to study, simply by replacing the input data. However, the FFT function does not update automatically with the replacement of the input data. Hence, it is necessary to either manually delete and redo the values calculated by the FFT, every time a new set of input data is used, or implement a macro, which is an Excel feature for automatically performing programmed tasks. This can be done as follows:</p>
<p>On the ribbon, click Developer → Visual Basic. In the window that appears in the left part of the screen, right-click on Microsoft Excel Objects → Insert → Module, as shown in <xref ref-type="fig" rid="gf76">Fig. 24</xref>.</p>
<p>
<fig id="gf76">
<label>Figure 24.</label>
<caption>
<title>Visual Basic window for creating a macro in Excel.</title>
</caption>
<alt-text>Figure 24.  Visual Basic window for creating a macro in Excel.</alt-text>
<graphic xlink:href="42964416005_gf66.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>This creates a workspace. Place the cursor in it and enter the codes described below (note that the cells indicated in the codes refer to the current example). Thus, G6 is the cell where the initial value of FFT<sub>E</sub> is positioned, while cells B6 to B2053 contain the range of potential data, <italic>E</italic>. Analogously, H6 is the cell where the FFT<sub>i</sub> values start, while cells D6 to D2053 contain the current data, <italic>i</italic>. It should be noted that multiplication by the scale factor, mentioned previously, is already included in this macro.</p>
<p>Sub Button1 ()</p>
<p>'FFT of Potential</p>
<p>Range("G6"). Select</p>
<p>Range(Selection, Selection.End(xlDown)).Select</p>
<p>Selection.ClearContents</p>
<p>Application.Run "Fourier", ActiveSheet.Range("$B$6:$B$2053"), ActiveSheet.Range("$G$6"), False, False</p>
<p>'Copy of the current multiplied by the scale factor</p>
<p>Range("$D$6:$D$2053").Copy</p>
<p>Range("$AH$6:$AH$2053").PasteSpecial xlPasteValues</p>
<p>Range("D2").Copy</p>
<p>Range("$AH$6:$AH$2053").PasteSpecial xlPasteAll, xlMultiply</p>
<p>'FFT of the current</p>
<p>Range("H6").Select</p>
<p>Range(Selection, Selection.End(xlDown)).Select</p>
<p>Selection.ClearContents</p>
<p>Application.Run "Fourier", ActiveSheet.Range("$AH$6:$AH$2053"), ActiveSheet.Range("$H$6"), False, False</p>
<p>'Erases the current multiplied by the scale factor</p>
<p>Range("$AH$6:$AH$2053").Select</p>
<p>Selection.ClearContents</p>
<p>'Reposition the worksheet focus</p>
<p>Range("$A$1").Select</p>
<p>End Sub</p>
<p>Return to the Analysis spreadsheet and choose the location where it is desired to place a button that is to be clicked to update the FFT calculations when a new data set is introduced. In the Developer tab, click on Insert and then click on the image of a button, as shown in <xref ref-type="fig" rid="gf77">Fig. 25</xref>.</p>
<p>
<fig id="gf77">
<label>Figure 25.</label>
<caption>
<title>Procedure for insertion of a button in an Excel macro.</title>
</caption>
<alt-text>Figure 25.  Procedure for insertion of a button in an Excel macro.</alt-text>
<graphic xlink:href="42964416005_gf67.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Next, click where it is desired to create the button, dragging the cursor to form a rectangle. Release the mouse when the desired size is reached. At this point, a window called Assign Macro opens. Click on Button 1 and then OK (<xref ref-type="fig" rid="gf78">Fig. 26</xref>).</p>
<p>
<fig id="gf78">
<label>Figure 26.</label>
<caption>
<title>Procedure in Excel for assigning a macro to a button.</title>
</caption>
<alt-text>Figure 26. Procedure in Excel for assigning a macro to a button.</alt-text>
<graphic xlink:href="42964416005_gf69.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>In order to change the text on the button, right-click on it, and select Edit Text. To change the font, select the Format option. The result looks like <xref ref-type="fig" rid="gf80">Fig. 27</xref>.</p>
<p>
<fig id="gf80">
<label>Figure 27.</label>
<caption>
<title>Image of a worksheet containing the FFT update button.</title>
</caption>
<alt-text>Figure 27. Image of a worksheet containing the FFT update button.</alt-text>
<graphic xlink:href="42964416005_gf70.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Every time the input data is changed, click on the FFT button to remake the FFTE and FFTi calculations. All other calculations are automatically updated.</p>
<p>The procedure presented above was also performed without Hann window. The results obtained with Excel were compared with those obtained with Origin<sup>®</sup> (<xref ref-type="supplementary-material" rid="suppl3">see the Supplementary Information 1</xref>), a software package widely used by chemists, using the same experimental data and the same linear regression frequency region. The results are presented in <xref ref-type="table" rid="gt3">Tab. 1</xref>.</p>
<p>
<table-wrap id="gt3">
<label>Table 1.</label>
<caption>
<title>Values of R0sn obtained with Excel and Origin<sup>®</sup> routines using the same experimental data for a carbon paste electrode (CPE) modified with chalcopyrite obtained in solution A (T&amp;K) + 0.02 mol L<sup>-1 </sup>Cu(II) <sup>♦</sup>.</title>
</caption>
<alt-text>Table 1. Values of R0sn obtained with Excel and Origin® routines using the same experimental data for a carbon paste electrode (CPE) modified with chalcopyrite obtained in solution A (T&amp;K) + 0.02 mol L-1 Cu(II) ♦.</alt-text>
<graphic xlink:href="42964416005_gt4.png" position="anchor" orientation="portrait"/>
</table-wrap>
</p>
</sec>
<sec sec-type="supplementary-material">
<title>Supplementary materials</title>
<supplementary-material id="suppl3" xlink:href="suppl3.pdf" mimetype="application/pdf" mime-subtype="pdf">
<label>Supplementary information </label>
<caption>
<title>.</title>
<p>The <xref ref-type="supplementary-material" rid="suppl3">Supplementary Information 1</xref> describes the procedures to calculate  Importar imagen                  using OriginÒ software and to obtain electrochemical noise data, and a file .xlms with the experimental data used to applied the described routine.</p>
<p>
<bold>How can ENA data be analyzed using Origin<sup>®</sup> software?</bold>
</p>
<p>To make the same analysis, described in the main text, using Origin<sup>®</sup> software follows the steps below:</p>
<p>Copy the data of time (<italic>t</italic>), potential (E(t) – yE(t)) and current (I(t) - yI(t)) in the first three columns (A, B and C). Divide the current values by the electrode area and put the results in column D (select the column D and follows the commands: Column → Set Columns Values → in the box, type Col(C)/area value → Ok).</p>
<p>Select the potential column and follows the commands: Analysis → Signal Processing → FFT → FFT → Open Dialog (<xref ref-type="supplementary-material" rid="suppl3">Fig. S1a</xref>). In the window that appears, choose the option Window Hanning → uncheck Shift → in Spectrum Type box, choose One-sided → uncheck Result Graph Sheet → Ok (<xref ref-type="supplementary-material" rid="suppl3">Fig. S1b</xref>). If you do not use the Hann window, mark Window Rectangle, as in <xref ref-type="supplementary-material" rid="suppl3">Fig. S1c</xref>:</p>
<p>
<fig id="gf82">
<label>Figure S1</label>
<caption>
<p>FFT Origin<sup>® </sup>command with (B) and without (C) Hann window.</p>
</caption>
<graphic xlink:href="42964416005_gf71.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>A new tab is created (FFTResultData1) that has all necessary information to potential analysis, including frequency and PSD<sub>E</sub>, which is in column of “Power as MSA”. Repeat the proceeding for the column of the current. The <xref ref-type="supplementary-material" rid="suppl3">Fig. S2 </xref>shows the tab FFTResultData1.</p>
<p>
<fig id="gf83">
<label>Figure S2</label>
<caption>
<p>Results of the FFT routine applied to Potential data using Origin<sup>®</sup>.</p>
</caption>
<graphic xlink:href="42964416005_gf72.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Copy the column “Power as MSA” of the tab FFTResultData1 (PSD<sub>E</sub>) and paste it in column E of the Sheet1 and repeat the proceeding for Current density (i), pasting the PSD<sub>I</sub> in column F of the Sheet1.</p>
<p>Select the column G in the Sheet1 and follow the commands: Column → Set Columns Values → in the box, type Sqrt(Col(E)/Col(F)) → Ok, to calculate <italic>R<sub>sn</sub>
</italic>. <xref ref-type="supplementary-material" rid="suppl3">Figure S3</xref> shows this proceeding. </p>
<p>
<fig id="gf84">
<label>Figure S3</label>
<caption>
<p>Command to calculate √<italic>PSD<sub>E</sub>
</italic>/<italic>PSD<sub>I.</sub>
</italic>
</p>
</caption>
<graphic xlink:href="42964416005_gf73.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Copy the frequency column (Freq(X)) of the tab FFTResultData1 and paste it in column H of the Sheet1. In the column I calculate log10 <italic>f</italic> making: select the column I → Column → Set Columns Values → in the box, type log(Col(H)) → Ok. Use the same proceeding to calculate log10(<italic>R<sub>sn</sub>
</italic>) in the column J. Your folder Sheet1 should look like <xref ref-type="supplementary-material" rid="suppl3">Fig. S4</xref>.</p>
<p>
<fig id="gf85">
<label>Figure S4</label>
<caption>
<p>Table of sheet1 with necessary values to calculate <italic>R<sup>0</sup>
<sub>sn.</sub>
</italic>
</p>
</caption>
<graphic xlink:href="42964416005_gf74.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>To make the graph select the column I → Column → Set as <underline>X</underline>; select the column J → Column → Set as <underline>Y</underline>. How the study is made in low frequency, select only the values of interesting to make the fit. In this case, the interval between row 2 and 29 was chosen to compare with Excel results (using Hann window). Make the graph using the commands: Plot → Line → Line (<xref ref-type="supplementary-material" rid="suppl3">see Fig. S5</xref>).</p>
<p>
<fig id="gf86">
<label>Figure S5</label>
<caption>
<p>Commands to make a graph using line.</p>
</caption>
<graphic xlink:href="42964416005_gf75.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>Fit the straight line to graph (linear regression) by commands: Analysis → Fitting → Linear Fit → Ok. A new tab will be open, and the values of slope and intercept are presented in Parameters, like in the <xref ref-type="supplementary-material" rid="suppl3">Fig. S6</xref>. Use these parameters to calculate R0sn, as described in the paper.</p>
<p>
<fig id="gf87">
<label>Figure S6.</label>
<caption>
<p>Results of the linear regression.</p>
</caption>
<graphic xlink:href="42964416005_gf76.png" position="anchor" orientation="portrait"/>
</fig>
</p>
<p>
<bold>Obtention of electrochemical noise data</bold>
</p>
<p>Current and potential noise data were obtained in a Potentiostat / Galvanostat Reference 600 using the ESA410 software, from GAMRY Instruments<sup>®</sup>. The data contained in the spreadsheets were treated with the Excel software and compared with the treatment made with the Origin<sup>®</sup> software, with and without the Hann window option.</p>
<p>Electrochemical noise measurements were carried out using carbon paste electrodes modified with chalcopyrite powder. The powdered chalcopyrite (<italic>Ø</italic>average = 38 μm) stored in argon atmosphere was mixed with graphite powder (Alfa Aesar, <italic>Ø</italic>average = 42 μm) in the proportion of 50 wt.% plus a drop of binder (mineral oil) and 0.6 mL of chloroform, according to the literature<sup>
<xref ref-type="bibr" rid="redalyc_42964416005_ref1">1</xref>
</sup>. The resulting paste was placed on a cavity electrode, constituting the carbon paste electrode (CPE), expounding an area of 0.282 cm<sup>2 </sup>to the solution.</p>
<p>The solution A of the T&amp;K medium<sup>2</sup> containing 0.5 g L<sup>-1</sup> of each of Mg<sup>2+</sup> and NH<sub>4</sub>
<sup>+</sup> sulfate and potassium phosphate salts, 0.08 mol L<sup>-1</sup> ionic strength, pH 1.8 (adjusted with diluted H<sub>2</sub>SO<sub>4</sub>) plus 0.020 mol L<sup>-1</sup> CuSO<sub>4</sub> was used as electrolyte.</p>
<p>The electrochemical cell (<xref ref-type="supplementary-material" rid="suppl3">Fig. S7</xref>) consisted of a glass cylinder placed horizontally, having two similar CPE electrodes fixed to the opposite sides of the cylinder and a reference electrode of Ag/AgCl/KCl3mol L<sup>-1</sup> in a Lugging capillary positioned close to one of the CPE electrodes. Once the electrochemical cell was connected to the potentiostat, all current and potential filters were activated for automatic scaling. The electrochemical cell was switched on and the potential and current noise were expected to stabilize before starting to record the 2048 points at the frequencies of 1 Hz. The experiments last 34 min and 8 s (1 Hz). Experimental data are in Excel in Supplementary information 2.</p>
<p>
<fig id="gf88">
<label>Figure S7.</label>
<caption>
<p>Electrochemical cell for obtaining the ENA data.</p>
</caption>
<graphic xlink:href="42964416005_gf77.png" position="anchor" orientation="portrait"/>
</fig>
</p>
</caption>
</supplementary-material>
</sec>
</body>
<back>
<ack>
<title>Acknowledgments</title>
<p>The author Riberto N. Peres thanks the Brazilian funding CAPES (proc. no. 88882.330063/2019) for a scholarship. The authors also thank Fundunesp (2557/2016) Vale S.A for financial support.</p>
</ack>
<ref-list>
<title>
<bold>References</bold>
</title>
<ref id="redalyc_42964416005_ref1">
<label>[1]</label>
<mixed-citation>[1] Cottis, R. A., Interpretation of electrochemical noise data, Corrosion 57 (3) (2001) 265-285. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5006/1.3290350">https://doi.org/10.5006/1.3290350</ext-link>.</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Cottis</surname>
<given-names>R. A.</given-names>
</name>
</person-group>
<article-title>Interpretation of electrochemical noise data</article-title>
<source>Corrosion</source>
<year>2001</year>
<volume>57</volume>
<issue>3</issue>
<fpage>265</fpage>
<lpage>285</lpage>
<pub-id pub-id-type="doi">https://doi.org/10.5006/1.3290350</pub-id>
</element-citation>
</ref>
<ref id="redalyc_42964416005_ref2">
<label>[2]</label>
<mixed-citation>[2] Bertocci, U., Gabrielli, C., Huet, F. Keddam, M., Rousseau, P., Noise resistance applied to corrosion measurements, Journal of The Electrochemical Society 144 (1) (1997) 37-43. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1149/1.1837362">https://doi.org/10.1149/1.1837362</ext-link>.</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bertocci</surname>
<given-names>U.</given-names>
</name>
<name>
<surname>Gabrielli</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Huet</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Keddam</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Rousseau</surname>
<given-names>P.</given-names>
</name>
</person-group>
<article-title>Noise resistance applied to corrosion measurements</article-title>
<source>Journal of The Electrochemical Society</source>
<year>1997</year>
<volume>144</volume>
<issue>1</issue>
<fpage>37</fpage>
<lpage>43</lpage>
<pub-id pub-id-type="doi">https://doi.org/10.1149/1.1837362</pub-id>
</element-citation>
</ref>
<ref id="redalyc_42964416005_ref3">
<label>[3]</label>
<mixed-citation>[3] Mansfeld, F., Su, Z., Hsu, C. H., Electrochemical noise analysis (ENA) for active and passive systems in chloride media, Electrochimica Acta 46 (24-25) (2001) 3651-3664. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/S0013-4686(01)00643-0">https://doi.org/10.1016/S0013-4686(01)00643-0</ext-link>.</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mansfeld</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Su</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Hsu</surname>
<given-names>C. H.</given-names>
</name>
</person-group>
<article-title>Electrochemical noise analysis (ENA) for active and passive systems in chloride media</article-title>
<source>Electrochimica Acta</source>
<year>2001</year>
</element-citation>
</ref>
<ref id="redalyc_42964416005_ref4">
<label>[4]</label>
<mixed-citation>[4] Microsoft, Excel for Windows training, 2016.</mixed-citation>
<element-citation publication-type="software">
<person-group person-group-type="author">
<collab>Microsoft</collab>
</person-group>
<source>Microsoft</source>
<year>2016</year>
<chapter-title>Excel for Windows training</chapter-title>
</element-citation>
</ref>
<ref id="redalyc_42964416005_ref5">
<label>[5]</label>
<mixed-citation>[5] Mansfeld, F., Lee, C. C., The frequency dependence of the noise resistance for polymer-coated metals, Journal of The Electrochemical Society 144 (6) (1997) 2068-2071. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1149/1.1837743">https://doi.org/10.1149/1.1837743</ext-link>.</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mansfeld</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Lee</surname>
<given-names>C. C.</given-names>
</name>
</person-group>
<article-title>The frequency dependence of the noise resistance for polymer-coated metals</article-title>
<source>Journal of The Electrochemical Society</source>
<year>1997</year>
<volume>144</volume>
<issue>6</issue>
<fpage>2068</fpage>
<lpage>2071</lpage>
<pub-id pub-id-type="doi">https://doi.org/10.1149/1.1837743</pub-id>
</element-citation>
</ref>
<ref id="redalyc_42964416005_ref6">
<label>[6]</label>
<mixed-citation>[6] Ritter, S., Huet, F., Cottis, R. A., Guideline for an assessment of electrochemical noise measurement devices, Materials and Corrosion 63 (4) (2012) 297-302. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/maco.201005839">https://doi.org/10.1002/maco.201005839</ext-link>.</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ritter</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Huet</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Cottis</surname>
<given-names>R. A.</given-names>
</name>
</person-group>
<source>Materials and Corrosion</source>
<year>2012</year>
<volume>63</volume>
<issue>4</issue>
<fpage>297</fpage>
<lpage>302</lpage>
<pub-id pub-id-type="doi">https://doi.org/10.1002/maco.201005839</pub-id>
</element-citation>
</ref>
<ref id="redalyc_42964416005_ref7">
<label>[7]</label>
<mixed-citation>[7] Bertocci, U., Huet, F., Nogueira, R. P., Rousseau, P., Drift removal procedures in the analysis of electrochemical noise, Corrosion 58 (4) (2002) 337-347. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5006/1.3287684">https://doi.org/10.5006/1.3287684</ext-link>.</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bertocci</surname>
<given-names>U.</given-names>
</name>
<name>
<surname>Huet</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Nogueira</surname>
<given-names>R. P.</given-names>
</name>
<name>
<surname>Rousseau</surname>
<given-names>P.</given-names>
</name>
</person-group>
<article-title>Drift removal procedures in the analysis of electrochemical noise</article-title>
<source>Corrosion</source>
<year>2002</year>
<volume>58</volume>
<issue>4</issue>
<fpage>337</fpage>
<lpage>347</lpage>
<pub-id pub-id-type="doi">https://doi.org/10.5006/1.3287684</pub-id>
</element-citation>
</ref>
<ref id="redalyc_42964416005_ref8">
<label>[8]</label>
<mixed-citation>[8] Homborg, A. M., Tinga, T., Zhang, X., van Westing, E. P. M., Oonincx, P. J., de Wit, J. H. W., Mol, J. M. C., Time-frequency methods for trend removal in electrochemical noise data, Electrochimica Acta 70 (2012) 199-209. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.electacta.2012.03.062">https://doi.org/10.1016/j.electacta.2012.03.062</ext-link>.</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Homborg</surname>
<given-names>A. M.</given-names>
</name>
<name>
<surname>Tinga</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>van Westing</surname>
<given-names>E. P. M.</given-names>
</name>
<name>
<surname>Oonincx</surname>
<given-names>P. J.</given-names>
</name>
<name>
<surname>de Wit</surname>
<given-names>J. H. W.</given-names>
</name>
<name>
<surname>Mol</surname>
<given-names>J. M. C.</given-names>
</name>
</person-group>
<article-title>Time-frequency methods for trend removal in electrochemical noise data</article-title>
<source>Electrochimica Acta</source>
<year>2012</year>
<volume>70</volume>
<fpage>199</fpage>
<lpage>209</lpage>
<pub-id pub-id-type="doi">https://doi.org/10.1016/j.electacta.2012.03.062</pub-id>
</element-citation>
</ref>
<ref id="redalyc_42964416005_ref9">
<label>[9]</label>
<mixed-citation>[9] Bertocci, U., Frydman, J., Gabrielli, C., Huet, F., Keddam, M., Analysis of Electrochemical Noise by Power Spectral Density Applied to Corrosion Studies: Maximum Entropy Method or Fast Fourier Transform? Journal of The Electrochemical Society 145 (8) (1998) 2780-2786. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1149/1.1838714">https://doi.org/10.1149/1.1838714</ext-link>.</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bertocci</surname>
<given-names>U.</given-names>
</name>
<name>
<surname>Frydman</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Gabrielli</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Huet</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Keddam</surname>
<given-names>M.</given-names>
</name>
</person-group>
<article-title>Analysis of Electrochemical Noise by Power Spectral Density Applied to Corrosion Studies: Maximum Entropy Method or Fast Fourier Transform?</article-title>
<source>Journal of The Electrochemical Society</source>
<year>1998</year>
<volume>145</volume>
<issue>8</issue>
<fpage>2780</fpage>
<lpage>2786</lpage>
<pub-id pub-id-type="doi">https://doi.org/10.1149/1.1838714</pub-id>
</element-citation>
</ref>
</ref-list>
<ref-list>
<title>Supplementary information 1</title>
<ref id="redalyc_42964416005_ref18">
<label>[1]</label>
<mixed-citation>[1] Horta, D. G., Bevilaqua, D., Acciari, H. A., Garcia Júnior, O., Benedetti, A. V., Optimization of the use of carbon paste electrodes (CPE) for electrochemical study of the chalcopyrite, Química Nova 32 (7) (2009) 1734-1738. https://doi.org/10.1590/S0100-40422009000700010.</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Horta</surname>
<given-names>D. G.</given-names>
</name>
<name>
<surname>Bevilaqua</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Acciari</surname>
<given-names>H. A.</given-names>
</name>
<name>
<surname>Garcia Júnior</surname>
<given-names>O.</given-names>
</name>
<name>
<surname>Benedetti</surname>
<given-names>A. V.</given-names>
</name>
</person-group>
<article-title>Optimization of the use of carbon paste electrodes (CPE) for electrochemical study of the chalcopyrite</article-title>
<source>Química Nova</source>
<year>2009</year>
<volume>32</volume>
<issue>7</issue>
<pub-id pub-id-type="doi">10.1590/S0100-40422009000700010</pub-id>
</element-citation>
</ref>
<ref id="redalyc_42964416005_ref19">
<label>[2]</label>
<mixed-citation>[2] Tuovinen, O. H., Kelly, D. P., 1973. Studies on the growth of Thiobacillus ferrooxidans, Archiv für Mikrobiologie 88 (4) (1973) 285-298. https://doi.org/10.1007/BF00409941.</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Tuovinen</surname>
<given-names>O. H.</given-names>
</name>
<name>
<surname>Kelly</surname>
<given-names>D. P.</given-names>
</name>
</person-group>
<article-title>Studies on the growth of Thiobacillus ferrooxidans</article-title>
<source>Archiv für Mikrobiologie</source>
<year>1973</year>
<volume>88</volume>
<issue>2</issue>
<fpage>285</fpage>
<lpage>298</lpage>
<pub-id pub-id-type="doi">10.1007/BF00409941</pub-id>
</element-citation>
</ref>
</ref-list>
</back>
</article>