1 Introduction

Dye-sensitized solar cells (DSCs) are a favorable alternative to conventional photovoltaic (PV) technologies due to their easy fabrication and cost effectiveness [1,2,3]. The active photoelectrode of a DSC is, in general, a dye-sensitized mesoporous oxide thin film, while the typical counter-electrodes consist of a thin electro-catalytic layer of platinum or carbon [4, 5]. The electrolyte in a DSC assembly usually comprises an organic solvent containing a redox mediator, which is sandwiched between the photoelectrode and the counter-electrode. The most critical component is the photoelectrode that harvests light energy, which needs more research on structural and morphological modifications in order to optimize the loading and homogeneous distribution of the dye without degrading the electrical conductivity. In this study, we have focused our attention on improving the efficiency and stability of DSC by optimizing the light-harvesting ability of the multi-layered TiO2 photoanode using a highly reproducible fabrication method and a gel polymer electrolyte that contains a ternary mixture of iodides with the intention of improving the efficiency and stability of the DSCs.

High-performing TiO2 films are essential not only to be used as a membrane for DSCs, but also important to making membranes for self-cleaning [6, 7], lithium-ion batteries [8, 9], and photocatalysts [10, 11]. Thus, the TiO2 multilayer electrode investigated in this study can be utilized not only in DSCs, but also in numerous other applications.

1.1 Semiconductor photoanode

The structure, morphology, and type of wide band-gap semiconductor used in the photoanode of a DSC play a crucial role since the light-harvesting species (dye molecules) are adsorbed onto its surface. Further, the semiconductor films collect the excited electrons from the photosensitizer, which need to be transported to the current collector and finally to the counter-electrode through the external load [12, 13]. Although a wide range of metal oxides, such as ZnO, SnO2, Nb2O5, and TiO2, are utilized as the semiconductor material in photoanodes, TiO2 offers more advantages due to its non-toxicity, high abundance, greater stability, and ease of preparing mesoporous thin films [4, 14]. TiO2 has three crystalline phases, namely rutile, anatase, and brookite [15]. Among these forms, mesoporous anatase is the most preferred thin film structure for DSC applications due to its befitting optical and electrical properties, such as the band gap(3.2 eV), and band edge energy as well as the electrical properties such as high mobility and number density of carriers, which finally lead to produce prominent photocurrents and photovoltages [14, 16, 17].

In 1991, O’Regan and Grätzel achieved an overall energy conversion efficiency of around 7% by fabricating a DSC using a 10-µm-thick nano-structured thin film of a few nanometer-sized TiO2 particles [1]. A variety of one-dimensional morphological structures of TiO2, such as nanofibers [18, 19], nanowires [20,21,22], nano-rods [23], and nanotubes [24], which offer high surface-to-volume ratios, are utilized in the photoanode to enhance the efficiency of DSCs. Further, monolayer [31], double-layer [25, 26], or triple-layer [27, 28] TiO2 nano-structured thin films have intensively been studied. For instance, Wang et al. have achieved a DSC efficiency of 8.03% and a short-circuit current density of 15.7 mA cm−2 by utilizing electro-spun multi-layered composite photoanodes composed of TiO2 nano-particles and nano-rods [29].

Increasing the surface roughness of the semiconductor film is a promising method to boost the efficiency of a DSC, since high surface roughness increases the specific surface area and improves the light harvesting by enhancing the surface density of adsorbed dye molecules [1]. Therefore, an efficient photoanode should possess a high specific surface area as well as a favorable surface morphology in order to maximize the light scattering and absorption ability [30].Therefore, recently, photoanodes having nanoparticle multi-layered architectures have been readily investigated due to their excellent dye loading ability and light-scattering capability, plus other advantages such as the controllable layer thickness [31,32,33,34,35].

There are various TiO2 thin film preparation methods, such as doctor blade [36, 37], screen printing [38, 39], dip coating, electro-spinning, and spin coating [40, 41]. The spin coating is a highly reproducible and low-cost method for preparing metal oxide photoanodes. The rotation speed and the composition of the colloidal suspension are the main parameters that govern the properties of spin-coated films [42, 43]. For other widely used TiO2 film deposition methods such as doctor blade, screen printing, and dip coating, the film quality depends on many parameters including the total solids in suspension, suspension volume, blade speed, blade pressure, and blade land length [44, 45]. In addition, the spin coating technique provides a fissile way of preparing homogeneous multi-layered structures with controllable thickness and morphology.

Current–voltage (I–V) characterization is the conventional way of measuring the performance of solar cells. The cell performance dependence on potential scan rate [46, 47], irradiance [25, 48], illumination time [49], and surface adsorbed dye concentration [50, 51] demands at least to give the potential scan rate, irradiance, the time dependence of the cell permeance at least for a short period, and the surface dye concentration of the photoelectrode, respectively.According to a recent report, a quasi-solid state solar cell fabricated by combining a photoanode consisting of four layers of TiO2 nano-particles of average particle size of ~ 21 nm along with a polyacrylonitrile-based electrolyte that contains binary salts of RbI and tetrahexylammonium iodide (Hex4NI) exhibited an efficiency of 7.5% and short-circuit current density (JSC) of 20.0 mA cm−2 at 1000 W m−2 irradiance under a 10 mV s−1 scan rate [52]. However, the optimization of the film thickness and the number of layers that govern the dye loading is very important for DSC research. Therefore, in the present study, two different particle sizes (13 nm and 21 nm) were used to prepare multilayer TiO2 photoanodes. In the present investigation, crack-free multi-layered photoanodes composed of 1, 2, 3, …, 7 successive layers were successfully coated on fluorine-doped tin-oxide (FTO) substrates, using a wet chemical method. Finally, a series of quasi-solid-state DSCs was fabricated by employing multi-layered photoanodes consisting of 1–7 layers of spin-coated TiO2 nano-particles of the size 13 nm and 21 nm. The present study introduces a new method to find the rate of effective photoelectron generation and the average time gap between two successive photon absorptions by dye molecules, combining dye absorption calculations and the photoelectrical performance of DSSCs. The method and calculation would be helpful to determine photoelectron generation and, thus, optimize photocurrents since similar methods or calculations are not found in the literature.

1.2 Gel polymer electrolyte

In a DSC, the electrolyte governs the electron transfer kinetics at the photoanode and counter-electrode interfaces as well as the ion transport dynamics in the bulk [2, 53]. The electrolyte should be a good ionic conductor to achieve an efficient and steady charge transfer at two interfaces [54]. In general, liquid electrolytes provide higher conductivity and interfacial charge transfer. However, in recent times, quasi-solid-state electrolytes have gained a greater attention than liquid electrolytes for the fabrication of DSCs since they can overcome most of the shortcomings present in liquid electrolytes, such as the poor long-term stability caused by leakage and volatilization of liquids and desorption as well as degradation of the dye [55,56,57].

There are some recent advancements in the use of solid or gel polymer electrolytes in DSCs which offer chemical and physical stability along with considerably higher efficiencies. In particular, the use of composite polymer electrolytes based on 1-d nanofiber fillers and reduced graphene oxide are novel approaches [58, 59]. In addition, for the efficient charge collection and charge separation process, patterning the photoanode and the use of a metal grid are some of the practical approaches used to improve the performance of DSCs [60, 61]. The super-hydrophobic polymeric architecture introduced by Bella et al. realized the method to make floating third-generation solar cells [62]. In addition, novel ways to improve gel polymer electrolytes for DSCs are reported. For instance, DSCs with gel polymers that contain water have certain advantages and recorded higher stability along with considerable efficiency [63, 64].

In this study, we have avoided the use of volatile solvents such as acetonitrile, to the DSC electrolyte but used controlled amounts of nonvolatile solvents, ethylene carbonate (EC) and propylene carbonate (PC) to jellify the electrolyte and to improve ionic conductivity and the stability of the cells.

In the recent past, several efforts have been made to improve the ionic conductivity of gel polymer electrolytes based on various polymers such as polyethylene oxide (PEO), poly(acrylonitrile), poly(vinyl chloride), poly(vinyl pyrrolidinone), poly(vinylidene ester), poly(methyl methacrylate), and poly(vinylidene fluoride), intended to be utilized in DSCs [2, 55, 65]. Moreover, it has been confirmed that the incorporation of binary and ternary iodide salt systems, having cations with high and low charge densities (charge to volume ratio) into gel polymer electrolytes, is a reliable technique to enhance the efficiency of a DSC [66,67,68].

The incorporation of the additives like 1-methyl-3-propylimidazolium iodide (MPII) [69] and 4-tert-butylpyridine (4TBP) [70, 71] to the electrolyte system also contributes to improve the performance of DSCs. In the previous studies, the effects of additives/performance enhancers, such as MPII and 4TBP, on the function of quasi-solid-state DSCs were explained in detail [72]. The compositions MPII of (4TBP) [71, 72] and binary salts [73] optimized in previous studies were used in this work in the polymer electrolyte gel to obtain high-performance DSCs. In order to harness, the synergistic benefits of the improved photoanode, and improved polymer electrolyte, seven DSCs were investigated in detail in this work by incorporating TiO2 multi-layered photoanodes and a PEO-based gel polymer electrolyte that contains LiI, Hex4NI and MPII ternary iodides together with the DSC performance enhancer 4TBP.

2 Experimental

2.1 Materials

FTO transparent-conducting substrates with a sheet resistance of 10 Ω cm−2 and ruthenium-based 535-bisTBA (N719) sensitizing dye were procured from Solaronix SA. TiO2 Nanopowders, P25 (average particle size 21 nm), and P90 (average particle size 13 nm) were procured from Evonik, Germany. The starting materials, Hex4NI, LiI, PEO (MW = 4,000,000), iodine (I2), EC, PC, 1-methyl-3-propylimidazolium iodide, and 4-tert-butylpyridine (4TBP), with purity greater than 98%, were purchased from Aldrich. Prior to use, PEO, Hex4NI, and LiI were vacuum dried for ~ 2 h at ~ 50 °C.

2.2 Preparation of multilayer TiO2 photoanodes with 1–7 layers

For the preparation of the 1st layer of TiO2 nano-particles in photoanodes, 0.5 g of TiO2 nano-particles of the average size 13 nm (P90 powder) were grinded with 2 ml of 0.1 M HNO3 for about 30 min in an agate mortar. To prevent coating of TiO2 on the area of the FTO, which was needed for the electrical contacts, half of the FTO plate was masked by a piece of Scotch tape. Then, the TiO2 slurry was spin-coated on a pre-cleaned FTO substrate (1 cm × 2 cm) at 2300 rpm for 2 min. Subsequently, this photoelectrode was air-dried under ambient conditions for 5 h, thereafter sintered in air at 450 °C for ~ 30 min. The same procedure was repeated for the preparation of the 2nd layer of TiO2 photoanodes.

A TiO2 dispersion is prepared by grinding 0.5 g of nano-particles of the size 21 nm (P25 powder) with 2 ml of 0.1 M HNO3 in an agate mortar to coat the 3rd layer. The resulting slurry was spin coated at 1000 rpm for 2 min followed by sintering at 450 °C for 30 min. The 4th, 5th, 6th, and 7th layers were prepared by following the same spin coating and sintering processes that were used in the preparation of the 3rd layer. However, 0.1 g of polyethylene glycol (PEG (MW = 40,000)) and a few drops of Triton X 100 (surfactant) were added to the TiO2 slurry used for the 4th, 5th, 6th, and 7th layers, mixed well before the spin coating process in order to reach a homogeneous mixture. The configuration of the multi-layered photoanode that contains 7 layers of TiO2 nano-particles and prepared using the two different nano-particles sizes is illustrated in Fig. 1.

Fig. 1
figure 1

A schematic diagram to illustrate the configuration of the multilayer photoelectrode with 7 layers of TiO2 nano-particles

The series of photoanodes fabricated with 1 to 7 layers of TiO2 nano-particles were immersed in a 0.3 mM ethanol solution of N719 ruthenium dye for ~ 48 h. Prior to the immersion, the photoanodes were heated to ~ 100 °C, and the dye solution was heated to ~ 60 °C. The electrodes were washed gently with ethanol to remove the loosely bound dye after being taken out from the dye solution.

2.3 Preparation of gel polymer electrolyte

The gel polymer electrolyte was prepared according to the stoichiometric composition of (EO)10(EC)40(PC)40LiI(1.2)(Hex4NI)(0.8)(MPII)0.25I2(0.2), where (EO) represents one monomer unit of PEO. The appropriate amount (0.85 mol) of performance enhancer (4TBP) relative to 10 mol of PEO was also added to the electrolyte. The amounts of MPII and 4TBP were decided based on our previous studies on performance enhancers [71, 72]. The LiI and Hex4Ni binary salts composition was also selected from previously optimized systems in order to obtain DSCs with high performance [68, 73]. The solvent amount was decided from the preliminary studies done to get the gel nature for the electrolyte. For this purpose, a stock solution was prepared using EC:PC = 1:1 molar ratio, and a series of electrolytes was prepared by gradually increasing the solvent content and keeping the other components in the electrolyte fixed. Then, by using the inverted bottle test the optimum gel composition needed to obtain a non-flowing gel, electrolyte sample was selected. The molar ratios and weights of the components of the electrolyte are given in Table 1.

Table 1 Mass fractions and molar ratios of polymer, solvents, and performance enhancers used for the gel polymer electrolytes

In a closed vial, corresponding amounts of Hex4NI, LiI, MPII, and 4TBP were dissolved in EC and PC co-solvents as the initial step of the electrolyte preparation. Next, a homogeneous mixture was obtained by a continuous stirring of the solution after adding the appropriate amount of PEO. Then the mixture was heated to about 100 °C in constant stirring until it is converted to a transparent slurry. Then the mixture was allowed to cool down to ~ 40 °C, 12 mg of I2 were added, and the mixing was continued for a few more minutes. The gel polymer electrolyte resulted from this process was characterized by ionic conductivity measurements and used for the solar cell fabrication.

2.4 Fabrication of the DSCs

A series of 7 different DSCs was assembled by sandwiching the gel polymer electrolyte between a Pt-sputtered counter-electrode and a dye-sensitized TiO2 photoanode each with 1 to 7 spin-coated TiO2 layers.

2.5 Characterization

2.5.1 Characterization of the layered TiO2 photoanodes

The X-ray diffraction (XRD) technique was used for the structural characterization of 1–7-multilayer TiO2 photoanodes. Cu K-α (λ = 1.5405 Å) radiation of the Rigaku Ultima IV X-Ray Diffractometer (KYOWAGLAS-XATM, Japan) was used to produce the XRD patterns of the TiO2 films.

Scanning electron microscopy (SEM) images of the TiO2 layers were obtained using a Zeiss Evo LS15 SEM. These images were used to identify the morphology of the TiO2 layers and also used to estimate the film thicknesses of the multilayer TiO2 photoanodes.

The amount of dye adsorbed by each 1–7-layer TiO2 photoanode was calculated with the help of their UV–visible absorption spectra. The reference graph for absorbance vs. concentration was plotted by measuring the absorbance for the known concentration of the dye solution. For this purpose, a known concentration of dye solution was prepared by dissolving 2 mg of ruthenium 535-bis TBA (N719 dye) in 0.1 mol dm−3 NaOH solution. Next, UV–visible absorption was measured by diluting the original solution. The graph of absorbance vs. concentration was plotted by measuring the peak absorption of the dye molecules at 500 nm. Subsequently, each dye-absorbed photoanode was dipped in 3 ml of 0.1 mol dm−3 NaOH for 48 h to desorb the dye. The concentration of each dye-desorbed NaOH solution was determined using peak absorption at the 500 nm, and the reference graph (peak absorption data at the 500 nm against concentration) was calculated. Assuming that all the dye was desorbed into NaOH solution, the dye loading was calculated for each multilayer electrode.

2.5.2 Characterization of DSCs

Current–voltage (I–V) data were measured for about 3 h (at 10 min steps) for the fabricated solar cells with the light of 1000 W m−2 under continuous irradiation by using a PEC-LO1 solar simulator. The irradiated area of the DSC was 19 mm2. I–V data were measured using the potential scan rate 10 mV s−1 with the Pecell software and the Keithley 2400 source meter.

Electrochemical impedance spectroscopy (EIS) data of the solar cells were recorded by a Potentiostat (Autolab PGSTAT128N) frequency response analyzer (FRA) module. Impedance measurements were collected with NOVA 1.1 software. For the measurements, the cells were placed in a Faraday cage, and data were collected at room temperature in dark conditions. The measurements were conducted by applying a bias voltage similar to the Voc of the respective cells, and the measurement frequency window was 0.1 Hz–1000 kHz.

3 Results and discussion

Altogether there are 7 layers in the photoelectrode studied in this work, and therefore, it is very difficult to investigate all the possible configurations (7! = 5040). Hence, the cell configuration was selected by using the following criteria.

  1. (a)

    In general, when a photoelectrode is prepared for a DSSC, one or two dense or compact layers are used as the 1st layers (top layers) in order to get efficient charge transport (transport the injected electrons to TiO2 from the excited dye toward the external circuit) and to prevent internal short circuit (to prevent leakage current between the electrolyte and FTO) [74,75,76]. These compact layers reduce the charge recombination [75]. Therefore, the pinhole-free and cracks-free layers are needed as 1st layers (top layers). In the present work, these top two layers were prepared using relatively higher RPM layers. In this way, we managed to prepare visually uniform and highly transparent compact top layers. Not only that small particle sizes used in the 1st layers are helpful to scatter the light to other porous layers and dye on them [77].

  2. (b)

    In addition, DSSC performance depends on dye adsorption which is governed by the effective surface area of the thicker TiO2 on the compact layer. Therefore, in order to obtain a high porosity for these films, higher particle sizes (21 nm) were used. Further, it was observed that in these TiO2 layers, the surface roughness is higher when the RPM is lower. Therefore, a lower RPM was used for the preparation of the thick TiO2 layer. In addition, it was observed that when the particle size is higher (21 nm) and the RPM is lower, the films prepared are more translucent, indicating increased surface roughness and porosity.

  3. (c)

    PEG was added to the thick TiO2 layers in order to improve the porosity of these layers. When electrodes were annealed at 450 °C PEG gets decomposed and evaporate out. From XRD spectra, it is evident that no carbon residues remain in the sintered photoelectrode.

  4. (d)

    Triton X 100 (surfactant) is added to improve the porosity and to obtain a homogeneous distribution of the slurry on the substrate.

  5. (e)

    However, in the dense or compact layer preparation (for the top layers), PEG or Triton X 100 was not used as the purpose of these compact layers is different [78].

In addition to above-mentioned facts, prior knowledge from our previous DSC systems was used to select appropriate RPM, particle size, and inclusion of Triton X 100 and PEG.

3.1 XRD

XRD patterns of spin-coated TiO2 photoanodes with 1–7 stacked layers prepared on FTO substrates are given in Fig. 2. The 2θ peak position values with their respective TiO2 phases and relevant crystal planes are also shown in Fig. 2. Due to the clear diffraction peaks, it can be assumed that the TiO2 phases present in the multilayer structure are well crystallized. The polycrystalline nature of the TiO2 in the films is evident from the presence of several peaks in the XRD spectrum. Most of the peaks correspond to the anatase phase, except the peak that corresponds to the rutile (110) plane, at 2θ = 27.4°, which indicates the TiO2 films are predominantly in the anatase phase (JCPDS card no. 21–1276 and JCPDS 21–1272).

Fig. 2
figure 2

XRD patterns of 1–7-layered spin-coated TiO2 films

The peak at 27.4° is visible only when more than two layers are present in the sample, which can be due to the transformation of the anatase phase to the rutile phase because of the repeated thermal post-treatment [79,80,81]. According to the XRD pattern, there are peaks at 25.3° and 37.8°, which correspond to the (101) and (004) orientations of the anatase phase of TiO2. Interestingly, it is observed that the intensity of the peak at 25.3° increases with the increasing number of layers, while the intensity of the peak at 37.8° decreases. The low intensity and peak broadening observed for the single- and double-layer films may be due to the smaller TiO2 crystallite size of 13 nm (Fig. 1). The other XRD peaks located at 48.0°, 54.3°, 55.2°, 61.5°, and 65.5° belong to the orientations of the anatase phases indicated on the graphs.

3.2 SEM imaging

SEM images of the TiO2 electrodes with 1, 2, 3, 4, 5, and 6 layers at 50,000 magnifications are shown in Fig. 3 – (a), (b), (c), (d), (e), and (f), respectively. The formation of crack-free mesoporous thin films with high porosity that offers high surface area is evident from these SEM images. A large effective surface area in the TiO2 photoanode is needed to improve the adsorption of the light-harvesting species, namely the N719 sensitizer dye used in this study. SEM images of the TiO2 electrodes with 1, 2, 3, 4, 5, 6, and 7 layers are given in Figs. 4 – (a), (b), (c), (d), (e), (f), respectively, at 100,000 magnifications to understand the distribution size and the shapes of the crystallites and pores. The average crystallite size of the 1st and 2nd-layered electrodes agrees with the manufactures specification and is about 13 nm, while that of the 3–7 layers is about 21 nm. The compact nature of the 1st two layers is evident from the SEM images in Figs. 3(a), 3(b), and 4(a), 4(b). The presence of crack-free compact top layers is needed to overcome internal short circuiting (electrical contact between the electrolyte and FTO) and to get better electron transport from TiO2 to FTO, while maintaining a low Ohmic resistance between the TiO2 and the FTO layers. In addition, such compact layers scatter light in different directions, making light harvesting more efficient [77]. The higher porosity exhibited by 3- to 7-layered electrodes (Fig. 4) is important to achieve a higher effective surface area. High surface area enhances the dye adsorption, which improves the light-harvesting ability of the electrode. In addition, the rough surface morphology increases the electrode–electrolyte contact area reducing the interfacial charge transfer resistance, which finally helps achieve a higher photocurrent. For each layer, three SEM images were observed and all showed almost the same surface morphology confirming the high reproducibility of same morphology with this method. The thickness of the sample could be reproduced within ± 6% precision.

Fig. 3
figure 3

SEM images of the TiO2 films with 1, 2, 3, 4, 5, and 6 layers at 50,000 Magnification

Fig. 4
figure 4

SEM images of the TiO2 films with 1, 2, 3, 4, 5, 6, and 7 layers at 100,000 magnification

Transversal SEM images of 2, 3, 4, and 5-layered spin-coated TiO2 films are shown in Fig. 5 (a), (b), (c), (d), respectively. The average thicknesses of the films prepared are given in Table 3. The thinnesses of the 1st and 2nd layers are almost the same (~ 0.5 μm) and that of other layers is ~ 1.0 μm. The small layer thickness of the 1st and 2nd layers can be due to the use of small TiO2 particle size (13 nm) and the layer thickness of the 3rd, 4th, and 5th layers can be due to the use of relatively larger particle sizes (21 nm) during the film preparation.

Fig. 5
figure 5

Transversal SEM images of 2, 3, 4, and 5-layered spin-coated TiO2 films are shown in a, b, c, and d, respectively

3.3 Dye adsorption

Since the photon-absorbing species in a DSC is the dye, the amount of the surface adsorption of the dye sensitizer is an important parameter in characterizing DSCs. In order to find surface dye concentration, at first UV–visible absorption spectra of known dye concentrations were investigated. The spectra of different dye concentrations of the solutions are given in Fig. 6 (a). It shows two absorption peaks, one at ~ 500 nm and the other at ~ 372 nm. Figure 6 (b) shows the graph of optical absorbance at 500 nm versus the concentration of the dye solution. According to the Beer–Lambert law, absorbance is directly proportional to the concentrations of the dissolved substance. Therefore, the calibration curve in Fig. 6 (b) was used to determine the concentrations of dye desorbed from the photoanodes.

Fig. 6
figure 6

a Absorbance vs wavelength for different concentrations of N719 dye solutions. b Absorbance vs concentration for N719 dye at 500 nm. c Absorbance vs wavelength for desorbed N719 dye from different photoanodes

The results were utilized to calculate the surface dye density (concentration) of each photoanode, which are given in Table 2. The calculated dye loading per square centimeter of the TiO2 film and absorbed dye weights are also provided in Table 2. As expected, the dye adsorption increases with the increasing number of spin-coated TiO2 layers as well as the film thickness. For instance, the photoanode composed of 7-layered TiO2 film exhibits the highest effective dye adsorption. One square centimeter of the 7-layer photoelectrode contains 7.50 × 1016 dye molecules (124.5 nmol cm−2), while the 1-layer photoelectrode contains 1.18 × 1016 molecules (19.62 nmol cm−2).

Table 2 Amount of dye adsorbed with respect to the number of TiO2 layers

3.4 I–V and P–V characterization of DSCs

Current density versus cell potential (J–V) and power density versus cell potential (P–V) characteristic curves were used to determine the short-circuit current density (JSC), the open-circuit voltage (VOC), the fill factor (ff), and the energy conversion efficiency (η) of the DSCs fabricated in this work. Three cells were tested for each electrode composition, and all the cells exhibited almost similar results confirming the high responsibility of results. Average values for JSC, VOC, ff, and η values of the DSCs are given in Table 3 with the number of TiO2 layers in the photoanode. These average values were taken by continuously measuring J and V for 2 h at 10 min intervals. All the cells exhibited excellent stability during the 2 h measurement period. For example, plots of JSC versus cell potential and power density versus cell potential are given in Fig. 7 as a function of irradiation time for the highest efficiency DSC containing 5-spin-coated TiO2 layers.

Table 3 Average values for JSC, VOC, ff, and η with respect to the number of TiO2 layers
Fig. 7
figure 7

a The photocurrent density versus potential (J–V) and b the power density versus cell potential (P–V) as a function of irradiation time of the DSC containing 5-spin-coated TiO2 layers in the photoanode. Measurements were taken under steady irradiation of 1000 W m−2 (1.5 AM)

In this study, VOC exhibits a gradually decreasing trend with the increase of TiO2 layers of the photoanode up to 5-layered TiO2 film, and then it remains more or less unchanged (considering the error) or slightly increased with increasing thickness. The highest VOC of 820.0 mV was shown by the DSC consisting of a single spin-coated TiO2 layer, which exhibited the lowest efficiency and lowest Jsc. In DSSCs, several factors govern the open-circuit voltage due to the presence of a sensitized semiconductor layer and the electrolyte, counter-electrode, and several interfaces. The TiO2 layer thickness plays a crucial role in determining the DSSCs performance. Typically, a thicker TiO2 layer leads to a decrease in the open-circuit voltage (Voc) of the cell as reported by several authors [82,83,84,85,86,87]. Simply the initial increase in charge carrier generation with improved dye adsorption along with increasing thickness might not be fully accompanied by an increase in charge carrier collection at the electrodes. This imbalance may lead to a decrease in the open-circuit voltage (Voc) since Voc is a measure of the electric potential difference between the electrodes when no current flows. However, the phenomenon can be understood considering several factors as explained below.

  1. (a)

    Charge recombination effects: According to the light-harvesting mechanism of DSSCs after the visible-light photons are absorbed by the dye molecules, they generate electron–hole pairs, or according to band theory, the conduction-band electrons and valence-band electrons. When the cells are connected to the external circuit, these photogenerated electrons are injected into the TiO2 conduction band and then migrate through the TiO2 layer to the FTO current collector, creating a photocurrent in the external circuit, while the holes remain in the dye. However, at the open-circuit condition, the external circuit is disconnected, and thus, there is no current through the external circuit. In this situation, at the equilibrium, the rate of photogeneration is equal to the rate of recombination since there is no current through the external circuit. However, when the TiO2 layer thickness is increased, the average distance that the electrons travel to reach the FTO current collector also increases. The increased transport path length that the electron should traverse to reach the current collector enhances the possibility of electron–hole recombination, reducing the net charge separation efficiency and, thus, lowering the Voc [82]. Further, due to the increase of the effective surface area with increasing thickness of the TiO2 layer, which provides additional charge-recombination sites can drop the Voc [85, 88]. In addition, an increase in the number of trapping surface states, which improves the back electron transfer can also lower the Voc [82, 87]. In addition, Ito et al. [82] attributed this Voc drop also to the sharing of photoinjected conduction-band electrons by outer TiO2 particle layers which lowers their quasi-Fermi level and hence the VOC.

In order to understand the charge transport and transfer dynamics, electrochemical impedance spectroscopy of the DSSCs was analyzed. Using the impedance spectra, Bode phase diagrams were plotted (Fig. 8-(a)) to calculate the electron transport lifetimes (Ï„tr) and recombination lifetimes (Ï„rec) [85, 89, 90]. Figure 8(a) shows the Bode phase diagrams of the cell and the calculated parameters are given in Table 4.

Fig. 8
figure 8

a The Bode phase diagrams of the DSSCs prepared by varying the number of layers in the TiO2 photoanode and b Nyquist plot of the DSSCs prepared DSS with 5-layer photoanode

Table 4 Layer thickness of the photoanode (L) and electron transport lifetimes (Ï„tr) and recombination lifetimes and diffusion length (DL) of the DSSCs prepared by varying the number of TiO2 layers in the photoanode
  1. (b)

    Diffusion length effects (DL): The thickness of the TiO2 film affects DL (the distance of an electron can travel through a material before recombining with a hole) of the photogenerated electrons. In general, when the TiO2 layer thickness increases, the DL of electrons decreases since the possibility of recombination increases with the increasing thickness [91, 92]. In this study, electron diffusion lengths were calculated by using the following equation using analyzing impedance data [85, 93, 94]:

    $${D}_{L}=L\sqrt{\frac{{R}_{rec}}{{R}_{tr}}},$$

    where Rrec and Rtr are recombination resistance and charge transfer resistance. L is the sample thickness. Nyquist graphs were plotted to calculate Rrec and Rtr values. The Nyquist plot obtained for the 5-layer cell is given in Fig. 8-(b). In Nyquist plots, the diameter of the high-frequency semicircle (on the left side) is attributed to the charge transport resistance Rtr, while the diameter of the low-frequency semicircle (on the right side) (Rrec) is attributed to charge recombination. Sample thickness L was obtained by analyzing transverse SEM images. The calculated L and DL values are given in Table 4.

Interestingly in this work, the calculated diffusion lengths increase up to five TiO2 layers (4.3 μm) and then decrease with increasing number of layers. In addition, the calculated diffusion lengths are longer than the respective thinness of TiO2 layers. Therefore, most of the electrons diffuse through the TiO2 layers before recombination. However, the result in a shorter average diffusion length may have limited the effective transport of electrons to the electrode, resulting in a lower Voc.

  1. (c)

    Increased resistance effects: In a functional DSSC, photogenerated electrons (photocurrent) should travel to the FTO current collector through the TiO2 layers. When the TiO2 film thickness increases, the higher is the electrical resistance of the film since the resistance is directly proportional to the layer thickness. In addition, the inter-grain resistance of such nanocrystalline ceramic TiO2 film from the increased number of grain boundaries, defects, and interfaces also contributes. This higher resistance can possibly impede the flow of electrons within the cell, leading to an internal electrical potential drop across the TiO2 film. The result is reduced Voc of the cell with increasing layer thickness. Therefore, the decreased Voc with increasing layer thickness can very likely be due to the increased resistance of the sample with the increasing layer thickness. Considering the error of the Voc values, it can be inferred that after 5 layers, the Voc remains more or less constant or there can be a small Voc enhancement. In this region, the Voc drop may be compensated by the enhanced carrier generation with increasing thickness and poor carrier collection due to enhanced resistance. Increased resistance can be understood due to the observed drop of Jsc in this region. In detail, the thicker layer can also enhance light absorption, allowing more photons to be absorbed and contribute to the generation of electron–hole pairs. This increased light absorption can partially compensate for the increased recombination, leading to a small improvement in Voc.

  2. (d)

    Rate of photoelectron generation. With the increasing layer thickness, the adsorbed surface dye concentration is increased, and therefore, the rate of photoelectron generation becomes higher for the thicker photoanodes. However, Jsc increase is exhibited only up to the 5th layer. When the TiO2 layer thickness becomes higher (more than 5 layers), the observed photocurrent decrease could be due to the net effect of back electron transfer, resistive, and recombination losses. This can explain the Voc values of the cells with 5, 6, and 7 layers (Table 3) which are slightly higher or unchanged. In principle, although the higher photoelectron generation is given by the cells with 7 layers, these cells exhibit lower photocurrent possibly due to the charge transport limitations of the cell as discussed above. In a functional cell, this mechanism would lead to higher charge generation but poor charge transport. The increased charge transport relaxation time of more-thicker sample may have influenced the slightly improved Voc.

However, it should be noted that the relationship between TiO2 layer thickness and Voc is not a direct relationship. There is an indirect effect due to improved light absorption caused by enhanced dye absorption and improved electron injection. We can understand that in this case, the optimal thickness is given with the 5-layer film where the photocurrent and the efficiency are maximum. In this situation, the lowest Voc is observed which can be a result of efficient charge transport dynamics which also increases the possibility of back electron transfer under open-circuit conditions. The increase of electron trapping surface states can also be a reason for Voc drop [95]. At the optimum TiO2 layer thickness above mentioned two competing processes balance to give the highest overall cell performance. However, after the optimal thickness, for photoanodes with 6 and 7 layers, a small Voc increase is observed which can be a result of increased resistances as inferred from the declined photocurrent.

The efficiency and the JSC increased successively up to 5 layers of TiO2, then started to decrease (Table 3). Therefore, in these cells, the efficiency is clearly governed by the photocurrent. In general, the amount of light harvested by the dye molecules depends on the number of dye molecules dispersed on the photoelectrode, which governs the light-harvesting efficiency of the photoelectrode [96]. According to the dye adsorption data given in Table 2, the dye concentration in a photoanode gradually increases with the number of TiO2 layers in the photoanode. Therefore, it can be concluded that the dye adsorption by the photoelectrode does not reach a saturation level with increasing thickness (or layers) up to 7 layers. However, the average values of efficiency and JSC values increased with the increasing number of TiO2 layers from 1 to 5 layers, as depicted in Table 3. The highest average efficiency of 5.5% and JSC of 12.5 mA cm−2 are shown by the DSC containing 5 spin-coated TiO2 layers. The thickness of this 5-layered TiO2 film is 4 μm. It has also been reported that thicker photoanode films containing more TiO2 P25 layers can adsorb more dye molecules than thinner films, leading to an increase in light-harvesting efficiency [97]. The 5-layer film prepared in this study contains 5.22 × 1016 dye molecules per square centimeter (86.7 nmol cm−2), which is much higher than that of the single-layered film, 1.18 × 1016 (Table 2). The increase in the efficiency and JSC of DSCs with the increasing number of layers from 1 to 5 layers can, thus, be attributed to the increase in surface dye concentration (Tables 2 and 3).

Marandi et al. also observed an increase in efficiency with the increasing number of layers, which has also been attributed to the increase of dye adsorption [98]. As reported by these authors, the energy conversion efficiency in the DSC containing one transparent sub-layer of TiO2 nanocrystals and two over-layers of TiO2 P25 was 6.5% and the efficiency has increased to 7.2% for photoanodes made of two transparent sub-layers of TiO2 nanocrystals with one P25 TiO2 over-layer.

After exhibiting the peak efficiency and JSC for the electrode with 5 TiO2 layers, the efficiency and JSC have decreased with further increase of the number of layers from 5 to 7 (Table 3). The DSC made of photoanodes with 4 and 6 TiO2 layers showed an energy conversion efficiency of 4.2 and 5.3% and JSC of 9.6 and 12.1 mA cm−2, respectively. The 5-layer film contains 5.22 × 1016 dye molecules per square centimeter (86.7 nmol cm−2), which is lower than the dye loading of 6- and 7-layer films (Table 2) [52]. There is a drop in efficiency and JSC when the number of layers increases from 5 to 7. However, the efficiency and JSC drops are not very considerable in the DSC consisting of 6-layer TiO2 film and it showed penultimate efficiency and JSC of 5.3% and 12.1 mA cm−2, respectively. The drop of the JSC and the efficiency of the cells that contain 6 and 7 TiO2 layers are very likely to be due to the combined effect of 2 possible processes.

  1. (1)

    Diffusion lengths: The calculated diffusion lengths clearly follow the trend of Jsc. Therefore, the increased Jsc up to 5 layers and then observed decrease can attributed to the variation of electron diffusion lengths given in Table 4. Although the sample thickness is higher, the average electron diffusion length Jsc variation has been affected by the variation of the diffusion length.

  2. (2)

    Recombination rates: Although longer electron transport paths can increase charge recombination (as mentioned), they can also provide more opportunities for electron–hole pair generation. If the recombination rate is relatively low (as evident by the shorter recombination time given in Table 4), the relatively longer path allows for more efficient electron recombination leading to a lower short-circuit current density.

As a result of all these effects, 6 and 7-layered cells show a lower photocurrent than that of 5-layer cells. This kind of decrease in the photocurrent and the efficiency with the increasing number of layers above a certain thickness have been observed in other studies too [85]. For example, an energy conversion efficiency of 7.2% was observed for the electrode containing one transparent sub-layer of TiO2 nanocrystals with one over-layer of P25 but decreased to 6.7% for photoanodes made of two transparent sub-layers of TiO2 nanocrystals with two P25 TiO2 over-layers [98]. The authors relate the behavior to the effect of the increase in electron diffusion length in the TiO2 layers with the increasing thickness of the photoanode.

J–V and P–V curves related to the highest efficiency for the DSCs composed of each photoelectrode are shown in Fig. 9. The highest Jsc and Voc also showed the same behavior with the average values given in Table 3. The highest Jsc, Voc and efficiency values are 13 mA cm−2, 0.7 V, and 5.56%, respectively. The highest Jsc values obtained from Fig. 9 (a) were used to calculate the photoelectrons generated per second from the unit area of the cell.

Fig. 9
figure 9

a The photocurrent density versus cell potential curves and b the power density versus cell potential curves that exhibited the highest efficiency for each dye-sensitized solar cells assembled with 1–7 layers of TiO2. Measurements were taken under steady irradiation of 1000 W m−2 (1.5 AM)

Since the Jsc values are known, the effective number of photoelectrons (photogenerated electrons that contribute to the current) generated per second from the unit area of each photoelectrode can be calculated using the following relationship.

$$Photoelectrons\,per\,second\,per\,unit\,area\,=\,\frac{{J}_{SC}}{e}.$$

Therefore, since the surface dye density of each photoanode is known, the rate of effective photoelectron generation from a single dye molecule can be calculated from the following equation.

$$\mathrm{Rate\,of\,effective\,photoelectron\,generation\,per\,dye\,molecule}\,=\,\frac{Photoelectrons\,per\,second\,per\,unit\,area}{Surface\,dye\,concentration}.$$

The rates of effective surface photoelectron generation and effective molecular photoelectron generation and average time gap between two effective consecutive photon absorptions are given in Table 5 for the 7 different photoanodes. The rate of effective surface photoelectron generation follows the trend of Jsc variation. In general, the rate of effective photoelectron generation per dye molecule decreases with increasing layer thickness, which can be a result of the increase of idle dye molecules (due to the formation of dye aggregates and inefficient light scattering to the dye by TiO2 layers) with increasing surface dye concentration (or number of layers). The fastest effective photoelectron generation (1.53 s−1 molecule−1) is exhibited by the single-layer photoelectrode, and the slowest (0.85 s−1 molecule−1) is shown by the 7-layer photoelectrode.

Table 5 Effective surface photoelectron generation rate, effective molecular photoelectron generation rate, and average time gap between two effective consecutive photon absorptions for the different photoanodes

These results can be used to determine the average time gap (delay) between two effective consecutive effective photon absorptions, which is a highly important parameter to characterize a DSSC. The calculated delay times are given in Table 5 as a function of the number of layers in the photoanode. The general trend is that the average time gap increases with the increasing layer thickness, which can result from the increase in surface dye concentration. However, the photoanodes with 4 and 5 layers show relatively small delay time, which can be an effect of optimum dye distribution and light scattering of these photoelectrodes. The rate of effective photoelectron generation and average time gap between two effective consecutive photon absorptions (s) are 1.34 molecule−1 s−1 and 0.74 s for the most efficient cell studied in this work.

4 Conclusion

This research was conducted to investigate the effect of thickness of a multilayer TiO2 photoanode on the photocurrent and efficiency in a dye-sensitized solar cell. XRD results revealed the predominant presence of anatase phase of TiO2 in all the layers of the photoanode electrode. The SEM images revealed that a single TiO2 film is formed by merging all the layers in the 1 to 7–multi-layered TiO2 photoanode and the thickness of the highest efficient DSC is about 4.3 μm. The number of dye molecules adsorbed by each electrode gradually increased with the increasing thickness (number of layers) of the TiO2 films. The Jsc and efficiency increase progressively as the number of TiO2 layers increases up to 5 layers and then decreased for the photoanode with 6 or 7 layers. The 5-layer photoanode showed the maximum average efficiency of 5.5% and the maximum JSC of 12.5 mA cm−2. This electrode was found to contain 9.66 × 10–8 mol cm−2 of adsorbed dye. All the DSCs composed of spin-coated 1 to 7- TiO2-layered photoanodes exhibited excellent stability during the 2 h measurement period.

The present study introduces a way of determining the rate of effective photoelectron generation and average time gap between two effective consecutive photon absorptions. The rate of effective photoelectron generation and average time gap between two effective consecutive photon absorptions (s) are 1.34 molecule−1 s−1 and 0.74 s for the most efficient cell studied in this work.