In the electrochemical polymerization method, the monomer, dissolved in an appropriate solvent containing the desired anionic doping salt,
is oxidized at the surface of working electrode by application of an anodic potential (oxidation). As a result of the initial oxidation, the radical cation
of the monomer is formed and reacts with other monomers present in solution to form oligomeric products and then the polymer. The extended
conjugation in the polymer results in lowering of the oxidation potential compared to the monomer. Therefore, the synthesis and doping of the
polymer are generally done simultaneously. The anion is incorporated into the polymer to ensure the electrical neutrality of the film and, at the end of
the reaction, a polymeric film of controllable thickness is formed at the anode. The anode can be made of a variety of materials including platinum,
gold, glassy carbon, and tin or indium–tin oxide (ITO) coated glass [16,17].
The electropolymerization is generally achieved by potentiostatic (constant potential) or galvanostatic (constant current) methods. A typical
setup (three-electrode cell) for these measurements is schematically shown in Fig. 1.6.