Introduction

Currently, one of the most important issues in several regions of the globe is water inadequacy. This inadequacy is caused by several factors, such as global warming, maximized urbanization, explosive population growth, excessive usage and altered water resource usage patterns. Water shortage is the issue limiting economic and social development in various cases. Water purification is required wherever water is saline; as much as 98% of the water in the world is saline (seawater, saline groundwater and saline seas) and therefore not appropriate for use as a beverage or in agriculture [1].

Desalination processes separate saline feed water, which may be brackish water or seawater, into product water with low salinity and concentrated brine. Such separation methods require energy input to manage many parameters, such as those of the separation method itself and the salinity and temperature of the incoming saline water [2]. The minimization of this needed energy is crucial because such minimization increases the value of the product water and reduces the generation of greenhouse gases and therefore reduces the disposal of various pollution products into the ocean or atmosphere. Therefore, a mechanism to decrease energy consumption is necessary; for this reason, energy recovery devices are used. The main function of an energy recovery device is to recover much of the energy held in the pressurized RO concentrate stream. Before continuing to disposal or treatment, the concentrate is sent through an energy recovery device, and the recovered energy is used to partially power the pumps [3].

In groundwater, the concentrations of many ions can vary within wide limits, and such variation can have a marked impact on the pitting and crevice corrosion of stainless steel (SS). Such materials tend to undergo pitting corrosion or other local corrosion in media containing aggressive ions, such as chloride [4]. Modern surface modification technology is becoming increasingly necessary in the enhancement of the corrosion resistance of many materials. If aluminiferous materials are not custom made, corrosion can propagate very rapidly [4].

Conducting polymers have become one of the most attractive subjects of investigation in recent decades. Their unique properties, such as electrical conductivity, reversible electrochemical behaviour and the possibility of both chemical and electrochemical synthesis, make them useful in a wide range of applications [4].

These materials are utilized in various technical applications, including chemical and electrochemical sensors [5], corrosion protection [6] and the removal of toxic materials [7]. The most popular conducting polymer is polyaniline (PANI) due to its acceptable chemical stability, comparatively high levels of electrical conductivity and monomer availability and ease of polymer synthesis. Several studies have targeted the corrosion protection performance of conducting polymers [8], particularly PANI [9]. PANI is often polymerized directly on a metal substrate acting as a protective primer film [10] or can alternatively be used as an additive in blends with insulating polymers [11]. Such blends are preferred (especially if a low concentration of PANI is adequate for active functionality) since the desired mechanical properties of coatings are often provided by the proper choice of the host polymer matrix.

Polymers can also be encapsulated for many reasons; however, the primary reasons are to shield materials from atmospheric and alternative types of chemical attack and for the separation of polymer chains to reduce inter-chain effects and improve the mechanical, thermal and chemical stability [12].

Zeolites are a category of micro-porous crystalline alumina silicates based on a 3D network of oxygen ions. Zeolites are made from AlO4 and SiO4 tetrahedra linked to each other by shared oxygen ions [13]. The encapsulation of PANI in zeolite channels may be a promising strategy to insert polymer chains into the nanometre-sized zeolite channels to obtain nanocomposite materials with novel unique properties. A nanocomposite of PANI with zeolite prepared by encapsulation will exhibit electronic, mechanical, chemical and optical properties higher than those of pure conducting PANI [14].

This work introduces a new anticorrosion coating that depends on the encapsulation of PANI chains within zeolite X channels. The prepared P/Z composite was characterized by infrared (IR) and UV–visible spectroscopy, scanning electron microscopy (SEM), transmission electron microscopy (TEM), thermogravimetric analysis (TGA), energy-dispersive X-ray (EDX) spectroscopy and X-ray diffraction (XRD) and was applied as a coating on the surface of various materials including SS (304 and 316 grade), aluminium and carbon steel. The anticorrosion properties were studied by weight loss, potentiodynamic techniques and electrochemical impedance spectroscopy.

Experimental

Materials and methods

Aniline was obtained from Alpha Chemika, India, ammonium persulphate was obtained from Oxford Laboratory, India, and formic acid was obtained from El-Goumhouria Co., Cairo, Egypt; these materials were used without further purification. Sodium hydroxide and HCl were purchased from Fluka Chemical Co. Zeolite X was obtained from the National Research Centre (NRC), Egypt. Carbon steel, 304 and 316 stainless steel (SS304 and SS316, respectively) and aluminium were obtained from a local market, Egypt (Table 1 shown there composition) and used for corrosion studies. Prior to all measurements, samples were abraded with a series of emery paper from 180 to 1200 grade. The specimens were thoroughly washed with bi-distilled water, dried and degreased with acetone. The test solution was saline water with a TDS of 100,000 ppm.

Table 1 Chemical composition of carbon steel, SS304 and SS 316

Synthesis of polyaniline/zeolite X composite

The P/Z composite was synthesized via oxidative polymerization in which 5.0 mL aniline was vigorously stirred in 250 mL of HCl (1 M) and then cooled to below 5 °C (by using an ice bath). Zeolite X with a concentration of 1% (w/w) with respect to aniline monomer was added to the solution. A total of 250 mL of a pre-cooled 0.3 M (NH4)2S2O8 ammonium persulphate solution was slowly added under vigorous stirring to the monomer solution over a period of 30 min. The reaction mixture was stirred for approximately 2 h at low temperature (0–5 °C) and left unstirred overnight at room temperature. When the reaction was completed, the dark green precipitate resulting from the polymerization reaction was filtered and washed with distilled water and then with dilute HCl solution until the washing liquid was colourless. To remove oligomers and other non-polymeric impurities, the precipitate was washed thoroughly with methanol and distilled water. The polymer was dried at 50–60 °C in an oven, powdered in a mortar and stored for processing.

To make PANI soluble in formic acid for coating and composite formation, the resulting polymer composite was treated with 0.5 M NaOH solution for 2 h and then washed with distilled water and dried in an oven at 60 °C. A total of 0.5 g of base-treated PANI, emeraldine base (EB), was dissolved in 50 mL of formic acid. The polymer solution was filtered to remove any non-dissolvable solids.

For preparation of the coating solution, 5 g of nylon 6 was mixed with 50 mL of polymer composite (EB) in formic acid (1% w/v) in a beaker (100 cm3), stirred for two hours at room temperature and left for another 2 h without stirring. The excess solvent was evaporated by heating the coating solution at ~ 60 °C in an oven, leaving the substrate coated with a solid thin film.

Characterization studies

FTIR analysis

The FTIR spectra of PANI/zeolite X composite were taken with KBr discs using FTIR spectrophotometer (460 plus) in the range of 4000–400 cm−1 in Micro analytical centre at Cairo University, Egypt.

UV spectra analysis

The UV–Vis spectra of the PANI/zeolite X composite in the wavelength range of 200–800 nm were recorded with UV-3101PC Shimadzu in Micro analytical centre at Cairo University.

Scanning electron microscope (SEM) analysis

The scanning electron micrograph of polyaniline, zeolite X and PANI/zeolite X composite was analysed using Model Quanta 250 FEG (Field Emission Gun) with accelerating voltage 30 kV, FEI Company, Netherlands, in the Egyptian Mineral Resources Authority, Central Laboratories Sector.

X-ray diffraction (XRD) analysis

The powder X-ray diffraction (XDR) of polyaniline, zeolite X and PANI/zeolite X composite was analysed using Bruker D8 advance instrument with CuKα1 target with secondary monochromator 40 kV, 40 mA, in National Research Centre, Dokki, Giza, Egypt.

Transmitting electron microscope (TEM) analysis

The transmitting electron micrograph of polyaniline, zeolite X and PANI/zeolite X composite was analysed using the JEOL JEM-2100 LaB6 transmission electron microscope (TEM) at National Research Centre, Egypt. The JEOL JEM-2100 LaB6 transmission electron microscope (TEM) is equipped with the high-resolution (HRP) style objective-lens pole piece to achieve point resolution as small as 0.23 nm—small enough to observe lattice structure in many crystalline materials. The instrument operates at a high tension of up to 200 kV, corresponding to an electron wavelength of 2.5 pm. Image acquisition is performed with a Gatan Orius bottom-mount, 14-bit, 11-megapixel CCD camera.

Thermal (TGA) analysis

Thermogravimetric (TGA) and differential (DTG) thermogravimetric analyses were carried out under N2-atmosphere (30 mL/min) using detectors model TGA-50H Shimadzu thermal analyser. The rate of heating of the sample was kept at 10 °C/min in Micro analytical centre at Cairo University, Egypt.

Energy-dispersive X-ray (EDX) analysis

The energy-dispersive X-ray analysis of PANI/zeolite X composite and stainless steel (bare and coated) were analysed using EDX unit (energy-dispersive X-ray analyses), with accelerating voltage 30 kV, magnification 14 × up to 1,000,000 and resolution for Gun) FEI Company, Netherlands, in the Egyptian Mineral Resources Authority, Central Laboratories Sector.

Corrosion studies

Weight loss measurements

Gravimetric corrosion measurements were carried out; both bare and coated prepared samples were cut into “1 × 1 × 3 cm” coupons and immersed in 100 mL of saline water. The difference in the mass of coupons before and after immersion was determined by using an analytical balance with accuracy 0.001 mg, and the immersion time was 72 h at 25 °C. The investigations were carried out at open air without aeration.

The corrosion rate (CR) (Eq. 1) for bare and coated samples was calculated from the following equation:

$${\text{CR}} = \frac{{\left( {W_{1} - W_{2} } \right)}}{AT}$$
(1)

where W1 is the weight of the specimen before corrosion, W2 is the weight of the specimen after corrosion, A is the total area of the specimen, T is the corrosion time, and CR is the corrosion rate.

Additionally, the inhibition efficiency (IE) (Eq. 2) of the prepared coating for the corrosion of these samples was obtained from the CR value by using the following equation:

$${\text{IE}}\,\left( \% \right) = \begin{array}{*{20}c} {\left( {\frac{{{\text{CR}} - {\text{CR}}^\circ }}{\text{CR}}} \right) \times 100} \\ \end{array}$$
(2)

where CR and CR° are the corrosion rates of the bare and coated samples, respectively.

Potentiodynamic polarization studies

Electrochemical experiments were performed in a traditional three-electrode system consisting of working, auxiliary and reference electrodes. Working electrodes with a surface area of 2 cm2 were used; the chemical compositions are given in Table 1. The electrodes were abraded with a series of emery paper from 180 to 1200 grade. Then, the samples were cleaned with acetone, washed with distilled water and quickly inserted into the cell. All experiments were carried out in 100 mL of test solution. A saturated calomel electrode (SCE) and platinum electrode were used as reference and auxiliary electrodes, respectively. A stirred electrolyte, saline water at 25 ± 3 °C, was used as a corrosive medium. The open-circuit potential of the metal immersed in the test solution was monitored using an electronic multimeter (Type E scord-EDM-2116). The electrode was allowed to stabilize in the electrolyte until the potential change was < 0.1 mV/min. This potential was taken as the steady-state potential.

Potentiodynamic polarization studies were carried out in the potential range ± 200 mV versus corrosion potential (Ecorr) at a scan rate of 0.5 mV/s. The pitting susceptibility was characterized by means of cyclic anodic polarization curves. The current limit for reversing the potential scan was 10−3 A/cm2. The studies were performed with a model 352/252 corrosion measurement system, which consists of an EG&G potentiostat/galvanostat, model 273 A. The scan direction was reversed at the anodic limit. In subsequent analysis of the digitally recorded data, the pitting potential (Epitt) was defined at a sustained anodic current density, and the re-passivation potential was taken to be the point at which the reverse scan current crossed that of the forward scan. Tafel extrapolations were used to obtain the corrosion current density (icorr) and thus calculate CR from the polarization scans.

Electrochemical impedance spectroscopy

Electrochemical investigations were carried out in a three-electrode conventional glass cell containing the test solution at 25 ± 3 °C using an Autolab PGSTAT 302N potentiostat/galvanostat. The potential of the working electrode was measured against an Ag/AgCl reference electrode (E° = 0.203 V versus SHE), while pure Pt foil was used as a counter electrode. The exposed surface area was 2 cm2. Electrochemical impedance spectroscopy (EIS) of the electrodes was carried out with an input signal of 10 mV peak to peak in the frequency range from 100 kHz to 10 Hz with an alternating current of 0.1 mA. Nyquist and Bode plots were acquired by Nova 1.11.2 software from Autolab. Before each experiment, the working electrode was immersed in test solution until a steady state was reached; then, the impedance data were recorded and fitted to the theoretical data according to the proposed equivalent circle.

In the equivalent circuit (Fig. 6i), Rs represents the solution resistance, Rct represents the charge transfer resistance, and CPE represents a constant phase element. An excellent fit was obtained with this model for all experimental data. The CPE represents the deviation from the true capacitance behaviour. To describe a frequency-independent phase shift between an applied alternating potential and its current response, CPE is used instead of capacitance (C).

CPE (Eq. 3) is defined by the following mathematical expression [15, 16]:

$${\text{ZCPE}} = \frac{1}{{Y_{0} \left( {jw} \right)^{n} }}$$
(3)

where ZCPE represents the impedance of CPE, Y0 is a proportional factor, w is the angular frequency, \(j = \sqrt { - 1 }\) is the imaginary number, and n is the exponential term of CPE. n has many different definitions and can be associated with a distribution of reaction rates [16] and a non-uniform current distribution [17, 18].

The angular frequency (ω) is the angular frequency at which the imaginary impedance (Z″) is maximum and can be calculated as:

$$\omega = \left( {\frac{1}{{R_{\text{c}} Y_{0} }}} \right)^{1/n}$$
(4)

Therefore, C (Eq. 5) of the double layer for both cases is calculated using the following equation:

$$C_{\text{dl}} = \left( {Y_{0} R_{\text{ct}}^{1 - n} } \right)^{{\frac{1}{n} }}$$
(5)

where Cdl is the double-layer capacitance, Y0 is the magnitude of CPE, Rct is the charge transfer resistance, and n is the CPE exponent. Depending on n, CPE can represent resistance (Y0 = R, n = 0), capacitance (Y0 = C, n = 1), inductance (Y0 = L, n = − 1) or Warburg impedance (n = 0.5, Y0 = W) [19].

IE (%) is calculated using the following equation (Eq. 6):

$${\text{IE}}\,\left( \% \right) = \begin{array}{*{20}c} {\left( {\frac{{R_{\text{ct}} - R_{\text{ct}}^{0} }}{{R_{\text{ct}}^{0} }}} \right) \times 100 } \\ \end{array}$$
(6)

where Rct and R 0ct are the charge transfer resistances for coated and bare steel, respectively.

Results and discussion

Characterization studies

The Fourier transform infrared (FTIR) spectra of zeolite X, PANI and the P/Z composite containing 1 wt% zeolite X are shown in Fig. 1. The absorption bands observed at 3436 cm−1 and 1690 cm−1 were attributed to the N–H stretching vibration mode and NH2 deformation in the aniline unit, respectively, which are characteristic of PANI [20, 21]. The asymmetric vibration mode of C=C in the quinoid and benzenoid ring system in PANI was observed at 1586 and 1490 cm−1, respectively. The C-N stretching vibration mode of the quinoid ring of PANI was observed at 1303 cm−1, and the band at 1233 cm−1 corresponded to the benzenoid ring system. The C–H bending mode (in-plane vibration) was observed at 1147 cm−1, which is evidence for the polymerization of PANI. Out-of-plane C–H deformation vibrations of the aromatic ring were observed at 822 and 712 cm−1 [22]. These data agreed well with the results from other previous papers [23, 24]. For zeolite X, there was a noteworthy change from 3463 to 3441 cm−1, which was attributed to silicon-hydroxyl groups, while the bands at 1080 cm−1 and 1633 cm−1 belonged to the absorption of hydroxyl water and hydroxyl, respectively, by Si–OH [25]. Characteristic bands of zeolites have previously been found [26] at 860–1230 cm−1 and 420–500 cm−1; here, bands were found at 1194 and 465 cm−1, as shown in Fig. 1b. The first band at 1194 cm−1 was assigned to an asymmetric stretching mode, and the other band was assigned to a bending mode of the T–O bond, where T refers to Si and Al. The crystal structure of zeolite may depend on these bands or others.

Fig. 1
figure 1

Infrared spectra and XRD pattern of a polyaniline, b zeolite X and c polyaniline/zeolite X composite

In the spectrum of the P/Z composite (Fig. 1c), the 3436 cm−1 band shifted to 3428 cm−1 due to the stretching frequency of the N–H group in PANI [27]. This spectrum also showed bands at 1581 cm−1 and 1489 cm−1, which were attributed to the quinine and benzene rings observed at 1586 cm−1 and 1490 cm−1 in PANI. New absorption peaks at 1047, 538 and 514 cm−1 could be assigned to the presence of zeolite in the prepared composite [28]. Therefore, the FTIR spectra of the P/Z composite exhibit bands characteristic of both PANI and zeolite X, which confirmed the presence of both components in the P/Z composite.

The UV–Vis absorption spectra for PANI and the P/Z composite in DMSO solvent are shown in Fig. 2. The spectrum of the composite showed a characteristic peak at 339 nm and a broad peak at 623 nm. The first peak corresponds to the ππ* transition and agrees well with the standard band for PANI EB at ~ 330–340 nm [28]. The second peak at 623 nm may be assigned to the exciton transition (which results from the process of charge transfer between the benzenoid ring through the highest occupied energy level and the quinonoid ring through the lowest unoccupied energy level), which is quite weak in these polymers [29]. The oxidation state of PANI was measured from this exciton band, which has been determined at ~ 637 nm for “standard” EB [28]. The UV–Vis absorption spectra of the P/Z composite revealed a blue shift from the peak location for pure PANI, reflecting a diminished conjugated chain length of PANI in the P/Z composite [28, 30].

Fig. 2
figure 2

UV–visible spectra of a polyaniline and b polyaniline/zeolite X composite and the measurement of weight loss of bare (with black colour) and coated (with red colour) for c SS304, d SS316, e Al and f C-steel in saline water

The XRD patterns were recorded for PANI, zeolite X and P/Z composite as shown in Fig. 1. The intensity of the XRD pattern peaks may be influenced by crystallinity or by PANI chain order within the composite structure. In the XRD patterns of zeolite X, peaks were recorded at 2θ = 9.85°, 22.4° and 30.0° (Fig. 1b), and therefore, the presence of these peaks within the P/Z composite proved the existence of zeolite X within the final composite [28]. PANI (Fig. 1a) exhibits a comparatively semi-crystalline nature due to the presence of benzenoid and quinonoid groups within PANI; the patterns show sharp peaks [28]. However, by encapsulation of PANI within the zeolite channels, the alignment and arrangements of PANI chains were improved, and as a result, the intensity of the peaks related to the composite (Fig. 1c) was increased [28, 31].

SEM was used to inspect the surface morphology of PANI, zeolite X and the P/Z composite and estimate the presence and therefore structure of both materials. SEM images of PANI, zeolite X and the P/Z composite are shown in Fig. 3. The zeolite aggregates presented in Fig. 3b contain small crystals denoting short diffusional pathways. These short pathways, in conjunction with the large surface-diffusion coefficients for zeolites, make the inclusion of PANI easier and faster, as indicated by the easy combination of zeolite X and PANI [28]. The SEM image of pure PANI (Fig. 3a) showed a distinct orientation from that of zeolite X. SEM images also demonstrated that the orientation of PANI in the composite structure (Fig. 3c) was decreased in comparison with that of pure PANI due to the increased agglomeration of zeolite. The diameter of the P/Z composite was between 300 and 600 nm, which may be due to the accumulation of single PANI chains released from the zeolite layers (Fig. 3c); it has been reported that one zeolite layer contains many PANI chains [28, 32].

Fig. 3
figure 3

SEM image of a polyaniline, b zeolite X, c polyaniline/zeolite X composite and TEM image of d polyaniline, e zeolite X, f polyaniline/zeolite X composite

Additionally, TEM images of the PANI rods, zeolite X and P/Z composite are shown in Fig. 3. The bright field TEM image corresponding to zeolite X (Fig. 3e) indicates typical hexagonal morphology, whereas the image of PANI (Fig. 3d) presents fibrous morphology and indicates that the dimensions of the PANI fibres ranged from 150 to 200 nm in width [33]. Zeolite X particles were distributed within the polymer matrix inside the PANI chains, as can be determined from Fig. 4f. The dark spots within the chains in the TEM image represent zeolite X particles and demonstrate the presence of both zeolite X particles and PANI rods within the resulting composite.

Fig. 4
figure 4

TGA thermogram and EDX image of a, d polyaniline, b, e zeolite X and c, f polyaniline/zeolite X composite

Pure PANI, zeolite X and P/Z composites were characterized by TGA to assess their thermal stability. The TGA analysis of zeolite X (Fig. 4b) revealed two weight loss regions. In the first region, a weight loss of 13% occurred in the temperature range of 49–113 °C, which corresponds to the loss of water within the zeolite structure [34]. The second weight loss region was above 200 °C and could be attributed to the complete combustion of organic substances in the zeolite X structure, such as the breakdown of the bonds between the silicon and oxygen that make up the zeolite X structure [35, 36]. The PANI TGA thermogram (Fig. 4a) showed two distinct stages of weight loss. An initial weight loss of 25% was observed over the range of 100–250 °C. This result is attributed to the loss of moisture, low molecular weight oligomers, and residual solvent and is consistent with a number of previous reports by other groups. The second weight loss of 60% indicated that PANI began to degrade at 300 °C and was completely decomposed at 630 °C [37]. The TGA analysis of the P/Z composite (Fig. 4c) showed that the weight loss at 30–200 °C corresponds to the removal of water molecules [31]. PANI chains within the composite blocked a part of the active surface of the zeolite X framework for the bonding of water molecules [33]. The augmented thermal stability of PANI in the P/Z composite can be explained by the strong interaction between PANI and zeolite X, which restricts the thermal motion of PANI chains.

To show the elemental distribution of the composite material, EDX spectroscopy was used. The results indicated the incorporation of PANI chains inside the zeolite X structure. For PANI (Fig. 4d), only peaks corresponding to C, O and N were displayed, and a high carbon content was observed [38]. The EDX spectrum for zeolite X (Fig. 4e) showed Al, Si, Na and other peaks, with high Al and Si contents [39]. The presence of bands attributed to aluminium and silicon within the EDX spectrum of the composite (Fig. 4f) indicated the incorporation of PANI into the zeolite X structure.

Corrosion studies

Weight loss measurements

The weight loss of carbon steel, 304 and 316 SS alloys and aluminium metal samples was determined after 72 h of immersion in saline water for bare and coated samples (Fig. 2c, f). The results showed that the CR of the coated samples was less than that of the bare samples.

The slope of each line (weight loss per unit time; mg cm−2 h−1) corresponded to the CR of the tested samples under the required conditions. The weight loss diminished for the coated samples (i.e. CR was suppressed), and thus, corrosion inhibition was reinforced. By using the calculated CR, the corrosion IE (Eq. 2) of the prepared coating was obtained for the samples. The IE results showed that the prepared P/Z anticorrosion coating had a substantial impact on all tested samples, and the carbon steel inhibition efficiency of 81.19% evidenced the formation of a protective film on the metal surface.

Potentiodynamic polarization studies

Potentiodynamic polarization curves of the metals were collected at polarizing potentials varying from − 200 mV to + 200 mV (versus SCE) at a scan rate of 0.5 mV/s [40] in saline water. The resulting currents were plotted on a logarithmic scale. The numerical values of the variation in icorr, Ecorr, slope (βa and βc) and CR for the coated and bare samples are shown in Table 2. The cathodic and anodic curves exhibited Tafel-type behaviour. Cyclic polarization was used to test pitting corrosion in the SS and aluminium samples. The method of cyclic polarization includes scanning the potential until reaching a vertex potential and reversing at the current threshold after crossing the vertex potential. The pitting corrosion of SS and aluminium is manifested by an increase in current upon achieving a specific anode potential, Epitt. According to the current understanding of the pitting corrosion process, Epitt represents a critical threshold value where metastable pit nuclei within the passive state of SS may be transformed into stable growing pits when the passive formation breaks down [41].

Table 2 Corrosion potential (Ecorr), corrosion current density (icorr) calculated by Tafel extrapolation method

The polarization corrosion curves of bare and coated SS304 in saline water are shown in Fig. 5a, b, respectively. A summary of the overall results, including βa, βc, Ecorr, icorr and CR (MPY), is presented in Table 2. In the coated sample, there was a significant increase in βa and βc due to the formation of a protective layer. Changes in βa and βc may correspond to completely different mechanisms in the process of corrosion inhibition. A decrease in Ecorr from − 266.6 mV (bare sample) to − 335.5 mV (coated sample) is shown in Table 2; icorr decreased from 5.287 to 1.018 µA/cm2, and therefore, CR decreased from 2.403 MPY for the bare electrode to 0.3132 MPY for the coated one. These results showed that the CR of bare steel is greater than that of coated steel in the test solution. These effects could also be due to chloride ion (Cl) penetration, which causes film breakdown and initiates anodic dissolution of the alloy. From these data, the P/Z composite coating protected the alloy surface from corrosive ion attack.

Fig. 5
figure 5

Polarization curves of a, b bare and coated SS304, c, d bare and coated SS316, e, f bare and coated Al and g, h bare and coated carbon steel immersed in saline water

The corrosion protection of P/Z-coated SS316 (Fig. 5d) in saline water was estimated by Tafel extrapolation plots and compared with that of the bare sample (Fig. 5c). The Tafel parameters including Ecorr, icorr, βa, βc, and therefore, CR (in MPY) were recorded and are given in Table 2. The Ecorr of bare SS316 was − 283.9 mV, but that of coated SS316 was − 288.0 mV. The icorr of bare steel (2.407 µA/cm2) was greater than that of coated steel (1.205 µA/cm2). These data showed that there was a decrease in the magnitude of icorr and a rise in the Tafel constants. Additionally, Ecorr for the coated SS316 was less than that of bare SS316. All of these results led to a decrease in CR for the coated SS316; thus, corrosion resistance in this medium was shown by the P/Z coating [42].

The potentiodynamic polarization curves for bare and P/Z-coated Al electrodes in the test solution are shown in Fig. 5e, f, respectively. The Ecorr of the coated Al electrodes was shifted in the positive direction compared to that of the bare electrode (Fig. 5f). Ecorr increased from − 860.0 mV for bare Al to − 820.2 mV versus SCE for the P/Z-coated Al electrode. The positive shift in Ecorr indicated the protection of the Al surface by the P/Z coating (anodic protection) [43]. Both the cathodic and anodic currents decreased significantly when Al was coated with P/Z. The values of Ecorr, icorr, βa, βc and CR (in MPY) obtained from these curves are given in Table 2.

The potentiodynamic polarization curves of bare and coated carbon steel immersed in saline water at room temperature (25 ± 3 °C) are shown in Fig. 5g, h, respectively; the corrosion parameters are given in Table 2. Upon immersion of bare carbon steel in the test solution, Ecorr was recorded at − 658.1 mV versus SCE. For the coated carbon steel, Ecorr shifted in the positive direction to − 610.9 mV versus SCE. This shift indicated that a film had been formed on the anodic sites of the metal surface [44]. The formation of a protective film on the metal surface is further supported by the fact that βa increased from 35.22 * 10−3 to 164.1 * 10−3 mV/dec. Furthermore, icorr diminished from 77.22 to 23.79 µA/cm2. Thus, the polarization study confirmed the formation of a protective film on the metal surface.

Electrochemical impedance spectroscopy

The negative of imaginary impedance plotted against real impedance (Nyquist plot) and corresponding fitting Nyquist plots for bare and coated SS304 is presented in Fig. 6a–d. The impedance spectrum can be described by a single semicircle in the complex plane. As shown in Fig. 6a, the impedance diagram of bare SS304 is in the shape of a semicircle, and the Rct value representing the charge transfer resistance of the steel/electrolyte interface is equal to the diameter of the semicircle, which was 1.12 Ω cm2; the corresponding diameter for coated SS304 was 55.79 Ω cm2. Bare SS304 exhibited low polarization resistance due to the easy attack of corrosive chloride ions on steel surfaces. The Rct value of coated SS304 represents the charge transfer resistance of the steel/electrolyte interface, and the polymer coating resistance in the test solution was significantly higher than that of the bare steel due to the inhibition of electron transfer to the polymer from the metal (Table 3). The impedance spectra were fitted and analysed by using an equivalent circuit model (Fig. 6i) that has been used and reported elsewhere to describe the steel/electrolyte interface [45, 46]. The impedance data were best fitted by the CPE model because coatings have irregularities, defects and rough surfaces, which permit the solution to penetrate the coating surface. This widely accepted scheme has been deduced to represent the electrochemical behaviour of metals covered with a coated film [47]. CPE was defined by Eq. (3), ω was defined and calculated by Eq. (4), and Cdl for both cases was calculated using Eq. (5). The impedance parameters, including Rs, Rct, Y0, n, Cdl and IE (%), were calculated and are given in Table 3. As shown in Table 3, the Cdl values tended to decrease for the bare sample and increase for the coated sample, and IE also increased. The decrease in Cdl may be attributed to a decrease in the local dielectric constant and/or an increase in the thickness of the electrical double layer.

Fig. 6
figure 6

Nyquist plots and fitted Nyquist pilots for a, b bare, c, d coated SS304; e, f bare, g, h coated SS316; j, k bare, l, m coated Al; n, o bare, p, q coated carbon steel and i the electrochemical equivalent circuit used to fit the impedance spectra

Table 3 Electrochemical impedance parameters for SS304, SS316, carbon steel and aluminium metal in saline water for bare and coated samples

The typical impedance–frequency Bode plots for bare and coated SS304 samples and therefore the impedance at the lowest studied frequency (0.01 Hz) are shown in Fig. 7a, b. The increase in impedance values for the coated SS is attributed to the growth of the passive film over the surface of the SS electrode and the good behaviour of the tested coating. Additionally, the frequency–phase Bode plots for bare and coated SS (Fig. 7c, d) showed that the maximum phase angle for bare SS304 was 16° and for coated SS304 was 80° and was shifted towards the lower-frequency range (1000–100 Hz for bare) and at higher-frequency range (10,000–1000 Hz for coated SS304). The shifting of the phase angle at the lower frequency was attributed to the formation of double-layer capacitance and the reduction in the anodic surface area of the coating [48]. This phenomenon indicated that the surface was covered with a protective coating layer on the surface. It was apparent from Nyquist plots that the impedance response of SS304 steel changed considerably after being coated.

Fig. 7
figure 7

Frequency Bode modules (a, b) for bare and coated SS304; frequency–phase Bode plots (c, d) for bare and coated SS304; frequency Bode modules (e, f) for bare and coated SS316 and frequency–phase Bode plots (g, h) for bare and coated SS316

The corrosion behaviour of bare and P/Z composite-coated SS316 in the tested medium was revealed by EIS methods. The Nyquist (Fig. 6e) and corresponding fitted Nyquist plots (Fig. 6f) of the impedance behaviour of the bare sample and the Nyquist (Fig. 6g) and corresponding fitted Nyquist plots (Fig. 6h) of the coated samples were modelled by the equivalent circuit depicted in Fig. 6i. The impedance parameters, such as (Rs), (Rct) and (Cdl), derived from these curves are given in Table 3. Rct is the charge transfer resistance of the area at the metal/coating interface at which corrosion occurs and Cdl is the corresponding capacitance. CPE was defined by Eq. (3), and the angular frequency (ω) defined and calculated by Eq. (4) and capacitance (C) of the double layer for each case were calculated using Eq. (5). The EIS Nyquist plots consisted of a single capacitance loop, as clearly observed. The impedance of the coated sample was considerably larger than that of the bare sample. The values of IE (%) were calculated using Eq. (6). The Rct increased from 3.39 Ω cm2 for bare SS to 668.33 Ω cm2 for the coated sample, and Cdl showed an increased value for the coated sample with 99.49% IE.

The typical impedance–frequency Bode plots for bare and coated samples and therefore the impedance (at a frequency of 0.01 Hz) are shown in Fig. 7e, f, respectively. The impedance values for the coated SS were higher than those for the bare SS due to the growth of the passive film on the surface of the SS electrode and the smart behaviour of the tested coating. The frequency–phase Bode plots for bare and coated SS316 in Fig. 7g, h, respectively, showed that the maximum phase angle for bare SS316 was 13° in the lower-frequency range and that the angle for coated SS316 was 32° at a higher frequency. From the above-mentioned results, the P/Z coating inhibited the corrosion of SS316.

The typical Nyquist plot and corresponding fitting impedance plots of bare and coated Al electrodes are shown in Fig. 6j, k, respectively. The plots were recorded at an open-circuit potential in an aqueous solution of saline water. These impedance plots were modelled by the equivalent circuit depicted in Fig. 6i. Although there was excellent agreement between the experimental and simulated data generated using the same equivalence circuit, there was also a substantial distinction between the bare and P/Z-coated Al. The values of the parameters fitted to the experimental data using the circuit of Fig. 6i for bare and coated Al are presented in Table 3. From the measured charge transfer resistance values shown in Table 3, the parameter values of coated Al were considerably different from those obtained for bare Al. CPE, ω and C were defined by Eqs. 35, and IE (%) was calculated by Eq. (6). The Rct value of 106.92 Ω cm2 for coated Al represented an increase from the value of 65.52 Ω cm2 for the bare Al sample, corresponding to a 38.72% protection efficiency.

The typical impedance–frequency Bode plots for the bare and coated Al samples are shown in Fig. 8a, b. The impedance at the lowest studied frequency (0.01 Hz) was 0.6 Ω for the bare sample and 7.6 Ω for the coated Al, indicating an increase for the coated Al in the solution. This increased impedance demonstrated the formation of a protective passive oxide film on the coating surface. Additionally, the frequency–phase Bode plots for the bare and coated Al are shown in Fig. 8c, d, respectively, and show that the maximum phase angle was 2° for bare Al and 17° for coated Al. This result revealed the anticorrosion properties of the prepared P/Z coating with respect to Al.

Fig. 8
figure 8

Frequency Bode modules (a, b) for bare and coated Al; frequency–phase Bode plots (c, d) for bare and coated Al; frequency Bode modules (e, f) for bare and coated carbon steel and frequency–phase Bode plots (g, h) for bare and coated carbon steel

The corrosion inhibition behaviour of carbon steel after immersion in the test solution was investigated by EIS. The impedance Nyquist diagram and the fitted Nyquist diagram for bare and coated carbon steel are shown in Fig. 6n, o, respectively. The equivalent circuit model for this technique is shown in Fig. 6i. The values of Rs and Rct were obtained from the Nyquist plots. CPE, ω and C were defined by Eqs. 35, and IE (%) was calculated by Eq. (6). The impedance parameters for the corrosion of carbon steel are given in Table 3. For the coated sample, Rct and IE (%) were increased: the Rct value for bare carbon steel was 80.64 Ω cm2, and the value for the coated sample was 172.52 Ω cm2. The complex impedance plots show one capacitive contribution represented by one semicircle for the coated sample, which may be due to the resistance and capacitance of the coating [49, 50]. Measured impedance loops are often depressed semicircles with their centre below the real axis. The increase in impedance was attributed to the growth of passive film thickness and the increase in film resistance itself towards the penetration of aggressive ions through the film [51]. The increase in impedance was more significant for the coated sample than for the bare sample.

The frequency Bode plots for bare and coated steel are shown in Fig. 8e, f, respectively, whereas the frequency–phase Bode plots are shown in Fig. 8g, h for bare and coated samples, respectively. The frequency–phase Bode plots showed that the maximum phase angle was at 35° for coated steel, which was higher than that for the bare sample (0.6°). From these results, the P/Z coating acts as a real barrier against the penetration of ions from solution.

Conclusion

From this study, the following conclusions were drawn. The P/Z composite coating was successfully prepared by the traditional oxidation polymerization method; the integration of the polyaniline within the zeolite channels was confirmed by FTIR, UV–visible, TGA, SEM, TEM, EDX and XRD investigations which proved the successful synthesis of the composite coating. SEM and TEM images confirmed the presence of polyaniline chains inside zeolite X channels. Corrosion and electrochemical techniques were used to evaluate the coating protection of the studied metals and alloys. Weight loss technique, potentiostatic polarization (Tafel polarization) and EIS spectroscopy techniques showed an adequate effect of the P/Z coating in corrosion mitigation on the surface of various materials including SS (304 and 316 grades), aluminium and carbon steel samples in saline water.