We Code, built, and share our thoughts to do chemistry

Wednesday, 29 July 2026

Notes & Thoughts: The state of ARAStat

Intro: Why ARAStat exist in the first place

At the beginning, I built ARAStat because I wanted to apply for jobs in electrochemistry doing lithium-ion battery recycling and hydrogen production. I had interest in hydrogen production from water splitting. My Uni at the time didn't have access for potentiostat which stopped me for the research. Therefore, at the time I was thinking why not just try building one?

It turned out, it was way harder than I thought. At first, the capability design was that it can perform CV and EIS. However, due to the complexities in components (bandwidth, sample rate),  producing high frequency signals and some skill issue on processing fast data stream, I changed the scope to cyclic voltammetry only. After several design iterations, ARAStat was born. 

Did I get the job? sadly no, but my knowledge of programming and electronics improved a lot. However, when I started making YouTube videos about designing our potentiostat, there's been interest I have never expected. Well, there's always something to gain despite not achieving the results I expected after all.

Let's talk about ARAStat

At first, we built our potentiostat with modularity in mind. Variable voltage range, upgradable opamps, even at first we design our transimpedance amplifier (TIA) with a swappable resistor (I killed this because I ran into some issues). During testing, we used bulk-scale electrodes and the voltage spiked when we used higher resistor values in TIA. Therefore we only used certain values such as 100, 1K and 10K ohms for the TIA. 

These videos shows how we designed the potentiostat from simulation to PCB design.


To reduce complexities in assembly, we use the through-hole footprints for the component so that it's easy to solder. However, this approach has consequences. We couldn't find the resistor with 0.1% error with this type of footprint. Since we heavily use resistor to do the voltage subtraction and addition in our potentiostat, the resistor 1% may introduce higher margin of error especially when we deal with microamp currents.

In addition to resistor error, the highest resistor value is 10K ohm. assuming the TIA output is 10mV, the potentiostat can work up to the microamp range. On the other hand, precision potentiostat can work up to nanoamp, or even picoamps which is far from what our device is capable of. We can add more TIA resistors to reach nanoamps or even picoamps. However, our current opamps would also introduce noises since its input bias is in nanoamp range. Instead of measuring the potentiostat current, we got noises from opamps.

Improving the Design

There are lots of things to change if we want to make our device more precise. From changing the footprint from through-hole to SMD to fit the resistor with 0.1% error, adding more TIA resistor values, and upgrade the opamps. However, these changes would alter the whole design. For example, this is our latest PCB design for our potentiostat. 

Our latest design iteration.

The design becomes more lean as it has more space. We believe we can squeeze it further even after adding resistor arrays for the TIA. This design would still stand if we the opamps we use have the same pinout as OP07, or else it would all be a complete makeover.

In this video, we also analyse some flaws in our design and how to tackle it

Wall to hit

Precision devices has the design with as low as noise possible. There might be some possible noise we haven't really thought of such as the noise from the power outlets (we might need to add low pass filter) and any other sources. Furthermore, "precision" opamps is more expensive than the general purpose opamps that we currently use. Furthermore, finding the upgrade that still suits with our pinout and footprints would be challenging. Sooner or later doing design makeover is inevitable. Not only is inevitable, we believe it's going to be expensive as well. We can cut some cost by using dual or quad channels opamps. Changing the opamps would create a design makeover, but on the hand the change wouldn't be too significant as we still use similar principles.

Alternative: Analog Front End (AFE) Potentiostat Chip

The alternative to upgrade and minimise the noise from our design is to scrap almost everything and use analog front end (AFE) IC. AFE comprises of multiple components such as DACs, signal processor and ADC packaged in one chip. Because our design direction is going to use SMD footprint, considering integrating AFE to our design can also be our consideration. After doing some research, we've found that AD5941 of Analog Devices (source) offer high performance with competitive cost compared to our redesign. It can perform EIS, voltammetry, amperometry. This chip can read up to 50pA, that's in the picoamps which is suitable for precision measurement. The chip interfaces with our microcontroller  through SPI communication. All we need is just some precision voltage sources, crystal oscillators, and some RC filters to filter out the noises.

Despite it sounds like a silver bullet, AD5941 has some limitations, especially in the voltage range limited to -/+ 1.1V. It might work for certain applications such as ion analysis or testing out the redox mediator for LFP batteries. However, for our use case such as hydrogen evolution reaction, we might need to find some workaround if we want to use this chips for our next potentiostat project.

Final Thoughts: What will we do?

To conclude this post, there are certain things we are planning to do. First, since we already redesign the PCB into SMD, we will stick with this design and find some upgrade replacements for opamps with the same pinout as OP07. We know that eventually we will have to do the redesign because of the number of opamps we use. We can rear it down by using dual and quad channel precision opamps not only to cut some cost but also to save space. We might also need to integrate reed switch to choose the TIA resistor making the measurement more automatic and less prone to errors.

Another thing, if we look at AD5941, it doesn't seem to have any negative input voltage whereas we use negative input voltage for our opamps. We believe there is something we haven't fully implement and explore in our design, i.e virtual ground. For certain range, we can utilise the AD5941 for the measurement. However, when we want to extend the range, we would have to integrate the signal generator for our potentiostat and allow AD5941 acts as the TIA chips.

Tuesday, 14 July 2026

Devlog & Thoughts - Reliability issues and Glucose test strips.

Intro: Reliability Issues

Recently, our potentiostat is having some reliability issues. The external ADC stopped working, the reference electrode also seemed to have issues as well as the measurement is off. Moreover,The reference electrode cap is glued and it's been tricky to remove.

While ADC issue can be rectified by using built-in ADC from the microcontroller, the programming was a little bit tricky on STM32 boards. There were so many possible configurations we needed to set to have it running properly. Previously the issue we faced was the ADC only read one channel instead of two. For cyclic voltammetry it might not be an issue as we can read the current. However, to ensure the reference voltage loop works properly, having additional ADC channel would be beneficial. Furthermore, as the built-in ADC has higher sampling rate, we can use it for more advanced applications such as electrochemical impedance spectroscopy (EIS) if we can utilise the internal ADC to the fullest. 

Thankfully, we can rectify the issue. Even better, we can also implement direct memory access (DMA) from the ADC which would allow us to stream high amount of data when we can implement EIS later (our opamps cannot withstand high bandwidth of EIS for now). 

Another issue we're having is we believe our dedicated reference electrode needs replacement. Well, replacing one is quite expensive until we tried several alternatives such as screen printed electrodes. It provides a uniform performance as the size of electrodes are defined and it works more reliably compared to our current setup. However, the trade-off that it can only be used one time, several time maximum. We can perform cyclic voltammetry with the fraction of the cost. It cut some cost upfront but unclear for long-term measurement projects. We almost give up being frugal about this by purchasing reference electrode replacement until a glucose test strip crossed our minds. We know that the glucometer is an electrochemical instrument which in principle works similarly with what we have done. Moreover,  the glucose test strips are so ubiquitous in the market making it more cost-effective to purchase than using research screen printed electrode, especially for our current purpose of testing our potentiostat.

Exploring the glucose test strips schematics.

Here's the video of us exploring the what's inside the glucose strips.

Glucose test strips has a limited documentation as they are proprietary. They only describe what it does, not the schematics like a research screen printed electrode. When I peeled the layer of the strips, it looked more complicated than the normal screen printed electrodes.

Fig 1. Glucose test strips.

Usually there are only 3 traces, reference, counter, and working electrodes. This test strips? it has 5 traces and as there might be fill detection electrodes (source) and it's quite hard to tell which is which.  Traditionally, we can tell which is reference electrode by looking at silvery traces to indicate Ag/AgCl reference electrode. Since counter and working electrodes are made of the same materials but different in size, sometimes we chose one of them for the either of the electrodes. It might have some consequences which we would discuss later.

In the glucose test strips, we couldn't see any Ag/AgCl reference electrode in the glucose strips. It turns out, the reference electrode can be either Ag/AgCl or inert metals such as gold or palladium (source). It's kind of fascinating that the inert metals can keep the reference voltage for the measurements instead of the electrode we studied in the literature such as Ag/AgCl or calomel electrode.

Fig 2. Glucose test strips after the top layer is removed

Because of this complexities, things now become more like a guesswork. Because the most bottom part of the traces can be connected to the screen printed electrode, that's the electrode combination we explored. 

The Result

We connect the left traces of the test strip in Fig 2. to the reference electrode and didn't fully document for other traces connecting to which electrodes. We used ~1mM ferricyanide in 0.1M KCl solution with sweeping voltage from 400mV to -600mV, scanrate of 100mV/s and quiet time for 1s. The result is shown in the following image. We use our potentiostat to perform this measurements.

Cyclic Voltammogram using glucose test strip. Top: Voltage Applied vs Current. Bottom Reference Voltage vs Current.

We managed to see both anodic and cathodic peaks in our potentiostat. If we look at both plots, the voltage applied and the reference voltage are in good agreement showing that the feedback control loop in the counter electrodes work properly. Well, there is a big gap between peaks. However, all in all it answers the questions that glucose test strip can be used to perform cyclic voltammetry.

The Caveats

One issue we were having was that we couldn't replicate the measurements. We retried the combinations, used a new test strip, we couldn't have the initial results. We tried to investigate the hardware and rectify some issues, still we couldn't replicate the results. 

In a combination of electrodes, we managed to see that the applied voltage and the reference voltage are in good agreements. But we didn't get the result We used the old solution for latest measurement though, could it be from the solution? Well, we need to redo the all the experiments all over again and see the results again for ourselves.














Our potentiostat circuit design approach compared to a glucometer

Previously, we rebuilt a potentiostat circuit to improve our design. We built it on a breadboard as we can experiment with it. You can watch...