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

Friday, 18 October 2024

Rapid alternating Polarity (RaP) Electrolyser using Microcontroller -- Concepts and Design

This post is a re-blog from my another blog post. The link is here

Disclaimer: this work is still a concept and yet to be tested. However, we wish you can learn or get inspired from our notes for your future work or projects despite the immature and untested nature of our notes.

Introduction

Over a year ago, there was a paper reporting about Kolbe electrosynthesis with considerable yield[source]. Kolbe electrosynthesis (electrolysis) is a reaction in which the carboxylate bonds from different molecules are broken and join two molecules through C-C bonds releasing CO2 gas. These carboxylate transformations can unlock bio-based products such as fuel, polymers, etc that are currently dominated by petroleum based leading to more sustainable products. Despite the reaction having been there for nearly 200 years, it is still challenging to have a considerable amount of yield due to several factors such as harsh conditions and low selectivity. If these challenges can be tackled, the potential for bio-based products would be wide open.

What makes the paper fascinating was that the reaction didn't involve fancy electrodes but gave a  good chemoselectivity which would allow the commercial scale-up potential. More interestingly, instead of applying DC voltage on the electrochemical system, it utilised a waveform into the electrochemical system. 

(Image 1. Rapid alternating Polarity Electrolysis overview. source:  Overcoming the Limitations of Kolbe Coupling via Waveform-Controlled Electrosynthesis (Chemrxiv, link )
  CC-BY 4.0)

By using a waveform to the electrochemical system, the polarity of electrodes will change every period of time. Therefore, Unlike “traditional” electrolysis, waveform-controlled electrolysis requires additional equipment to carry out the experiments. In the paper, the apparatus used for the scale-up included a waveform generator and a waveform amplifier which can be a barrier to get started for the research and development of this field, especially early-stage startups like us. On the other hand, the rise of open-source hardware and software has enabled many people to create many electronic projects that can be used and modified by anyone. This situation led to more use of the electronics microcontroller, modules, and other electronics components leading to a cheaper price of electronic components. With the booming of open source electronics, designing and prototyping the waveform-controlled electrolysis device can be an alternative to carry out such experiments. This technical note explains the concepts of creating a waveform-controlled electrolysis device based on microcontrollers in order to perform and achieve similar experiments.


Switching the electrode polarities

Instead of using waveform generator, polarity switch can be achieved by using an H-Bridge. H-Bridge consists of 2 switches both on the left and right side. On the middle of the switches from each side, there is a connection, a bridge, connected to a load which is an electrochemical cell. The switches are electronically controlled by either a clock or a microcontroller to control the polarity of an electrochemical cell. The general schematic of the H-bridge is illustrated in the following image.

(Image 2. H-Bridge for Electrolyser Scenario. Number 1-4 are Switches. The highlighted number indicates the switch is on. The arrows depict the current flow from voltage source to ground)

H-bridge works as the electrode polariser as it controls the flows of the current from and into the electrochemical cell by switching on/off the switches. As illustrated in Image 2,  when switch 1 and 4 are both on, the current will flow through the electrochemical cell and the electrode on the left-hand side would become an anode and cathode on the right side. Similarly, when switch 3 and 2 are both on, it reverses the polarity of the electrode to its opposite counterpart. However, when both switches on either side are switched on, it would lead to a forbidden state in which the current flow would not flow through the electrochemical cell, instead it creates a short circuit.


In the electrical design, switches can consist of bipolar junction transistors (BJT) or metal oxide semiconductor field effect transistors (MOSFET). Both transistors work in a similar way as a switch yet they differ what drives the switches on and off. BJT is current-driven while MOSFET is voltage-driven. 


BJT is current-limited which means that it can only draw certain current in the circuit based on its OEM specifications. Meanwhile, MOSFET is voltage-limited, in which it needs a certain voltage to supply in order to turn the switch on/off. The amount of voltage needed to drive the MOSFET varies to OEMs. There are so-called “logic-level” MOSFETs in which it only requires 3.3 – 5V of voltage to turn on the MOSFET. On the other hand, with 5 – 12 V of supplied voltage for electrolysis, assuming the load of an electrochemical cell is approximately 1K ohm, the current flown to the cell would be less than 100mA. With this information in mind, the use of MOSFET would be less necessary as the BJT would be more than sufficient to use for such applications.


In order to switch on and off the switches, microcontroller is employed for the task. We can implement Pulse width modulation feature from microcontroller to do so in a timely manner just like a waveform generator. Such that, the RaP can be achieved. The schematics of the RaP polarised is depicted in the following images:


(Image 3 the schematics of RaP Electrolyser. The microconcontroller PWM pins are depicted as a pulsed voltage source V2 and V3)

Based on Image 3, we employ 2 PWM pins to activate/deactivate switches. These pins work in opposite meaning when pin 1 is in High state, pin 2 is in Low state and vice versa.

Communicating with the device
We can use various interfaces in order to communicate with the device such as LCD and buttons. However, we will utilise UART communication in order to cut down the component costs. Therefore, we will need a computer in order to communicate/control the device.

We can also use microcontroller with bluetooth or Wi-Fi capabilities. However, it would add complexities in software design. Even though it's achievable, we would prioritise the goal of the project first instead of having this capabilities.


References:
Kolbe Electrolysis (Wikipedia, link)

Overcoming the Limitations of Kolbe Coupling via Waveform-Controlled Electrosynthesis (Chemrxiv, link )
pulse-width modulation (wikipedia, link)
Build a Power MOSFET H-Bridge for Arduino, PIC  (Youtube Video, link)








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