1 Introduction

Due to their high mechanical power, tremendous availability and low cost, metals and alloys are widely used as construction supplies in many industries [1,2,3,4]. However, most metallic materials, particularly during acid cleaning and pickling processes, are extremely unstable and susceptible to corrosive degradation when exposed to aggressive electrolytes [5,6,7]. Corrosion is a serious issue in the oil and gas sector, as it accounts for a large amount of the company's total costs each year. It causes leaks in pipelines, tubing, tanks and other equipment, causing in process shutdowns, contamination and significant financial losses. The rock reservoir stimulation technique is used to boost productivity utilising hydrochloric acid, formic acid, hydrofluoric acid and acetic acid in the gas and oil drilling industry’s most significant stage, well acidizing. In particular, HCl solutions are widely employed for scale removal treatments to remove carbonated minerals and iron oxides [8]. HCl is frequently employed for acidifying treatments due to the formation of metal chlorides, which are extremely soluble in the aqueous media [9,10,11]. Other acids are less effective than HCl because phosphate, nitrate and sulphate salts are less soluble in aqueous solutions than chloride salts [12]. As a result, equipment must be protected at all times when operating with acidic fluids. Corrosion scientists and engineers are currently developing and implementing many methods of corrosion safety to protect metal deterioration such as coating, alloying, inhibitors and dealloying [13,14,15,16]. The application of organic compound as corrosion inhibitors is one of the most prominent, efficient and economical possible methods due to their simple and cost-effective synthesis, in addition to their high inhibition efficiency and ease of application [17,18,19,20,21,22,23,24,25]. Most of the organic inhibitors, however, are poisonous in nature and their synthesis involves multi-step. Plant extracts, amino acids, carbohydrates and their derivatives may also be used as alternate sources of conventional corrosion inhibitors that are environmentally friendly. Multiple carbohydrates and their derivatives have recently been identified as effective metal and alloy corrosion inhibitors [26,27,28,29]. The existence of polar functional groups increases their effectiveness in corrosion inhibition by increasing their molecular size and increasing their solubility in polar electrolytes. Looking forward, the environmentally friendly behaviour, synthesis, characterisation and utterance of carbohydrates and their derivatives in polar electrolytic media, including HCl and H2SO4, polar functional groups may also promote the solubility of carbohydrate polymers. Biopolymers are the largest category of carbohydrates, which produced or extracted from living organisms [30, 31]. Chitosan is the one of promising biopolymers with unique by the amino group active towered, reaction, modifications, biological activity and fitted with various applications [32, 33]. Due to their natural and biological origin, chitosan and its derivatives, similar to carbohydrates, can be considered bio-inspired and bio-degradable materials suitable for various industrial applications, including corrosion inhibition [34, 35]. Nanomaterials doped biopolymer is the new trend of science which produced the new materials characterised by both features of neat source as well as overcome the drawbacks of the native materials [36,37,38]. In a variety of applications, zinc oxide nanoparticles (ZnO NPs) have been proposed as an effective antibacterial agent. Their biological toxicity and environmental effects, on the other hand, have restricted their practical application [39, 40]. To address this, NPs are combined with antimicrobial polymers to minimise cytotoxicity while also improving stability and performance without compromising their functional properties. Chitosan contains a lot of hydroxyl and amino groups, so it is a decent potential inhibitor, but little is known about how it works [41].

Herein, environmentally benign CH-ZnO nanocomposite was synthesised by green, facile method and tests its corrosion inhibition effect on mild steel corrosion in acidic medium 1M HCl. The effectiveness of corrosion inhibition of CH-ZnONPs composite was demonstrated using experimentation. The novelty of this study lies in the fact that the synthesised CH-ZnONPs composite acted as an efficient corrosion inhibitor with an inhibition efficiency of 93.95% at a concentration of as low as 100 ppm. Moreover, the antimicrobial activity was investigated and observed the high antimicrobial effect against the most population of microorganisms. Chitosan and its derivatives can be considered one of the green ones because of their biodegradability, biocompatibility, enormous abundance, natural and biological origin and high solubility in polar media.

2 Methodology

2.1 Materials

Medium molecular weight chitosan (degree of deacetylation, 75–85%), and zinc acetate were obtained from Sigma-Aldrich. All chemicals and media as well as reagents were purchased from Sigma-Aldrich in analytical grade.

2.2 Methods

2.2.1 Preparation of CH-ZnONPs

One mole of zinc acetate was dissolved in 0.1N acetic acid solution. Chitosan (0.1 g) was dissolved in the previously prepared solution and continuous steering at 1500 rpm for 3h at room temperature. The collected solution was irradiated by microwaves (1kW) for 3 min, then sonicated for 45 min in a sonicated water bath at 60°C. The solution was lyophilized and maintained in the refrigerator for further investigations.

2.2.2 Characterisations of prepared CH-ZnONPs

FTIR spectra were recorded in the frequency range 400–4000 cm-1 with a resolution of 4 cm-1 using FTIR 6100 Jasco Japan Spectrum equipment. The XRD patterns of chitosan, and the prepared composite were investigated on a Diano X-ray diffractometer using CuKα radiation source energised at 45 kV and a Philips X-ray diffractometer (PW 1930 generator, PW 1820 goniometer) with CuK radiation source (λ =0.15418 nm). The surface morphology, as well as elemental distribution of prepared composite, was studied using the non-destructive energy dispersive X-ray (EDX) unit attached to scanning electron microscopy (Quanta FESEM 250). For surface morphology, imaging of different samples was recorded using an accelerating voltage of 10–15 kV. The microstructures were observed by transmission electron microscope (TEM, JEOl JEM2100). TGA was carried out using the TGA Q500 device. NICOMP 380 ZLS, Dynamic light scattering (DLS) instrument (PSS, Santa Barbara, CA, USA), using the 632 nm line of a HeNe laser as the incident light with angle 90° and zeta potential with external angle 18.9°. Nitrogen adsorption–desorption measurements were carried out at 77.35 K on a Nova Touch LX4Quantachrome, USA, to determine the Brunauer–Emmett–Teller (BET) and Barrett, Joyner, Halenda (BJH) surface area. Before measurement, the samples were kept in a desiccator until testing. Samples were cooled with liquid nitrogen and analysed by measuring the volume of gas (N2) adsorbed at specific pressures. The pore volume was taken from the adsorption branch of the isotherm at P/PO = 0.995 assuming complete pore saturation.

2.2.3 Electrochemical measurements

The inhibitory role of CH-ZnONPs composite on mild steel corrosion in 1 M HCl was studied using electrochemical methods. The electrochemical studies were carried out using three-electrode system in which, platinum acts as a counter, Ag/AgCl (Sat. KCl) acts as a reference electrode, and mild steel specimens were used as working electrodes. The working electrodes were permitted to corrode freely in the absence and presence of CH-ZnONPs composite for 60 min prior to the start of electrochemical measurements. The electrochemical impedance spectroscopy (EIS) studies were carried out at OCP in the frequency range from 100 KHz to 10 mHz.

In order to acquire polarisation resistance (Rp) values by which the inhibition efficiency of CH-ZnONPs composite was evaluated using the following relationship, the EIS data were fitted into an effective equivalent circuit as shown in equation (1) [22, 25]:

$$IE (\%)=\frac{R\mathrm{p}(\mathrm{inh})- R\mathrm{p}}{R\mathrm{p}(\mathrm{inh})}\mathrm{ x }100$$
(1)

Potentiodynamic polarisation studies on mild steel corrosion in 1 M HCl with and without CH-ZnONPs composite was performed by recording anodic and cathodic Tafel curves (at a scan rate of 1 mV/s). In order to obtain the values of corrosion current density i from which percentage inhibition efficiency is achieved, linear segments of anodic and cathodic Tafel curves were extrapolated as shown in Equation (2) [22]:

$${\eta }_{Tafel},\mathrm{\%}=\left(i-\frac{i}{{i}_{o}}\right) \times 100$$
(2)

2.2.4 Surface morphology

SEM and roughness measurements were considered for the analysis of the microstructure of the mild steel material. After 48 h of dipping, the mild steel samples were taken and then distilled water washed and dried for the coupons. The Quanta FEG 250 and Gwyddion 2.45 software scoping for SEM and the roughness of the inhibitor were subsequently tracked for the test micrographs.

2.2.5 Antimicrobial evaluation

Cultures of the following microorganisms were used in the tests: (i) Gram-negative bacteria: Escherichia coli (NCTC-10416); (ii) Gram-positive bacteria: Bacillus subtilis (NCID-3610); (iii) unicellular fungi: namely, Candida albicans (NCCLS 11) using the nutrient broth medium; (vi) filamentous fungi: namely, Aspergillus Niger (ATCC-22342). The antimicrobial studies were carried out via colony formation unite (CFU) method according to our previous finger [42, 43] to judge the antimicrobial activity.

3 Results and discussion

3.1 Physicochemical characterisations of CH-ZnO NPs

3.1.1 Fourier transform infrared spectroscopy analysis

The characterisation of prepared CH-ZnONPs nanocomposite, as well as native chitosan, includes FT-IR, XRD, SEM, TEM, TGA and DLS. The FT-IR spectra were illustrated in Figure 1A. FT-IR spectrum of chitosan was observed the characteristic bands at 3431, 2941, 1649, 1516 and 1016 cm-1 attributed to N–H and OH symmetric stretching, vibration as well as inter- and intra-molecular hydrogen bonds, C–H starching, carbonyl (C=O–NHR) and an amine group (–NH2) and saccharide structure band, respectively [31, 33]. In addition, the incorporation of ZnO NPs in the chitosan structure is affecting the FT-IR spectrum significantly. The OH band was shifted to lower frequency; a 3111 cm-1, as well as the bands at 1649 and 1516 cm-1, was overlapped to appear in CH-ZnONPs at 11556 cm-1. These changes are due to effects of interaction of ZnONPs with an active group of chitosan chains. On the other hand, the band-characterised ZnO was observed as new bands in CH-ZnONPs at 885, 662 and 450 cm-1 corresponding for weak vibration of Zn–O [44], secondary Zn–O bond vibration and ZnO symmetric bending vibration. These previous investigations were conformed the repression of CH-ZnONPs.

Figure 1
figure 1

A FT-IR of neat chitosan and CH-ZnONPs. B XRD of neat chitosan and CH-ZnONPs. Thermal analysis of neat chitosan (C) and CH-ZnONPs (D).

3.1.2 X-ray diffraction spectrometry

Crystallographic study of the neat chitosan, as well as nanocomposite, was carried out to investigate the crystallinity as well as the interaction between biopolymer and metal oxide. Figure 1B observes the XRD patterns of testing samples. Chitosan pattern was illustrated as typical chitosan as remarked in other literatures with two hump peaks at around 2θ values of 11.0° and 20.2°. In contrast, the CH-ZnONPs pattern was emphasised the present of ZnO nanoparticles. The peaks of 2θ from 30° to 40° assigned to the (1 0 0), (0 0 2) and (1 0 1). Moreover, the weak peaks at 56.59°, 62.7° and 67.90° were assigned to the (1 0 0), (0 0 2) and (1 0 1), respectively. This crystallography was in agreement with those of the hexagonal wurtzite structure of ZnO (JCPDS card 36-1451).

3.1.3 Thermogravimetric analysis

The thermal study includes the TGA and DTGA of the neat chitosan as well as nanocomposite. Figure 1(C, D) illustrates the thermal behaviours of testing samples. Figure 1C observes one stage of chitosan decomposition with peak at 360°C as well as the start and end were 235 and 400°C, respectively. However, the remaining weights for each point were recorded 58, 53 and 18.3%, respectively. This thermography was typical biopolymer behaviour. On the other hand, the nanocomposite was observed two stages of decomposition (Figure 1D). Stage one was started at 130°C and end at 242°C with peak at 208°C. The second stage was started at 755°C and end at 892°C which peak recorded at 850°C. The remaining weights for peaks of two stages were 58 and 26%, respectively, with high remaining weight percentage in comparison with neat chitosan as a result to ZnO. Moreover, the presence of ZnONPs is affecting the decomposition stage where the decomposition of chitosan was enhanced by addition of ZnONPs as well as the highest remaining weight percentage. In this context, the final remaining weight percentage in nanocomposite was elevated to 23% in comparison with the other in neat chitosan (12%).

3.1.4 Topography study of CH-ZnONPs

The topography study was included SEM, EDX, mapping and TEM. SEM image was clarified the surface structure of nanocomposite (Figure 2A) which performed as rough surface with uniformed texture with spots have metallic chain like in nanoscale is ZnONPs. EXD and mapping (Figure 2B) were observed the molecular structure as well as distribution of Zn metal over the composite surface which confirmed that the presence of C, O, N and Zn with a homogeneous distribution onto the nanocomposite surface. Additionally, TEM image (Figure 2C) was emphasised the nanostructure of the prepared composite with range 136–26nm. Moreover, the diffraction pattern (Figure 2D) was affirmed the crystallinity referred to metal oxide presences.

Figure 2
figure 2

Topographical study of nanocomposite. SEM (A), EDX and mapping (B), TEM (C) and diffraction of the nanocomposite (D).

3.1.5 DLS measurements

Dynamic lights scattering measurements were evaluated to demonstrate to evaluate the particle behaviours and stability in a colloidal solution. The obtained results were tabulated in Table 1. The neat chitosan sample was performed as typical macromolecule with average particle size in micron scale with low Polydispersity Index (PDI) value which is an indication of their quality with respect to the size distribution. In contrast, the CH-ZnONPs was performed the low average particle size about 136 nm with high stability, according to the PDI value [21, 45]. On the other hand, average zeta potential measurement was emphasised the particle size data where the neat Ch and CH-ZnONPs values were 9 and 31 mV, respectively, as refer to the high stability of the CH-ZnONPs than the neat chitosan in colloidal solutions. These results affirm the pervious conclusion from above characterisations.

Table 1 DLS measurements of neat chitosan and CH-ZnONPs.

3.1.6 Surface area measurements

The surface area measurements were included BET, average pore reduces, BJH, pore volume and total pore volume. Table 2 illustrates the obtained results which confirmed that the molecular structure of CH-ZnONPs is in small size in comparison with neat CH. Moreover, The BET, as well BJH surface area measuring, was observed the high surface area in mesopores as well as micropores for CH-ZnONPs. Additionally, average pore reduces of CH-ZnONPs sample is less than neat chitosan by more 6-fold. In addition, the pore volume, as well as total pore volume, was increased as results in preparation of the CH-ZnONPs. These results overall conformed the effect of addition of ZnONPs to net chitosan is affecting the converted the new production as nanocomposite with excellent surface and molecular structure.

Table 2 Surface area measurements of neat chitosan and CH-ZnONPs.

3.2 Electrochemical measurements

3.2.1 Electrochemical impedance measurements

The corrosion mechanism was represented by electrochemical impedance spectroscopy (EIS), which provided kinetic information at the metal/solution contact. The relationship between frequency and impedance was studied in this study. EIS experiments were performed to study the corrosion behaviour of mild steel in 1 M HCl solution without or with the applied inhibitor. The impedance spectra of mild steel in the acidic solution (1M HCl) without or with different CH-ZnONPs concentrations are shown in Figure 3 at room temperature. Table 3 displays the electrochemical parameters obtained from the fitting of the EIS curves into an effective equivalent circuit Figure 3D.

Figure 3
figure 3

Nyquist (a) and Bode modulus and phase angle plot (B, C) of mild steel corrosion in the presence and absence of inhibitor (CH-ZnONPs) and (D) representative of example simulation of Nyquist blank (inset the equivalent circuit).

Table 3 Electrochemical impedance parameters for the corrosion of mild steel in the absence and presence of different concentrations of CH-ZnONPs at 25°C.

From Figure 3, it can be shown that Nyquist curves (with and without CH-ZnONPs nanocomposite) reflect a single depressed semicircle, indicating that a charge transfer phenomenon is involved in mild steel corrosion with and without inhibitors. The addition of CH-ZnO NPs to the acidic environment significantly increased the width of capacitive loops, indicating that a barrier film generated by inhibitor molecules at the mild steel-solution interface improved Rp and so effectively inhibited mild corrosion. Furthermore, as the concentration of CH-ZnO NPs increases, the radius of the capacitive loops increases [46]. The adsorption of CH-ZnONPs composite molecules at the metal-electrolyte interfaces and the development of the inhibitor barrier can be due to an increase in the diameter of the Nyquist curves. This result implies that CH-ZnONPs effectively adsorb mild steel and acid solution at the interface [47, 48]. Figure 3c shows Bode plot of the electrode in the test solution without inhibitor and with different concentrations of CH-ZnO NPs present only one time constant. The increasing concentration of CH-ZnONPs results in an increase in the impedance and phase angle of the Bode modulus for the Bode plots, demonstrating the delay in the corrosion process and increasing the inhibitory power of CH-ZnO NPs for mild steel corrosion inhibition [49, 50]. The slope of the linear relationship between log |Z| and log frequency approaches 1 as the concentration of CH-ZnO NPs increases, and the phase angle approaches 90°, indicating typical capacitive behaviour. This shows that CH-ZnO NPs adsorbed on active sites on the mild surface to form a dense film to inhibit the transport of corrosive substances. Figure 3C,D shows that the phase angle and Z in the CH-ZnO NPs containing solutions were changed toward more negative angles and higher impedance values, respectively, compared to the blank solution. The concentration of CH-ZnO NPs had a significant impact on the phase angle and Z values, similar to the Nyquist plots. This pattern implies that the mild steel resistance increased proportionately with the inhibitor concentration due to increased surface covering. In reality, at greater concentrations, there are enough CH-ZnO NPs molecules to cover a large surface area of mild steel, effectively blocking most corrosion reaction sites. The typical equivalent circuit illustrated in Figure 3D was applied to fit EIS results, where Rs is the solution resistance, Rp and CPE are the polarisation resistance and the constant phase element representing the capacitance of the electrical double layer and adsorbed inhibitor film.

In the present study, polarisation resistance (Rp) was used instead of using charge transfer resistance (Rct), as Rp provides more details than Rct [51]. A better approximation is provided by the implementation of CPE for metallic corrosion in aqueous electrolytes. The CPE (ZCPE) impedance can be measured as follows [52]:

$${Z}_{CPE}={A}^{-1}{\left(\mathrm{i}\omega \right)}^{-n}$$
(3)

where A is the coefficient of proportionality; \(\omega\) is the angular frequency; i is the imaginary number and n is an exponent of CPE interrelated with the surface heterogeneity of the mild steel. Phase shift (n) provides data on the morphology of the surface since its highest value is associated with the high smoothness of the surface. When 1.0 ≥ n > 0.5, CFE represents a Warburg impedance (W) if the n value is around 0.5; and the last case, Q can be represented as the conductance if the n value is much lower than 0.5 and higher than 0.0 and when n more than 0.5, it acts as pseudo-capacitor. It can be seen from Table 3 that the n values did not display any significant improvement. Careful evaluation of the results showed that n values are similar to unity, which means that CPE acts as a pseudo-capacitor in the current analysis [53].

The double-layer capacitance (Cdl) values were determined using the following equation [54, 55]:

$$f\left(-Z\mathrm{max}\right)=\frac{1}{2\uppi C\mathrm{dl }R\mathrm{ct}}$$
(4)

Table 3 summarises all of the EIS parameters for the blank and CH-ZnONPs solutions. Table 3 shows that the Cdl values decreased while the Rp values increased in order to increase the CH-ZnONPs concentrations. Inhibitor-containing solution, Rp values are seen to be much higher than inhibitor-free solution values. For example, after adding 10 ppm CH-ZnONPs, the value increases from 41.82 to 241.08 (ohm.cm2), and the corresponding inhibition efficiency value reaches 82.81%. The value rises to 686.64 (ohm.cm2) by increasing the CH-ZnONPs concentration of 100 ppm, and the corresponding value reaches 93.95%, whereas Cdl decreased with increasing the concentration of CH-ZnONPs from 93.35 (µF/cm2) at 10 ppm CH-ZnONPs to 43.94 (µF/cm2) at 100 ppm CH-ZnONPs. This demonstrates that CH-ZnO NPs can adsorb firmly to the mild steel-HCl surface. Due to the adsorption and desorption of water molecules from the mild steel surface, the value of Cdl was also dramatically reduced in the presence of CH-ZnO NPs [56]. Because water molecules have a lower volume and higher permittivity than inhibitor molecules, the Cdl value of an electrode is claimed to drop in the presence of chloride containing solutions. The decrease in Cdl could be attributable to a decrease in the local dielectric constant and/or an increase in the thickness of the adsorbed layer due to an increase in aggressive anion concentration.

3.2.2 Potentiodynamic polarisation measurements

Potentiodynamic polarisation measurements were used to study the corrosion kinetics process of mild steel in acidic solution without or with inhibitors. Figure 4 reflects the Tafel polarisation curves for mild steel corrosion in 1 M HCl with and without inhibitor CH-ZnONPs and Table 4 presents various extracted electrochemical polarisation parameters.

Figure 4
figure 4

A Potentiodynamic polarisation curves of mild steel in 1 M HCl solution with different concentrations of CH-ZnONPs at 25 °C. B Langmuir adsorption isotherm of CH-ZnONPs composite for corrosion inhibition of mild steel in 1 M HCl.

Table 4 Polarisation parameters and the corresponding inhibition efficiencies for the corrosion of mild steel in 1 M HCl containing different concentrations of CH-ZnONPs at 25°C.

Observe carefully of Figure 4 shows that in the presence of the inhibitor (CH-ZnONPs) nanocomposite, the nature of anodic and cathodic curves is greatly influenced, indicating that CH-ZnONPs nanocomposite exert adverse effects on both anodic and cathodic reactions. This reveals that adding the synthesised CH-ZnO NPs corrosion inhibitors to a 1M HCl solution has no effect on the reaction mechanism of mild steel. The electrochemical parameters presented in Table 4 showed a decrease in corrosion current density icorr as the concentration of CH-ZnONPs increased [57, 58]. In the blank solution, for instance, the icorr value is 542.1 (µA.cm-2), while after adding 100 ppm CH-ZnONPs, the value is 41.19 (µA.cm-2). This confirms the high performance of the natural polymers in the acid solution to protect mild steel against corrosion attack. In addition, with rising concentrations of CH-ZnONPs, the inhibition efficiency value increases considerably. This result suggests that CH-ZnONPs use their electron-rich centres to effectively adsorb and form protective films on the active sites over the metallic surface. The presence of CH-ZnONPs can be seen to have significantly affected the anodic (βa) and cathodic (βc) Tafel slope values without any substantial improvement in the corrosion potential value (Ecorr) [57]. The values of polarisation resistance, Rp, were calculated using the following equations and the vales were recorded in Table 4 as follows:

$${\mathrm{R}}_{\mathrm{P}}=\frac{1}{{\mathrm{j}}_{\mathrm{Corr}}}\left(\frac{{\upbeta }_{\mathrm{c}}.{\upbeta }_{\mathrm{a}}}{2.3\left({\upbeta }_{\mathrm{c}}+{\upbeta }_{\mathrm{a}}\right)}\right)$$
(5)

From the values of Rp, as concentration of inhibitor increases, the corrosion resistance increases due to increase the surface coverage of inhibitor; hence, inhibition efficiencies increase. Depending on the displacement of the Ecorr value of inhibited curves with respect to the uninhibited one, an inhibitor may be categorised as an anodic or cathodic form. If the displacement is more than −85 mV, the inhibitor may be categorised as an anodic or cathodic form. The displacements in Ecorr values at all studied concentrations are less than −85 mV in the current analysis. This observation shows that both CH-ZnONPs acted as corrosion inhibitors of the mixed form.

In the presence of CH-ZnO NPs, the corrosion prevention mechanism of mild steel can be described as two half-reactions. In an acidic environment, anodic dissolution of mild steel occurs the reactions that follow:

Fe + Cl- → (FeCl)ads

(FeCl)ads → (FeCl)ads + e-

(FeCl)ads = (FeCl+) + e-

(FeCl+) → Fe2+ + Cl-

Because of their higher electron density, the nitrogen and oxygen atoms of CH-ZnO NPs molecules can be protonated in the 1 M HCl solution. As a result, the protonated CH-ZnO NPs molecules (CH-ZnO NPs+) can be easily adsorbed at the anodic site, as shown below:

(FeCl-)ads + (CH-ZnO NPs+) → (FeCl – CH - ZnO NPs+)ad

3.3 Adsorption parameters

Isothermal adsorption is an important aspect of the inhibition of metallic corrosion to explore the model of interaction between inhibitor molecules and metallic surface. In the present analysis, several widely used adsorption isotherm models, such as Langmuir, Freundlich, Frumkin and Flory-Huggins adsorption isotherms, were used to test the adsorption behaviour of the CH-ZnONPs in which Langmuir adsorption isotherm was better suited. The value of the regression coefficient (R2) that was nearer to unity for the Langmuir adsorption isotherm model was the criterion behind the selection of the best adsorption isotherm. As follows, the Langmuir adsorption isotherm can be described as [59, 60]:

$$\frac{{C}_{inh}}{\theta }=\frac{1}{{K}_{ads}}+{C}_{inh}$$
(6)

where Cinh and \(\theta\) are the concentration and surface coverage of CH-ZnONPs, Kads is the equilibrium constant of adsorption-desorption.

For mild steel corrosion in 1 M HCl, the Langmuir adsorption isotherm plot (Cinh/\(\theta\) vs. Cinh) is shown in Figure 4B. The regression coefficient values (R2 = 1) were very similar to unity, validating this approach’s suitability. The following equation [22, 61] was used to measure ΔG°ads values using Kads:

$${K}_{ads}=(\frac{1}{55.5})\mathrm{exp}(\frac{-\Delta {G}_{ads}^{o} }{RT})$$
(7)

Below, the numerical value of 55.5 is the water concentration (mol /L), T is the absolute temperature and R is the constant of the universal gas. The estimated values of ΔG°ads for CH-ZnONPs composite were −42.43 kJ /mol. The high negative values of ΔG°ads suggest that CH-ZnONPs composite communicate effectively with the surface of the metal [62]. In addition, it can be shown that the values of ΔG°ads are greater than −40 kJ/ mol, suggesting that the chemisorption system is involved in the interactions of inhibitor CH-ZnONPs composite molecules with the metallic surface [63, 64].

3.4 Effect of temperature

The effect of temperature on the corrosion process was evaluated by measuring the polarisation curve, which not only defines the adsorption efficiency of CH-ZnONPs on the mild steel surface but also shows the temperature-increasing stability of these inhibitors. Figure 5B illustrates the inhibition efficiencies of 100 ppm CH-ZnONPs at various temperatures. With the increasing concentration of CH-ZnONPs nanocomposite, it is shown that the values of inhibition efficiency decrease with the rising temperature. Using Arrhenius and transition state equations [65, 66], the effect of temperature on the inhibition effect of CH-ZnONPs nanocomposite can be described:

Figure 5
figure 5

Potentiodynamic polarisation curves of mild steel in 1 M HCl solution at different temperatures B 100 ppm CH-ZnONPs nanoparticles at different temperatures. C Activation and D transition state for mild steel corrosion in 1 M HCl with and without CH-ZnONPs nanoparticles.

$${i}_{corr}=A \mathrm{exp}\left(\frac{-Ea}{RT}\right)$$
(8)

where A is the frequency factor and (Ea) is the apparent activation energy.

Furthermore, it is possible to obtain activation enthalpy (△Ha) and activation entropy (△Sa) from the slop and intercept plot of ln (icorr/T) vs. 1/T [67]:

$${i}_{\mathrm{corr}}=\frac{RT}{NH}\mathrm{exp}\left(\frac{\Delta Sa}{R}\right)\mathrm{exp}\left(\frac{\Delta Ha}{RT}\right)$$
(9)

where N is Avogadro’s number and h is Plank’s constant.

In the absence and presence of CH-ZnONPs at various temperatures, along with Arrhenius and transition state plots, the potentiodynamic polarisation curves for mild steel corrosion are shown in Figure 5.

Results showed that with temperature increase, inhibition efficiencies of CH-ZnONPs for mild steel corrosion in the acid medium decreased. This decrease in the inhibition efficiency of CH-ZnONPs may be due to adsorbed inhibitor desorption. In addition, it can be shown that in the presence of CH-ZnONPs, the values of activation energies (69.43 KJ mol−1) are much higher than in their absence (35.38 KJ mol−1) [68]. This finding further indicates that in the presence of CH-ZnONPs composite molecules, mild steel corrosion becomes difficult due to their adsorption on the metal surface and the formation of inhibitive films. Higher and positive values of ΔHa suggest that the endothermic phase is the corrosion of mild steel with (66.9 KJ mol−1) and without inhibitor (32.8 KJ mol−1) (CH-ZnONPs ) molecules [68]. Relatively lower ΔHa values than Ea values (Ea > ΔHa) suggest that the findings obtained in the current study are compatible with the thermodynamic relationship (Ea − ΔHa = RT) [68]. It can also be shown that in the presence of inhibitors (CH-ZnONPs nanocomposite), the values of ΔSa (−12.61 KJ mol−1) are more favourable than that of their absence (−81. 21KJ mol−1) due to the displacement by the inhibitor (CH-ZnONPs composite) molecules of pre-adsorbed water molecules.

3.5 Surface morphology analysis

SEM is an important part of the analysis of surface corroded and uncorroded metal in the morphological use of the surface mild steel. Adequacy of the surface morphology of mild steel without and with 100 ppm CH-ZnO is measured for the corrosion inhibiting properties of chitosan composite. After 24 h of immersion in that certain solution, the electron scanning microscopy images were taken (Figure 6). The first image (Figure 6A) shows an inhibitor-free damaged surface. In particular, a clear inhomogeneous surface with great cracks showed unprotected mild steel. However, the sample surface is much clean and smooth in second image (Figure 6B). EDS analysis detects Fe-, O-, C-, N- and Zn-containing compounds. The results of the EDS test are valuable evidence to support the decreased Fe content and increase of the oxygen and carbon content, which confirm the adsorption of compounds in CH-ZnONPS on the surface of mild steel in addition to presence of N and Zn from inhibitor molecules.

Figure 6.
figure 6

SEM image and EDX of mild steel after immersion for 24 h in 1 M HCl without (A, B) and with 100 ppm CH-ZnO (C, D), roughness measurement of mild steel after immersion for 24 h in 1 M HCl without (E) and with 100 ppm CH-ZnO (F).

Measurement of roughness is a valid test to provide data about the ability of an electrode surface to avoid severe damage and the generation of passive layers. AFM topographic images were shown in order to investigate the morphological characteristics of the surface quantitatively (Figure 6E–F). The addition of 100 ppm of CH-ZnONPs has shown a decreased mean roughness (Sa) of the specimen (i.e., for blank samples S = 113 nm and Sa = 42 nm for the inhibited specimen). This could greatly hinder the corrosion of the steel surface due to the adsorption of CH-ZnONP molecules, resulting in cleaner surface area with lower wells and damaged areas.

3.6 Antimicrobial study

Antimicrobial activity was evaluated via CFU methods according to the tested sample solubility. The popular microorganisms include gram positive, gram negative, filamentous fungi and unicellular fungi. Neat chitosan was offered moderate antimicrobial activity against all tested organisms. The antimicrobial activity was enhanced with more than 3-fold in the case of CH-ZnONPs (Fig. 7). These results may be due to the synergistic effect of Ch and ZnO nanoparticles where the chitosan mechanism of action focusing on positive charge which located in amino group which denaturation the out layer of microbial cell [33, 69]. Additionally, ZnO nanoparticle mechanism of action summarised as disruption of the cell membrane and oxidative stress [70, 71].

Figure 7.
figure 7

Antimicrobial activity of neat chitosan and CH-ZnONPs.

4 Conclusion

Chitosan-zinc oxide composite was synthesised, characterised and tested using electrochemical, surface morphology as inhibitors of mild steel corrosion in 1 M HCl. The study of electrochemical impedance spectroscopy (EIS) found that CH-ZnONPs composite molecules acted as corrosion inhibitors of the interface form. The potentiodynamic polarisation study suggests that CH-ZnONPs composite acted as mixed-type inhibitors and they affect the rate of anodic and cathodic Tafel polarisation reactions. Potentiodynamic polarisation studies also indicate that by blocking the active sites on the steel through adsorption on the metallic surface, CH-ZnONPs composite inhibit corrosion of mild steel in the aggressive acid solution. The Langmuir adsorption isotherm was obtained by adsorption of CH-ZnONPs composite molecules on the steel surface. In addition, the antimicrobial activity study has clarified the attention of the prepared nanocomposite as broad-spectrum antimicrobial agent.