Introduction

Conjugated polymers represent a special group of materials widely studied and applied in various scientific and technological research [1], such as biomedical engineering [2], chemical or biological sensors [3,4,5], catalysis or electrocatalysis [6, 7], energy storage devices [8, 9] and anti-corrosion coatings [10,11,12]. Among conjugated polymers, polyaniline (PANI) and its derivatives have been attracting significant interest due to its high conductivity, environmental stability, easy obtaining process, low cost of raw materials, and interesting technological applications [8, 13, 14]. Bilal et al. verified that ring-substituted PANI derivatives can protect metals against corrosion [15]. Several routes of synthesis using polymerization techniques in the aqueous and non-aqueous medium have been proposed considering the variation of several parameters such as pH, oxidizing agents, reactants concentration, temperature, time, and polymerization conditions [16].

Poly(o-ethoxyaniline) (POEA) is a derivative of PANI and its structural difference is the presence of the group (–OCH2CH3) in the ortho position of the aniline rings [17]. POEA can be obtained by different synthesis methods, including chemical [18,19,20,21] and electropolymerization [2, 22]. Nanofibers, nanorods, nanotubes, nanoflakes, and nanospheres [23, 24] have been obtained in chemical polymerization using different oxidants or additives. On the other hand, the electrochemical polymerization represents a simple method of consuming less energy, besides the resulting film morphology can be controlled by varying the deposition experimental conditions [25,26,27]. The influence of substituent in the ortho-position of aniline ring can influence on the polymerization process, decreasing the molar mass of the polymer and requiring longer polymerization time. Furthermore, the steric and electronic effects of aniline substituent influence the electrical conductivity [19, 28].

Aiming at using conjugated polymers as corrosion surface protectors, the formed film must present high strength, good chemical stability, as well as wear resistance. Chaudhari et al. synthesized strongly adherent POEA coatings on copper substrates by electrochemical polymerization of o-ethoxyaniline in aqueous salicylate solution by using cyclic voltammetry and verified the efficient ability of these coatings as corrosion protective coatings [29]. The evaluation of the corrosion protection performance of POEA coated copper by electrochemical impedance spectroscopy has also been reported [30, 31].

Surface roughness is an important factor to be considered both for thin films or as corrosion coatings, and it is significantly influenced by several factors, including deposition parameters and type of substrate. Cena et al. [32], reported differences in the morphological characterization of thin films of polyaniline alternated with natural rubber, result that can be modified adjusting the PANI solution’s pH. To date, fractal theory [33, 34] and statistical methods [35, 36] have been used to investigate surface morphology because roughness influences other surface properties such as tribology [37], wettability, and hydrophobicity [38, 39]. According to Sedlaček, the main used parameters for roughness evaluation [root mean square (Sq), average roughness (Sa), skewness (Ssk) and kurtosis (Sku), do not generate enough information [40] considering patterning, spatial distribution, and fractals of surface morphology [41, 42]. Using fractal geometry [43,44,45], Mandelbort [46] presented a quantitative parameter describing the surface, as well as its irregularities.

Atomic Force Microscopy (AFM) has been widely used for the evaluation of conducting polymers, allowing information about the structure and organization of thin films, surface morphology, nanostructure, packing and conformation of polymer chains, porosity, force profiles of specific chemical interactions, roughness and mapping of electrical charge [20, 47, 48]. However, the AFM technique presents some advantages, such as no need for recovering conductive samples nor the use of a vacuum system. For this reason, this technique can be applied to any material and allows simultaneous detection of phase image and height [49]. The AFM technique was carried out in this present work to evaluate the morphology and microtexture of POEA films obtained by electropolymerization. The influence of the electrodeposition number cycles was evaluated and new parameters (surface entropy, fractal succolarity, and fractal lacunarity) were obtained using image processing. Additionally, Cyclic Voltammetry and Fourier Transform-Infrared (FTIR) spectroscopy were performed to monitor the production of the films and characterize their molecular structures.

Materials and methods

Chemicals and reagents

All reagents were of analytical grade. The o-ethoxyaniline (OEA) monomer was purchased from Fluka and double-distilled under reduced pressure. Acetone and isopropyl alcohol were purchased from Synth (Brazil). Sulfuric acid (98%) was purchased from Merck (Germany). Aqueous solutions were prepared by using purified water from a Milli-Q system.

POEA electrodeposition on ITO electrodes

All electrochemical procedures were performed using an AUTOLAB PGSTAT 204 (Methrohm Autolab, Netherlands), controlled with NOVA 2.1.2 electrochemical analysis software. A conventional three-electrode system was used with an indium tin oxide electrode (ITO) coated on glass substrates (15 Ω/sq., Lumtech) as the working electrode, Ag/AgCl as the reference electrode (sat. KCl), and platinum as the auxiliary electrode. The deposition area was delimited to 0,25 cm2 using an insulating adhesive tape coating. All experiments were performed at room temperature without stirring. To improve the reproducibility of the measurements and obtain a good deposition, ITO substrates were ultrasonically cleaned (Q3350 ultrasonic bath, QUIMIS) in deionized water, acetone, and isopropyl alcohol, successively, for 15 min [50]. Afterward, the electrodes were dried using a nitrogen gas stream.

The POEA electrodeposition was carried out in a 0.2 mol L−1 OEA and 1.5 mol L−1 H2SO4 solution, using cyclic voltammetry from −0.2 to +1.2 V at a scan rate of 50 mV s−1 [2]. Figure 1 shows the characteristic behavior of cyclic voltammograms for the electropolymerized POEA on the ITO substrate. In this work, 4 samples were electropolymerized with 5, 15, 20, and 25 cycles, respectively, to evaluate the morphology of the different film, besides the ITO substrate. Therefore, 5 samples were labeled as #1, #2, #3, #4, and #5, where the first one was considered as the clean substrate. Finally, the samples were removed from the electrolyte solution, washed using distilled water, dried in air, and submitted to further analysis.

Fig. 1
figure 1

Cyclic voltammograms for the electropolymerized POEA in 0.2 mol L−1 OEA and 1.5 mol L−1 H2SO4 solution

FTIR analysis

Fourier Transform-Infrared spectra were acquired using a FTIR-Nicolet 6700 (Thermo Scientific). The films were mounted on an attenuated total reflectance (ATR) accessory equipped with ZnSe crystal prior to scanning. The spectra were obtained with an accumulation of 100 scans and with a resolution of 4 cm−1.

AFM imaging

An Innova AFM from Bruker (Santa Barbara, CA, USA) operated on a taping mode was used for structural characterization. A scan rate of 0.5 Hz was used, and the size of the generated images was 5 × 5 μm2 at a resolution of 256 × 256 pixels using a silicon cantilever. The feedback control to obtain the best possible images was adapted to each surface and for all the applied scans. All measurements were performed in air, at room temperature (296 ± 1) K and (40 ± 1) % relative humidity. AFM images were analyzed using the MountainsMap Premium software trial version 8.4.8872 [51], according to ISO 25178-2:2012 [52].

Roughness parameters

AFM images were analyzed using the WSxM 5.0 version software (Nanotec Eletronica S. L.) [53]. The most relevant parameters were determined by the software, such as average roughness (Sa), root mean square roughness (Sq), surface skewness (Rsk), and surface kurtosis (Rku), using the following equations:

$$ {S}_a=\iint \left|Z\left(x,y\right)\right|. dx. dy $$
(1)
$$ {S}_q=\sqrt{\iint {\left|Z\left(x,y\right)\right|}^2. dx. dy} $$
(2)
$$ {R}_{sk}=\frac{\sqrt{\int {\int}_a{\left|Z\left(x,y\right)\right|}^3. dx. dy}}{{\sqrt{\int {\int}_a{\left|Z\left(x,y\right)\right|}^2. dx. dy}}^3} $$
(3)
$$ {R}_{ku}=\frac{\sqrt{\int {\int}_a{\left|Z\left(x,y\right)\right|}^4. dx. dy}}{{\sqrt{\int {\int}_a{\left|Z\left(x,y\right)\right|}^2. dx. dy}}^4} $$
(4)

where Z(x,y) is the height function of the vertical profile [54].

Topographic homogeneity

Surface entropy used in the analysis of topographical uniformity is a new superficial statistical parameter previously discussed by Matos et al. [55]. This parameter determines the uniformity of the height distribution of the topographical profile of the films based on Shannon’s entropy. The AFM images provided a 256 × 256 binary matrix associated with the image pixels. This matrix was then inserted into Shannon’s matrix equation, described by Nosonovsky as [56]:

$$ {H}^{(2)}=-{\sum}_{i=1}^N{\sum}_{j=1}^N{p}_{ij}.\mathit{\log}{p}_{ij} $$
(5)

where pij is the probability of having or not discrepant pixels in the universe at heights.

This model also considers the normalization of entropy. For this, a boxplot defines that the non-uniform height standards would be 0 and the uniform standards 1. The pixels whose values were 0 were considered non-accessible and the others were accessible. Normalization was determined by the standardization equation proposed by Matos et al. [55]:

$$ {H}_{matr\ alt}=\frac{H^{(2)}-{H}_{min}^{(2)}}{H_{max}^{(2)}-{H}_{min}^{(2)}} $$
(6)

where \( {H}_{max}^{(2)} \) represents the surface with minimum uniform patterns and \( {H}_{min}^{(2)} \) represents the non-uniform pattern surface. We focus on \( {H}_{max}^{(2)} \) values that were represented by the H symbol. The model was developed in the R language using the free software Rstudio [57] (For more details see [55]).

Fractal parameters analysis

An object that behaves like fractal has its fractal parameters well set to a fractal dimension (FD) value. The surface texture of an object is related to the its fractal geometry [46]. However, different objects can have the same texture, but different fractal dimensions [58]. In this research, the fractal dimension evaluated the complexity of the thin films, while providing a qualitative analysis of the texture homogeneity. For this reason, two other new parameters were measured and discussed to complement the fractal dimension. FD was measured using the free software Gwyddion 2.55 [59].

The first parameter is known as fractal succolarity (FS). This parameter defines the connectivity and intercommunication of the surface with a fluid medium through a mathematical model that determines the possible direction of fluid entrance through the analyzed topography. It is known as surface percolation [60]. To determine this parameter, the model of Talu et al. [61] was employed. This model considers the same matrix used in the calculation of surface entropy. The average value of the distribution of heights was determined as a way of defining a limit value. The values below are named 0 and above 1; pixels accessible to water have a value of 0 and pixels inaccessible 1. After some computational routines, the FS values were calculated according to Melo and Conci equation [60]:

$$ FS\left(T(k), dir\right)=\frac{\sum_{k=1}^n{P}_0\left(T(k)\right). PR\left(T(k),{p}_c\right)}{\sum_{k=1}^n PR\left(T(k),{p}_c\right)} $$
(7)

where dir is the water inlet direction, T(k) is boxes of equal sizes T(n), Po(T(k)) is the occupation percentage, PR is the occupation pressure, and pc is the centroid’s position (x, y) of pressure applied to the calculated box. The model also was developed in the R language, using the free software Rstudio [57].

Fractal lacunarity (FL) is a parameter that directly quantifies texture homogeneity [58]. It is a parameter that divides the image into a certain number of boxes, within which the number of gaps is calculated. Initially, it is worth explaining that this parameter is sensitive to scale, unlike the fractal dimension. The lacunarity must decrease depending on the size of the box for the object to be considered fractal. The measurements of this parameter were obtained according to the model proposed by Salcedo et al. [62]. Again, the same binary matrices extracted from the AFM images were used. The model was developed in the Fortran 77 language and compiled using the free software Force 2.0 [63]. After some computational routines recently described by Talu et al. [61], the power-law developed by Lucena and Storic [64] was applied.

$$ L(r)=\alpha .{r}^{\beta } $$
(8)

where L(r) is lacunarity, α, an arbitrary constant, and r is the box size. The exponent β can be estimated as the angular coefficient of the log (r) versus log [L(r)] curve. A displacement of 1 was applied to the curve because the values obtained for the lacunarity were small.

Results and discussion

FTIR analysis

Analysis of FTIR spectra basically showed the absorption bands corresponding to the molecular structure of POEA. Figure 2 shows the FTIR spectra of POEA electropolymerized using 5, 10, 15, 20 and 25 cycles. The band located at 2361 cm−1 was related to the angular deformation of the functional group –OCH2CH3 located at the ortho position of the carbon rings [65]. The band at ∼1165 cm−1 was attributed to a plane bending vibration of C–H [29]. The absorptions at 1579 and 1421 cm−1 were assigned to the quinoid and benzenoid rings, respectively [29, 65]. The band at ∼1022 cm−1 was attributed to the 1–4 substitution on the benzene ring [29]. Finally, the bands between 800 and 700 cm − 1 revealed the occurrence of the 1–3 substitutions [29]. From 5 to 15 cycles, spectra indicate an decrease of the intensity of the absorption band at 1421 cm−1 associated with the benzenoid vibration, as well as an increase of the intensity of the absorption band at 1579 cm−1 associated with –C = C– bands of vibration. Furthermore, a red shift of the band located at 1165 cm−1 assigned to the plane bending vibration of C–H was observed. From 20 to 25 cycles the intensities and position of the bands did not change considerably. These results may suggest the increase of POEA conjugation when the number of the electropolymerization cycles increased, being more evident from 5 to 15 cycles.

Fig. 2
figure 2

FTIR spectra of POEA films

AFM measurements analysis

The surface of a material is the region more reactive than the bulk. It is the region where most of the reactivity phenomena occur. The protection of surfaces against degradation by either corrosive or erosive agents must consider the morphology and uniformity of the surface parameters. Figure 3 shows the AFM images of the used substrate and the thin films deposited by electrodeposition as a function of the number of cycles.

Fig. 3
figure 3

Relevant 3-D AFM micrographs of samples: a #1, b #2, c #3, d #4, and e #5

These images revealed that the number of cycles affected the surface morphology. While substrate #1 presented a small peak surface, from #2 to #5, the rough peaks were larger. The microstructure observed for ITO in Fig. 3a was similar to that presented by Noppakuadrittidej et al. [66]. The growth of the thin film occurred gradually, but not completely for the number of applied cycles. However, previously, Leite et al. [67] reported that these rugged peaks are conductive islands associated with the crystalline part of the POEA. These islands were observed in all samples. This is in accordance with the evolution of the polymer conjugation previously observed in the evaluation of the molecular structure of POEA discussed in section 3.1.

The coalescence of the smaller grains, formed initially due to the electrolytic process, started from #4 and continued at #5, as can be seen in Fig. 3d and e. This observation was also made previously by Mello et al. [21]. Despite the morphology presenting typical structures of POEA, many vacancies were observed, which are related to the growth process of the film [20]. Associated with the growth of the film, the surface roughness also gradually increased as a function of the number of cycles, as shown in Table 1.

Table 1 Main superficial parameters, Sa, Sq, Rsk, and Rku. The average results were expressed as mean value and standard deviation

The lowest roughness was recorded for substrate #1 and this is following the results found in previous works [20, 68, 69]. The highest roughness was observed for #5 (233 nm), which was also following the values reported for chitosan based-films [70]. The increase of roughness was confirmed for both Sa and Sq roughness, respectively. This phenomenon can be also attributed to the growth of the film by the coalescence of the smaller particles.

The values of asymmetry (Rsk) and kurtosis (Rku) were higher for substrate #1, as shown in Table 1. This shows that the height distribution of the substrate was very asymmetric and leptokurtic. The films height distribution presented positive asymmetry values and close to zero (#2 to #5). This asymmetry revealed that the height distribution was practically homogeneous for all samples. However, all films also showed a leptokurtic pattern, since kurtosis was greater than 3 [71]. Platykurtic patterns may be visualized perhaps if the growth of the film was completed.

Surface microtexture

The furrows generated by the topographical profile and the contour lines generated by the particles of the films are represented in Fig. 4. Certainly, this is an interesting qualitative aspect of the surface microtexture obtained from the MountainsMap software. These images can provide a qualitative presentation of the surface microtexture through the furrows [61]. Figure 4a shows the microfurrows generated for the substrate surface. Some regions appeared with the presence of deeper channels at the bottom. The contour lines in Fig. 4f revealed how the surface was followed by differences between peaks and valleys.

Fig. 4
figure 4

Graphical representations of the furrows (#1 to #5 ae) and lines contour (#1 to #5 fj)

Figure 4b–e revealed that the difference between peaks and valleys was strongly affected by the cycle number. Considering smaller cycles, as in #2 and #3, the particles agglomerated revealing large furrows. For larger cycles, there was a more uniform distribution. This arrangement of the furrows showed that coalescence promoted the casting of particles into more uniform structures. Theoretically, the appearance of these evenly distributed microchannels can make it difficult for fluids to penetrate the sample. This fact can be associated with the possibility of protection against corrosive agents.

The photosimulations shown in Fig. 4g, j presented a simulation of the behavior of the particles on the surface of the thin films. For lower cycles, the particles were coalescing (regions highlighted in blue). On the other hand, for higher cycles, the particles were already more fused. In combination with the topographical images in Fig. 4d, e, the peaks suffered a flattening for these higher cycles (#4 and #5). This is probably a result of particle coalescence.

The quantitative parameters associated with the furrows are shown in Table 2. The maximum depth of the furrows increased according to the increase of the number of cycles. Higher cycles resulted in maximum depths twice that of lower cycling. The difference between peaks and valleys for these films was greater because the number of particles that did not complete the coalescence was smaller. Besides, the average depth of the furrows also increased due to the increase in the number of cycles, showing that this difference is not just an observation of the extreme values. The average furrow density, in turn, was higher for the substrate, while higher cycles resulted in films with higher furrow e density per area.

Table 2 Parameters of samples furrows

The texture distribution of the films is shown in Fig. 5. Textures presenting more random distribution exhibited a strongly isotropic behavior. This occurs more for controlled surfaces than for real ones, which are generally anisotropic [72], such as wood [73]. Isotropy was lower for the substrate than any film. Figure 5a revealed that the texture presented a very random distribution, which was due to the great difference between the peaks and valleys.

Fig. 5
figure 5

Representation of surface texture directions of the more relevant analyzed samples for a #1, b #2, c #3, d #4, and e #5

Figure 5e shows that after 25 cycles the texture behaved more organically than at lower cycling. However, when we combined these results with the data in Table 3, the most isotropic behavior occurred for #2 and the most anisotropic for #4. Anisotropy does not necessarily mean that the material has a homogeneous texture. Materials whose texture can be adjusted according to a preferred direction can be of great interest as corrosive protectors.

Table 3 Surface Texture Isotropy (STI) and their respective directions for more relevant analyzed samples

Texture directions allowed to evaluate sensible directions. Samples #2 and #3 exhibited preferred directions at small angles (0.006748° and 0.003731°) for the third direction. However, for samples #4 and #5, these values were lower (0.006948° and 0.01703°) for the first direction. This change can be associated with the process of crystallization of the material by the coalescent phases. According to Heshmati et al. [74], phase coalescence in a polymer is divided into static and dynamic processes. Probably, for minor cycles, a dynamic process occurred, while a static process was predominant for larger cycles.

Furthermore, in the second direction, the angles were random so that this direction did not provide information about the change in the texture of the thin films. However, the grain crystallization process was not complete, indicating that the texture of the films remained without completing their formation. Moreover, the more anisotropic behavior for higher cycles allowed evaluating the formation of the material texture.

Fractal parameters analysis

The fractal behavior of thin films was assessed using advanced fractal parameters. Many studies have reported that fractal theory can be a tool to evaluate the behavior of surface texture [72, 73, 75,76,77,78,79,80,81]. The data of these measurements are shown in Table 4.

Table 4 The results of Fractal Dimension FD, Topographic Entropy (H), Fractal Succolarity (FS), and Lacunarity Coefficient (β). The average results were expressed as mean value and standard deviation

The fractal dimension was performed by cube counting method and evaluated the texture homogeneity, as made in others works, e.g., [75, 82, 83]. The smallest measured fractal dimension was #1, while the largest was #4. However, all samples were similar. Therefore, this measure revealed a semiregular behavior of the surface texture. Therefore, the fractal dimension alone was not able to reveal which film had the most homogeneous surface texture.

All films also presented strong topographical uniformity, as H was found around 1 [84, 85]. The heights distribution was approximately homogeneous, as discussed for the superficial asymmetry, and the topographic uniformity to stabilize after #3, since the values for #4 and #5 were the same. When a surface exhibits H close to or equal to 1, the probability of discontinuity points is lower [55]. This is positive because the main problems related to corrosion or erosion of materials occur due to surface or structural failures. Therefore, there would be no points that allow flaws in the films, which was also observed by Talu et al. [61]. However, it is still important to specifically evaluate the texture of the films. To obtain these responses, the percolation of the films was assessed by fractal succolarity and fractal lacunarity (Table 4).

According to Melo and Conci, the ideal fractal succolarity to have a good percolation is 0.5 [60]. The films presented values above 0.5. For the two largest cycles, this value was above 0.6, showing that the films presented an almost ideal percolation. These films were expected to exhibit this characteristic because they must be more resistant to the entrance of fluids, which may be corrosive. Additionally, the texture of the material is also dependent on these entrance directions because it can be affected by the erosion caused by corrosive agents. If the material has low percolation, it is more difficult for the texture to change. On the other hand, Fig. 6 revealed that the lacunarity decreased as a function of the box size for all samples. The films behave like a fractal object, presenting structures that are repeated along the surface, regardless of the scale. The highest value of the lacunarity coefficient was found in #1, while the lowest value occurred in #3. However, the most adjusted model for the lacunarity coefficient was observed for sample #5, as shown in Fig. 6e.

Fig. 6
figure 6

Graphical representation of linear regression for the calculation of the lacunarity coefficient in a #1, b #2, c #3, d #4, and e #5

According to Salcedo et al. when β value is lower, the texture homogeneity is greater [62]. Moreover, Talu et al. state that when texture distribution is more uniform, the surface microtexture texture is also homogeneous [61]. This was observed in sample #3. Nevertheless, from # 3 to #5 the values remained in the same decimal place, differing substrate #1 and film #2. For this reason, the film formation process homogenized the film’s texture. While the fractal dimension was not conclusive, the lacunarity quantitatively differentiated the surface microtexture of the films. Thus, as the number of cycles increased the texture of thin films, it became more homogeneous. We can attribute the homogenization of the surface texture to the increase in POEA conjugation for longer cycles. Probably, when the conjugation increased the energy difference between the representative molecular orbitals decreased, promoting a compaction of the structure and surface microtexture of POEA thin films. The main effect of this phenomenon was the closing of gaps in the surface, which allowed a greater homogenization of the surface texture.

Conclusions

In this work, we successfully synthesized POEA thin films by electrodeposition on the ITO substrate to evaluate morphology and texture using image processing. The molecular structure of thin films was studied using cyclic voltammetry and FTIR. The AFM technique was used to evaluate the morphology and microtexture of the thin films through topographic images. Image processing was performed using MountainsLab software. Molecular structure revealed the presence of absorption bands commonly associated to the POEA, whose polymer’s conjugation increased for longer cycles. The images revealed that the morphology of the films was affected by the number of cycles applied to the electrodeposition. Likewise, the microtexture changed when the number of cycles increased. The microtexture revealed more isotropic materials for smaller cycles and less isotropic materials for larger cycles. This behavior was associated with the incomplete grain coalescence process. Besides, new fractal parameters confirmed the change to microtexture, quantifying the topography uniformity and texture homogeneity. These new measurements used to characterize the texture presented interesting results. The fractal dimension was not enough to report conclusive results about texture, while fractal succolarity and lacunarity presented suitable results on the microtexture’s homogeneity. Topographic entropy further revealed that the height distribution of all films was uniform. These results revealed that these tools can be of great interest in the characterization of surfaces for technological application. They represent important information because the texture of POEA thin films is of great importance in the field of corrosion protection.