Introduction

In the perspective of environmental issues and the fast diminishing conventional energy sources, renewable energy demand is exponentially increasing. It has encouraged rigorous research for the novel, more efficient, and green energy sources with advanced technology [1]. Hence, the solar energy is receiving a considerable attention of scientific community attributed to the availability of unlimited energy from the sun [2]. Photovoltaic cells are excellent option for the energy supply in the remote and domestic area. At present, the photovoltaic market is mainly covered by silicon-based solar cells [3]. However, the silicon-based solar cells are expensive owing to the high cost of pure silicon as well as the cell preparation method [4]. Hence, thin-film solar cells are introduced. In the beginning, CIGS (copper indium gallium selenide) and CdTe (cadmium telluride)-based thin-film solar cells were introduced [5]. However, production of these solar cells on the commercial scale is restricted due to less availability of In and Te and toxicity of Cd and Se [6]. Thus, to overcome these issues, copper zinc tin sulfide (CZTS)-based solar cells are introduced [7].

Up till now, numerous researches on CZTS thin-film preparation by different deposition techniques have been reported such as thermal deposition [8], pulsed laser deposition [9], electrodeposition [10], spray pyrolysis [11] and sol–gel spin coating [12]. Amid these techniques, the sol–gel spin coating is simplest and most efficient low-cost thin-film preparation technique. It is well known that the CZTS is a quaternary substance [13]. Hence, synthesis of single-phase CZTS thin film is quite challenging. For the synthesis of a single-phase CZTS thin film, it is necessary to know the thin-film control parameters. So far, the major studies have considered one factor/control parameter at a time for the CZTS thin-film properties optimization. Yu et al. [14] and Wu et al. [13] studied the effect of spin speed on the properties of CZTS thin films. The effect of annealing temperature on optical properties of CZTS thin films is also well reported [16,17,18]. Tchognia et al. [19] investigated the effect of annealing time on the properties of CZTS thin films. Nevertheless, multiple parameter consideration for optimization is very scarcely reported. Tchognia et al. [20] reported multiple parameter optimization for only single response (band gap) by Taguchi approach. However, no validation test was carried out to validate the findings. Moreover, Taguchi approach can optimize only one response at a time and gives an optimum combination of the control parameters, not a specific condition [21]. Hence, to achieve a specific optimum condition and carry out multi-response optimization response surface methodology (RSM) must be implemented [22]. To the best of author’s knowledge, a comprehensive study on the simultaneous effect of each of the major parameters on the multiple responses (band gap and PCE) for optimization of sol–gel spin-coated CZTS thin film by RSM is not yet reported. Hence, there is a need for such comprehensive study.

In the present study, CZTS thin films are prepared by the sol–gel spin-coating technique. The four major thin-film control parameters, namely spin speed, spin time, annealing temperature and annealing time, are considered based on the literature available and our previous parametric study [23, 24]. All the parameters are varied at three different levels. RSM, the Box–Behnken design, is implemented for the optimization of control parameters in terms of multiple responses. The band gap and power conversion efficiency (PCE) are considered as the responses. Design Expert software is implemented to generate mathematical model between control parameters and responses. The analysis of model is also carried out with the help of software. Further, the effect of the control parameter on both band gap and PCE is obtained by analysis of variance (ANOVA) results. In addition, optimization of mathematical model is carried out and a specific optimum deposition condition is acquired. A validation test is also carried out to confirm whether the obtained specific optimized condition leads to maximum PCE or not.

Experimental

FTO pretreatment

The FTO (fluorine-doped tin oxide, ~ 7Ω/sq.) glass substrate was purchased from Sigma-Aldrich. FTO substrate was properly cleaned as per the method described in our previous study [11]. Substrate was first etched with Zn powder and diluted HCl and then rinsed with DI water. Further, it was sonicated with acetone, followed by rinsing with DI water, and finally dried under vacuum oven.

CZTS thin-film preparation

The CZTS thin films were synthesized by a very cost-effective sol–gel spin-coating technique. The sol–gel solution was prepared by dissolving copper chloride, zinc acetate, tin chloride and thiourea into propylene glycol. All the chemicals were purchased from Finar Ltd., India. Few drops of MEA (monoethanolamine) were added as a stabilizer. A clear yellow-colored solution was obtained at the end of 1 h stirring at room temperature. Further, the solution was spin-coated using spin coater (VB Ceramic Consultants, Chennai, India) on the cleaned FTO substrate. Subsequently, the film was dried at 230 °C temperature. The deposition process was carried out 7 times in order to acquire desired film thickness (1–2 µm). Lastly, the film was annealed under argon atmosphere. The spin speed, spin time, annealing temperature and annealing time were varied at three different levels (low level, medium level and high level), which are listed in Table 1 (in "Design of experiments and analysis" section). All the experiments were carried out as per Box–Behnken design array shown in Table 2 (in "Design of experiments and analysis" section).

Table 1 The independent control parameters and their coded levels for thin-film preparation
Table 2 Box–Behnken design array for four factors and three levels along with experimental data of responses, band gap (Y1) and PCE (Y2)

Device fabrication

Furthermore, to obtain PCE (second response), the solar cell devices were prepared and analyzed. The device was fabricated using the thin film prepared at each array of Box–Behnken design and optimum thin film as well. In the previous studies, the solar cell was fabricated as FTO/i-ZnO/Al:ZnO/CdS/CZTS/CuS/FTO in order to cover full light spectra [23]. The similar solar cell was fabricated in the present study, to compare the PCE with PCE that of previously reported (3.02%) [23]. i-ZnO (intrinsic ZnO) layer was deposited by spray pyrolysis method as previously reported [25]. The doping in ZnO was optimized in our previous studies [26, 27]. Consequently, the Al-doped ZnO layer was deposited upon i-ZnO layer using same deposition condition. Subsequently, the CdS layer was deposited on the Al:ZnO layer by the spin-coating method. Further, on the CdS layer, CZTS film was deposited as per Box–Behnken design array mentioned in Table 2 in "Design of experiments and analysis" section and optimum condition achieved after optimization as well. Lastly, a counter electrode of CuS/FTO was prepared by depositing CuS solution on another FTO by spray pyrolysis method.

Design of experiments and analysis

In the present study, response surface methodology (RSM) technique was implemented to obtain a specific optimum deposition condition. Box and Draper first introduced response surface methodology in 1987 as the optimization tool [28]. The response surface methodology uses the mathematical and statistical techniques to develop a mathematical relationship between the desired response and associated control parameters [29]. Typically, this relationship is unknown but can be derived by a low-order polynomial regression model. The regression model can be derived from the orthogonal array design of experiments. Basically, RSM follows two designs, namely central composite design (CCD) and Box–Behnken design (BBD) [30]. In the present study, BBD was selected owing to its advantage of less number of experiments over CCD. In the present study, four major control parameters and three different levels of each parameter led to 29 experiments in BBD. Table 1 illustrates the control parameters and their three different level values. The range of parameter was decided based on the literature and our previous parametric study [14, 15, 31,32,33]. Table 2 depicts the experimental design of BBD array.

The regression analysis of the experimental data was carried out using the following polynomial model, given as Eq. (1).

$$ Y = \beta_{0} + \mathop \sum \limits_{i = 1}^{k} \beta_{i} X_{i} + \mathop \sum \limits_{i = 1}^{k} \beta_{ii} X_{i}^{2} + \mathop \sum \limits_{i < j}^{k} \sum \beta_{ij} X_{i} X_{j} + \varepsilon $$
(1)

where Y = desired response, β1, β2, …, βk = regression coefficient of linear effect, β11, β22, …, βii = regression coefficient of quadratic effect, β12, β13, …, βij = regression coefficient of interaction effect, ε = error, X1, X2,…, Xk = control variables (factors). Here, k = 4 as four independent control parameters were considered. The empirical mathematical relationship between the control parameters (independent variables) and the desired response (dependent variables) was obtained by analyzing above regression model. Further, Design Expert V10 software was employed to carry out the statistical analysis. Analysis of variance (ANOVA) was carried out to check the competence of the developed mathematical equation. R2 value, F-test and lack-of-fit test were employed to determine the significance and acceptability of the model. Response surface plots were drawn to study the effects of independent parameters on the desire responses.

Characterization

The structural properties of the CZTS films were investigated by X-ray diffraction (XRD, Rigaku D/Max 2200). The analysis was carried out in 10 to 90° 2θ range at 0.02° scanning rate. The optical properties were studied by UV–visible (HACH-DR 6000) spectroscopy. The Tauc’s plot method was employed to determine the band gap of CZTS thin film. The surface morphological analysis was carried by scanning electron microscope (SEM) S3400, Hitachi International Ltd., and instrument was used to perform the SEM analysis. The solar cell performance was measured by SS150 AAA solar simulator (Science Tech., USA) along with Keithley 2400 (Keithley Instruments, Inc, USA) source meter. The solar cell performance measured under the 100 mW/cm2 illumination. As a source of light, xenon lamp was used.

Results and discussion

Regression model

Optimization of the thin-film control parameters was carried out with BBD in order to identify the optimum deposition conditions for the sol–gel spin-coated CZTS thin films. The experimental design of BBD along with its results of both the responses is illustrated in Table 2. Further, the results are analyzed by the Design Expert V10 software. In the present study, all the possible mathematical models were fitted to the obtained data using the software. The fitting summary of all the models for both the responses is depicted in Table 3.

Table 3 Model adequacy summary for both response band gap and PCE

The significance of the model is decided on the basis of the p value. Lowest p value suggests the high significance of the model or better fitting model. In addition, R2 value (should be closer to 99%), F value (should be high), p value associated with lack-of-fit error (should be high) and PRESS value (should be lower) are also considered to adopt the best suitable model. Based on data in Table 3, the lowest p value (< 0.0001), high R2 value (99.67%), high F value (347.55), high p value for lack of fit (0.7410) and lowest PRESS value (0.00043) are observed for the quadratic model in the case of band gap. Similarly, in the case of PCE, lowest p value (< 0.0001), high R2 value (99.59%), high F value (284.65), high p value for lack of fit (0.3858) and lowest PRESS value (0.16) are observed for the quadratic model. Hence, it can be concluded that the second-order polynomial (quadratic) model is appropriately fitting in the present case (with both the responses). By analyzing data of Table 2, following second-order quadratic equations (Eqs. 2, 3) are acquired for both the responses from the software:

$$ Y_{1} = 14.96 - 0.0003X_{1} - 0.0021X_{2} - 0.0487X_{3} - 0.0076X_{4} + 0.0000X_{1}^{2} + 0.0001X_{2}^{2} + 0.0001X_{3}^{2} + 0.0001X_{4}^{2} + 0.0000X_{1} X_{2} - 0.0000X_{1} X_{3} + 0.0000X_{1} X_{4} - 0.0000X_{2} X_{3} + 0.0000X_{2} X_{4} + 0.0000X_{3} X_{4} $$
(2)
$$ Y_{2} = - 64.41 + 0.0014X_{1} + 0.0124X_{2} - 0.2465X_{3} - 0.0379X_{4} - 0.0000X_{1}^{2} - 0.0005X_{2}^{2} - 0.0002X_{3}^{2} - 0.0003X_{4}^{2} - 0.0000X_{1} X_{2} - 0.0000X_{1} X_{3} - 0.0000X_{1} X_{4} + 0.0001X_{2} X_{3} - 0.0000X_{2} X_{4} - 0.0000X_{3} X_{4} $$
(3)

where Y1 = band gap and Y2 = PCE, X1 = spin speed, X2 = spin time, X3 = annealing temperature and X4 = annealing time.

The R2-adjusted value obtained for band gap is 99.35%, and for PCE it is 99.17%, which confirms that the accuracy and predictive ability of model is adequate. Additionally, the relationship between actual experimental values and predicted values is learned from the graph of actual versus predicted for both responses. Figure 1a and b depicts the actual versus predicted graph for band gap and PCE, respectively. Furthermore, the effect of the control parameters on both the responses is determined by the analysis of variance (ANOVA). The ANOVA results of Table 2 obtained from software are depicted in Table 4. The most affecting parameter is decided based on the sum of square, F value and p value obtained in ANOVA results. The most affecting parameter should have a high sum of square value, high F value and low p value.

Figure 1
figure 1

Scattered diagram of a actual experimental band gap of CZTS thin films versus predicted band gap of CZTS thin-film graph and b actual experimental PCE of CZTS thin-film-based solar cells versus predicted PCE of CZTS thin-film-based solar cells

Table 4 Analysis of variance (ANOVA) results for band gap and PCE model

Influence of control parameters on the band gap and PCE

The band gap of CZTS thin film was obtained in the range of 1.54–1.88 eV for all 29 experiments. Based on Table 4, in the case of the band gap, the annealing temperature was the most significant parameter as indicated by high sum of square (0.200), high F value (2725.63) and low p value (< 0.0001). Subsequently, the second affecting parameter is annealing time (0.0070, 94.19 and < 0.0001, respectively). Spin speed is third affecting parameter. The least affecting parameter is spin time as compared to other parameters. Figure 2a depicts the effect of two most affecting parameters: annealing temperature and annealing time on the band gap. Figure 2a clearly indicates that at low annealing temperature (450 °C), the band gap value is high as compared to generally reported 1.4–1.6 eV band gap for CZTS thin films [34,35,36]. These could be attributed to the presence of secondary phases at low temperature [18, 23, 37]. Upon increment in temperature (500 °C), the reduction in band gap was observed. However, further increment again caused the enlargement of the band gap. These could be attributed to the minor oxidization of CZTS thin films at high temperature. Similarly, band gap was reduced appropriately upon increasing annealing time from 30 to 60 min. Upon further increase in annealing time (90 min from 60 min), the band gap increases. These could be attributed to oxidization of film at high annealing time. Hence, the optimum value of annealing temperature would be in the range of 500–550 °C and annealing time would be 60–90 min.

Figure 2
figure 2

Three-dimensional (3D) response surface plot for influence of two most prominent affecting parameters (annealing temperature and annealing time) on the a band gap and b PCE

It is well reported that the PCE is the function of the band gap. The optimum theoretical PCE of 33% is reported at around 1.45 eV band gap [38]. Hence, in the present study as well, band gap near to 1.5 produced superior PCE. In addition, the PCE is also dependent on the surface morphology. As both, void and agglomeration of particle may adversely affect the PCE [24]. It is distinguished that surface morphology is the function of annealing temperature.

Hence, in the case of PCE the annealing temperature demonstrated a prominent effect (SS = 4.81, F value = 2086.81 and p value = < 0.0001) as in the case of band gap. Subsequently, annealing time and spin speed were second and third affecting parameters, respectively. Spin time seems to be insignificant as compared to other parameters (SS = 0.044, F value = 19.25 and p value = 0.0006) for PCE as in the case of band gap. Figure 2b depicts the effect of two prominent control parameters, namely annealing temperature and annealing time on the CZTS thin-film-based solar cell PCE. From Fig. 2b, it is clear that similar to the band gap, low PCE is obtained at low annealing temperature (450 °C). Upon increment (500–550 °C) in the annealing temperature, PCE is increasing. Correspondingly, superior PCE is achieved at high annealing time (60–90 min) as compared to low annealing time (30 min).

Validation test

After, analyzing all the results and achieving a mathematical model, the model was optimized using optimization feature of the software. Consequently, a specific optimum condition, spin speed (X1) = 2104 rpm, spin time (X2) = 38 s, annealing temperature (X3) = 527 °C and annealing time (X4) = 68 min is achieved. The predictions of responses predicted for this optimum condition were 1.51 eV band gap and 3.53% PCE. Additionally, a validation test was carried out. Validation test was carried out at 2100 rpm spin speed, 38 s spin time, 530 °C annealing temperature and 68 min annealing time (nearest integer value). As a result, 1.50 eV band gap and 3.55% of PCE are achieved. The obtained results are very close to the prediction (1.51 eV band gap and 3.53% PCE). The achieved PCE is 17.55% higher than our previously reported (3.02%) [23]. Hence, it can be concluded that the models are perfectly fitted to both the responses and optimized well. The thickness of the optimum thin film was approximately 1 µm which is in range of commonly reported (1–2 µm) for CZTS thin film [3,4,5]. The Tauc’s plot and XRD pattern of CZTS thin film prepared at optimum condition are depicted in Fig. 3. The band gap (see Fig. 3a) and XRD (see Fig. 3b) suggested that single-phase CZTS thin films were synthesized. XRD patterns confirm that typically reported kesterite structure of CZTS is present as (112) plane orientation is observed [39,40,41]. The surface morphology and cross-sectional SEM image of the thin film at three different locations are also shown in Fig. 3. The SEM images demonstrated uniform surface morphology (see Fig. 3c). Figure 3d depicts approximately 1 µm (873, 952 and 1100 nm) thickness of CZTS thin film. The J-V characteristics of the solar cell fabricated using CZTS thin film prepared at optimum condition are depicted in Fig. 4. The solar cell achieved 490 mV open-circuit voltage (VOC), 14.5 mA cm−2 current density (JSC) and 50% fill factor (FF) and 3.55% of PCE which is 17.55% higher than our previously reported (3.02%) [21].

Figure 3
figure 3

a Tauc’s plot, b XRD pattern, c surface morphology and d cross-sectional SEM image of the CZTS thin film prepared at optimum deposition condition

Figure 4
figure 4

J-V characteristics of the solar cell fabricated using the CZTS thin film prepared at optimum deposition condition

Conclusion

In the present study, CZTS thin films are prepared by sol–gel spin-coating method successfully. Further, the four major thin-film control parameters, namely spin speed (X1), spin time (X2), annealing temperature (X3) and annealing time (X4), are investigated. Subsequently, the optimization of the control parameter in terms of multiple responses (band gap and PCE) is successfully carried out for the first time for sol–gel spin-coated CZTS thin films. The RSM method, Box–Behnken design array is implemented for the optimization. Additionally, the influence of the control parameters on both band gap and PCE is observed by analysis of variance (ANOVA) results. In both the cases, annealing temperature is observed to be the major control parameter. The second prominent control parameter is annealing time, and spin speed is observed to be third. In comparison with other three parameters, the spin time is proved to be insignificant in both the cases. Furthermore, the mathematical quadratic models are developed for both the responses as the function of control parameters. Moreover, the obtained models are optimized by the help of Design Expert software. Specific optimum condition spin speed (X1) = 2104 rpm, spin time (X2) = 38 s, annealing temperature (X3) = 527 °C and annealing time (X4) = 68 min is obtained. 1.51 eV band and 3.53% PCE are mathematically predicted for the obtained specific condition. In addition, a validation test is carried out, and as a result, 1.50 eV band gap and 3.55% PCE are achieved. These results suggested that both the models are appropriately fitting and optimized well. The achieved PCE is 17.55% higher than our previously reported PCE. The acquired optimum condition can be further applied in other solar cells to ease further improvement in PCE.