1 Introduction

Hydrophobic and anti-icing properties of surfaces with micro or nano-sized topographies have been recently studied [1, 2]. Due to the robust roughness of surfaces, contact area of water to surface efficiently improves the ability to block conductivity of heat or energy from surface to the condensed water droplet [3,4,5].

In general, doping with appropriate transition metals in semiconductors like zinc oxide (ZnO), is the effective way for applications development. Different dopants may alter various properties of the zinc oxide. Co-doping is famous usually to obtain and improve p-type ZnO [6], n-type ZnO [7], and hydrophobicity of ZnO films [8]. The elements of group II like magnesium and calcium as a dopant can tune the band gap of ZnO [9, 10]. Various methods such as RF magnetron sputtering [11, 12], chemical spray pyrolysis [13, 14], sol–gel spin coating [15,16,17], pulse laser deposition [18] etc. have been widely used to synthesize ZnO thin films. In this study, we used sol–gel method because it is simpler and cost effective. Kartikey Verma et al. [19] deposited magnesium doped ZnO films by sol–gel spin coating method and found 3.29 eV maximum band gap. Anca-Ionela Istrate et al. [20] reported different calcium concentrations in zinc oxide with different molarity of the solution in sol–gel method. 0.5 Molarity of the solution offered better transmittance at higher doping level.

Surface on which a droplet of water presents in a spherical shape and have a contact angle greater than 90 degrees is called a hydrophobic surface. The materials with hydrophobic properties are extremely desirable for various applications for example optical devices, micro-fluidic devices, anti-icing coatings, self-cleaning etc. Recently, researchers are studying the wetting properties of various oxides like ZnO [21], TiO2 [22], Ag2O [23], and many more. Among all, ZnO is famous for its fascinating properties and applications such as nontoxic nature, high optical transmittance, low electrical resistivity, and abundance in nature. Besides, the hydrophobic and anti-icing properties for ZnO coatings may enlarge its standard electrical and optoelectronic applications domain.

Understanding of ice nucleation on solid surfaces plays an important role for the security of many natural events. The crystallization of ice can be deleterious for many applications like ships, railways, power transmission lines etc. [24,25,26]. Under extremely low-temperature conditions, the impact of external infrastructure on water to freeze, hence transport facilities causes’ serious economic damages and creates human security problems [27,28,29,30]. The studies have been completed on ice-phobic and antifreeze materials since 1950s [31,32,33]. The strategies for submissive ice-phobicity recently attracted attention [34]. The anti-icing (ice-phobicity) properties of materials can improve by contact time to affect supercooled water and ice crystallization delay on the coating surface [35, 36]. The anti-icing (de-icing) is the significant characteristics of surface ice-phobicity and defined as the surface capacity to delay in ice nucleation [37].

Besides many factors, surface roughness of the coating is the key factor to control ice nucleation process. Many researches have been prepared to prevent water droplet from freezing by enhancing roughness [38,39,40,41]. The two classical models that explain wettability of the surface are Cassie–Baxter and Wenzel [42]. The Cassie–Baxter model explains that the water droplet do not completely fix with substrate surface due to less contact area. Therefore this state can better protect the surface from ice formation [42].

This research reported some investigations about hydrophobic and anti-icing properties along with optical results of calcium and magnesium co-doped zinc oxide films. The co-doping has been done due to the reason to obtain uneven surface by ionic radius difference among Ca (0.099 nm), Mg (0.057 nm), and Zn (0.074 nm), to investigate wetting (hydrophobic and hydrophilic), anti-icing and optical properties. The higher doping of magnesium can produce higher band gap with smooth structure but there is a chance of MgO phase to occur [17]. Since calcium doping can produce more band gap enhancement than magnesium but there is a chance of structural distortion by higher ionic radius than Zn. Therefore, by co-doping with low doping percentages may produce higher band gap, less chances of impurity phase and less structural distortion for considerable uneven surface. To the best of our knowledge, a report on the hydrophobic and anti-icing of calcium and magnesium co-doped zinc oxide has not been reported yet. Therefore, high quality and transparent thin films of Ca and Mg co-doped ZnO have been prepared by sol–gel spin coating method. The effects of varied calcium with fix magnesium doping percentage in ZnO on various properties have been explored by XRD, SEM, UV–vis, and OCA (contact angle system) characterization techniques.

2 Experiment

The precursor chemicals include zinc acetate di-hydrate (Zn(CH3COO)2.2H2O), magnesium acetate tetrahydrate (Mg(CH3COO)2.4H2O), and calcium nitrate tetrahydrate (Ca(NO3)2.4H2O). The 2-methoxyethanol and monoethanolamine (MEA) were used as a solvent and stabilizer respectively. The 2-methoxyethanol and MEA reported as the best for surface and optical quality [43]. All the salt chemicals, solvent, and stabilizer were of analytic grade and purchased from Sigma Aldrich. The required quantity of zinc acetate was dissolved in 40 ml of 2-methoxyethanol to prepare 0.5 M solution. After few minutes MEA was added drop by drop to this solution, placed on a magnetic stirrer for 1 h at 60 °C to get a homogeneous solution. An appropriate quantity of 0.5 M sol of magnesium and calcium in 2-methoxyethanol was included to prepare doping percentage for the samples named 1) Ca 0 at%, Mg 2.5 at% in ZnO (Ca0.0Mg0.025Zn0.0975 O) (sample 1); 2) Ca 1 at%, Mg 2.5 at% in ZnO (Ca0.01Mg0.025Zn0.965 O) (sample 2); 3) Ca 2.5 at%, Mg 2.5 at% in ZnO (Ca0.025Mg0.025Zn0.95 O) (sample 3); 4) Ca 4 at%, Mg 2.5 at% in ZnO (Ca0.04Mg0.025Zn0.935 O) (sample 4). After the addition of doping percentage, all solutions were further stirred for 30 min. All the solutions were placed at room temperature for aging (24 h). Then the prepared and aged solutions were spin coated on the cleaned glass substrate at the spinning speed of 3000 rpm for 30 s. Then dried at 180 °C for 20 min and cooled naturally. This procedure was repeated five times. The final films were annealed at 500 °C for 2 h. The flow process for sol–gel spin coating mentioned in Fig. 1.

Fig. 1
figure 1

Flow diagram of sol–gel spin coating for CaMgZnO thin film

The crystal structure for all the thin films were analyzed by X-ray powder diffractometer (PANalytical—PW 340/60 X’pert PRO) with CuKα (k = 1.5406 A°). The CaMgZnO thin film surface morphology was observed using SEM (Model: Nova nanoSEM 450). The roughness was measured by the ellipsometer (J.A.Woollam co.M-2000U) and found 15.06, 22.9, 39.34, and 32.84 nm for sample 1, 2, 3, and 4 respectively. The optical properties were carried out by using Perkin Elmer double beam spectrophotometer (LAMBDA 35) in the UV–Vis–NIR region. The films thickness was measured by surface profilometer and found about 200 nm. The contact angle and freezing temperature were characterized by a DataPhysics OCA 20 instrument (DataPhysics GmbH, Germany). This system contains a high-speed CCD camera, a droplet-dispensing unit operate with a computer program and a peltier cooling stage. The results were evaluated by using SCA-20 software. The CaMgZnO samples were placed on cooling stage and dispensed a 4 μl droplet of water to measure contact angle and freezing temperature at about 25–30% humidity with around 22 °C room temperature.

3 Results and discussion

3.1 XRD analysis

The Fig. 2a showed the XRD spectrum regarding the calcium and magnesium co-doped ZnO (CaMgZnO) nano-films. It can be observed that all the samples had wurtzite-type structure. All the diffraction peaks were corresponding to zinc oxide (JCPDS card no. 36–1451). The XRD spectra of CaMgZnO samples 3 and sample 4 with calcium concentration of 2.5 and 4 at% showed peaks corresponding to (100), (002), and (101) planes. However, CaMgZnO samples 1 and sample 2 with 0 and 1% calcium only showed (002) plane. In all cases, (002) plane dominance was observed due to lowest surface free energy in c-axis direction [44]. Similar results for (002) dominance reported in the literature [20]. No other phases of impurity like MgO and CaO was observed. This could be due to the reason that Ca and Mg were successfully substituted into Zn site. Furthermore, hexagonal wurtzite structure was well-kept with magnesium and calcium concentration.

Fig. 2
figure 2

a XRD spectra, b grain size and lattice strain variation, for calcium and magnesium co-doped ZnO thin film

It can be noted that the intensity of the XRD peak reduced with the increment of Ca concentration. Also, the peak broadening can be observed with more calcium doping percentage. Moreover, the peak shift was observed as the calcium concentration increased. Since calcium with larger ionic radius substitutes the Zn site and produces a shift to smaller angle [45]. The XRD diffraction peak positioned for (002) plane at 2θ angle as 34.47, 34.44, 34.41, and 34.36 for sample 1, sample 2, sample 3, and sample 4 respectively. The peak shift to smaller angles commonly credited to the increasing of the lattice constant [20]. Also, this is a common behavior due to substitution of larger ionic radius of calcium on Zn site. The similar results reported for larger ionic radius substitution in zinc site [46]. Our results indicate that co-doped ZnO films can be prepared by sol–gel method without impurity phase.

The crystallite size, lattice constants, lattice strain, and dislocation density for CaMgZnO thin films showed in Table 1. The average crystallite size (D) was calculated for (002) preferred plane using the given scherrer’s formula below [15].

$$D = \frac{{k\lambda }}{{\beta cos\theta }}$$
(1)

Here k has the constant value of 0.9 and λ is the X-ray wavelength. The terms β and θ are the full width at half maximum and Bragg’s angle of diffraction peak, respectively. The values of lattice strain and dislocation density were calculated by the formulas below [47]. These values were higher for sample 3 and sample 4 suggested that both were sensitive to co-doping. There was an inverse relation for grain size and lattice strain. The Fig. 2b plots explained the variation in lattice strain according to grain size difference by co-doping concentration.

$$\varepsilon = \frac{\beta }{{4tan\theta }}$$
(2)
$$\delta = \frac{1}{{D^2}}$$
(3)
Table 1 The grain size, lattice constants, lattice strain, dislocation density, and lattice ratio for CaMgZnO films

In the same way, lattice constants were calculated by the following formulae [48].

$$a = \frac{\lambda }{{\sqrt 3 sin\theta }}$$
(4)
$$c = \frac{\lambda }{{sin\theta }}$$
(5)

The tabular presentation of the above values showed in Table 1 below.

3.2 SEM and EDS analysis

The Fig. 3 presented the SEM images of different CaMgZnO samples. Figure 3a1, a2 showed sample 1 and its magnified image having 0% calcium and 2.5% Mg. It had closely packed uniformly distributed grains with relatively smooth surface. Figure 3b1, b2 presented the image for sample 2 and magnified result having 1% Ca and 2.5% Mg. It had agglomerate surface. Figure 3c1, c2 elucidated the picture and magnified result for sample 3 with 2.5% calcium concentration and 2.5% Mg content. This sample had wrinkles distributed on the entire surface. The sample 4 and its magnified image with 4% calcium doping level and 2.5% Mg content showed a dense wrinkled stressed type structure as presented in Fig. 3d1, d2. The nano-structure revealed that all the deposited films were crack free. It can be noted that as the calcium concentration increased the structure of the surface became wrinkled and stressed. It may be attributed to the difference of ionic radius of calcium with zinc and magnesium. Since zinc and magnesium has comparable ionic radius. Also, the smoother morphology of low Ca concentration films was credited to the nucleation, growth, and activation energy relationship of thin films [49]. Furthermore, particle size reduced with the increment of calcium concentration.

Fig. 3
figure 3

SEM images of calcium and magnesium co-doped ZnO thin film (a1) Ca0.0Mg0.025Zn0.975O (sample 1) (a2) sample 1 magnified image, (b1) Ca0.01Mg0.025Zn0.965O (sample 2) (b2) sample 2 magnified image, (c1) Ca0.025Mg0.025Zn0.95O (sample 3) (c2) sample 3 magnified image, (d1) Ca0.04Mg0.025Zn0.935O (sample 4) (d2) sample 4 magnified image

The EDX spectra with weight % for CaMgZnO thin films showed in Fig. 4. The elements Zn, Mg, and Ca were present in the films and it elucidated that Mg and Ca successfully substituted and replaced Zn in the host lattice. The magnesium was indicated by the peak near at 1.25 KeV. The zinc and oxygen detected by the peaks at 1.012 and 0.525 KeV, respectively. The peak at 3.72 KeV indicated the calcium presence.

Fig. 4
figure 4

EDS spectra for calcium and magnesium co-doped ZnO thin films a Ca0.0Mg0.025Zn0.975O (sample 1), b Ca0.01Mg0.025Zn0.965O (sample 2), c Ca0.025Mg0.025Zn0.95O (sample 3), d Ca0.04Mg0.025Zn0.935O (sample 4)

3.3 UV–vis and optical analysis

The optical properties of calcium and magnesium co-doped zinc oxide were examined in the wavelength range of 300–800 nm. The Fig. 5 contained the detail of optical transmittance, absorbance and band gap for CaMgZnO films. From Fig. 5a the transmittance spectra showed obvious interference fringes in the visible region. The average transmittance for all the sample films was greater than 80% and represented a good optical quality. As the wavelength increased the transmittance had a fine absorption edge between 340 and 360 nm ranges. Furthermore, the sharp fall of the transmittance indicated a good crystal quality of all the deposited films. Similarly, Fig. 5b presented the absorbance spectra of all the CaMgZnO deposited films.

Fig. 5
figure 5

UV–vis plots for calcium and magnesium co-doped ZnO thin film a transmittance, b absorbance, c band gap

The value of direct band gap (Eg) was determined by the tauc’s equation [44, 47]

$$\alpha ({\mathrm{h}}\upsilon ) = {\mathrm{B}}({\mathrm{h}}\upsilon - {\mathrm{Eg}})$$
(6)

where \(({\mathrm{h}}\upsilon )\), α and B is the photon energy, absorption coefficient and constant respectively. To make a plot between (αhυ)˄2 and \(({\mathrm{h}}\upsilon )\) extrapolating the linear portion on \(({\mathrm{h}}\upsilon )\) axis gives energy band gap.

The band gap for different Ca concentration in CaMgZnO films plotted in Fig. 5c. The band gap increment had been observed with the insertion of Ca as dopant. The band gap value for sample 1 with 0% calcium was 3.32 eV and close consistent with the reported result [15]. After increased Ca doping the band gap enhanced to 3.43 eV and indicated that the Ca ion entered into zinc oxide lattice as confirmed by our XRD result. This was due to the fact that Ca substituted Zn in ZnO lattice and produced defects due to the electronegativity and ionic radius difference between Ca and Zn, same was the case for Mg ion [44]. Since ZnO (3.20 eV) has lesser band gap compared to MgO [50]. As MgO and CaO have lower electron affinity than ZnO, the electron contribution positioned at higher Fermi level for CaMgZnO films. In consequence, the exciton recombination may produced the blue shift.

The other optical parameters to explore further the optical quality of the samples are optical constants (refractive index (n) and extinction coefficient (k)). These were estimated as a function of wavelength by the UV–vis spectroscopic records. The Fig. 6a, b depicted the graphical description of optical constants (n and k). The refractive index results ranged between 2.15 and 1.6 for all samples. The sample 1 and sample 2 obtained low refractive index and predicted less opaque nature as compared to rest of two due to plane surface and quality. Its value decreased as the wavelength changed. This credited to the reduction in optical absorption and consistent with UV–vis results (transmittance). On the contrary, the other samples having more overall impurity (doping species) produced more refractive index and extinction coefficient ascribed more optical absorption. In the same way, the extinction coefficient plotted in the visible region and values were in between 0.05 and 0.1. The high and incremented with increased wavelength value of k for sample 3 and sample 4 was due to optical lose by low crystalline quality of the rougher surface [51, 52], as presented by the SEM images and less grain size by XRD data. Since greater grain size produced better transmittance [53]. The difference in the optical constant values for all the samples was due to surface morphology produced with variation of doping species. The comparable results were reported for doped ZnO [9, 51]. The optical constants were estimated by the following relations [9]

$${\mathit{n}} = \left( {\frac{{1 + {\mathrm{R}}}}{{1 - {\mathrm{R}}}}} \right) + \left( {\sqrt {\frac{{4{\mathrm{R}}}}{{\left( {1 - {\mathrm{R}}} \right)^2}}} - {\mathit{k}}^2} \right)$$
(7)
$${\mathit{k}} = \alpha \lambda /4\pi$$
(8)
Fig. 6
figure 6

Optical constants plots for calcium and magnesium co-doped ZnO thin film a n, b k

The complex functions εr (real part) and εi (imaginary part) are called complex dielectric constants and gives the information related to the phonons excitation and optical transition. These were calculated by the following relations [9, 52].

$$\begin{array}{l}\varepsilon = \varepsilon {\mathrm{r}} + \varepsilon {\mathrm{i}}\\ \varepsilon {\mathrm{r}} = {\mathit{n}}^2 + {\mathit{k}}^2\\ \varepsilon {\mathrm{i}} = 2{\mathit{nk}}\end{array}$$
(9)

The useful characteristic of optoelectronic devices is the polarization variation with photon energy. The information about the structure of a material can be collected by the electron excitation by photon energy. The electron excitation can be elaborated by the complex dielectric function. Figure 7a, b showed εr and εi lie in the range 2–7 and 0.1–1.5 respectively. These showed the better optical response compared to optical constants. The εr values were greater for sample 3 and sample 4 and that revealed more Ca with Mg in ZnO produced significant effects on optical properties. The εi values for sample 3 and sample 4 were more than other samples and suggested these samples contained more structural defects. In consequence of this, the previous optical results for these samples were also less impressive except band gap. Therefore, the structure surface may be rougher compared to sample 1 and sample 2 as elucidated by the SEM results. The similar suggestions were as reported by Mohd shkir et al. [52]. Furthermore, the energy loss functions for volume and surface are volume energy loss function (VELF) and surface energy loss (SELF). These functions define the energy loss rate in a material for electron and related to εr and εi. The values for energy loss functions can be determined by the following relation [51, 52].

$${\mathrm{VELF}} = \varepsilon {\mathrm{i}}/(\varepsilon {\mathrm{r}}^2 + \varepsilon {\mathrm{i}}^2)$$
(10)
$${\mathrm{SELF}} = \varepsilon {\mathrm{i}}/((\varepsilon {\mathrm{r}} + 1)^2 + \varepsilon {\mathrm{i}}^2)$$
(11)

The VELF and SELF spectra of CaMgZnO nano-films showed in Fig. 8a, b. Both plots of VELF and SELF were alike and indicated that the radiation crossing from upper and inner layer were similar. Also, SELF results were lesser compared to VELF. Therefore, more energy loss occurred by electronic transitions in the interior of CaMgZnO films. Moreover, the values for sample 3 and sample 4 were higher than others and close comparable. This indicated structural disorder and may be rougher surface.

Fig. 7
figure 7

Complex dielectric constant plots for Calcium and Magnesium co-doped ZnO thin film a εr, b εi

Fig. 8
figure 8

Energy loss functions and optical conductivity plots for Calcium and Magnesium co-doped ZnO thin film a VELF, b SELF, c σ

Another optical parameter is known as optical conductivity (σ). This explains the enriched response w.r.t photon energy (hv). The results for σ were calculated by the relation σ = αnc/4π [9], here c is the speed of light. The Fig. 8c presented the value of σ. This showed that optical conductivity increased with increment of photon energy may be because of electron excitement through photon energy. The σ values shifted to higher energy from sample 1 to sample 4 due to conductivity at higher energy by structural defects. This proved higher band gap as also confirmed by tauc’s plot. Similar findings reported for different materials [9, 54, 55].

3.4 Photoluminescence (PL) analysis

The results for the luminescence properties of CaMgZnO films presented in Fig. 9. The PL analysis plays an important role to probe quality of the material and defect density. All the deposited CaMgZnO films exhibited two main peaks. The first one located near the UV region between wavelength 300–400 nm and the second one between 450–750 nm in the visible region. These two emissions explain the quality of the crystal (UV) and structural defects (visible) for the deposited films [56]. The intensity of UV peak decreased as the Ca concentration increased and indicated minor quality (defect center increment) deteriorated. Since higher ionic radii of Ca (0.99 A°) than Zn (0.74 A°) and Mg (0.57 A°), caused distortion in zinc oxide structure and increased defects in material. Furthermore, the peak shifted to lower wavelength with Ca addition considered band gap increment [57]. The PL intensity of UV peak found for sample 4 was around 360 nm (3.43 eV) which is in good agreement with UV–vis result. In general, the visible emission originated from the defects including zinc, oxygen vacancies, and interstitials [58]. The UV band related to the free excitons recombination by exciton–exciton collision [59]. The ratio of UV–visible emissions intensities for all the samples considered to be good optical and crystal quality for CaMgZnO samples.

Fig. 9
figure 9

PL spectra of calcium and magnesium co-doped ZnO thin films

3.5 Contact angle and freezing analysis

The water contact angle (WCA) and freezing results were taken by depositing 4 μl water droplet on the surface of all the samples. The contact angle (θ) of a droplet can be measured conventionally at a liquid–vapor interface on a solid surface. The theoretical calculation of contact angle can be estimated by the Younge–Dupre formula [8].

$${\mathrm{Cos}}\;\theta = (\gamma {\mathrm{sv}} - \gamma {\mathrm{sl}})/\gamma {\mathrm{lv}}$$
(12)

Here γ is the surface tension for solid–vapor, solid–liquid, and liquid–vapor interface. Figure 10 showed the images of water droplet for all CaMgZnO samples. The left side of figure showed droplets of water at room temperature. For the sample 1 and sample 2, the surface looked hydrophilic because the contact angle was lesser than 90 degree [60]. While the other sample 3 and sample 4 were hydrophobic as their contact angle was >90°. The hydrophobic behavior increased with more calcium concentration. The raised contact angle for sample 3 and sample 4 may be attributed to the reduction in surface energy by structural change due to calcium concentration [61]. Moreover, the variation in contact angle can be attributed to microstructural changes with doping variation [46]. The right side of Fig. 10 showed the image of water droplet after freezing. During the cooling stage, the temperature of the water surface decreased and nucleation of ice occurred by sufficient super-cooling. The report [62] on water cooling explains that freezing has two stages (i) recalescence stage is a short period stage during which a slushy mixture of ice and water occurs, (ii) second is the isothermal freezing of the remaining liquid. Freezing on-set temperature for all the samples was determined at the point just before when the appearance of droplet changed from optically light to dark and the cooling rate was 5 °C/min. This temperature varied as −8.1 °C, −9.6 °C, −15.1 °C, −13.9 °C for the sample 1, sample 2, sample 3, and sample 4 respectively. Comparison plot between contact angle of water droplet and freezing on-set temperature with error (at least three readings) presented in Fig. 11b. Most improved measurements found for sample 3 with less error. Similar and opposite results of contact angle for co-doped ZnO by chemical method were reported in literature [8, 46].

Fig. 10
figure 10

Water droplet contact angle and freeze images for calcium and magnesium co-doped ZnO thin film a sample 1, b sample 2, c sample 3, d sample 4

Fig. 11
figure 11

a Water droplet contact angle as a function of temperature for calcium and magnesium co-doped ZnO thin film, b comparative plot of contact angle with freezing on-set temperature

Figure 11a depicted the plots of contact angle measurement as a function of temperature for finest measurement. The drop and variation in the contact angle especially after 0 °C attributed to the frost formation that made the sample surface hydrophilic as reported the same suggestion for sapphire sample [62].

Time measured after a temperature set-point up to water droplet freezing is called freezing delay. To measure freezing delay, an experiment was done by placing water droplets on all samples separately and at least three readings were taken to find error. After that the samples were cooled down slowly at the rate of 5 °C/min to the set points of −5 and −10 °C individually. The results of all samples for freezing delay offered in Fig. 12. The maximum freezing delay time measured for the sample 3 with less error. The results for freezing delay of sample 3 were 900 and 630 s for −5 and −10 °C set-point, respectively. Since sample 3 had equal amount of doping species (Ca, Mg) and best result given by this sample may be attributed to equal roughness distributed on the entire surface. As the roughness is the key factor to control ice formation (ice-phobicity) as reported in the literature [38,39,40,41]. The detail regarding different findings for all the samples presented in Table 2.

Fig. 12
figure 12

Freezing delay plot for calcium and magnesium co-doped ZnO thin film with set-point −5 and −10 °C

Table 2 The transmittance, band gap, refractive index, contact angle, freezing on-set temperature and freezing delay for CaMgZnO films

Ice-phobic surface defined generally as very surface that can avoid ice formation under freezing conditions. For de-icing properties, the two main parameters are wettability and roughness [63]. Alizadeh et al. [64] prepared hydrophobic surface and used for delay in ice nucleation. The ice nucleation rate on hydrophobic surface compared to hydrophilic was delayed 80 s for −20 °C. Li et al. [65] compared the freezing state on two different surfaces having different wettability of 55.2° and 113.7°. The result revealed that ice nucleation rate was low with higher contact angle. Boinovich et al. [66] fabricated hydrophobic surface by using pulsed laser method to create a multi surface roughness required for super-hydrophobicity. They investigated freezing delay at −20 °C to around 6 h with super-hydrophobicity of 172.5° WCA. He et al. [67] reported ice nucleation on the super-hydrophobic surface was slower than the ice formation on the hydrophilic surface. Yang and Li [68] explored that super-hydrophobic surface produced more icing delay of 12 min than hydrophobic. Liu et al. [69] studied the icing delay time of super-hydrophobic surface was 55 min at −10.1 °C compared to hydrophilic surface. Kulinich and Farzaneh [70] investigated that rougher super-hydrophobic (150° CA) surface created low ice adhesion than hydrophobic (120° CA) coating. Qitao et al. [38] prepared two groups of sol–gel coating samples having different surface roughness and energy. They examined that low surface energy and roughness coatings were ice-phobic. Since low surface energy produces higher contact angle. Similar findings reported in literature regarding surface roughness as [39].

All this indicated that surface structure (smooth roughness) and contact angle influences ice accumulation. The smooth rougher with less contact area of surface to water droplet enhances the delay in ice formation by the slow transfer of energy from cold surface to droplet. In our case, the sample 3 had small grain and particle size as revealed by XRD and SEM results with more roughness (ellipsometer 39.34 nm) compared to others, tended to delay in ice accumulation attributed to less contact area from surface to water droplet and proportionally less energy transfer from surface. The hydrophobic surface and coatings can be beneficial for anti-icing and self-cleaning [71], anti-fouling [72], anti-fogging [73], and anti-corrosion surfaces [74]. Another reason for selection of hydrophobic surface as ice-phobic surface is that this surface tends to reduce the quantity of water droplets on the surface and runs off by rolling before freezing [75, 76].

4 Conclusion

The calcium and magnesium co-doped ZnO (CaMgZnO) thin films were well synthesized on glass substrate by sol–gel spin coating technique. Various properties of CaMgZnO films were investigated as a function of different calcium doping concentrations. The XRD and SEM results exhibited c-axis preferred morphology and showed crack free surface respectively. The band gap values varied from 3.32 to 3.43 eV from single magnesium doping to co-doping with 4 at% maximum calcium respectively. All the films were maximum transparent in the range from 90 to 70% in visible region. Optical constants presented the results that indicated low transparency and optical loss for concentrated doped samples. Complex dielectric constants and energy loss functions also supported the optical constants analysis and revealed the structural disorder. Optical conductivity proved the band gap enhancement with doping concentration. Furthermore, photoluminescence study also revealed the structural deterioration with the addition of doping concentration by UV and visible intensity difference. The water contact angle results revealed the hydrophobic behavior of sample having more dopants. The hydrophobicity proved by the 104.06° CA and this behavior remained throughout freezing process, also freezing on-set was −15.1 °C related to this CA. Maximum freezing delay produced by the sample with equal amount of Ca and Mg concentration and verified its smooth roughness (39.34 nm) as compared to other samples. Freezing delay time was observed as 900 s and 630 s for −5 and −10 °C set-point respectively. Therefore, the co-doping of calcium with magnesium in ZnO may be useful for application concerning with hydrophobicity like self-cleaning. Also, finding results proved that prepared films with a low-cost sol–gel method can be suitable for applications regarding anti-icing behavior.