Team:TU Delft-Leiden/Project/Gadget
From 2014.igem.org
Sim.castle (Talk | contribs) |
|||
(4 intermediate revisions not shown) | |||
Line 14: | Line 14: | ||
<h2>Gadget</h2> | <h2>Gadget</h2> | ||
- | <p>The electrical output mechanism for microbial biosensors we have developed needs a gadget to turn the measured signal (current) into data. A general design for such a | + | <p>The electrical output mechanism for microbial biosensors we have developed needs a gadget to turn the measured signal (current) into data. A general design for such a gadget is given in <a href="https://2014.igem.org/wiki/index.php?title=Team:TU_Delft-Leiden/Project/Gadget#Overview">Gadget Overview</a> Although a lot easier than a fluorescence microscope, this still involves quite some circuitry, all of which is explained here in the section <a href="https://2014.igem.org/wiki/index.php?title=Team:TU_Delft-Leiden/Project/Gadget#Potentiostat">Potentiostat</a>.</p> |
<div class="tableofcontents"> | <div class="tableofcontents"> | ||
Line 43: | Line 43: | ||
<a name="Overview"></a> | <a name="Overview"></a> | ||
<h3>Overview</h3> | <h3>Overview</h3> | ||
- | <p>The goal of synthetic biology is to turn biology from a science into a technology. In order to do this, it needs to be brought out of the lab to | + | <p>The goal of synthetic biology is to turn biology from a science into a technology. In order to do this, it needs to be brought out of the lab to fulfil its full potential. A product designed around the Electrace whole-cell biosensor would allow for real world application, outside of the confines of the lab. </p> |
<br> | <br> | ||
Line 51: | Line 51: | ||
<figcaption> | <figcaption> | ||
<br> | <br> | ||
- | Figure 1: | + | Figure 1: Overview of the product/service system envisioned for Electrace |
</figcaption> | </figcaption> | ||
</figure> | </figure> | ||
<br> | <br> | ||
<p> | <p> | ||
- | A concept which allowed for the meeting of the digital and biological worlds was imagined, with the Electrace cell at the heart. Electrace creates a modular system where biosensor " | + | A concept which allowed for the meeting of the digital and biological worlds was imagined, with the Electrace cell at the heart. Electrace creates a modular system where biosensor "plug-ins" in the form of biobricks can be designed by "wetware developers". This would allow the electrical output of Electrace to be used with a range of different inputs - for example the DNT detection seen elsewhere in our project. Since each biosensor would have its own set of requirements for data processing, software developers would create matching plug-ns for a digital Electrace platform. Via a web-based app then, the user would select the appropriate combination of software for the analyte in question. A wifi enabled potentiostat measures the electrical output of the given Electrace bio-sensor, which then sends this data to the mobile app for processing and display. |
</p> | </p> | ||
<br> | <br> | ||
Line 76: | Line 76: | ||
<p> | <p> | ||
- | In the ET module, electrons are anticipated to be shuttled to the extracellular environment if the induced pathway works according to expectation. The intention of the aforementioned device is to accurately measure and quantify the electrons being transferred to a certain degree of tolerance. The task can be accomplished by a commercial Potentiostat but is economically | + | In the ET module, electrons are anticipated to be shuttled to the extracellular environment if the induced pathway works according to expectation. The intention of the aforementioned device is to accurately measure and quantify the electrons being transferred to a certain degree of tolerance. The task can be accomplished by a commercial Potentiostat but is economically non-viable due to its outrageous price tag (>$2000). Hence an attempt has been made towards developing a comparable device from scratch using indigenous resources. </p> |
<br> | <br> | ||
<p> | <p> | ||
- | The primary electronic circuits that form the measuring device are composed of standardized components (Op-Amp etc.) and are therefore available in any general purpose hardware store. As an interfacing device between the analog and the digital domains, a National Instruments (NI) myDaQ is used. In turn the myDaQ can be interfaced with a PC through the USB in order to store this data. This can then be compared with the prediction of the system model, whose quality can then be judged. Also, input-output data can be used to fit models with a predefined model structure, thereby aiding one in obtaining the values of the crucial reaction rates. Hence it is desirable that the measuring device is accurate and precise. | + | The primary electronic circuits that form the measuring device are composed of standardized components (Op-Amp etc.) and are therefore available in any general purpose electronic hardware store. As an interfacing device between the analog and the digital domains, a National Instruments (NI) myDaQ is used. In turn the myDaQ can be interfaced with a PC through the USB in order to store this data. This can then be compared with the prediction of the system model, whose quality can then be judged. Also, input-output data can be used to fit models with a predefined model structure, thereby aiding one in obtaining the values of the crucial reaction rates. Hence it is desirable that the measuring device is accurate and precise. potentiostats which are readily available are expensive as they utilize specialized precision electronics in order to maintain high accuracy of the readings. This device will not be extremely accurate but is expected to perform satisfactorily.</p> |
<br> | <br> | ||
<h4>Working Principle and Construction</h4> | <h4>Working Principle and Construction</h4> | ||
- | <p>The | + | <p>The potentiostat is the hardware required to control a 3 electrode system used for the analysis of electrochemical experiments. As mentioned, the system consists of three separate electrodes namely the Working Electrode (WE), Reference Electrode (RE) and the Counter electrode (CE). The generalized cell configuration of such a system has been illustrated below. Operational amplifiers in various negative feedback configurations are employed to replicate the functioning of a potentiostat. This has been demonstrated in subsequent sections.</p> |
Line 93: | Line 93: | ||
<figcaption> | <figcaption> | ||
<br> | <br> | ||
- | Figure 3: The DropSens | + | Figure 3: The DropSens potentiostat with the screen printed electrodes |
</figcaption> | </figcaption> | ||
</figure> | </figure> | ||
Line 108: | Line 108: | ||
<p>In this case both the working and the counter electrodes are made out of smooth machined carbon. The RE is analogous to system ground i.e. all other voltages applied or measured at the working / counter electrodes are with respect to the voltage here. Consequently the term “Reference” has been adopted. This component usually consists of an Ag/AgCl or Pt/PtCl electrode. In principle, any metal which tends to be chemically inert and is therefore capable of maintaining a stable and fluctuation free voltage can be used for this purpose.</p> | <p>In this case both the working and the counter electrodes are made out of smooth machined carbon. The RE is analogous to system ground i.e. all other voltages applied or measured at the working / counter electrodes are with respect to the voltage here. Consequently the term “Reference” has been adopted. This component usually consists of an Ag/AgCl or Pt/PtCl electrode. In principle, any metal which tends to be chemically inert and is therefore capable of maintaining a stable and fluctuation free voltage can be used for this purpose.</p> | ||
<br> | <br> | ||
- | <p>A varying potential is applied to the WE with respect to the RE and hence the electrons which are ferried out into the sample by the | + | <p>A varying potential is applied to the WE with respect to the RE and hence the electrons which are ferried out into the sample by the E. coli resumes motion under the effect of the applied electromotive force. The Counter Electrode can now detect the generated current and relay the information to the PC via the DaQ. </p> |
<br> | <br> | ||
<p>The general design of the electrolytic cell along with the 3 electrodes has been discussed in fair detail until now. In the next segment, the problem of electronic circuit design and its interfacing with the computer is tackled in a methodical manner.</p> | <p>The general design of the electrolytic cell along with the 3 electrodes has been discussed in fair detail until now. In the next segment, the problem of electronic circuit design and its interfacing with the computer is tackled in a methodical manner.</p> | ||
Line 136: | Line 136: | ||
<ul style="list-style-type:disc"> | <ul style="list-style-type:disc"> | ||
<li>Voltage Adder (Summing Device)</li> | <li>Voltage Adder (Summing Device)</li> | ||
- | <li>Polarity | + | <li>Polarity Inverter</li> |
<li>Voltage Buffers ( Load independent Voltage Regulators)</li> | <li>Voltage Buffers ( Load independent Voltage Regulators)</li> | ||
<li>Cell Components ( WE, RE and CE)</li> | <li>Cell Components ( WE, RE and CE)</li> | ||
- | <li>myDaQ / myRIO – Analog to Digital ( A / D) and Digital to Analog (D / A) | + | <li>myDaQ / myRIO – Analog to Digital ( A / D) and Digital to Analog (D / A) converters. Interfacing with PC (USB & Lab-View)</li> |
</ul> | </ul> | ||
</p> | </p> | ||
Line 166: | Line 166: | ||
<br> | <br> | ||
- | <p>One needs to take note that the voltage adders which are implementable using OPAMPs produce an inverted sum. That is, instead of producing 6 Volts it produces -6V. In electrochemical applications, the polarity of the signal being applied plays a significant role in system behavior. Consequently it is necessary that the summer produces the signal with the correct sign. To facilitate this property a polarity | + | <p>One needs to take note that the voltage adders which are implementable using OPAMPs produce an inverted sum. That is, instead of producing 6 Volts it produces -6V. In electrochemical applications, the polarity of the signal being applied plays a significant role in system behavior. Consequently it is necessary that the summer produces the signal with the correct sign. To facilitate this property a polarity “inverter” is cascaded with the summer (This device reverses the sign of the input voltage fed to it). In the block diagrams above/below, the polarity inverter is embedded in the voltage adder and is considered to be it’s integral part.</p> |
<br> | <br> | ||
Line 174: | Line 174: | ||
<figcaption> | <figcaption> | ||
<br> | <br> | ||
- | Figure 7: Illustration of | + | Figure 7: Illustration of polarity inverter cascaded with the summer. |
</figcaption> | </figcaption> | ||
</figure> | </figure> | ||
Line 195: | Line 195: | ||
<br> | <br> | ||
- | <Ideally speaking, a voltage source is “supposed to” supply a constant voltage irrespective of the current drawn out of it / other downstream activity. Practically this never happens and | + | <Ideally speaking, a voltage source is “supposed to” supply a constant voltage irrespective of the current drawn out of it / other downstream activity. Practically this never happens and “voltage dips” are a common phenomenon. In order to make the voltage applied at the WE insensitive to the downstream cell activity, a buffer stage has been placed in between the voltage adder/summer and the actual WE. Similarly, the Voltage sensed by the Reference Electrode is first passed through a buffer such that irrespective of downstream circuit activity, V re being fed into the summer is always maintained at the correctly sensed value. The term voltage “buffer” has been coined as the OPAMP output voltage now resists any changes or disturbances caused and rather tries to remain fixed at whatever Input Voltage is applied.</p> |
<br> | <br> | ||
Line 219: | Line 219: | ||
<p>Once the electrons are pushed into the counter electrode, the current generated is to be sensed. Since the myRIO /myDAQ require voltages to work with, the current is passed through a Current – to – Voltage convertor to obtain a voltage calibrated wrt the sensed current. Based on the range of the current to be sensed, the value of a certain precision Resistance is to be altered suitably. This has been discussed explicitly in the next section.</p> | <p>Once the electrons are pushed into the counter electrode, the current generated is to be sensed. Since the myRIO /myDAQ require voltages to work with, the current is passed through a Current – to – Voltage convertor to obtain a voltage calibrated wrt the sensed current. Based on the range of the current to be sensed, the value of a certain precision Resistance is to be altered suitably. This has been discussed explicitly in the next section.</p> | ||
<br> | <br> | ||
- | <p>The circuitry discussed till now belongs completely to the domain of analog electronics. In order to store the sensed data onto a computer, the information has to be “digitized”. This is done with the help of an | + | <p>The circuitry discussed till now belongs completely to the domain of analog electronics. In order to store the sensed data onto a computer, the information has to be “digitized”. This is done with the help of an analog to digital converter (A to D). Similarly when random waveforms are produced on a PC, a digital version is initially created. Only when this digital data is passed through a digital to analog converter (D to A) does one obtain the actual waveform suitable for exciting the W.E. The common job of a D to A and A to D converter can be accomplished either by the DAQ or myRIO. Moreover, as these devices readily interface with a PC, real-time measurement data can be easily relayed to the PC screen.</p> |
<br> | <br> | ||
Line 232: | Line 232: | ||
<br> | <br> | ||
- | <p>A modular overview of the associated circuitry has been presented until now. The next section deals with the detailed analysis and functioning of the implemented circuitry. Before continuing, it is advised that the reader is familiar with the basic working of electrical /electronic circuits and especially OPAMPS. He /she must be familiar with basic principles namely | + | <p>A modular overview of the associated circuitry has been presented until now. The next section deals with the detailed analysis and functioning of the implemented circuitry. Before continuing, it is advised that the reader is familiar with the basic working of electrical /electronic circuits and especially OPAMPS. He /she must be familiar with basic principles namely Ohm's law, Kirchhoff’s laws, Norton – Thevnin equivalence etc. Before the next section begins, the same daunting schematic has been presented again but now with the different modules demarcated. It should feel easier to digest at this stage.</p> |
<br> | <br> | ||
Line 250: | Line 250: | ||
- | <p>Once the overall understanding of the system is achieved, the detailed working of the hardware can now be investigated. Operational Amplifiers (OPAMPs) form | + | <p>Once the overall understanding of the system is achieved, the detailed working of the hardware can now be investigated. Operational Amplifiers (OPAMPs) form the most important component of the designed circuitry as it is the only active element. Ideal OPAMPS are amplifiers with an amplification factor A = infinity. Also, the input resistance of the amplifier is ideally infinite and is depicted in the figure below (fig 12) as Rin. Rout is finite and hence a finite current can flow through it .There are two input terminals of the OPAMP – the positive and negative terminals.</p> |
<br> | <br> | ||
Line 309: | Line 309: | ||
<br> | <br> | ||
- | <h5>Voltage Summer & Polarity | + | <h5>Voltage Summer & Polarity Inverter </h5> |
Line 320: | Line 320: | ||
<br> | <br> | ||
- | <p>This device is required to maintain the WE voltage at a specified voltage with respect to the RE | + | <p>This device is required to maintain the WE voltage at a specified voltage with respect to the RE voltage. This also consists of an OPAMP in a modified negative feedback configuration in order to generate the virtual ground and thereby converting all incoming voltages (V1, V2) into currents corresponding to the resistance used (R). The added current is now forced to pass through the resistor in the feedback loop to generate back the entire summed voltage V1 + V2. The current is pushed into the feedback resistance (Note: also R) due to the existence of infinite input resistance between the two input terminals. Hence the current would prefer to flow through a path providing lesser hindrance. </p> |
<br> | <br> | ||
Line 336: | Line 336: | ||
<figcaption> | <figcaption> | ||
<br> | <br> | ||
- | Figure 15: Polarity | + | Figure 15: Polarity Inverter |
</figcaption> | </figcaption> | ||
</figure> | </figure> | ||
<br> | <br> | ||
- | <p>The above figure (fig 15) shows the configuration of a polarity | + | <p>The above figure (fig 15) shows the configuration of a polarity inverter. The Voltage fed in Vin gets inverted to –Vin at the output. Vout exactly equals –Vin if Rf and Rin are equal in magnitude. With a different ratio of Rf:Rin , the amplification factor of the OPAMP can be made to assume values other than 1. The derivation is quite simple and analogous to the previous case. It is this inverter which is placed after the summer and before Buffer 2 for correct circuit operation. In the block diagrams this unit is represented as an integral part of the Voltage Adder.</p> |
<br> | <br> | ||
- | <h5>Current to Voltage | + | <h5>Current to Voltage Converter </h5> |
<img src="https://static.igem.org/mediawiki/2014/b/b1/Delft_Fig_15.png" width="35%" width="35%" > | <img src="https://static.igem.org/mediawiki/2014/b/b1/Delft_Fig_15.png" width="35%" width="35%" > | ||
Line 354: | Line 354: | ||
<br> | <br> | ||
- | <p>The incoming current from the Counter electrode Iin needs to be converted into a corresponding voltage which can be sensed by the D to A | + | <p>The incoming current from the Counter electrode Iin needs to be converted into a corresponding voltage which can be sensed by the D to A converter. This measured voltage is proportional to the current being sensed. By varying a precision resistance placed in the feedback loop R, the range of the current to be sensed can be adjusted. As evident from the figure (fig 16) this is also a case of negative feedback where the current pushed into the feedback loop gets converted into the inverted voltage.</p> |
<br> | <br> | ||
Line 363: | Line 363: | ||
<h3>Practical Implementation / Software </h3> | <h3>Practical Implementation / Software </h3> | ||
- | <p>Once the signals have been digitized, the acquired signals must be charted on some kind of graph in the | + | <p>Once the signals have been digitized, the acquired signals must be charted on some kind of graph in the signal (voltage / current) vs time format. It is intended that this graph will get updated in real time as increasing no of samples are acquired. In order to achieve this, the associated software - LabView needs to be programmed accordingly. </p> |
<br> | <br> | ||
- | <p>In general, any general purpose computation & Data Acquisition software like Matlab, Maple etc can be interfaced with the DaQ provided the associated toolboxes are present. If required the software can be coded on C / C++ such that a “*.exe” is created, which is a standalone program and needs no third party software to run. As the myDaQ is a National Instruments product and so is LabView , the interfacing between the two has already been accomplished to a certain degree.</p> | + | <p>In general, any general purpose computation & Data Acquisition software like Matlab, Maple etc. can be interfaced with the DaQ provided the associated toolboxes are present. If required the software can be coded on C / C++ such that a “*.exe” is created, which is a standalone program and needs no third party software to run. As the myDaQ is a National Instruments product and so is LabView , the interfacing between the two has already been accomplished to a certain degree.</p> |
<br> | <br> | ||
- | <p>LabView provides an advantage over other conventional script based programming software like C etc as it works on Graphical Code (G Code). One simply needs to have the logic ready in his/her mind, which can be easily implemented by dragging and | + | <p>LabView provides an advantage over other conventional script based programming software like C etc. as it works on Graphical Code (G Code). One simply needs to have the logic ready in his/her mind, which can be easily implemented by dragging and dropping various functional blocks and interconnecting them via “wires”. These “wires” exhibits the signal flow within the digital domain in a software setting. This corresponding graphical code for this application has been represented in the figure below (fig 17):</p> |
<br> | <br> | ||
Line 382: | Line 382: | ||
<br> | <br> | ||
- | <p>The above wiring diagram is equivalent to the software code one writes using scripts but the advantage here is that the logic flow can be graphically seen and error can be easily | + | <p>The above wiring diagram is equivalent to the software code one writes using scripts but the advantage here is that the logic flow can be graphically seen and error can be easily trouble-shooted. The DAQ Assistants boxes are the functional blocks which enables interfacing with the analog domain. The “DAQ Assistant” block is responsible for converting the digitized version of the WE Voltage to an actual analog signal ( step / triangular) which is fit for excitation. </p> |
<br> | <br> | ||
Line 398: | Line 398: | ||
<br> | <br> | ||
- | <p>As mentioned earlier, the front panel plays an essential role. It forms the interface between the user and the device which has been presented here. Two different kinds of excitation signals are possible – Either a step DC | + | <p>As mentioned earlier, the front panel plays an essential role. It forms the interface between the user and the device which has been presented here. Two different kinds of excitation signals are possible – Either a step DC voltage or a triangular waveform for cyclic voltammetry. The value of the DC Step can be adjusted via the knob. Other waveform settings for the cyclic voltammetry mode like signal phase, amplitude and frequency can also be adjusted via suitable input options on the left.</p> |
<br> | <br> | ||
- | <p>The various charts show the different signals being applied and sensed. This image was captured when an ongoing test with a dummy cell was being performed. Crucial settings such as | + | <p>The various charts show the different signals being applied and sensed. This image was captured when an ongoing test with a dummy cell was being performed. Crucial settings such as sampling rate and no of samples (Buffer size) should be carefully adjusted. The sampling rate must be chosen in accordance with Shannon’s Theorem. Or else the signal being sensed / generated would not be accurate due to probable aliasing issues. <p> |
<br> | <br> | ||
Line 408: | Line 408: | ||
<h3>Testing & Validation</h3> | <h3>Testing & Validation</h3> | ||
<br> | <br> | ||
- | <p>An AutoLab Eco Chemie Dummy Cell 2 was used to validate and further tune the designed | + | <p>An AutoLab Eco Chemie Dummy Cell 2 was used to validate and further tune the designed potentiostat. A dummy cell is a device which can replicate the dynamics of electro-analytical cells and is made using passive electrical components like resistors and capacitors in certain configurations. With the dummy cell the expected current at the CE (Counter Electrode) can be pre-calculated based on the applied input voltage at the WE (Working Electrode).</p> |
<br> | <br> | ||
Line 420: | Line 420: | ||
- | <p>With this data in hand, the WE terminal of the | + | <p>With this data in hand, the WE terminal of the dummy cell was excited with a voltage of 0.5V .The RE (Reference Electrode) terminal of the dummy is at system ground (0 V) and hence whatever voltage is applied via the DAQ, the exact same amount gets physically applied at the WE. The dummy cell has various modes which replicate different scenarios and can be seen clearly from figure above (Fig 19). </p> |
+ | <br> | ||
+ | |||
+ | |||
+ | <p>For our validation purpose it was connected using mode (e) where a 10k-ohm resistance is between the WE and the RE/CE. Hence the current at the CE is expected to be 0.5V / 10000 ohm = 50 μA upon application of 1V at the WE. When the device is connected the measured signal must have a deterministic mean of around 50 μA with a stochastic spread on either side (possibly with a low covariance). The experiment was carried on for 100 seconds at the sampling rate of 2Hz. Hence 200 data points were collected .and the results were as follows (fig 20) :</p> | ||
<br> | <br> | ||
Line 430: | Line 434: | ||
</figure> | </figure> | ||
<br> | <br> | ||
- | |||
- | |||
- | |||
- | |||
- | <p>These results confirm that the | + | <p>These results confirm that the potentiostat is performing as anticipated. Henceforth this device can be used in conjunction with the bio reactor / MF device to characterize bio bricks or perform other electrochemical experiments. In the future, if current values to be probed are in the nano-amperes level, the ambient noise would be significant and hence can corrupt the data. To circumvent this problem a low pass filter can be used before feeding the data to the plotter. This would filter out the unwanted high frequency noise and therefore make the plots smoother. Another alternative is to performing averaging by choosing a Hanning Window of appropriate width. Although it performs smoothing, it comes at the cost of probable loss of system dynamics. Therefore the window width should not be too large and one must arrive at a reasonable trade off.</p> |
<br> | <br> | ||
Line 548: | Line 548: | ||
<br><br> | <br><br> | ||
+ | <h3>References</h3> | ||
+ | |||
+ | <p>[1] An Inexpensive Field-Portable Programmable Potentiostat - Ashwini Vittal Gopinath and Dale Russell. The Chemical Educator ISSN: 1430-4171 </p> | ||
+ | <p>[2] Image source - http://www.mep.net.au/teachingresearch/MEP_TEACHINGRESEARCH_04.html</p> | ||
+ | <p>[3] NPTEL - Analog Electronics - The Indian Institute of Technology Madras (IIT Madras , Chennai ,India) | ||
+ | |||
+ | |||
</div> | </div> |
Latest revision as of 16:59, 17 October 2014
Gadget
The electrical output mechanism for microbial biosensors we have developed needs a gadget to turn the measured signal (current) into data. A general design for such a gadget is given in Gadget Overview Although a lot easier than a fluorescence microscope, this still involves quite some circuitry, all of which is explained here in the section Potentiostat.
Contents
Overview
The goal of synthetic biology is to turn biology from a science into a technology. In order to do this, it needs to be brought out of the lab to fulfil its full potential. A product designed around the Electrace whole-cell biosensor would allow for real world application, outside of the confines of the lab.
A concept which allowed for the meeting of the digital and biological worlds was imagined, with the Electrace cell at the heart. Electrace creates a modular system where biosensor "plug-ins" in the form of biobricks can be designed by "wetware developers". This would allow the electrical output of Electrace to be used with a range of different inputs - for example the DNT detection seen elsewhere in our project. Since each biosensor would have its own set of requirements for data processing, software developers would create matching plug-ns for a digital Electrace platform. Via a web-based app then, the user would select the appropriate combination of software for the analyte in question. A wifi enabled potentiostat measures the electrical output of the given Electrace bio-sensor, which then sends this data to the mobile app for processing and display.
Potentiostat
In the ET module, electrons are anticipated to be shuttled to the extracellular environment if the induced pathway works according to expectation. The intention of the aforementioned device is to accurately measure and quantify the electrons being transferred to a certain degree of tolerance. The task can be accomplished by a commercial Potentiostat but is economically non-viable due to its outrageous price tag (>$2000). Hence an attempt has been made towards developing a comparable device from scratch using indigenous resources.
The primary electronic circuits that form the measuring device are composed of standardized components (Op-Amp etc.) and are therefore available in any general purpose electronic hardware store. As an interfacing device between the analog and the digital domains, a National Instruments (NI) myDaQ is used. In turn the myDaQ can be interfaced with a PC through the USB in order to store this data. This can then be compared with the prediction of the system model, whose quality can then be judged. Also, input-output data can be used to fit models with a predefined model structure, thereby aiding one in obtaining the values of the crucial reaction rates. Hence it is desirable that the measuring device is accurate and precise. potentiostats which are readily available are expensive as they utilize specialized precision electronics in order to maintain high accuracy of the readings. This device will not be extremely accurate but is expected to perform satisfactorily.
Working Principle and Construction
The potentiostat is the hardware required to control a 3 electrode system used for the analysis of electrochemical experiments. As mentioned, the system consists of three separate electrodes namely the Working Electrode (WE), Reference Electrode (RE) and the Counter electrode (CE). The generalized cell configuration of such a system has been illustrated below. Operational amplifiers in various negative feedback configurations are employed to replicate the functioning of a potentiostat. This has been demonstrated in subsequent sections.
In this case both the working and the counter electrodes are made out of smooth machined carbon. The RE is analogous to system ground i.e. all other voltages applied or measured at the working / counter electrodes are with respect to the voltage here. Consequently the term “Reference” has been adopted. This component usually consists of an Ag/AgCl or Pt/PtCl electrode. In principle, any metal which tends to be chemically inert and is therefore capable of maintaining a stable and fluctuation free voltage can be used for this purpose.
A varying potential is applied to the WE with respect to the RE and hence the electrons which are ferried out into the sample by the E. coli resumes motion under the effect of the applied electromotive force. The Counter Electrode can now detect the generated current and relay the information to the PC via the DaQ.
The general design of the electrolytic cell along with the 3 electrodes has been discussed in fair detail until now. In the next segment, the problem of electronic circuit design and its interfacing with the computer is tackled in a methodical manner.
Primary Circuit Design and Interfacing
As previously mentioned, the associated circuitry consists of both digital and analogue parts which are required to effectively transmit the measured data to a PC. Hence the myDaQ / myRIO will be used in conjunction with the designed analog circuitry. The DaQ already possesses inbuilt A/D (Analog to Digital) and D/A (Digital to Analog) converters so one needs to merely connect the wires from the analog domain into suitable ports of the device.
The schematic above illustrates the circuitry which has been adopted for this purpose. It consists of various OPAMPS intelligently connected in different negative and positive feedback configurations such that the desired functions are fulfilled. The entire network might seem daunting at first sight, but it actually is quite simple and elegant when evaluated using a modular approach. The hardware can be segregated into various modules namely:
- Voltage Adder (Summing Device)
- Polarity Inverter
- Voltage Buffers ( Load independent Voltage Regulators)
- Cell Components ( WE, RE and CE)
- myDaQ / myRIO – Analog to Digital ( A / D) and Digital to Analog (D / A) converters. Interfacing with PC (USB & Lab-View)
The following figure (Fig 6)shows these in the form of a block diagram
The core idea of a Potentiostat is to excite the Working Electrode with an external voltage in order to generate the electromotive Force capable of ‘pushing’ the transported electrons into the counter electrode. Consequently, the presence of the voltage “generator” is crucial and the computer aids directly in the process. Due to the availability of software like LabView any waveform can be generated. Frequently a periodic waveform is used to excite the system for e.g in order to assess the inherent system hysteresis (non-linear behavior). Refer Gopinath and Russel et al for more details.
The Voltage which is to be applied to the WE is generated via the myDAQ/ myRIO itself. These devices often possess the capability to simultaneously detect as well as produce signals .Hence the DaQ has been programmed such that both triangular and constant voltage waveforms are generated. The frequency, amplitude and the phase of the waveforms can be adjusted by altering a few variables in the associated software code. More discussion on this matter is presented later.
It is to be noted that any excitation voltages applied to the Working Electrode is always with respect to (wrt) the Reference. For example, if a potential difference of 5V DC wrt to the RE is required, merely generating a 5V DC from the battery and feeding it into the WE will not suffice! If the Reference Electrode senses a voltage of 1V DC, then it is essential that a voltage of 5V + 1V = 6V is totally applied to the WE. Only then does the condition of 5V with respect to the RE become valid. If this concept is well grasped, then the necessity of the Voltage “Adder” becomes obvious.
One needs to take note that the voltage adders which are implementable using OPAMPs produce an inverted sum. That is, instead of producing 6 Volts it produces -6V. In electrochemical applications, the polarity of the signal being applied plays a significant role in system behavior. Consequently it is necessary that the summer produces the signal with the correct sign. To facilitate this property a polarity “inverter” is cascaded with the summer (This device reverses the sign of the input voltage fed to it). In the block diagrams above/below, the polarity inverter is embedded in the voltage adder and is considered to be it’s integral part.
The Voltage Buffer is a circuit comprising of an OPAMP in a unity negative feedback configuration. This has something to do with the output voltage of the OPAMP being fed-back in a manner such that it opposes the applied input voltage that generated this output in the first place. When in such a configuration, the amplification factor of the OPAMP become close to 1 and hence the Output Voltage perfectly “follows” the input Voltage irrespective of the output load conditions (this circuitry is also known as a voltage follower).
Once the electrons are pushed into the counter electrode, the current generated is to be sensed. Since the myRIO /myDAQ require voltages to work with, the current is passed through a Current – to – Voltage convertor to obtain a voltage calibrated wrt the sensed current. Based on the range of the current to be sensed, the value of a certain precision Resistance is to be altered suitably. This has been discussed explicitly in the next section.
The circuitry discussed till now belongs completely to the domain of analog electronics. In order to store the sensed data onto a computer, the information has to be “digitized”. This is done with the help of an analog to digital converter (A to D). Similarly when random waveforms are produced on a PC, a digital version is initially created. Only when this digital data is passed through a digital to analog converter (D to A) does one obtain the actual waveform suitable for exciting the W.E. The common job of a D to A and A to D converter can be accomplished either by the DAQ or myRIO. Moreover, as these devices readily interface with a PC, real-time measurement data can be easily relayed to the PC screen.
A modular overview of the associated circuitry has been presented until now. The next section deals with the detailed analysis and functioning of the implemented circuitry. Before continuing, it is advised that the reader is familiar with the basic working of electrical /electronic circuits and especially OPAMPS. He /she must be familiar with basic principles namely Ohm's law, Kirchhoff’s laws, Norton – Thevnin equivalence etc. Before the next section begins, the same daunting schematic has been presented again but now with the different modules demarcated. It should feel easier to digest at this stage.
Detailed Circuit Analysis
Once the overall understanding of the system is achieved, the detailed working of the hardware can now be investigated. Operational Amplifiers (OPAMPs) form the most important component of the designed circuitry as it is the only active element. Ideal OPAMPS are amplifiers with an amplification factor A = infinity. Also, the input resistance of the amplifier is ideally infinite and is depicted in the figure below (fig 12) as Rin. Rout is finite and hence a finite current can flow through it .There are two input terminals of the OPAMP – the positive and negative terminals.
The OPAMP in principal is supposed to ideally amplify the difference in voltage between the two, which is called the differential input voltage. The terminals in figure 12 are as follows:
- V+ → Non inverting (Positive) input terminal
- V - → Inverting (negative) input terminal
- Vin → Net input Voltage into OPAMP = V+ - V-
- Vs+ / Vs- → Positive and Negative Power supplies
- Vout – Voltage output produced by OPAMP
- Rin /Rout → Input / Output Resistances
- A – Amplification factor of the OPAMP
Practical OPAMPs have finite but high gains and input resistances of the order of 10^6. The relationship between the Input and Output Voltages in an open loop setting is Vout = A( V+ – V-). Such massive gains are achieved by cascading various amplifiers with low gains in series with one another. These devices are capable of power amplification and termed active devices as they need an external power source to operate ( Vs+ and Vs-). The external power is required to bias the individual transistors that make up the OPAMP thereby preserving the law of conservation of energy.
Voltage Buffer/ Follower
A voltage buffer as mentioned before is used to regulate the output voltage around a certain fixed value, irrespective of the current drawn/ load attached => (Value of downstream resistance RL). Hence the most appropriate device for such a situation is the OPAMP in an unity negative feedback configuration. This is as illustrated below:
From the above figure 13 it is clear that the entire Output voltage Vo is ‘fed back’ into the ‘negative’ input terminal. Consequently, the term “Negative Feedback” is utilized to describe such an interconnection. In such a configuration, the Output Voltage Vo perfectly follows the input Voltage fed into the Vi + terminal irrespective of any downstream activity. Unity refers to the situation of 100% Output voltage being fed back.
The relationship for negative feedback is: Output Voltage Vo = A /(1 + A) x Vi . If A is very high (≥ 10^6), then Vo = Vi as A/(1+A) ≅ 1
Two voltage buffers have been used in the circuit at strategic locations where downstream activity may potentially alter the line voltage and are expected to improve the overall performance.
Voltage Summer & Polarity Inverter
Figure 14: A two port summer
This device is required to maintain the WE voltage at a specified voltage with respect to the RE voltage. This also consists of an OPAMP in a modified negative feedback configuration in order to generate the virtual ground and thereby converting all incoming voltages (V1, V2) into currents corresponding to the resistance used (R). The added current is now forced to pass through the resistor in the feedback loop to generate back the entire summed voltage V1 + V2. The current is pushed into the feedback resistance (Note: also R) due to the existence of infinite input resistance between the two input terminals. Hence the current would prefer to flow through a path providing lesser hindrance.
Vo = V1 + V2. Due the existence of Virtual Ground, the voltage here = 0. Hence, I1 = (V1 - 0)/R1 = V1/R. Similarly I2 = V2/R . Consequently, net current flowing through the feedback resistor = I1 + I2 . Hereafter the Voltage created at the output is: Vo = 0 – R(I1 + I2) = - (V1 + V2). Note that the inverted sum is produced at the output.
Figure 15: Polarity Inverter
The above figure (fig 15) shows the configuration of a polarity inverter. The Voltage fed in Vin gets inverted to –Vin at the output. Vout exactly equals –Vin if Rf and Rin are equal in magnitude. With a different ratio of Rf:Rin , the amplification factor of the OPAMP can be made to assume values other than 1. The derivation is quite simple and analogous to the previous case. It is this inverter which is placed after the summer and before Buffer 2 for correct circuit operation. In the block diagrams this unit is represented as an integral part of the Voltage Adder.
Current to Voltage Converter
Figure 16: Current to Voltage Converter
The incoming current from the Counter electrode Iin needs to be converted into a corresponding voltage which can be sensed by the D to A converter. This measured voltage is proportional to the current being sensed. By varying a precision resistance placed in the feedback loop R, the range of the current to be sensed can be adjusted. As evident from the figure (fig 16) this is also a case of negative feedback where the current pushed into the feedback loop gets converted into the inverted voltage.
Vout = Iin x Rf. Vout can be made to drive an auxiliary load Rl. This is not the case in our situation!
Practical Implementation / Software
Once the signals have been digitized, the acquired signals must be charted on some kind of graph in the signal (voltage / current) vs time format. It is intended that this graph will get updated in real time as increasing no of samples are acquired. In order to achieve this, the associated software - LabView needs to be programmed accordingly.
In general, any general purpose computation & Data Acquisition software like Matlab, Maple etc. can be interfaced with the DaQ provided the associated toolboxes are present. If required the software can be coded on C / C++ such that a “*.exe” is created, which is a standalone program and needs no third party software to run. As the myDaQ is a National Instruments product and so is LabView , the interfacing between the two has already been accomplished to a certain degree.
LabView provides an advantage over other conventional script based programming software like C etc. as it works on Graphical Code (G Code). One simply needs to have the logic ready in his/her mind, which can be easily implemented by dragging and dropping various functional blocks and interconnecting them via “wires”. These “wires” exhibits the signal flow within the digital domain in a software setting. This corresponding graphical code for this application has been represented in the figure below (fig 17):
Figure 17: Potentiostat Software Block Diagram
The above wiring diagram is equivalent to the software code one writes using scripts but the advantage here is that the logic flow can be graphically seen and error can be easily trouble-shooted. The DAQ Assistants boxes are the functional blocks which enables interfacing with the analog domain. The “DAQ Assistant” block is responsible for converting the digitized version of the WE Voltage to an actual analog signal ( step / triangular) which is fit for excitation.
Likewise the block “DAQ Assistant2” plays the crucial role of receiving the analog domain signals (like the sensed CE current) and converting them into a digitized version for use on the PC. The code embedded within these blocks has been supplied by NI. The charts are used for plotting the information in real time as the data vectors grow with time. The LabView interface consists of two main windows. One is the Block Diagram where the G code is implemented. The other is known as the “front panel” and is used to simulate the front panel of an actual instrument (in this case the Potentiostat). This is the window where the charts actually plot the values and one can read them off directly! This is shown as follows:
Figure 18: Front Panel
As mentioned earlier, the front panel plays an essential role. It forms the interface between the user and the device which has been presented here. Two different kinds of excitation signals are possible – Either a step DC voltage or a triangular waveform for cyclic voltammetry. The value of the DC Step can be adjusted via the knob. Other waveform settings for the cyclic voltammetry mode like signal phase, amplitude and frequency can also be adjusted via suitable input options on the left.
The various charts show the different signals being applied and sensed. This image was captured when an ongoing test with a dummy cell was being performed. Crucial settings such as sampling rate and no of samples (Buffer size) should be carefully adjusted. The sampling rate must be chosen in accordance with Shannon’s Theorem. Or else the signal being sensed / generated would not be accurate due to probable aliasing issues.
The program can be downloaded : here
Testing & Validation
An AutoLab Eco Chemie Dummy Cell 2 was used to validate and further tune the designed potentiostat. A dummy cell is a device which can replicate the dynamics of electro-analytical cells and is made using passive electrical components like resistors and capacitors in certain configurations. With the dummy cell the expected current at the CE (Counter Electrode) can be pre-calculated based on the applied input voltage at the WE (Working Electrode).
Figure 19: Autolab Dummy Cell 2
With this data in hand, the WE terminal of the dummy cell was excited with a voltage of 0.5V .The RE (Reference Electrode) terminal of the dummy is at system ground (0 V) and hence whatever voltage is applied via the DAQ, the exact same amount gets physically applied at the WE. The dummy cell has various modes which replicate different scenarios and can be seen clearly from figure above (Fig 19).
For our validation purpose it was connected using mode (e) where a 10k-ohm resistance is between the WE and the RE/CE. Hence the current at the CE is expected to be 0.5V / 10000 ohm = 50 μA upon application of 1V at the WE. When the device is connected the measured signal must have a deterministic mean of around 50 μA with a stochastic spread on either side (possibly with a low covariance). The experiment was carried on for 100 seconds at the sampling rate of 2Hz. Hence 200 data points were collected .and the results were as follows (fig 20) :
Figure 20: Results with Dummy cell
These results confirm that the potentiostat is performing as anticipated. Henceforth this device can be used in conjunction with the bio reactor / MF device to characterize bio bricks or perform other electrochemical experiments. In the future, if current values to be probed are in the nano-amperes level, the ambient noise would be significant and hence can corrupt the data. To circumvent this problem a low pass filter can be used before feeding the data to the plotter. This would filter out the unwanted high frequency noise and therefore make the plots smoother. Another alternative is to performing averaging by choosing a Hanning Window of appropriate width. Although it performs smoothing, it comes at the cost of probable loss of system dynamics. Therefore the window width should not be too large and one must arrive at a reasonable trade off.
Specifications
- Sensitivity range - >20 micro amps
- Excitation modes – Step and Triangular
- Step Max Amplitude – +1 V
- Triangular Amplitude - +/- 1V
- Triangle Frequency Adjustable ( Analogous to Scan Rate) – (100Hz max)
- Sampling Rate/ buffer size Adjustable – (100 KHz max)
- Displays : Applied voltage at Working electrode - WE + RE
- Displays : Sensed CE current & calibrated Voltage
- Data can be saved directly onto Microsoft Excel in a vector-wise format
Timeline - Photos , Videos and Disasters
Still a concept. Just back from the hardware store.
Building the modules bit by bit
Modules being tested as they are assembled
Sim is delighted. Important modules work individually
Testing with a dummy cell. Results not according to expectation. Wiring ERROR somewhere‼
The Close-up
DISASTER has struck. Potentiostat in the making falls on the ground ( Courtesy : Debu).
We don’t give up do we? Sim rebuilding from scratch. Now the components are more efficiently placed to minimize wiring length. This reduces confusion if the wiring has to be altered.
Performing Voltammetry tests with KCL. Testing is done with a multimeter at this stage. Software environment is not yet ready.
Finalized system being tested using a Dummy Cell. Software environment confirmed as LabView. Data can now be measured in real-time. Graphs on the screen display the measured current and other variables.
References
[1] An Inexpensive Field-Portable Programmable Potentiostat - Ashwini Vittal Gopinath and Dale Russell. The Chemical Educator ISSN: 1430-4171
[2] Image source - http://www.mep.net.au/teachingresearch/MEP_TEACHINGRESEARCH_04.html
[3] NPTEL - Analog Electronics - The Indian Institute of Technology Madras (IIT Madras , Chennai ,India)