Introduction

The main drawback of Mg and its alloys is high corrosion rate, which is much higher when compared to many other competing materials, like steels or Al alloys. This behavior limits the range of applications of Mg and its alloys in industrial applications such as aerospace and automotive components. According to the Pourbaix diagram, Mg and its alloys corrode over a wide range of pH and potential (Ref 1). But at high pH (values over 11), in the passive region, the surface film is protective (Ref 2). This surface film forms an efficient barrier against the metal dissolution and undergoes a passivity breakdown under certain conditions, conversion of the barrier film within atmospheric corrosion or destruction of the protective surface film by several anions, such as chloride, bromide, nitrate, perchlorate, and sulfate (Ref 3).

A wide range of techniques, such as chemical conversion coating (Ref 4-8), physical vapor deposition (Ref 9, 10), spraying (Ref 11-13), plating (Ref 14-16), and laser surface modification (Ref 17, 18), have been employed to improve the corrosion resistance of Mg and its alloys. But recent studies have focused on the MAO process (Ref 19-42). MAO is a surface treatment which is done to create an oxide coating by anodic discharge deposition in a suitable electrolyte in high anodic voltage. This process can create a protective oxide-hydroxide layer which improves the surface properties of Mg and its alloys (Ref 43-46).

In MAO process, alkaline solutions are widely used as the primary electrolyte because of the high passivation susceptibility on Mg and its alloys and preventing the process of anodic dissolution (Ref 47). In addition, in order to improve the quality of the resulting coatings, increase the electrical conductivity of base electrolyte, and contribute certain elements within the MAO coatings, various additives are added to the base electrolyte (Ref 48-53). It is known that phosphate can produce a sustainable \({\text{Mg}}_{3} \left( {{\text{PO}}_{4} } \right)\) product to protect the Mg alloys (Ref 54-56). Borate is another additive under investigation. The reason for this choice is the rapid decomposition of \({\text{B}}_{4} {\text{O}}_{7}^{2 - }\) that provides oxygen for the metal cations in the electric field, and contributes to the growth of the oxide layer on Mg alloys in the process of MAO like phosphate (Ref 57-59).

Although the extensive number of papers has been published in the field of corrosion behavior of the coatings formed on the Mg and its alloys during MAO process (Ref 19-59), little research has been focused on the semiconducting behavior of MAO coatings and their passivity properties in alkaline solutions. Hence, the primary objective of this study was investigation of role of electrolyte chemistry on the semiconducting properties of the MAO films formed on AZ31B Mg alloy. This is important because the key parameters in determining the transport of point defects and the kinetics of film growth are density and diffusivity of the defects in film, which can be determined by using the Mott-Schottky analysis methods. In this context, this research addresses the effect of the electrolyte concentration change parameter in determining the discharge characteristics, MAO coating quality, passive properties, and semiconducting behavior of MAO coatings compared to the AZ31B Mg alloy. In the formation of MAO coatings, electrolytes containing KOH with different concentrations were used as base electrolyte, and sodium phosphate and sodium borate with constant concentration were used as additives. Characteristics of resultant coatings were studied by SEM and XRD analysis. Potentiodynamic polarization and electrochemical impedance spectroscopy (EIS) measurements were applied in determining the passive properties and Mott-Schottky analysis in studies of semiconducting behavior.

Experimental Procedures

Preparation of MAO Coatings

AZ31B Mg alloy used in the present work has the following composition (in wt.%): Al, 2.6; Zn, 0.98; Mn, 0.43; Sn, 0.002; the balance being Mg (determined by emission spectroscopy analysis with a WAS Foundry Master Spectrometer). Samples cut into a size of 30 mm × 10 mm of a 1-mm-thickness plate were used as substrate in MAO process. All samples were ground to P2000 grit SiC water proof abrasive papers followed by cleaning with deionized water prior to coating. MAO of samples was done under unipolar mode, for 600 s using a constant current density (300 mA/cm2). In MAO process, sample was used as anode, while a stainless steel container was used as cathode. The electrolytes were alkaline solutions with different concentrations of KOH and containing Na3PO4·12H2O and Na2B4O7 as listed in Table 1. The selected concentration of Na3PO4·12H2O and Na2B4O7 is based on the previous investigations according to (Ref 56, 58, 60-63). After MAO processing the samples were washed with deionized water and dried.

Table 1 Electrolyte composition for the MAO-treated samples of AZ31B Mg alloy

Characterization of MAO Coatings

The surface morphology of prepared MAO coatings was examined under a JEOL JSM-840A scanning electron microscope. Also, the phase evaluation of samples was carried out by XRD analysis with Italstructures APD2000 diffractometer using CuKα radiation. The diffractometer was operated at a voltage and electrical current of 40 kV and 30 mA, respectively.

Electrochemical Measurements

All the electrochemical measurements were done in a conventional three-electrode flat cell under aerated conditions by using the µAutolab Type III/FRA2 system controlled by a personal computer. The counter electrode was a Pt plate, while the reference electrode was Ag/AgCl saturated in KCl. The 0.01 M NaOH solution was used as the test solution at 25 ± 1 °C. A set of three different specimens was tested at each electrochemical test, and all the reported electrochemical data are representative of the best values of three different samples. Prior to the electrochemical measurements, working electrodes were immersed at open circuit potential conditions for 1200 s in 0.01 M NaOH solution to form a steady-state condition. The electrochemical measurements were done in the following sequence:

  1. (a)

    EIS tests were carried out at open circuit potential conditions and AC potential with the amplitude of 10 mV and normally a frequency range of 100 kHz to 100 mHz. For the EIS data modeling and curve-fitting method, the NOVA impedance software was used.

  2. (b)

    Potentiodynamic polarization curves were measured potentiodynamically at a scan rate of 1 mV/s starting from −0.25 V (vs. E corr) to 2.5 VAg/AgCl.

  3. (c)

    Mott-Schottky analysis was carried out on the passive films of another set of MAO samples at a frequency of 1 kHz using a 10 mV AC signal and a step potential of 25 mV, in the cathodic direction.

Results and Discussion

Voltage-Time Characteristics of MAO Process

Since MAO coatings were created using a constant current density, a measure of voltage changes in terms of treatment time states the various stages of coating formation. Considering the voltage curves versus time, three different stages are recognized (Fig. 1):

Fig. 1
figure 1

Time vs. voltage curves of MAO-treated AZ31B Mg alloy samples (applied current density = 300 mA/cm2)

In the first stage, the cell voltage shows a rapid and linear increase with time. The electric field provides the electromotive force for the transport of cations and anions in the electrolyte throughout the barrier layer and contributes to the thickness increase. The formation of a barrier layer is accompanied by the emission of oxygen bubbles. This stage is representative of common anodizing process trend (Ref 64). Increasing the thickness of the barrier layer, it acts as a resistor against the current flow. After this, the dielectric breakdown of the barrier layer occurs in areas where there is less resistance, resulting in the formation of small spark discharges in breakdown voltage (the second stage onset). Subsequently, the cell potential increases continuously. At this stage, the current flow only focuses on breakdown areas, leading to localized thickening of the oxide layer. New coating material formation causes resistance recovery against the current flow, while other areas with lower resistance are prone to breakdown. Therefore, a large number of fine white sparks can be seen moving randomly. Continuous oxide layer formation and breakdown cause the cell potential alteration. With time increase (the third stage), spark discharges grow in size with a change in color from white to orange. The sparks are discrete and move slowly across the surface and gradually disappear on the sample surface. Accordingly, the voltage decreases indicating the thickening of the oxide film and the end of coating process. It can be seen that the voltage response versus time in different solutions has demonstrated similar behavior. The effect of KOH concentration on ignition/breakdown voltage is obvious. An increase in the concentration of KOH has reduced ignition/breakdown voltage as a result of increased electrolyte conductivity which is in agreement with the results obtained by Cheng et al. (Ref 65) and Ko et al. (Ref 66).

SEM Characteristics

Figure 2 shows the scanning electron micro-graphs of MAO coatings. The morphological characteristics of coatings show the oxide grains with different diameters which are melted and randomly distributed over the surface. The lumpy melting and sintering effect caused a rough surface formation. The presence of pores and micro-cracks, characteristic of MAO coatings, is quite evident. Pores are formed when the oxide is molten and gas bubbles are thrown out of micro-arc discharge channels (Ref 67, 68). Quick solidification of the molten oxide by the relatively cold electrolyte creates thermal stress in the oxide layer, and when the stress is released, the micro-cracks are formed (Ref 68-71). As can be inferred from Fig. 2 and Table 2, morphology, average pore size, and porosity percentage are largely a function of spark potential which is in turn a function of the concentration and the electrical conductivity of the solution in the MAO process. With increasing KOH concentration of 1.0 to 2.5 M, as a result of increase in the electrical conductivity of the solution and ease of sparking, the pores’ shapes in the center of the crater move from irregular and elliptical shape to a circle with a reduction in size. And the average pore size and porosity percentage decrease (Table 2). Generally, the presence of bigger pores or higher pore density on the surface of MAO coatings would facilitate quicker infiltration of the corrosive medium into the inner layer of the MAO coating and subsequently down to the substrate due to the increasing of the effective surface area and concentrating the corrosive medium into these microspores. In addition, the oxide grain size due to the ease of sparking decreases with increasing concentration of KOH, so that in 2.5 M KOH concentration, the coating is more homogeneous and oxide nodules are smaller. However, increasing the concentration of KOH to 3.0 M causes a deleterious effect on the obtained coating porosity. The reason for this can be a large increase in electrical conductivity spreading severe spark discharge leading to the formation of the MAO coating with large micro-pores (Ref 66).

Fig. 2
figure 2

SEM micro-graphs of AZ31B Mg alloy with MAO coatings: (a) Sample A, (b) Sample B, (c) Sample C, (d) Sample D, and (e) Sample E

Table 2 Average pore size and porosity of MAO coatings

Phase Analyses

The XRD patterns of AZ31B Mg alloy with and without MAO coating are depicted in Fig. 3. XRD spectrum after MAO treatment indicates that MgO and Mg2B2O5 are the new phases in the MAO film compared to that of in the substrate. It also can be seen that anions from the Na3PO4·10H2O and Na2B4O7·5H2O additives contributed to react with Mg2+ from substrate dissolution and formed the compounds in the coating such as Mg3(PO4) and Mg2B2O5.

Fig. 3
figure 3

XRD pattern of AZ31B Mg alloy with and without MAO coatings

Potentiodynamic Polarization Measurements

Potentiodynamic polarization curves of AZ31B Mg alloy with and without MAO coatings in 0.01 M NaOH solution are shown in Fig. 4. It is observed the AZ31B Mg alloy with and without MAO coatings exhibits the same curve shapes, where the current changes smoothly and linearly around the rest potential manifesting cathodic and anodic Tafel behavior.

Fig. 4
figure 4

Potentiodynamic polarization curves of AZ31B Mg alloy with and without MAO coatings in 0.01 M NaOH solution

The corrosion current density (i corr) was calculated by Tafel extrapolation of the linear part of the cathodic branch back to the corrosion potential with an accuracy of more than 95% of the points more negative to E corr by 50 mV (Ref 72, 73). The variation of the corrosion current density of AZ31B Mg alloy with and without MAO coatings in 0.01 M NaOH solution is illustrated in Fig. 5. A maximum corrosion current density is observed for the AZ31B Mg alloy, and a minimum value is recorded for the sample D. These results show that the MAO process can significantly improve the corrosion resistance of the AZ31B Mg alloy.

Fig. 5
figure 5

Variations of the corrosion current density of AZ31B Mg alloy with and without MAO coatings in 0.01 M NaOH solution

Also, it is observed that the corrosion current density of AZ31B Mg alloy with MAO coatings decreases with increasing the KOH concentration up to 2.5 M, while it increases when the KOH concentration reaches 3.0 M. This behavior is attributed directly to the pore size and porosity percentage. According to Table 2, with increasing KOH concentration of 1.0 to 2.5 M, the average pore size, and porosity percentage decrease. However, increasing the concentration from 2.5 M to 3.0 M causes a deleterious effect on the obtained coating porosity.

EIS Measurements

EIS was used to study the corrosion behavior of the MAO-coated specimens and the uncoated AZ31 Mg alloy. In Fig. 6, the Nyquist curves obtained from EIS of AZ31B Mg alloy with and without MAO coatings in 0.01 M NaOH solution are shown. Concerning the Nyquist curve for uncoated AZ31 Mg alloy, the equivalent circuit of Fig. 7(a) has been used for findings the best fitness (Ref 74, 75). In this equivalent circuit, R s (=260 Ω) is the solution resistance, and R ct is the resistance of the barrier layer interface in parallel with Q dl. As can be seen in Fig. 6, Nyquist curves for coated samples have similar behaviors. For coated samples, an appropriate equivalent circuit shown in Fig. 7(b) has been used. This equivalent electrical circuit is based on the EIS studies of Gu et al. (Ref 42), Ghasemi et al. (Ref 53), Bala Srinivasan et al. (Ref 55), and Ko et al. (Ref 66) on MAO coatings for Mg alloys. In this equivalent model, R s is the solution resistance, R p is the resistance of the porous regions of the MAO coating which is in parallel with Q P, and R ct is the resistance of the inner barrier layer interface in parallel with Q dl. The corresponding EIS data are shown in Table 3. It can be seen that the value of CPE-C P is lower than CPE-C dl because the coating is relatively thick compared to the interface layer between the dense layer and the AZ31B Mg alloy substrate.

Fig. 6
figure 6

Nyquist and Bode plots of AZ31B Mg alloy with and without MAO coatings in 0.01 M NaOH solution

Fig. 7
figure 7

Equivalent electrical circuits used to fit the impedance data of (a) AZ31B Mg alloy and (b) AZ31B Mg alloy with MAO coatings

Table 3 Fitting results of EIS plots of AZ31B Mg alloy with and without MAO coatings based on the equivalent circuits in Fig. 7(a) and (b)

The impedance of all the coated samples is much higher than the AZ31B Mg alloy. This shows that the MAO is an effective coating process which improves the corrosion resistance of AZ31B Mg alloy. It can be seen that the charge transfer resistance R ct of the MAO coatings are much higher than the corresponding value of R p. This suggests that the inner dense layer plays a key role in protecting the AZ31B Mg alloy from corrosion (Ref 42). The charge transfer resistance R ct is the dominating parameter for the electrochemical behavior of the coated samples. A sample with a higher R ct value is more corrosion resistant. It can be seen that all coated samples have shown much higher R ct value compared to those of uncoated AZ31B Mg alloy.

Mott-Schottky Analysis

Generally, more detailed evidences regarding the nature of passive films have been obtained using Mott-Schottky analysis. Figure 8 shows the Mott-Schottky plots of AZ31B Mg alloy with and without MAO coatings in 0.01 M NaOH solution. In all plots, there is a region in which C −2 and E possess a somehow linear relationship. The positive slope in this region is attributed to n-type behavior. These observations are agreement with the results obtained in previous works for Mg and its alloys (Ref 74-76). According to Eq 1, donor density has been determined from these positive slopes (Ref 74-76):

$$\frac{1}{{C^{2} }} = - \frac{2}{{\varepsilon \varepsilon_{0} eN_{\text{D}} }}\left( {E - E_{\text{FB}} - \frac{kT}{e}} \right)\;{\text{for n{-}type semiconductor,}},$$
(1)

where e is the electron charge, N D represents the donor density for n-type semiconductor (cm−3), ε stands for the dielectric constant of the passive film (usually taken as 9.6 for Mg alloys (Ref 74-76), ε 0 denotes the vacuum permittivity, and k, T, and E FB are the Boltzmann constant, absolute temperature, and flat band potential, respectively.

Fig. 8
figure 8

Mott-Schottky plots of AZ31B Mg alloy with and without MAO coatings in 0.01 M NaOH solution

The changes in the donor density correspond to the non-stoichiometry defects in the passive films (Ref 74-77). Based on the point defect model (Ref 78, 79), the cation vacancies are electron acceptors, thereby doping the barrier layer p-type, whereas the oxygen vacancies and the metal interstitials are electron donors, resulting in the n-type doping. In this concept, the dominant point defects in the passive film are considered to be oxygen vacancies and/or cation interstitials acting as electron donors (Ref 72-79).

Table 4 shows the calculated donor density of AZ31B Mg alloy with and without MAO coatings in 0.01 M NaOH solution. The orders of donor density magnitude are comparable to those reported in other studies (Ref 42, 74, 75). As for samples with different MAO coatings, although the phase constituents and chemical composition of the MAO coatings were not similar, the MAO coatings had similar semiconducting behavior but with the different donor density.

Table 4 Donor density (N D) values of AZ31B Mg alloy with and without MAO coatings in 0.01 M NaOH solution

It can be observed that the donor density of AZ31D Mg alloy was much higher than those of the samples with MAO coatings. Also, it is observed that the donor density of the samples with MAO coatings decreases with increasing the KOH concentration up to 2.5 M, while it increases when the KOH concentration reaches 3.0 M. This can be correlated with the different interfacial reactivity of these samples with or without MAO coatings during immersion in 0.01 M NaOH solution. As to the AZ31D Mg alloy, the semiconducting behavior represented the reaction characteristic of a nature passive film formed on this alloy (Ref 74, 75), while the semiconducting behavior of samples with MAO coatings reflected the reaction characteristics of the Mg electrode with MAO coatings during immersion. The higher donor density of the AZ31D Mg alloy than those of samples with MAO coatings was resulted from the higher reactivity of the substrate for the weak protectiveness of the nature passive film.

It is concluded that the Mott-Schottky analysis (capacitance measurement) showed similar results with that of potentiodynamic polarization and EIS measurements and the corrosion results obtained from the DC electrochemical techniques are qualitatively correlated to the donor concentration of the films obtained by Mott-Schottky analysis. Therefore, Mott-Schottky analysis may be regarded as a useful technique for the assessment of quality of MAO coatings formed on Mg alloys.

Conclusion

Effect of electrolyte chemistry (KOH concentration) on the morphological, structural, and electrochemical properties of MAO coatings formed on AZ31B Mg alloy was studied in the present work. Conclusions drawn from the study are as follows:

  1. 1.

    Microstructure observations showed that with increasing KOH concentration from 1.0 to 2.5 M, the average pore size and porosity percentage decrease. However, increasing the concentration of 2.5 to 3.0 M causes a deleterious effect on the obtained coating porosity.

  2. 2.

    XRD patterns revealed that anions from the Na3PO4·10H2O and Na2B4O7·5H2O additives contributed to react with Mg2+ from substrate dissolution and formed the compounds in the coating such as Mg3(PO4) and Mg2B2O5.

  3. 3.

    Potentiodynamic polarization plots, EIS measurements, and Mott-Schottky analysis showed that MAO process can significantly improve the electrochemical behavior of AZ31B Mg alloy.

  4. 4.

    Mott-Schottky analysis indicated that the semiconducting characteristic of AZ31B Mg alloy with and without MAO coatings displayed the n-type behavior, where the oxygen vacancies and interstitials (over the metal vacancies) preponderated.

  5. 5.

    Among the MAO-treated samples, the sample D, electrolyte solution containing 2.5 M KOH, exhibited the least corrosion current density and the lowest donor density, which resulted in its high corrosion resistance compared to that of the untreated substrate and other MAO-treated samples.