Introduction

The continuous increase in energy consumption and finite reserves of fossil fuels are the reason for the search for alternative energy sources. This is one of the biggest challenges facing society today. Converting solar energy into chemical fuels is one of the most promising solutions for fulfilling this demand1,2. Production of hydrogen fuel using photoelectrochemical cells (PEC) seems to be a very good and ecological way to develop renewable energy sources. Generally, the PEC process can be divided into three steps to convert solar energy into H2 generation. In the first step, charge carriers are generated when photoelectrodes absorb photons whose energy is equal to or higher than the band gap energy. In the second step, the electron–hole pair are separated. Finally, electrons or holes (depending on the type of electrode) participate in redox reactions at the electrode surface3. The search for suitable materials active in visible light is based on the following factors: (1) photoactive materials should be characterized by a relatively narrow energy gap (1.9–3 eV), (2) appropriate band structure (conduction band/valence band meeting the oxidation and reduction potential of water), (3) fast charge separation, (4) undisturbed charge transport and (5) photostability4.

Since the work of Fujishima and Honda on photoelectrochemical water decomposition using TiO2 monocrystals5, many other semiconductor materials have been investigated for the same application. Along with TiO2, which is still widely used, many other metal oxides have been explored as photoanode materials for photoelectrochemical water splitting (i.e. WO36,7, Fe2O38,9, CuO10,11, ZnO12). The biggest problem regarding the application of such compounds is that oxide semiconductors are characterized by wide energy gaps, which makes them active under UV light (λ < 389 nm), which is only 5% of the solar spectrum reaching the Earth13,14. As opposed to metal oxides, many metal sulfides have narrow energy gaps suitable for the absorption of visible light15,16. Metal sulfides, in addition to the advantages mentioned above, unfortunately, have several disadvantages that limit their use, such as low electron and hole separation efficiency and slow water oxidation kinetics18, lack of suitable oxidation and reduction potentials to achieve complete water decomposition or vulnerability to oxidation in air or aqueous solutions19,20. One of the most commonly studied for PEC water splitting among metal sulfides is CdS, active under visible light (band gap 2.4 eV)21. However, CdS-based photoelectrodes easily undergo photocorrosion due to the unstable valence band composed of S 3p orbitals22,23. The problem of metal sulfide instability has been tried to be solved, for example, by morphology and grain control24, but the obtained materials had low photocatalytic activity. It has been proven that multicomponent metal sulfides exhibit photocatalytic activity25,26. One of the most studied materials in this group is CdIn2S417. Despite the efforts made so far to enable the use of this compound in photoanodes, there are many problems have not yet been overcome, such as high surface recombination27. Besides CdS, a well-known sulfide semiconductor is ZnS, which is active under UV light due to its wide energy gap28. Accordingly, another multicomponent sulfide, ZnIn2S4, is the next candidate as a material active under visible light for use in photoanodes. Zinc indium sulfide (ZnIn2S4 ZIS), which belongs to the group of ternary compounds with the general formula AB2X4, is one of the most promising semiconductor photocatalysts among metal sulfides29. It is characterized by 2D sheet structures and stands out for its many advantages in various fields such as charge storage, photocatalytic water splitting, and CO2 photoreduction30,31,32,33. Until now, ZnIn2S4 has been obtained mainly in the form of powder34,35,36 or films on the FTO glass37,38,39. FTO is one of the most commonly used substrates for photoelectrodes6,8,18. It has good thermal stability and its resistance does not increase during annealing even at 450 °C40. Moreover, FTO sheets with low sheet resistance (7–8 Ω sq−1) are widely available commercially. Many articles on the use of ZnIn2S4 in photoelectrochemical water splitting do not report at all results on the stability of the electrodes38,41,42. This suggests that the ZnIn2S4-based materials described so far do not exhibit good photoactivity during long-term testing. The use of a material that is photochemically active could reduce the impact of negative factors on the photoanode's stability through the formation of a heterojunction, which has already been described in the literature43,44. TiO2 nanotubes are therefore an excellent potential substrate, as they can simultaneously act as a substrate with a greatly developed surface area and form a heterojunction with ZnIn2S4.

Titanium dioxide (TiO2) is among the most studied photocatalysts. It has unique properties such as chemical stability, non-toxicity, and bio-compatibility45. One of the most studied TiO2 nanostructures are nanotubes because their chemical and physical properties can be controlled to the greatest extent46. TiO2 nanotubes (TiO2NT) obtained by anodization are formed directly on titanium, which acts as the substrate and current collector. Therefore, there is no need to add a binder, which usually increases the resistance. TiO2 nanotubes obtained by anodization on titanium represent a promising substrate for the deposition of other photoactive materials47,48,49.

While both substrates are commonly used in photoelectrochemical research6,8,47,48, a direct comparison of ZnIn2S4 performance on these substrates is lacking, making it essential to fill this gap for a comprehensive understanding of the material's behavior in practical applications. Thus, comparative photoelectrochemical (PEC) studies of ZnIn2S4 on anodized TiO2 nanotubes and fluorine-doped tin oxide (FTO) substrates may be of significant importance in the field of photoelectrochemical research. Understanding how the same material behaves on different substrates allows for a comprehensive evaluation of its properties and potential in renewable energy applications. The choice of substrate can profoundly affect the stability and long-term performance of photoelectrochemical devices. By conducting comparative studies, one can identify the substrate that provides better stability for ZnIn2S4-based photoanodes, enabling the development of more durable and practical devices.

This study presents a comparison of the photoelectrochemical properties of ZnIn2S4 layers deposited on FTO and TiO2 nanotubes (TiO2NT). ZnIn2S4 was obtained using a hydrothermal process previously described in the literature38. The materials obtained by processes lasting for 6 and 12 h were also compared. Moreover, the ZnIn2S4 layers on FTO and TiO2NT were annealed at different temperatures and tested as photoanodes for water oxidation. Photoelectrochemical studies were performed in a three-electrode system under simulated solar light illumination. The differences in the active layer properties obtained on TiO2 nanotubes and FTO were studied using a series of structural, morphological, and optical characterization. Photoelectrochemical measurements made it possible to determine the photoelectrochemical activity of the materials obtained and to compare their stability during illumination.

The procedures of substrate preparation and Ti anodization were described in supporting information (SI). The materials characterization section was also described in SI. The ZnIn2S4 layers were prepared directly on FTO and TiO2NT substrates using a hydrothermal process. Details are presented in SI. The photoanodes obtained in the first, hydrothermal stage were then annealed in air atmosphere at temperatures of 300, 400, and 500 °C. The applied designations of all the types of photoanodes, along with the parameters of the processes for obtaining them, are shown in Table 1.

Table 1 Inventory of the obtained electrodes with the parameters of the obtaining processes.

Results and discussion

The morphologies of the prepared samples were examined by SEM. Figure 1 shows the micrographs of ZnIn2S4 layers obtained by the 6 h process on FTO and TiO2NT (Fig. 1a–d,e–h, respectively) before and after annealing. The resulting layers significantly differ depending on the substrate on which they were deposited. In the case of FTO, ZnIn2S4 was obtained uniformly over the entire surface. Annealing of the layers on FTO at 400 and 500 °C (Fig. 1c,d, respectively) results in the formation of spherical aggregates of deposited material between which the substrate surface was exposed. In the case of the layers on TiO2NT, marigold-like ZnIn2S4 microspheres described earlier in literature50 can be observed even before the annealing (Fig. 1e). After annealing on TiO2NT, although the deeper layers of the material were exposed, the substrate surface was not visible (see Fig. 1f–h). It is seen that the effect of temperature on surface morphology was not as significant for the layers on TiO2NT as for these on FTO. The use of TiO2 nanotubes enabled better coverage of the substrate surface with ZIS material.

Figure 1
figure 1

SEM images of (a) FTO/ZIS6, (b) FTO/ZIS6-O300, (c) FTO/ZIS6-O400, (d) FTO/ZIS6-O500, (e) TiO2NT/ZIS6, (f) TiO2NT/ZIS6-O300, (g) TiO2NT/ZIS6-O400 and (h) TiO2NT/ZIS6-O500.

SEM images of the layers obtained by the 12 h hydrothermal process before and after annealing are shown in Figure S1. Neither the type of substrate nor the annealing temperature significantly affects the morphology of the resulting layers. No areas of the exposed substrate surface are visible on both FTO and TiO2NT except FTO/ZIS12-O500. After annealing the layer on FTO at 500 °C, the formation of aggregates of deposited material can be observed (Fig. S1d). Figure 2 presents a comparison of the SEM micrographs of the layers after 6 and 12 h hydrothermal processes on both substrates. As can be seen in Fig. 2b, the 12 h hydrothermal process leads to vertically aligned flakes on FTO that are more ordered than the layers obtained by the 6 h process on the same substrate (Fig. 2a). Regarding morphology, TiO2NT/ZIS6 and TiO2NT/ZIS12 differ significantly from each other (Fig. 2c,d). The marigold like spheres structure is observed for TiO2NT/ZIS6, while TiO2NT/ZIS12 materials look rather like nanoflakes.

Figure 2
figure 2

SEM images of (a) FTO/ZIS6, (b) FTO/ZIS12, (c) TiO2NT/ZIS6 and (d) TiO2NT/ZIS12.

The crystal structure of the prepared ZnIn2S4 layers before and after annealing at different temperatures has been studied by X-ray diffraction (XRD) technique, as shown in Fig. 3. In the patterns for materials before annealing, regardless of the length of the synthesis, only the XRD reflections of hexagonal and cubic ZnIn2S4 structures, as well as these of the substrates can be seen. Therefore, it is confirmed that the ZnIn2S4 material was successfully obtained on completely different substrates using the same procedure. In all cases, the reflections corresponding to the hexagonal structure of ZnIn2S4 are relatively higher than those of the cubic one. The only difference between the material synthesized at 6 h and 12 h is the intensity ratio for the peaks at ~ 46° and ~ 53°, which correspond to the plane (2 \(\overline{1 }\) 0) of hexagonal ZnIn2S4 and the substrate (both FTO and TiO2NT), respectively. For the shorter time, the substrate surface is more exposed for both substrates, so the peak intensity at ~ 53° is higher than for the longer synthesis time. Consequently, the intensity of the peak corresponding to ZnIn2S4 increases with better surface coverage in the 12 h process. The reflections seen in the patterns of the layers processed for 12 h in comparison to those for 6 h are higher and narrower which means that the layer is thicker and composed of larger crystallites. As the annealing temperature increases, the reflections at 2θ equal to 27° and 46.5° corresponding to the (101) and (1 \(\overline{1 }\) 0) planes of the hexagonal structure are no longer visible. The reflection at 28° from the (311) plane of the cubic structure also disappears. This indicates the decomposition of crystalline ZnIn2S4 during the annealing of the material at higher temperatures. It is known that annealing of indium sulfides at temperatures above 400 °C leads to the formation of In2O351. Thus, annealing at 500 °C of all materials, results in the formation of In2O3, from which a clear, characteristic reflection is seen at 30.6° (JCPDS No. 71-2195)37. As the annealing temperature increases, the relative intensity of the peaks corresponding to SnO2 in XRD patterns for FTO-based materials also increases (see Fig. 3a,c). This confirms that annealing results in the exposure of the substrate surface, as the signal from the substrate is more intense.

Figure 3
figure 3

XRD patterns of (a) FTO/ZIS6, (b) TiO2NT/ZIS6, (c) FTO/ZIS12 and (d) TiO2NT/ZIS12 photoanodes before and after annealing at 300, 400 and 500 °C.

The average crystal size of ZnIn2S4 layers on FTO and TiO2NT was calculated from XRD measurements using the Scherrer equation, and the results were presented in Table S1. To compare the effect of temperature on crystallite size on the two substrates, the peak at 62.5° was chosen for the calculations because it is visible in the diffractograms for all materials. ZnIn2S4 grains in layers on FTO were characterized by sizes of 41–44 nm. In contrast, layers with much higher grain sizes were obtained on TiO2NT: 65–133 nm. This variation in crystal size could stem from the distinct properties of the substrates, which can influence the nucleation and growth of the ZnIn2S4 crystalline structure. In the case of FTO-based photoanodes, the length of the hydrothermal process and the annealing temperature had no significant effect on the change in crystallite size. Whereas, ZnIn2S4 grains in layers deposited on TiO2NT obtained in a 12 h hydrothermal process were characterized by sizes larger by about 31 nm than in the case of shorter deposition (6 h). Increasing the annealing temperature resulted in a decrease in crystallite size, both for the TiO2NT/ZIS6 and TiO2NT/ZIS12 series. The decrease was slightly higher for layers obtained in a 12 h hydrothermal process. This observation suggests that the hydrothermal deposition time plays a more prominent role in influencing the crystal growth kinetics on the TiO2NT substrate, potentially due to the unique structural features and enhanced surface area of nanotubular structures.

Figure S2 shows the UV–Vis absorbance spectra, calculated from the reflectance spectrum using the Kubelka Munk equation, of ZnIn2S4 layers on FTO and TiO2NT obtained in 6 h and 12 h hydrothermal process followed by annealing at different temperatures. The vertical lines on the graphs additionally indicate the values of wavelengths below which the absorbance begins to increase for the studied materials. Except for the layers annealed at 500 °C, all samples exhibited high absorption in the visible light range. For the as-received materials and these annealed at 300 and 400 °C, the onset of absorption can be observed between 550 and 600 nm, and its intensity increases as the wavelength decreases. For layers annealed at 500 °C, the onset of absorption is shifted to smaller wavelengths. The same phenomenon is observed for both FTO and TiO2NT substrates as well as for both, 6 and 12 h, synthesis times. The energy band gaps (Tab. S2) of the obtained materials were determined from the Tauc plots shown in Fig. S3. The energy band gap of the layers annealed at 300 °C and without annealing are similar, and equal ~ 2.50 eV. In all cases, the material obtained after annealing at 400 °C exhibits the smallest energy band gap. On the other hand, annealing at 500 °C significantly increases the energy gap even up to about 3 eV for the layers obtained in a 6 h synthesis process on TiO2NT (Fig. S3b). Increasing of the Energy band gap is likely related to the thermal degradation of the material. This is in agreement with XRD results, which indicated the formation of In2O3 during annealing at 500 °C. The layers seem to lose their activity in visible light.

After the characterization of materials using solid state techniques, the obtained materials were studied as photoanodes for photoelectrochemical water splitting. Figure S4 shows the LSV curve of the FTO/ZIS6 electrode recorded without illumination towards cathodic potential. Below − 0.2 V vs. RHE, a sharp increase in cathodic current density can be observed, which indicates the reduction of electrode material. However, at about 0.2 V vs, RHE, a noticeable change in the color of the material was noted as shown in the inset of Fig. S4a. Figure S4b shows LSV curves recorded during intermittent illumination of the FTO/ZIS6 photoanode before and after reduction at a potential of 0.2 V vs. RHE for 2 min. As can be seen, the pretreatment significantly affects the photoelectrochemical performance of the tested photoanode. The anodic hump was registered between 0.4 and 0.6 V vs. RHE, which is probably related to partial oxidation of the material after cathodic polarization. Nevertheless, the measured photocurrent at more anodic potential is lower than for the pristine electrode. Thus, further photoelectrochemical measurements (pH = 7) were conducted in potential ranges above 0.4 V vs. RHE to avoid changes in the material. Figure S5 compares the generated photocurrents for FTO/ZIS6 and TiO2NT/ZIS6-based photoanodes. As shown in Fig. S5a, the photocurrent generated by the FTO/ZIS6 reaches 0.24 mA cm−2 at 1.62 V vs. RHE which is 6 times higher than for TiO2NT/ZIS6 photoanode, see Fig. S5b. Doubling the time of the hydrothermal process from 6 to 12 h allowed only a slight increase in the photoactivity of the material obtained on FTO (see Fig. 4a). However, as it is presented in Fig. 4b, in the case of TiO2NT/ZIS increasing the time of the reaction did not improve the generated photocurrents. Both TiO2NT/ZIS6 and TiO2NT/ZIS12 photoanodes reached photocurrent value of ~ 0.03 mA cm−2. As shown in Fig. S5a, annealing of FTO/ZIS6, led to a reduction in generated photocurrents over the entire chosen potential range. The annealing of FTO/ZIS12 at 400 and 500 °C allows for an increase of photoelectroactivity of photoanodes in comparison with not annealed sample (see Fig. 4a). Annealing of ZnIn2S4 layers on TiO2NT results in different photocurrent behavior than for the FTO-based photoanodes (see Fig. S5b and Fig. 4b). ZnIn2S4 layers on TiO2NT (obtained in both 6 h and 12 h process) annealed at 300 and 400 °C generated significantly higher photocurrent than unannealed ones, while annealing at 500 °C led to a decrease in the photoactivity of the material. All samples annealed at 500 °C except FTO/ZIS12-O500 generated the lowest or near-lowest photocurrents. The use of this temperature in all cases increased the energy gap (see Fig. S3) and decomposition of the material (see Fig. 3). In the case of FTO/ZIS6, annealing at 500 °C resulted in a very strong exposure of the substrate surface (see Fig. 1d), which indicates a significant layer quality decrease. Annealing at 500 °C of FTO/ZIS12 also resulted in a change in morphology compared to the unannealed material (see Fig. S1d). However, the substrate was not as strongly exposed as in the case of FTO/ZIS6-O500. As it is shown in Fig. 1h and Fig. S1h ZnIn2S4 layers on TiO2NT annealed at 500 °C do not show significant changes in morphology compared to the non-annealed material. Among the FTO-based photoanodes, FTO/ZIS12-O500 generates the highest photocurrent density of 1.21 mA cm−2 at 1.62 V vs. RHE. The highest photocurrent values using TiO2NT as a substrate were achieved for TiO2NT/ZIS12-O300 (0.50 mA cm−2 at 1.62 V vs. RHE).

Figure 4
figure 4

LSV curves of (a) FTO/ZIS12-based and (b) TiO2NT/ZIS12-based photoanodes; ABPE curves of (c) FTO/ZIS12-based and (d) TiO2NT/ZIS12-based photoanodes in 0.5 M Na2SO4.

Figure S6 shows Nyquist plots for all the materials obtained. The spectra are typical for porous electrodes52. They are seen as straight, almost vertical lines as a characteristic of capacitive behavior. The slightly different shape of spectra was obtained for FTO/ZIS6-O300. The spectra bends at lower frequencies forming semicircle that may be observed due to the contribution of charge transfer on the interface. There is no simple relation between resistance and annealing temperature for TiO2NT/ZIS nor FTO/ZIS electrode materials. FTO/ZIS-based materials annealed at different temperatures exhibited higher series resistance (Rs) in comparison with bare FTO. It is noteworthy, that for FTO/ZIS6 the annealing temperature had a positive impact on the decrease in resistance. In the case of TiO2NT/ZIS, the presence of ZnIn2S4 enhanced the conductivity. The changes in the resistance might be neglected for TiO2NT/ZIS synthesized for 12h. It evidences that the substrate electrode affects the electrochemical performance of the electrode material. TiO2NT/ZIS electrodes exhibit Rs in the range of 4–8 Ω, while for the FTO/ZIS, the Rs varies from 25 to 102 Ω.

Applied bias photon-to-current conversion efficiency (ABPE), calculated from the corresponding LSV curves, was the highest for FTO/ZIS12-O500 (0.46% at 0.93 V vs. RHE) and TiO2NT/ZIS12-O300 (1.12% at 0.55 V vs. RHE) photoanodes, reflecting their superior ability to convert incident photons into photocurrent (see Fig. 4c,d). Importantly, these ABPE results correlate with the observed trend in generated photocurrents for both FTO-based and TiO2NT-based photoanodes. Notably, the FTO/ZIS12-O500 photoanode exhibited higher photocurrents compared to the TiO2NT/ZIS12-O300 photoanode. Despite the FTO-based photoanode generating higher photocurrents, the ABPE value for the TiO2NT/ZIS12-O300 photoanode surpassed that of the FTO/ZIS12-O500. This suggests that the presence of TiO2 in the latter configuration could potentially contribute to improved charge separation dynamics and enhanced kinetics of the water oxidation reaction. In essence, this comparison of ABPE efficiency values between the two photoanodes implies that the incorporation of TiO2 in the TiO2NT/ZIS12-O300 configuration has a favorable impact on charge separation and water oxidation kinetics. Although the FTO/ZIS12-O500 photoanode exhibited higher photocurrents, the ABPE value of the TiO2NT/ZIS12-O300 photoanode signifies a more efficient utilization of the absorbed photons, highlighting the potential advantage of the TiO2-based heterojunction in promoting effective charge transfer and water oxidation reactions.

Photoanodes that exhibited the best photoelectrochemical properties in a neutral electrolyte (FTO/ZIS12-O500 and TiO2NT/ZIS12-O300) were then tested in strongly acidic (0.5 M H2SO4, pH = 1) and strongly basic (0.5 M NaOH, pH = 14) electrolytes. LSV curves without illumination in acidic, neutral, and alkaline environments of the FTO/ZIS6 photoanode were compared to determine the potential range in which the material is stable depending on pH (see Fig. S7). The widest potential range (0.4–2.4 V vs. RHE) was determined for a neutral electrolyte. In this case, in the cathodic direction, it is not the electrolyte that is the limitation, but the stability of the material itself. In contrast, when using an acidic electrolyte, the system had the narrowest potential range: − 0.3 to 0.3 V vs. RHE. On the cathodic side, the main limitation of the acid electrolyte may be the reduction of H+ ions. However, on the anodic side, the sharp increase in current density at about 0.3 V vs. RHE is not easy to explain. Using 0.5 M NaOH as an electrolyte, the reduction potential is similar to that obtained in a neutral environment, but the potential range compared to a neutral environment is narrower. The neutral electrolyte proved to be the most suitable in terms of the width of the range of material stability.

As shown in Fig. 5, the photoelectrochemical properties of FTO/ZIS12-O500 and TiO2NT/ZIS12-O300 photoanodes in strongly acidic and alkaline conditions were investigated in the previously determined potential ranges (Fig. S7). The use of different pH of the electrolyte affected the values of photocurrents generated by both photoanodes. The effect of pH was more significant for the TiO2NT/ZIS12-O300 photoanode. The FTO/ZIS12-O500 photoanode generated the highest photocurrent in the neutral electrolyte (1.21 mA cm−2 at 1.62 V vs. RHE). In contrast, the use of a strongly acidic electrolyte resulted in a significant increase in the photocurrent values generated by TiO2NT/ZIS12-O300 compared to the other electrolytes. The TiO2NT-based photoanode generated photocurrents of 3.02 mA cm−2 at 0.31 V vs. RHE in a pH of 1. The photoelectrochemical performance in the acidic, neutral, and basic electrolytes of selected photoanodes was summarized in Table S3.

Figure 5
figure 5

LSV curves of FTO/ZIS12-O300 and TiO2NT/ZIS12-O300 photoanodes recorded during illumination in (a) 0.5 M H2SO4, (b) 0.5 M Na2SO4 and (c) 0.5 M NaOH as electrolytes.

Measurements using the LSV technique do not provide information on the stability of materials. To investigate the stability of FTO/ZIS12-O500 and TiO2NT/ZIS12-O300 photoanodes, chronoamperometric measurements were performed. Figure 6a,b show a comparison of the stability of the FTO-based and TiO2NT-based photoanodes in strongly acidic (0.5 M H2SO4, pH = 1), neutral (0.5 M Na2SO4. pH = 7), and strongly basic (0.5 M NaOH, pH = 14) conditions during exposure for 600 s. From the LSV curves recorded during illumination (Fig. 5), the potentials at which the photocurrents generated by each photoanode were the highest in different media were determined. The FTO-based photoanode was tested at potentials 0.31, 1.62, and 1.64 V vs. RHE in acidic, neutral, and basic electrolytes, respectively. Whereas, the stability of TiO2NT-based photoanode was tested at 0.31, 1.62, and 0.34 V vs RHE in acidic, neutral, and basic electrolytes, respectively. The FTO/ZIS12-O500 photoanode initially generated the highest photocurrents at a pH of 7. However, despite the increase in photocurrents for the first 60 s in a neutral environment, their values began to decrease after that time, and after 600 s the photocurrents generated were 25% of the initial value. In an alkaline environment, the FTO/ZIS12-O500 photoanode showed better stability, as the photocurrent values dropped by 50% within 600 s, and the drop was not as rapid as in the other electrolytes excluding the first 40 s of the test. The use of an acidic electrolyte resulted in a reduction in the value of generated photocurrents compared to other electrolytes. However, the stability was similar to the results obtained at a pH of 14 (52% decrease in photocurrent values within 600 s of exposure).

Figure 6
figure 6

CA curves recorded during illumination of (a) FTO/ZIS12-O500 and (b) TiO2NT/ZIS12-O300 photoanodes in different electrolytes, (c) CA curves of FTO/ZIS12-O500 and TiO2NT/ZIS12-O300 recorded during illumination in 0.5 M Na2SO4.

As shown in Fig. 6b, the TiO2NT-based photoanode initially generated the highest photocurrents in an acidic electrolyte, but their values dropped faster than in the neutral electrolyte, dropping by 37% within 600 s of testing. Whereas under neutral pH this decrease was 21%. The photocurrents generated in 0.5 M NaOH as electrolyte after 600 s of exposure were 59% of the initial values.

The effect of pH on the photoelectrochemical performance of photoanodes was different depending on the substrate used. For the FTO-based photoanode, the most suitable electrolyte regarding photocurrent stability was 0.5 M NaOH (pH = 14). In contrast, the TiO2NT/ZIS12-O300 photoanode was most stable in 0.5 M Na2SO4. However, the use of a strongly acidic electrolyte (0.5 M H2SO4, pH = 1) resulted in a significant increase in photocurrent values generated by TiO2NT/based photoanode, which after 600 s of exposure were still the highest among the results for all electrolytes used.

The TiO2NT/ZIS12-O300 photoanode in all electrolytes had higher stability than the FTO/ZIS12-O500 photoanode. To illustrate the significant effect of using TiO2NT as a substrate on the stability of the material, long-term measurements (2 h) of the photocurrents generated by the FTO/ZIS12-O500 and TiO2NT/ZIS12-O300 photoanodes were carried out in a neutral medium (see Fig. 6c). The neutral electrolyte was chosen because, according to shorter stability studies, this electrolyte allowed to achieve the system with the highest stability among all those tested (a decrease of only 21% for the TiO2NT/ZIS12-O300 photoanode). Even though FTO/ZIS12-O500 generated initially more than four times as high photocurrent values as TiO2NT/ZIS12-O300, these values decreased rapidly, reaching after 613 s the value of 0.4 mA cm−2 that is equal to photocurrent generated by TiO2NT/ZIS12-O300. In contrast, the values of TiO2NT-based photoanode activity do not change significantly. Moreover, after only 53 min, the charges consumed for photoelectrochemical water splitting on both photoanodes became equal. Which, assuming the same faradaic efficiency, would mean producing the same amount of hydrogen after that time. A similar junction has already been studied, and it was proven that it allowed an increase in generated photocurrents in comparison with TiO253. As can be observed in Fig. 6c, after 2 h illumination photocurrent values for FTO-based photoanode decreased by about 99% to reach 0.02 mA cm−2, while for TiO2NT-based photoanode decreased only by about 58% (0.21 mA cm−2).

To investigate in detail the effect of TiO2NT substrate on the properties of ZnIn2S4 layers of the most stable photoanode (TiO2NT/ZIS-O300), transmission electron microscopy (TEM) studies were performed. The images obtained revealed the typical layered morphology of ZnIn2S4 (see Fig. S8a,b). As shown in Fig. S8c, high-resolution TEM (HRTEM) images revealed a solid–solid interface between TiO2 and ZnIn2S4. This was confirmed by the respective crystal planes of both compounds. As can be seen in Fig. S8c, the (102) and (006) planes of ZnIn2S454 and (101) TiO2 in anatase form55 are evident. This juxtaposition of crystal planes underscores the intimate contact and well-defined interface between the TiO2NT substrate and the ZnIn2S4 layers. The coexistence of these specific crystal planes reinforces the notion of a robust and coherent interface that likely contributes to efficient charge transfer and enhanced photocatalytic performance.

Figure S9 illustrates the proposed possible mechanisms for electron and hole transfer inside the FTO/ZIS12-O500 and TiO2NT/ZIS12-O300 photoanodes. The band structure and the size of the energy gap of ZnIn2S4 and TiO2NT were investigated using Mott-Schottky (capacitance calculated at 1000 Hz) plots and the Kubelka–Munk function (see Fig. S10). To calculate these values for ZnIn2S4, the FTO/ZIS12 photoanode was studied, since according to the XRD results (Fig. 3), the layers contained no additional compounds. As can be observed in Fig. 3c, In2O3 was present on the FTO/ZIS12-O500 photoanode, which affected the size of the energy gap of the whole photoanode. The positive slope of Mott Schottky plots confirms the n-type conductivity of tested materials. For such types of semiconductors, flat band potential (Efb) is close to the conduction band (CB). The flat band was located at 0.30 and − 0.68 V vs. RHE for TiO2NT and ZnIn2S4, respectively. As expected, the estimated values of Efb are slightly shifted towards the anodic direction in comparison to the reduction of electrode materials. Thus, the Mott-Schottky analysis is in good agreement with CV plots. In the case of the n-type photoelectrodes, the valence band potential is more anodic than water oxidation, thus the valence band (VB) cannot be simply estimated in aqueous electrolytes from electrochemical measurements. The calculated energy gap size for TiO2 nanotubes was 3.23 eV, and for ZnIn2S4 it was 2.35 eV. The location of the conduction band and the size of the energy gap of In2O3 were taken from the literature56. When irradiated with visible light, ZnIn2S4 generates electron–hole pairs. The presence of In2O3 (Fig. 3c), which is formed when ZnIn2S4 layers are annealed at 500 °C, enables the formation of a heterojunction between ZnIn2S4 and In2O3. The formed heterojunction in the FTO/ZIS12-O500 photoanode promotes the transfer of photogenerated electrons to CB of In2O3, facilitating charge separation. In the case of the TiO2NT/ZIS12-O300 photoanode, according to XRD results (Fig. 3d), we do not observe the presence of In2O3. However, the use of TiO2 nanotubes makes it possible to create a heterojunction between TiO2 and ZnIn2S4. In this case, photoexcited electrons are directed to the CB of TiO2, which facilitates charge separation and reduces their recombination rate.

Figure S11 shows SEM images of TiO2NT/ZIS12 and TiO2NT/ZIS12-O300 after removal of the active layer and an SEM image of pure TiO2 nanotubes for comparison. The layers were removed using an ultrasound bath (30 min, in water). As shown in Fig. S11c, the ZIS layer after annealing at 300 °C is difficult to remove compared to the non-annealed layer. Moreover, the layers on the FTO were easy to remove completely, even after annealing. Thus, annealing the layers not only caused changes in morphology and crystal structure but also affected the contact between TiO2NT and ZnIn2S4 facilitating the charge transfer between the components. This was another factor that caused the TiO2NT/ZIS12-O300 photoanode to generate higher photocurrent values in comparison with TiO2NT/ZIS12. In addition, the deposition of ZnIn2S4 on TiO2 nanotubes and annealing of the layers did not change the morphology of the substrate.

To investigate the reason for the decrease in photoactivity, the characterization of electrode materials was performed after 2h of chronoamperometric measurements. Figure S12 compares the XRD patterns of FTO/ZIS12-O500 and TiO2NT/ZIS12-O300 photoanodes before and after 2 h of illumination. In the case of the FTO-based photoanode, no significant changes can be observed. The XRD pattern of the TiO2NT/ZIS12-O300 photoanode after 2 h of exposure showed only an increase in the peak corresponding to the (006) plane (~ 21.5°). Despite this change in the case of the TiO2NT-based photoanode, it can be concluded that in terms of composition, the material is stable regardless of the substrate used. Thus, it is not the crystallinity of ZIS that has an impact on the degradation of the material during long-term illumination.

Cross-section SEM images of FTO/ZIS12, FTO/ZIS12-O500, TiO2TN/ZIS12, and TiO2TN/ZIS12-O300 photoanodes before and after 2 h of illumination (see Fig. S13) allowed to estimate the thickness of the obtained ZnIn2S4. Cross-sectional samples were obtained by carefully preparing the coated substrates to expose the inner layers for observation under the SEM. Using SEM could be visualized the cross-section of the ZnIn2S4-coated layers on both substrates. By analyzing SEM images, the thickness of the deposited ZnIn2S4 layer was measured at various points on the substrates. The thickness of ZnIn2S4 layers was not uniform throughout the whole surface on both FTO and TiO2NT. The measured thicknesses were in the range of 3–12 μm. There was no clear evidence that annealing affects the thickness of the deposited layers. However, the use of the hydrothermal process resulted in layers of different thicknesses within the same electrode. It was also not possible to determine the significant changes in layer thickness during long-term exposure. Thus, with the use of SEM, it was not possible to observe changes in photoanodes that negatively affected their performance during exposure.

Flat band potentials for photoanodes before and after 2h of exposure were determined using Mott Schottky analysis (Fig. 7). The flat band potential of FTO/ZIS12-O500 was shifted from 0.3 V to 0.02 V vs. RHE after 2 h exposure. In the case of the TiO2NT/ZIS12-O500 photoanode, the shift of the flat band potential was only 0.05 V. For both substrates, a cathodic shift in the flat band potential of the materials was observed. It evidences that the presence of the substrate affects the electrochemical response of the photoanode. Despite the theoretically favorable shift in the case of FTO, it indicates lower stability of the FTO-based photoanode and more changes in the material during illumination.

Figure 7
figure 7

Mott–Schottky plots of (a) FTO/ZIS12-O500 and (b) TiO2NT/ZIS12-O300 before and after 2h illumination with simulated sunlight.

X-ray photoelectron spectroscopy (XPS) was carried out for the FTO/ZIS12-O500 and TiO2NT/ZIS12 O300 photoanodes before and after 2 h of exposure to simulated sunlight. The XPS measurement was performed to determine the changes in the surface composition and to evaluate the oxidation level of the elements. Figure 8 shows the high-resolution XPS spectra of the Zn 2p, In 3d, S 2p, and O 1s regions. The high-resolution Zn 2p3/2 spectrum, shown in Fig. 8a, was fitted with a single line lying at an energy of about 1022.2 eV, which indicates the presence of zinc (II)39,56 on both FTO and TiO2NT before exposure. The post-exposure spectra have a lower intensity and are shifted toward a lower energy of 1022.0 eV. This shift may be related to a change in the stoichiometry of the ZIS compound after illumination. Such a shift in the case of zinc may indicate a decrease in the proportion of zinc bound to sulfur instead of oxygen (to an element with higher electronegativity)58. Figure 8b shows the spectrum of photoanodes in the indium region. For samples before exposure, the spectrum in the In 3d5/2 region shows a single line at 444.8 eV for FTO/ZIS12-O500 and 445.0 eV for TiO2NT/ZIS12-O300 indicating the presence of In3+ in sulfide and oxide/sulfide, respectively58,59. For the TiO2NT/ZIS12-O300 photoanode after exposure, the spectrum in the In 3d5/2 region was fitted with three lines with a binding energy of 443.8 eV, 445.0 eV, and 445.5 eV indicating the presence of metallic indium, indium oxide and indium sulfide, respectively58,59. In the case of FTO/ZIS12-O500 after exposure, only two maxima were obtained. The position of peaks was the same as for TiO2NT/ZIS12-O300 material confirming the presence of In-O and In-S bonds. It is noteworthy that after the illumination the intensity of the signal attributed to indium sulfide increases. It is especially visible for TiO2NT/ZIS12-O300. It might be related to the removal of the passive layer formed on the electrode material during the annealing process. The spectrum in the S 2p region of the photoanodes was fitted by two doublets, see Fig. 8c. The first main 2p3/2 line at 161.8 eV indicates the presence of sulfur in the sulfides58 and the second 2p3/2 line at 168.9 eV indicating the presence of sulfates (VI)61. The most significant difference between the spectra in the sulfur region of photoanodes before exposure is the intensity of the lines corresponding to S2−. In the case of TiO2NT/ZIS12-O300, it is significantly higher than that for FTO/ZIS12-O500. This difference is related to the formation of an indium oxide layer on the surface of the electrode during annealing at 500 °C. It is consistent with the XRD results showing that in the materials annealed at 500 °C indium oxide forms whereas in the case of TiO2NT/ZIS12-O300 annealed at 300 °C the indium oxide layer was not formed.

Figure 8
figure 8

High resolution XPS spectrum of (a) Zn 2p, (b) In 3d, (c) S 2p and (d) O 1s of FTO/ZIS12-O500 and TiO2NT/ZIS12-O300 before and after 2 h of exposure to simulated sunlight.

The S 2p3/2 spectrum of TiO2NT/ZIS12-O300 did not change significantly after exposure. For FTO/ZIS12-O500, a significant increase in the proportion of sulfur in the form of S−2 can be seen, with no change in the intensity of the line representing sulfates. It confirms, that illumination affects the composition of material and leads to changes in the stoichiometry between S and O on the surface.

The spectrum in the oxygen region shown in Fig. 8d was fitted with three lines. The first signal at ~ 530.1 eV indicates the presence of metal oxides. The second maximum at ~ 532.1 eV indicates the presence of non-stoichiometric metal oxides and/or sulfates in both materials before illumination. After illumination, this maximum is slightly shifted toward a lower binding energy of 531.9 eV. It is related to the adsorption of water molecules from electrolyte, followed by a change of stoichiometry ratio between S and O atoms affecting binding energy in the Me-S(O) system. The presence of water in photoanodes before and after exposure is confirmed by the presence of maxima at 533.2 eV and 532.7, respectively39.

Summary

Our study marks a significant achievement as we successfully synthesized ZnIn2S4 layers on TiO2 nanotubes for the first time. The annealing process performed under varying air temperatures exerted effects on the crystallographic structure, substrate adhesion, and composition of these layers, leading to consequential alterations in the resulting photocurrent values. Importantly, the impact of annealing exhibited substrate-specific variations, reflecting the intricate interplay between material properties and thermal treatment.

Through optimization, our efforts culminated in the creation of an optimized TiO2NT-based photoanode, showcasing a remarkable enhancement in photocurrent density, reaching 0.49 mA cm−2 at 0.8 V vs. Ag/AgCl (3 M KCl). This optimized configuration demonstrated a significant advantage over photoanodes fabricated using FTO glass substrates, primarily in terms of stability during illumination. Despite an initial lower photoelectrochemical activity, the TiO2NT-based photoanode exhibited a pronounced capability for efficient hydrogen generation through photoelectrochemical water splitting. After just 53 min of illumination, it outperformed its FTO-based counterparts. The stark contrast became even more evident after 2 h, as FTO-based photoanodes suffered a precipitous 99% decrease in photocurrent values, while TiO2NT-based counterparts experienced a notably milder 58% decrease. This resilience, attributed to the formed heterojunction at the ZnIn2S4-TiO2NT interface, underscores the potential for sustained high photocurrent values over extended periods. In addition to the aforementioned findings, we expanded our investigation by systematically exploring the influence of pH on the performance of the photoanodes. As observed, the pH-dependent measurements provided critical insights into the response of the TiO2NT and FTO-based ZnIn2S4 photoanode under varying chemical environments. These measurements enabled a comprehensive understanding of the photoelectrochemical behavior and stability of the photoanode across acidic, neutral, and basic conditions.

Thus, the use of TiO2NT as a substrate for the deposition of other photoanode materials could be a promising way to maximize their working time, which is a very important factor in allowing them to be used on a larger scale.