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

Monday, 30 June 2025

Devlog on Building potentiostat: Printed-Circuit Boards

In the past couple of years, we've been prototyping our potentiostat circuit on a dot PCB. We encountered some issues: reliability and accuracy relative to the simulation. Both of these issues not only make the measurement obsolete but also pose a danger to other electronic devices such as microcontrollers and even our computers when the voltage generated exceeds our anticipated voltage. Furthermore, I think it's a good experience to design and build a PCB tailored for our applications. Therefore, we decided to build one. 

First step: General Design

Before we created the PCB, we had to make sure that the circuit worked the way we wanted. We simulated the circuit first. We used LTSpice to test our simulated potentiostat. The voltage test was the only test we carried out to make sure that the voltage generated by the device is within the voltage range of the data acquisition module. Therefore, the device is compatible with our systems. Here is the schematic we built for our potentiostat.

ARASTAT Schematics

Second Step: Another Design

After designing the circuit in general. We designed the circuit board using KiCAD in which another schematics and PCB editor were created. There are actually many electronics design software such as easyEDA, eagle, etc. However, KiCAD is free of charge and we have been using this for years so we are quite familiar with the software. In schematics design, the design is more detailed than the general design we previously did on LTSpice because now we pay more attention to the line connection and ports that we previously didn't take into account. Long story short, the process was similar with more sprinkles as we added connection port and assigned the footprint for each component we were going to use. Therefore, make sure that the footprint size is compatible with your designated size. However, as our original design was to have upgradable opamps and variable gains, it complicated the our design process. The constraints for upgradable opamp can be tackled by installing a socket in which the opamp is installed in. The caveat is that the better opamp should have the same port as the current one. On the other hand, the process for having variable gains to read the current is more complicated. Previously we just installed a port in which the resistor is inserted to have a variable transimpedance amplifier gains. Despite the ease of design, it wasn't reliable (this issue might come from the accumulation of other issues) and led to the decision that better approach should be implemented. We were inspired from Rodeostat's potentiostat design[source] in which the gains are programmable. The design is clever. We can set the gains by setting it up which resistor we want to connect. That was exactly what we did, except we setting it up connecting them using a connector manually to save the cost. Here is the more detailed schematics we did on KiCAD.


ARASTAT Schematics on KiCAD

Third Step: PCB Design and Manufacturer's Requirements 

After the schematic (including assigning the footprint for each component) was completed, we had to connect all the components to their designated places. This process is quite tricky as one can fit perfectly, while one might need another layer. The schematics actually helped and guided which components to connect to. Moreover, the design also needs to follow the manufacturer's requirements such as the size of the copper line,  hole, etc, to ensure the design works properly. After spending quite a considerable amount of time designing the PCB, here's the design. 


Here is the rendered PCB from the software.


After completing the PCB design, the design was printed into PCBs by the manufacturer. It took us about 3-4 working days to have the PCB printed.

Final Step: Assembling

After printed, we need to connect all the components to the board. The process was way more simpler than doing it with the dot PCB as all we need to just put the connector into the hole (we were using through-hole components) and solder it. At the last minute, we changed the resistor value from 1K to 10K for all op-amps operations (subtraction & addition). After assembling them, we tested them by measuring the voltage. Finally, a working and reliable device. 

Here's our potentiostat prototype. The green board is the printed-circuit board connected to the power supply, DAC and data acquisition (on white breadboard) controlled by microcontroller (STM32G0)



We can now focus more on doing the chemistry and find a way to perform cyclic voltammetry more cost-effective as the electrodes are pricey. We can use screen-printed electrode for several cases. However we still need to design the housing and we think that would be for another discussion.


No comments:

Post a Comment

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...