1 Introduction

Magnesium alloys have been utilized in automobile, aircraft and electronics industries due to their low density, high specific strength and damping characteristic [17]. However, the high chemical activity in aggressive environments is one of the major obstacles for the wide use of magnesium alloys [810]. Accordingly, the contact of the magnesium alloys with water triggers the corrosion reaction [11]. Thus, a hydrophobic coating is an effective approach to improve corrosion resistance of metals because it inhibits the contact of the metal surface with water and environment humidity. And thus, the hydrophobic coating may be applied on magnesium alloys [12, 13].

Hydrophobic surfaces have been attracted considerable interests due to its great importance in fundamental researches and industrial applications [14]. In the past decade, many researchers have focused on the influence of hydrophobic surfaces on self-cleaning, anti-icing and corrosion protection of metals [1517]. The corrosion resistant mechanism of the hydrophobic surface is ascribed to the nanostructure on the hydrophobic surface easily trapping a large amount of air within the ‘valleys’ of the nanostructure. These ‘air valleys’ then prevent the migration of aggressive ions [18]. Based on this consideration, many methods have been proposed to prepare hydrophobic films on Al, Cu, steel and Mg substrates for an improvement in corrosion resistance [19].

Generally, the hydrophobicity of a surface can be achieved by both surface roughing and lowering surface energy [20, 21]. Various methods such as chemical etching [22], electro-spinning [23], chemical vapor deposition (CVD) [24], sol–gel process [25, 26] and layer-by-layer assembly [27, 28] have been used to prepare hierarchical hydrophobic surfaces on Mg alloys. However, some approaches may pollute the environment because of the use of strong acid [12] and cerium nitrate [29]. In addition, some reagents used are too expensive, and the process is too complex [30, 31]. Therefore, a highly low cost, environmentally friendly, safe and nontoxic method is needed.

In particular, chemical conversion coatings have outstanding advantages such as lower cost and simplicity in operation [32]. And according to our recent publications, phosphate conversion coatings are environmentally friendly and have been successfully exploited to protect magnesium alloys from corrosion [3335]. However, the phosphate conversion coatings lack hydroxyl groups that allow further modification of functional molecules. Herein, we report a simple method for fabricating a hydroxide zinc carbonate (HZC) (Zn5(OH)6(CO3)2) film with a hierarchical structure on magnesium alloy AZ31. The hydroxyl groups on the HZC surface make it easier for fluoroalkylsilane (FAS) modification. The hydrophobic properties of the hybrid FAS/HZC coating are improved due to the synergistic action of the rough morphology and the hydrophobic groups, and the corrosion resistance of magnesium alloys was improved finally.

2 Experimental

2.1 Preparation of the HZC Film

All chemicals were analytical grade. The as-extruded AZ31 magnesium alloy used has nominal chemical compositions: (2.5–3.0) wt% Al, (0.7–1.3) wt% Zn, ≥0.20 wt% Mn and balanced Mg. The samples with a dimension of 20 mm × 20 mm × 3 mm were polished with SiC papers up to 1,500 grit, washed with distilled water and ethanol, and dried in warm air. The HZC films were fabricated through a chemical-bath deposition process, which is reported by Liang et al. [36]. Briefly, the AZ31 substrate was immersed perpendicularly in 0.5 mol/L zinc nitrate aqueous solution containing 0.25 mol/L urea in a 3-neck, round-bottom flask, equipped with a Teflon-coated magnetic stir bar and reflux condenser, and stirred at 95 °C for 1.5 h. Then, the prepared HZC-coated AZ31 substrate was washed with distilled water, dried by warm air, finally placed in an oven at 80 °C for 1 h.

2.2 Modification of the HZC Surfaces

The chemical fluoroalkylsilane [FAS, CF3(CF2)7CH2CH2Si(OCH3)3] was hydrolyzed [37] prior to the coating process on the HZC-coated AZ31 substrates. A beaker containing a mixture of 100 mL distilled water and 1 mL FAS was placed in an ultrasonic bath for 30 min. Hydrophobicity treatment was then carried out by immersing the HZC-coated AZ31 samples into the prepared FAS solutions in a Teflon-lined autoclave, which was then heated at 120 °C for 12 h. After that, the substrates were rinsed with ethanol several times and then placed in the oven at 120 °C for 2 h. The silane-modified HZC film was denoted as FAS/HZC.

2.3 Surface Characterization and Electrochemical Measurement

For surface morphological characterization of the substrates, top and cross-sectional views were made through a field-emission scanning electron microscope (FE-SEM, Nova NanoSEM 450). Meanwhile, the affiliated energy-dispersive spectrometer (EDS) was used to analyze the elements on the specimens. The microstructures of the coated samples were analyzed by means of X-ray diffraction (XRD, Model D/Max 2500PC Rigaku), with a Cu target at a scanning rate of 8°/min. The diffraction patterns were obtained between 5° and 80°. The chemical bonding of the surfaces was characterized through Fourier transform infrared spectroscopy (FT-IR, Nicolet 380, Thermo Electron Corporation). The water contact angle (CA) was measured using a contact angle goniometer (OCA15EC, Dataphysics Instruments GmbH). The volume of one water drop was 2 µL. Electrochemical tests were performed on an electrochemical potentiostat (PAR Model 2273, Princeton) in a three-electrode system with the samples as the working electrode, a saturated calomel electrode (SCE) as the reference electrode and a platinum sheet as the counter electrode. The experiments were carried out in 3.5 wt% NaCl solution at room temperature. The polarization curves were recorded with a scan rate of 2 mV/s.

3 Result and Discussion

3.1 Morphologies of Hydrophobic Magnesium Surfaces

SEM micrographs of the coated samples are shown in Fig. 1. The HZC film has a considerable number of voids and flower-like protrusions with a diameter approximately of 10 μm (Fig. 1a). The high magnification of a single flower (Fig. 1b) reveals that nanostructured plates are randomly dispersed. The hierarchical nanostructures may exhibit an apparent hydrophobicity when the surface was treated with FAS [38]. Figure 1c designates the SEM image of the FAS/HZC film. The silane-treated film still possessed a binary hierarchical nanostructure similar to lotus leaves (Fig. 1d).

Fig. 1
figure 1

SEM images of the HZC a, b and FAS/HZC films c, d

The elemental mapping images and spot spectra disclose the elemental distribution of C, O, Zn and Si on the surface of the HZC and FAS/HZC films. As shown in Fig. 2a, the Zn element was uniformly distributed on the surface of the HZC-coated samples. The presence of Zn and O elements implies the HZC coatings successfully deposited on the substrate surface. The elemental mapping of the FAS/HZC film reveals the presence of uniformly distributed Si element (Fig. 2b), indicating the formation of a dense and uniform FAS film. It is noted that no cracks or delamination were observed on the FAS/HZC surface.

Fig. 2
figure 2

Elemental mapping images and EDS spectra for the HZC film a and the FAS/HZC film b

The microstructures of the coatings were further characterized by the cross-sectional profile using SEM and EDS analysis. As can be seen from Fig. 3a, the HZC coating with a thickness of about 100 μm contains a number of pores and cracks. From the EDS line scanning across the layer and into the substrate, a uniform distribution of Zn and O elements through the deposited layer is readily observed. The FAS/HZC coating (Fig. 3b) seems more compact, which can be ascribed to the fact that fully cross-linked Si–O–Si layer formed in the voids of the HZC coatings. The corresponding distribution of Si element along the cross section confirmed that the FAS coatings were formed on both the surface and penetrated inside the voids of the HZC film. Namely, the Zn-rich HZC interlayer existed between the substrate and the FAS coatings. The total thickness of the Zn-rich interlayer and the FAS coatings is approximately 120 μm. The EDS analysis demonstrates that the FAS modification resulted in a substantial amount of silane permeated through the relatively porous HZC layer with massive hydroxyl groups on the surface, which may be helpful for an improvement in the corrosion resistance of the AZ31 substrate.

Fig. 3
figure 3

SEM images of the cross-sectional view and the corresponding EDS line scanning analysis for the HZC film a and FAS/HZC film b

3.2 Wettability

The water CA value on a substrate is a good indicator of the wettability of a substrate [12]. The CA values of the surfaces display the change in the wettability of the AZ31 surfaces. As shown in Fig. 4a, the AZ31 substrate surface was hydrophilic with a CA of 60.5°. Interestingly, the CA of the HZC film rose up to 97.3° (Fig. 4b). This result is attributed to the walls of the HZC nanostructured plates, mainly composed of zinc atoms, showing a relative hydrophobicity [39]. When the HZC film was modified with FAS, the CA had further increase and reached up to 131.3° (Fig. 4c), while Xu et al. [18] reported a maximum CA of 165.2° of a FAS film on the magnesium alloy surface experienced electrochemical machining. Despite a 19.7% decrease in the CA, the FAS-modified HZC coating attained a hydrophobic property, which was attributed to the combination of nanostructured HZC film and the low surface energy of the FAS film [40].

Fig. 4
figure 4

Profiles of water droplets on the AZ31 substrates a, the HZC film b and the FAS/HZC film c

3.3 Chemical Composition of the Hydrophobic Surface

The chemical structures of the HZC film were characterized by virtue of XRD (Fig. 5). Compared with the AZ31 substrate (pattern a), the HZC film (pattern b) shows characteristic peaks of the HZC compound [41]. It is well known that the urea hydrolysis at an optimum temperature of approximately 85 °C [42] led to the formation of carbonate and hydroxyl [43]. Then, Zn2+ ions underwent a co-precipitation with the released carbonate and hydroxyl and finally led to the formation of the HZC film. The chemical deposition occurred via the following processes [44]:

Fig. 5
figure 5

XRD patterns of the AZ31 substrate a and HZC powder scraped from the deposited film b

$$ \text{CO}\left( {\text{NH}_{\text{2}} } \right)_{\text{2}} + 3{\text{H}}_{ 2} {\text{O}} \to 2{\text{NH}}_{ 3} \cdot {\text{H}}_{ 2} {\text{O + CO}}_{2} , $$
(1)
$$ {\text{NH}}_{ 3} \cdot {\text{H}}_{ 2} {\text{O}} \to {\text{NH}}_{ 4}^{ + } + {\text{OH}}^{ - } , $$
(2)
$$ 2 {\text{NH}}_{ 3} \cdot {\text{H}}_{ 2} {\text{O}} + {\text{CO}}_{ 2} \to 2 {\text{NH}}_{ 4}^{ + } {\text{ + CO}}_{ 3}^{{ 2 { - }}} {\text{ + H}}_{ 2} {\text{O,}} $$
(3)
$$ {\text{Zn}}^{2 + } + 2{\text{OH}}^{ - } \to {\text{Zn}}\left( {\text{OH}} \right)_{2} , $$
(4)
$$ 5{\text{Zn}}^{2 + } + 2{\text{CO}}_{3}^{2 - } + 6{\text{OH}}^{ - } \to {\text{Zn}}_{5} \left( {{\text{CO}}_{3} } \right)_{2} \left( {\text{OH}} \right)_{6} . $$
(5)

In addition, FT-IR spectra (Fig. 6) were also employed to characterize the chemical bonding of the hydrophobic film. The band at 3,440 cm−1 corresponds to the O–H vibration of the hydrogen bond [44], and the band at 1,616 cm−1 is attributed to the H–O–H bending mode of water molecule [45]. The bands assigned to carbonate groups can also be observed at the bands of 1,556–1,358 cm−1, assigned to the asymmetric stretching ν 3 modes, the bands at 1,045 cm−1 corresponding to the symmetric stretching ν 1 mode and at 834 cm−1 the out-of-plane deformation ν 2 mode [44, 45]. The band at 941 cm−1 is assigned to the Zn–OH bond [45]. These results are pronounced consistent with the EDS and XRD results. The existence of the HZC film on the AZ31 substrate was also confirmed. The bands at 2,952 and 2,890 cm−1 are assigned to the C–H stretching in –CH2– groups [25]. The bands around 1,331, 1,239, 1,170 and 1,117 cm−1 are designated to the C–F stretching vibration of the –CF2– and –CF3– groups [46, 47]. The band around 1,012 cm−1 is assigned to asymmetric stretching vibration of the Si–O–Si bonds [25, 48], confirming that the FAS layer was chemically absorbed on the HZC film and the AZ31 alloy surface.

Fig. 6
figure 6

FT-IR spectra of the HZC film a and FAS/HZC film b

3.4 Corrosion Resistance

The values of open circuit potential, E corr, and corrosion current density, i corr, derived from the polarization curves (Fig. 7), are given in Table 1. The E corr value of the AZ31 substrate is −1,540 mV/SCE. Compared to the bare substrate, the E corr values of the HZC and the FAS/HZC films were positively shifted 279 and 990 mV/SCE, respectively. It is also noted that the i corr of the hydrophobic FAS/HZC film was markedly reduced by three orders of magnitude than that of the substrate. This result is ascribed to the nanostructured HZC film and the FAS film with a low surface energy. And the hydrolysis and condensation of FAS can form an effective Si–O–Si physical barrier on the Mg alloy surface to protect the substrates. However, the existence of the HZC film does not bring out an evident increase in the i corr, because the numerous hydrophilic hydroxyl groups and micro-cracks and voids of the HZC film make it easy for the aggressive medium to attack the substrates. The scenario reveals that the hydrophobic FAS/HZC film significantly improved the corrosion resistance of the AZ31 substrate, which is much more obvious than that of the super-hydrophobic film fabricated on the Zn plates [36].

Fig. 7
figure 7

Polarization curves of the AZ31 alloy a, the HZC film b and the FAS/HZC film c in 3.5 wt% NaCl solution

Table 1 Electrochemical parameters of the polarization curves

3.5 Corrosion Mechanism

A schematic illustration of the interfaces between the hydrophobic surface and the solution is shown in Fig. 8. The hydrophobic surface of the FAS/HZC film is consisted of many ‘hills,’ and air can be trapped within the ‘valleys’ between these ‘hills’ [11, 19]. Hereby, the equation obtained by Cassie and Baxter [49] can be used to theoretically explain the hydrophobicity of the surface.

$$ \cos \theta_r = f_s\cos \theta_s - ( 1- f_s ) , $$
(6)

where θ r is the CA on the rough surface, θ s is the CA on a smooth surface with the same chemical nature, f s is the fraction of the solid–liquid contact area upon which the droplet sits, and 1−f s is the air fraction below the droplets [50]. A contrast measurement of CA on a smooth surface was performed; the obtained value of θ s is about 63.5°. From Eq. (6), the estimated f s value is about 0.23. Herein, the fraction of the air trapped within the interstices of the surface is approximately 0.77. This large value increased the air/water interface, preventing the water droplet from infiltrating the space.

Fig. 8
figure 8

Schematical illustration of the interface between the hydrophobic surface and the 3.5 wt% NaCl solution

Another important reason for the improvement in corrosion resistance of the Mg alloy is attribute to the Si–O–Si bonds within the silane coating [51]. The cross-linked silane layer is dense and uniform, acting as a physical barrier to retard the solution penetration into the substrate.

The more hydrophobic the outer layer, the lower the penetration rate of water into the substrate [52]. Therefore, the aggressive Cl can hardly reach the metal substrate due to the synergistic action of the hydrophobicity of the nanostructured porous HZC coating and the cross-linked Si–O–Si bonds within the FAS.

4 Conclusions

The hierarchical porous HZC film was successfully fabricated on the AZ31 Mg alloy surface through a chemical-bath deposition process. There were a considerable number of flower-like protrusions consisting of nanostructured plates on the surface, and the thickness of the HZC film was approximately 100 μm. The FAS-modified HZC film exhibited a hydrophobic property with a CA value of 131.3°. The results of electrochemical measurement demonstrated that the corrosion resistance of the AZ31 alloy was significantly improved by the hydrophobic FAS/HZC film, which was attributed to the synergy combination of the nanostructured porous HZC film and the low surface energy of the FAS film.