TECHNICAL NOTE 101

Potential Error Correction (iR Compensation)

Introduction

The EG&G PARC Model 273 Potentiostat contains significant advances in state of the art potential error correction (iR compensation) circuitry. This technical note provides the information necessary to understand both potential error correction in general and the advanced correction circuitry contained in the Model 273.

General

In an electrochemical experiment. the voltage across the double layer of the specimen surface, Edl in Fig. 1) must be closely controlled. If you don`t have confidence that the potential you're applying is the potential felt at the specimen, you can`t be sure that the measurement is valid. However, there are factors which make it difficult to control Edl.

The simplest case is illustrated in the following example. The equivalent circuit in Figure 1 represents an electrochemical cell connected to a potentiostat capable of controlling the potential between the reference and working electrodes Ectl. In all electrochemical cells. there is some resistance between the tip of the reference electrode and the outside of the double layer. This resistance is referred to as the uncompensated resistance. As current flows through the electrochemical cell. a potential is developed across the uncompensated resistance. This potential is calculated by:

Eerr = i X Ru .............................(1)


FIGURE 1: Simple Model for Electrochemical Cell (RANDEL'S CELL)

When the uncompensated resistance gets high (as it does in pure water or organic solvents) or the current becomes large, a significant potential error may occur. Using this simple model, the control potential is related to the potential across the double layer (the desired control potential) by this equation:

Ectl = Edl + Eerr .........................(2)

Throughout the history of electrochemistry, electrochemists have tried to develop methods to eliminate the Eerr term from equation 2, to produce this ideal equation:

Ectl = Edl ...........................(3)

The most important of these methods are described in the following paragraphs.

Cell Design

Careful cell design can minimize the Ru value and thus minimize Eerr. However, in many cases optimum cell design is restricted by other experimental requirements. In other cases excessive cost or design complexity would be required to reduce the uncompensated resistance to a negligible value.

After-The-Scan Correction

If you measure Ru before the scan begins and then perform the scan. the potential value for each data point on the plot can be adjusted using the calculated Eerr values. This approach has two drawbacks. First, Ru may change during the scan, causing errors In the calculation of Eerr. And secondly, since the correction occurs after the fact. the scan may not reach the desired final potential. and the true scan rate may vary during the experiment.

Positive Feedback

At the beginning of an experiment. you make a manual or a computer-controlled feedback adjustment on the potentiostat. Once the adjustment is made. the potentiostat will automatically correct the applied potential as dictated by the measured current. This on-the-fly correction is an improvement over the previous method. since the values for the final potential and the scan rate are corrected. However, the correction is still based upon the initial value of Ru, which can change during the experiment. Also, this technique can cause severe stability problems when attempting to correct in a high speed system.

Current Interrupt

In many cases, this is the best solution to the Ru problem. The experiment is continually interrupted for a very short time (less than 200 micro-seconds!). At each interruption, a new Eerr value is determined and Ectl is accordingly corrected so that the desired Edl is maintained. Thus, the instrument has the ability to maintain the desired Edl by increasing Ectl to compensate for Eerr.

The Positive Feedback and Current Interrupt methods of iR Compensation are implemented in the Model 273 and are discussed in the following sections.

Positive Feedback

Introduction

Historically, Positive Feedback has been the most popular instrumental method of correcting the potential error due to uncompensated resistance. Figure 2 gives a simple representation of the positive feedback circuitry. In this simple circuit, the voltage output of the current-to-voltage converter is directly proportional to the current flowing through the cell. This voltage is applied to a voltage divider network (normally a front panel potentiometer) and a portion is fed back to the input of the potentiostat. Thus, the control potential is related to the applied potential and the uncompensated resistance by this formula:

Ectl = Eapp + (a · i · Ru) .................(4)


FIGURE 2: Simple Positive Feedback Where: a = a porportionality constant determined by the ratio of the various resistors in the system.

.......Eapp = the desired control potential.

Substituting (Edl + Eerr) for Eecl (from equation 2) yields this new equation:

Edl + Eerr = Eapp + (a · i · Ru)............... (5)

Rearranging to solve for Eapp Yields the complete equation needed to adjust the applied potential:

Eapp = Edl + Eerr - (a · i · Ru)................. (6)

Equation 6 shows the complete relation between the applied potential, the double layer potential, the potential error, and the uncompensated resistance. It is clear from this equation that you can properly adjust ( to make the potential across the double layer equal to the applied potential.

Method Of Adjustment

The adjustment of "a" is the critical step in Positive Feedback potential error correction. This adjustment is normally made in the following fashion:

1) The cell electrodes are adjusted and their positions fixed.

2) The cell is filled with the solution of interest and the potential is adjusted so that there is no ... electrochemical reaction.

3) A 50 to 200 Hz square wave of small amplitude (approximately 50mV) is applied and the ... current waveform is monitored. See the Model 273 manual for details

. The design of the feedback circuit and the speed of the potentiostat determine the maximum possible ( value. In many cases 100% feedback ("a" = 1) is impossible; severe system ringing or oscillation can prevent the potentiostat from maintaining control of the applied potential.

Setting the amount of positive feedback can be a confusing task, largely because the various types of experiments demnd different degrees of compensation. In this light, two broad classes of experiments can be identified: "DC" experiments and "Fast Response" experiments.

DC experiments are those in which the potential at the electrode is changed slowly. One example of this involves the following steps: first you step the potential by a small amount, next you allow the transient effects of the step to subside; and finally you measure the steady state (or DC) current. This type of experiment is common in corrosion laboratories. In a DC experiment, it is practical to compensate for nearly 100% of the potential error, since the current measurement is made after the transient effects have subsided.

In Fast Response experiments. the potential is changed rapidly either in a ramp or in rapid steps. These experiments require some subjective judgement. An example of this class of experiment is Potential Step Chronoamperometry. In this method, the chemist is interested in the shape of the cur rent vs. time curve after applying a large potential step. If you compensate for more than about 85% of the potential error, you may get ringing in the current vs. time curve. If ringing occurs, you cannot make a valid current measurement until it subsides.

Advantage Of Positive Feedback

The major advantage of Positive Feedback is that the correction is made in a continuous fashion (as opposed to current interrupt. where the current is periodically interrupted). Positive feedback must be used when a fast electrochemical experiment, such as cyclic voltammetry is being performed. In such an experiment. as the current changes, the feedback changes proportionately and maintains Edl as close to Eapp as possible. The time constant of this correction is dependent only on the electrical time constant of the feedback loop.

Feedback Loop Design

In most potentiostats the positive feedback loop is designed so that the current range cannot be changed without degrading potential error correction capability. If the range is changed. the system is either overcompensated or under compensated. In the Model 273, the adjustment of both the feedback and the current range are controlled by a microprocessor. Thus, the current range can be changed and the feedback modified to reflect the change in current range.

(Note: The adjustment of the current range and the feedback network takes several milliseconds. Thus, in very fast experiments, the automatic current range feature should not be used)

Figure 3 shows a block diagram of the positive feedback scheme in the Model 273 In this system, the adjustment of the feedback is controlled by a multiplying digital-to-analog converter (or MDAC). The output of the MDAC is a percentage (from 0.025% to 100% in 0.025% steps) of the input voltage (in this case the output of the current-to-voltage converter) The ratio of the positive feedback and the reference electrode resistors is 2 to 1. This makes the effective correction signal range from 0.05% to 200% of the feedback signal (in 0.05% steps).


FIGURE 3: M273 Positive Feedback Block Diagram

Ru And Current Range

The selected current range determines the degree of uncompensated resistance which may be offset. Within each range, you can compensate for a maximum of twice the value of the current measuring resistor in the current-to-voltage converter.

For example. when you select the 100 mA range, the maximum uncompensated resistance which can be offset is 20 Ohm (see Table 1). You can't compensate for an Ru value larger than 20 Ohm. However, this maximum Ru value will Generate a potential error of 4 V (20 Ohm x 200 mA).

Table 1 indicates the range and resolution of the correction for each current range. "Correction range" is defined as the maximum resistance which may be offset. "Resolution" is defined as the smallest increment in which the resistance can be programmed.


TABLE 1. Current range and resolution for a given current range

An Example Of How Resolution Affects Correction

The resolution limit affects the accuracy of the programmed Ectl value. For example, assume a resistance of 1.234 kOhm is entered on the 100 uA range. For that range, the resistance resolution is 10 Ohm, giving an actual programmed resistance of 1230 Ohm. In other words, the programmed resistance differs from the resistance entered from the front or rear panels by 4 Ohm.

Let us continue with this example to see how errors due to exceeding the resolution limit can occur when you change the current range. If the current range changes to 1 mA during the experiment. (assuming a resistance resolution of 1Ohm), the resistance actually used for correction will change to 1234 Ohm. The improved resolution allows the Ru value that is actually used for correction to be identical to the entered Ru value.

A problem may occur when you shift to a more sensitive range. For instance. if you were to shift to a current range of 10 uA (and thus a resolution limit of 100 Ohm, the resistance actually used for correction will be 1200 Ohm. This is true because the value can only be represented to the nearest 100 Ohm. In other words, the error will now increase to 34 Ohm . Similarly, a further shift to the 1 uA current range would create an actual resistance of 1000 Ohm (a 234 Ohm error!) and a shift to 100 nA would create an actual resistance of 0 Ohm (a 1234 Ohm or 100% error!). Generally speaking, as the current range shifts to less sensitive ranges, the error will be accordingly reduced.

While it is important to understand the resolution of the feedback path, the maximum potential error that this represents is only 2 mV. In the above example. using the 10 uA range, the resistance error is 34 Ohm. However, the error at this resistance is not catastrophic, even at the maximum current of 20 uA, the error is only 0.62 mV.

Summary of Advantages

Positive Feedback has two major advantages, described as follows:

1) Correction is continuous.

2) Correction is effective even using the fastest scan rates possible with the Model 273.

Summary of Disadvantages

While Positive Feedback is the only feasible technique when you want to use rapid scans (scans rates of 100 mv/sec or greater), there are some significant drawbacks, described as follows:

1) The adjustment of the feedback is tedious and subjective.

2) The feedback reduces the stability of the potentiostat and may lead to severe ringing or oscillation.

3) Because the feedback signal affects system stability, it is normally not possible to adjust the potentiostat so that "a" = 1. The user normally has to be satisfied with a potential error correction of "a"= 0.65 to 0.9.

4) When you make the initial feedback adjustment, you are assuming that the uncompensated resistance is constant. This can be an incorrect assumption. If Ru does vary. you will not be completely compensating for it.

Current Interrupt

Introduction

An alternative to Positive Feedback is a system which periodically halts current flow to determine the actual value of the double layer potential (Edl). Previous technologies, limited in processing capability and switching speed, made this method impractical. However, with the advent of microprocessors and modern switching techniques, it is now practical to incorporate a current interrupt method of potential error correction into commercial potentiostats. The Model 273 Potentiostat uses such sophisticated circuitry to perform Current Interrupt potential error correction (see the schematic in Figure 4).


FIGURE 4: M273 Current Interrupt Feedback Block Diagram

Method Of Operation

The Current Interrupt potential error correction circuitry used in the Model 273 operates as follows:

1) The desired potential is applied under control of the microprocessor (using DAC 1).

2) At a carefully selected time. the switch at the output of the power amplifier (PA) is opened, causing current flow in the cell to go to zero.

3) Figure 5 is an ideal view of the reference electrode potential plotted vs. time. When the switch is opened, the error (Eerr) in Figure 1 will become zero, since no current is flowing. Thus. Eref is controlled by the potential across the double layer (Edl).

4) After the switch is opened. the potential across the double layer is determined by the rate of discharge of the cell. The rate of discharge is the product of the double layer capacitance (Cdl ) and the general faradaic impedance (Zf). The potential will vary exponentially.

5) The Model 273 measures Eref, every 5usec and stores the resulting data in a high speed memory. After 32 measurements the switch is closed and the potentiostat regains control of the cell. The total off time for each interrupt is less than 200 usec.

6) Once the connection to the cell has been re-established, the microprocessor reads the data out of the high speed memory and selects two data points (dependent on the current range of the I/E converter). It then calculates the intercept of the straight line through these two points at time zero (see below for details). The intercept point gives the value of the potential error (Eerr) in the cell.

7) The Eerr signal (up to +/- 4096 mV at 2 mV resolution) is then applied to the cell using DAC 2. This correction cycle takes approximately 100 usec after the cell is reconnected.

8) Finally, if a potential scan is underway, DAC 1 updates the control potential.

Note that this technique measures the potential error (the quantity of interest), and not the uncompensated resistance.

Theory

As we know from equation 2, Ectl. (the initially programmed potential) is normally the sum of Edl (the desired potential across the double layer) and Eerr (the error potential). After performing the above procedure, we have a measure of Eerr. Equation 2 shows that if we continuously offset the control potential by the value of Eerr we can maintain Edl at the desired potential.

There is also an initial deviation to consider. When the correction potential is first applied, the current may increase, thus increasing the potential error. However, the next current interrupt cycle will detect this additional error and correct it. These interations will continue for several cycles, until the error caused by the correction itself is smaller than the resolution of the correction.

In all cases, you can calculate the uncompensated cell resistance using Ohm's Law (E = iR) if you know the potential error and the current flow at the instant of interest. However, when you make this calculation, you must determine your values carefully. Ohm's Law dictates that at small current values, small changes in potential error represent large changes in uncompensated resistance. At one microamp, a change of one millivolt represents a one kilohm change in uncompensated resistance!

Timing Considerations

There are some important timing considerations to be aware of when using Current interrupt. First, the behavior of the reference electrode potential is determined by the RC time constant (a product of the double layer capacitance and the faradaic impedance). Secondly, the cell will not turn off in zero time, as the ideal waveform in Figure 5 shows.
FIGURE 5: IDEAL Voltage Waveform For A Current Interrupt Cycle

For these reasons, you should choose your two data points carefully, keeping in mind these two important considerations:

1) The first data point must not be distorted by the cell turn-off.

Both points must be chosen early enough in the decay to ensure that the straight line approximation is valid.

From experience, we have determined a set of default data point times that are used with the Model 273. Table 2 shows the values we have chosen for each current range. These values may be modified from the front panel of the Model 273. See the Model 273 manual for further details.

Current.........................First Point.....................Second Point

Range............................Time.............................Time

1 A, 100 mA....................10us................................20us

10 mA to 100 nA..............75us..............................150us

TABLE 2. Default values for data point times.

During operation, the timing of the current interrupt is determined by a value programmed from the front panel . This value can be set to any value between 4 msec and 30 sec in multiples of 4 msec (the time base of front panel operation). If the entered value is not a multiple of 4 msec, the computer will round to the nearest 4 msec multiple. When no scan is applied, the correction cycles will occur under control of the front panel setting. (The default setting is one cycle per second.)

Data Acquisition Rate

When you try to program the data acquisition rate from the front panel of the Model 273. there are several factors to consider. First, you must decide whether you want to synchronize data acquisition with the power line or not. If data acquisition is not synchronized with the power line, the time base will be 4 msec (that is. the microprocessor will process all parameters every 4 msec). If you choose line synchronization to prevent line related noise in the data, the time base will be 16.66 msec (20 msec for 50 Hz power).

The selected scan rate determines the rate at which the potential is updated. If the scan rate is less than 62.5 mV sec, the potential is updated in 0.25 mV steps. The processor determines how many 4 msec intervals will occur between each step.

For example. using a 10 mV/sec scan rate, the potential should be updated every 25 msec. Since the time base is 4 msec, the update will occur three consecutive times at 24 msec and a fourth time at 28 msec. The 24 msec cycle will be divided into six 4 msec cycles. Five cycles will occur in which the current and potential are measured, but the potential is not changed. On the sixth cycle, the current and potential will be measured, and the potential will be changed by 0.25 mV.

While the scan is in progress. the interrupt cycles are coupled with the potential update cycles. When the time between interrupts has elapsed, the interrupt is executed during the next data acquisition and potential update cycle.

Thus, while the potential is being scanned, each data acquisition and potential update cycle will occur in the following sequence:

1) The current will be measured.

2) The current interrupt cycle be executed.

3) The potential correction signal will be applied using DAC 2 (see Figure 4) 4) The applied potential will be updated using DAC 1.

Some care must be exercised in the timing of the interrupts. As the number of interrupt cycles increases, the percentage of time that the system is not controlled increases. Also, because of the nature of the measurement, the system noise will increase. However, the larger the time between interrupt cycles, the larger the uncorrected error may become. This is especially true if the current is changing very rapidly. For example, in a corrosion experiment, the current can change by an entire order of magnitude during one cycle (when the scan is within a few millivolts of the corrosion potential). Thus, if the interrupt is occuring every 10 mV, the current interrupt may cause erroneous potentials to be applied to the cell.

Moreover, this system is really a positive feedback system with a long time constant (minimum of 4 msec) and a complex transfer function. Thus, special care must be exercised when choosing values which cause current interrupts to be widely spaced. For slow scans. interrupts occurring at one second intervals should yield good results.

An Example Of A Current Interrupt Cycle

Figure 6 is an oscilliscope representation of a current interrupt cycle in an actual cell. In this illustration. the interrupt lasts 180 usec and the cell turnoff time is very rapid.
FIGURE 6. Actual Current Interrupt Cycle

The upper trace shows the electrometer voltage waveform and indicates a potential error of approximately 1485 mV. The lower trace shows the I MONITOR output at a current of 85 mA. When full scale current output occurs (on any scale), the I MONITOR potential is always 1 V. Thus, using the 100 mA current range, an output potential of 850 mVindicates a current of 85 mA. Using the potential error and current values. you can calculate the uncompensated resistance using Ohm's Law. In this case, Ru is approximately 175 Ohm.

In this example, the potential correction is 1485 mV. In order to maintain - 935 mV across the double layer, it is necessary that the control potential be set at -2420 mV.

(Note: The value displayed on the front panel of the Model 273 can be either the actual control potential or the value of the voltage across the double layer.)

In many cases, especially when interrupts are performed frequently, you may have to use a modified reference electrode which has a better high frequency response. In this case a platinum wire is placed at the tip of the reference electrode and coupled to the reference electrode using a small capacitor. 1, 2 This allows the reference electrode to operate at high frequency and to respond to rapid changes in potentials.

Summary Of Advantages

1) Current Interrupt will correct for virtually the entire potential error caused by the uncompensated resistance.

2) Current Interrupt will correct for any changes in the uncompensated resistance as the scan progresses.

3) You have no adjusting to do. AII you have to do is press a button to enable the correction.

Summary Of Disadvantages

1) The correction occurs at finite times. Thus, Current Interrupt is not suitable for scan rates greater than 500 mV/sec and may not work properly at scan rates greater than 100 mV/sec.

2) If the correction is not updated frequently enough, the applied correction can be in error, although the error will not be as great as when no correction is made.

3) In some cases, this technique can cause the entire system to oscillate.

References

1. Mansfield. E. et al. Corrosion, 38. (1982). p. 570.

2. Hermann. C.. et al. Anal. Chem.. 40. (1968). p. 1173.


Operated by: vinces@ozemail.com.au