Introduction

Recently, it has been reported that energy demand will be significantly enhanced in the next decades which may cause an energy crisis [1,2,3]. The increasing global population and its consequent economic activities have created a relentless demand for energy [4,5,6,7]. In the present scenario, fossil fuels contribute 84% of the world’s energy supply [8,9,10,11,12,13,14,15] However, the swift depletion of fossil fuel reserves, coupled with environmental pollution and the looming threat of global warming, underscores the pressing need to explore alternative, eco-friendly, and renewable energy sources [16,17,18,19] In recent years, significant strides have been made in utilizing solar energy for water splitting, a process that converts water into hydrogen and oxygen, thus offering a promising renewable energy solution [20, 21]. Hydrogen gas (H2) emerges as a top contender for future solar energy fuels [22, 23], boasting the highest energy density (~ 120 MJ/kg) among all known fuels and being readily available on Earth in various forms such as water, organic matter, and hydrocarbons [24, 25]. Several methods exist for generating H2, including natural gas steam reforming, partial methanol oxidation, coal gasification, thermochemical water splitting, high-temperature electrolysis, photo-biological water splitting, photo-electrochemical water splitting, and photocatalytic water splitting [26, 27]. However, effectively, and sustainably extracting H2 from natural sources remains a challenge, and ongoing technological progress is focused on addressing this issue. In 1972, Honda and Fujishima reported the H2 generation which played a crucial role in the field of H2 production [26]. Recent years have seen significant progress in photocatalytic H2 production via water splitting, aiming for near-perfect quantum efficiency [28, 29]. Selecting a photocatalyst involves considering factors such as its light-harvesting efficiency, charge carrier separation capability, stability in water, compatibility with the reaction system, and cost [30, 31].

Graphitic carbon nitride (g-C3N4), a material akin to graphene, has recently piqued significant interest in the scientific community due to its exceptional properties in electrocatalysis, photocatalysis, ionic conductivity, electronics, and chemistry [29, 32,33,34]. The affordability, stability, accessibility, and lightweight nature of g-C3N4 have led to its exploration in various applications such as bio-imaging, sensing, water splitting, photocatalysis, and solar cells [35, 36]. Furthermore, the polymer-like structure of g-C3N4 indicates its potential for exceptional electrocatalytic properties, leading to its widespread use as a catalyst in detecting harmful substances, toxic metal ions, and biomolecules [37, 38]. Despite being utilized in various fields including optoelectronics, g-C3N4 encounters challenges in practical applications due to its low surface area, poor conductivity, and stacked π–π conjugated structure [39]. It is assumed that doping may improve the properties of the g-C3N4. Li and his research group [40] studied the photocatalytic activities of C-doped carbon nitride, which exhibited good H2 production performance. Jiang et al. [41] reported on the incorporation of N, P, and O co-doped carbon into carbon nitride microtubes for H2 production. Yue et al. [42] achieved an H2 production rate of 59.5 μmol h−1 using Zn-doped carbon nitride. Zhang et al. [43] reported the synthesis of Na-doped carbon nitride for H2 production applications, while Huang et al. [44] reported on O-doped carbon nitride for photocatalytic H2 production. Chen et al. [45] investigated P-doped carbon nitride for H2 evolution reactions, achieving a notable H2 evolution rate of 59.1 μmol.h−1. Zhang and co-workers [46] proposed a structure for S-and O-co-doped g-C3N4. The above aforementioned reports suggested that doped g-C3N4 increased the photocatalytic H2 evolution compared to the pristine g-C3N4. These studies collectively highlight the significant role of doping strategies in enhancing the photocatalytic activity of g-C3N4. The platinum (Pt) is one of the efficient co-catalyst which has the potential to enhance the charge transport and improve the H2 production. Thus, it will be of great significance to explore the Pt cocatalyst for H2 evolution reactions.

This work proposed the cobalt (Co)-doped g-C3N4 (Co@g-C3N4) as a photocatalyst for efficient H2 production of visible light. The Pt was also used as cocatalyst to enhance charge transport and H2 production. The Co@g-C3N4/Pt photocatalyst demonstrated excellent performance for H2 production with decent reusability.

Materials and methods

Materials and reagents

Cobalt nitrate hexahydrate (ACS reagent, ≥ 98%), urea (ACS reagent, 99%), triethanolamine (TEOA; ≥ 99.0%), sodium sulfide (Na2S), hexachloroplatinic acid (H2PtCl6), and sodium sulfite (NaSO3; ACS reagent, ≥ 98.0%) were purchased from Merck. Methanol (99%), ethanol (94–96%), were bought from Alfa-Aesar. Lactic acid was purchased from Sigma. All the used chemical, reagents and solvents were used as received without any further treatment.

Synthesis of photocatalyst

The Co@g-C3N4 photocatalyst was synthesized using calcination of urea in presence of cobalt precursor. In a standard procedure, 6 g of urea and 500 mg of cobalt nitrate hexahydrate were mixed in 10 mL of ethanol with continuous stirring. Further, ethanol was evaporated and residual powder was then transferred to a crucible. This crucible was covered and transferred to the muffle furnace and heated again at 550 ℃ for 2 h [36, 38, 47]. The furnace was allowed to cool down to room temperature (RT) naturally. Finally, the synthesized power was grounded in a mortal pestle. The obtained product was denoted as a Co@g-C3N4 photocatalyst. For comparison purposes, pristine g-C3N4 was also synthesized using a similar method without the addition of Co precursor.

Instruments

The Hitachi, model S-4800 scanning electron microscope (SEM) has been employed to capture SEM images of the prepared Co@g-C3N4 photocatalyst. Horiba EDX instruments were used to obtain the EDS spectrum of the samples. Phase purity and crystallinity of the prepared g-C3N4 and Co@g-C3N4 photocatalysts were studied using a Rigaku RINT; 2500 V X-ray diffractometer (powder X-ray diffractometer = PXRD). Thermo-scientific X-ray photoelectron spectroscopy (XPS) was utilized to obtain the XPS spectrum of the prepared Co@g-C3N4 photocatalyst. The ultraviolet–visible (UV–Vis) spectrum was determined using an Agilent Cary 60 UV–Vis spectrophotometer. The H2 production studies were conducted using a TCD gas chromatograph.

Photo-catalytic studies for H2 generation

Photocatalytic H2 production studies were conducted in a quartz tube reactor, which was sealed to prevent air leakage. Initially, 7 V% methanol (7 mL) was added to 93 mL of water. Subsequently, 50 mg of Co@g-C3N4 was added to the solution, followed by the addition of 3 wt% Pt (H2PtCl6) as a co-catalyst to improve the photocatalytic activity of the prepared photocatalyst. Nitrogen (N2) gas was purged through the solution for 60 min to remove dissolved gases. A 150 W LED was used as a visible light source with an intensity of 7.6 mW/cm2. The evolved H2 was collected at various time intervals using a syringe and its quantity was determined using gas chromatography. Additionally, different solvents such as ethanol, lactic acid, TEOA, and Na2SO3/Na2S were tested as alternatives to methanol under identical conditions to investigate their effects on the reaction.

Results and discussion

Characterizations

Scanning electron microscopy (SEM) is a powerful technique to characterize the surface morphology of various materials, providing high-resolution images that reveal details at the nanoscale. Thus, we have adopted the SEM technique for the characterization of surface morphology of the g-C3N4 and Co@g-C3N4 materials. The flake-like surface structures observed in g-C3N4 samples are a result of the unique arrangement of carbon and nitrogen atoms in the synthesized material, as shown in Fig. 1a. Similarly, the SEM image of the Co@g-C3N4 materials has been recorded and has been presented in Fig. 1b. The SEM observations also suggested that Co@g-C3N4 material has flake-like surface structures which is the characteristic surface morphological feature of g-C3N4.

Fig. 1
figure 1

SEM images of g-C3N4 (a), and Co@g-C3N4 (b). XRD spectrum (c) of g-C3N4 and Co@g-C3N4

The phase formation, purity, and crystalline nature of the g-C3N4 and Co@g-C3N4 materials have been studied using the X-ray diffraction (XRD) technique. XRD is a powerful technique used to analyze the crystal structure of materials. The XRD technique may provide valuable insight regarding the formation of the materials along with the crystalline/amorphous nature and phase purity. Hence, XRD patterns of g-C3N4 and Co@g-C3N4 materials have been obtained at the 2θ range of 10–60º. Fig.  1c presents the XRD results of the prepared g-C3N4 and Co@g-C3N4 materials. In the case of pure g-C3N4 material, two major diffraction peaks have appeared at around 13.5º and 28.78º which can be attributed to the presence of (101) and (002), diffraction planes, respectively. In the case of Co@g-C3N4 material, similar peaks have been observed which corresponded to the (101) and (002), diffraction planes of g-C3N4. No additional peak has appeared related to Co-based oxide, and it suggested the successful formation of Co@g-C3N4 material, as shown in Fig. 1c. The energy dispersive X-ray spectroscopic (EDS) spectrum of the g-C3N4 and Co@g-C3N4 materials have been recorded to check the elemental composition and phase purity. Fig. S1 shows the EDS spectrum of the g-C3N4 and Co@g-C3N4 materials. The g-C3N4 and Co@g-C3N4 materials exhibited the presence of C, N, and C, N, Co elements which confirmed the preparation of g-C3N4 and Co@g-C3N4 materials.

Photoelectron spectroscopy (XPS) was also applied to further authenticate the successful formation of Co@g-C3N4. The high-resolution XPS scans of the Co@g-C3N4 are provided in Fig. S2. Fig. S2a shows the C1s spectrum with the presence of sp2C, C–OH, and C–C bonds. The C–NH, N–(C)3, and N–C = N bonds have been observed in the N 1 s XPS scan, as shown in Fig. S2b. These bonds were related to the g-C3N4. The Co2p XPS spectrum has been presented in Fig. S2c which revealed the presence of Co2p1/2 and Co2p3/2 bonds. The overall results indicated the formation of Co@g-C3N4.

Ultraviolet–Visible (UV–Vis) spectroscopy has the potential to provide insights into the optical properties of the obtained g-C3N4 and Co@g-C3N4. Generally, g-C3N4 exhibits absorption in the UV region due to the π–π* transitions of the aromatic system in g-C3N4. Fig.  2a shows the UV–Vis data of the obtained g-C3N4 and Co@g-C3N4. It can be seen that g-C3N4 has a broad absorption band around 350–400 nm. The UV–Vis spectrum of the Co@g-C3N4 exhibited a similar absorption band with slight shifting towards the visible range. This may be due to the doping of Co to the g-C3N4 in the synthesized Co@g-C3N4. The band gap of the g-C3N4 and Co@g-C3N4 was calculated by employing the well-known Tauc relation. Tauc plots are generally used to observe the band gap of synthesized materials from their UV–Vis absorption spectra. The Tauc relation has been described in equation (1) which is given below,

$$\alpha h\nu \, = \,A\left( {h\nu \, - \,Eg} \right)^{{{1}/{2}}}$$
(1)
Fig. 2
figure 2

a UV–Vis spectra and b Tauc plot of g-C3N4 and Co@g-C3N4

(In equation (1), α = absorption coefficient, h = Planck’s constant, and ν is the frequency of the incident light, Eg = band gap).

The obtained Tauc plots of the g-C3N4 and Co@g-C3N4 have been presented in Fig. 2b. It can be seen that g-C3N4 and Co@g-C3N4 have a band gap of 2.87 and 2.68 eV, respectively. This optical band gap makes them suitable candidate as photocatalysts for their potential applications in photocatalytic H2 generation.

Hydrogen evolution performance

The H2 production activities of the g-C3N4 have been studied using methanol as a scavenger agent. The dose of the g-C3N4 was 10 mg and the time of the reaction was 6 h. The produced H2 has been collected at different times (1–6 h) using a syringe. The obtained H2 amount has been summarized in Fig. 3a. The H2 amount of 285 µmol/g has been produced at 6 h for g-C3N4-based system. Further, Co@g-C3N4 was used under similar conditions and dose of the catalyst.

Fig. 3
figure 3

a, b H2 production amount activities of g-C3N4, Co@g-C3N4, and Co@g-C3N4/Pt (3 wt%) (Catalyst dose = 10 mg) in methanol system at different times. c, d H2 production amount activities of Co@g-C3N4/Pt (3 wt%) (Catalyst dose = 10, 25, 50, and 70 mg) in the methanol system at different times

The obtained results for H2 production using Co@g-C3N4 have been presented in Fig. 3a. The improved H2 amount of 398 µmol/g has been obtained which showed that Co doping has significantly improved the catalytic properties of the Co@g-C3N4. It is well-known that co-catalysts may improve the catalytic properties. Thus, we have used platinum (Pt) as a co-catalyst, and H2 production activities of the Co@g-C3N4/Pt (3 wt%) have been studied under the above-mentioned conditions. The H2 production amount of Co@g-C3N4/Pt (3 wt%) based system has been summarized in Fig. 3a. It can be noted that a further significant change in the H2 production amount has been observed. The highest H2 production amount of 450 µmol/g has been obtained after 6 h (Fig. 3b). The Pt further improved the photocatalytic activities and an interesting amount of H2 production has been achieved using Co@g-C3N4/Pt (3 wt%).

The photocatalyst dose may have significant effects on the photocatalytic H2 production. Thus, it is required to study the effects of different doses of the photocatalyst for H2 production under similar photocatalytic measurements. In this context, we have used different doses (10, 25, 50, and 70 mg) of the Co@g-C3N4/Pt (3 wt%). The obtained results for H2 generation amounts have been summarized in Fig. 3c, d. It is evident from Fig. 3c, d that the photocatalyst’s performance improves with doses up to 50 mg. However, further increases in the photocatalyst dose result in decreased activity. The highest activity, observed at a dose of 50 mg (602 µmol/g), suggests that this amount of photocatalyst is optimal for achieving maximum activity.

It is well-known and reported that different scavengers have different properties and H2 production can be significantly affected by the presence of scavengers and their properties. In this connection, we have used 50 mg Co@g-C3N4/Pt (3 wt%) as photocatalyst and methanol has been replaced with different scavenger agents (ethanol, triethanolamine = TEOA, lactic acid, and NaSO3/Na2S). However, other conditions were ideal and the same. Firstly, we studied the H2 production amount for 50 mg Co@g-C3N4/Pt (3 wt%) photocatalyst in the presence of ethanol. The obtained results showed the generation of 726 µmol/g of H2 amount in the presence of ethanol system, as shown in Fig. 4a. The 50 mg Co@g-C3N4/Pt (3 wt%) photocatalyst exhibited an improved H2 production amount of 3314 µmol/g in the presence of lactic acid. The 50 mg Co@g-C3N4/Pt (3 wt%) photocatalyst also demonstrated further improved H2 production in the presence of Na2SO3/Na2S system. However, the highest H2 production of 6347 µmol/g has been achieved in the presence of an ethanolamine system. Similarly, the highest H2 production rate of 1269.4 µmol/g/h has been obtained for 50 mg Co@g-C3N4/Pt (3 wt%) photocatalyst in the TEOA system, as shown in Fig. 4b.

Fig. 4
figure 4

H2 production amount (a) and H2 production rate (b) of 50 mg Co@g-C3N4/Pt (3 wt%) photocatalyst in the presence of different scavenger agents (methanol, ethanol, TEOA, lactic acid, and NaSO3/Na2S). (c) Reusability study for 50 mg Co@g-C3N4/Pt (3 wt%) photocatalyst in TEOA system

Reusability is the most desirable tool for photocatalytic H2 production, and it is of great significance to study the reusability study for H2 generation using 50 mg Co@g-C3N4/Pt (3 wt%). In this regard, H2 production activities of the 50 mg Co@g-C3N4/Pt (3 wt%) have been studied up to four cycles and observations have been compiled in Fig. 4c. Before every new cycle, the photocatalyst was collected by centrifugation and dried in a vacuum oven and further used for another cycle. The obtained results showed good reusability study up to four cycles. The probable mechanism for the H2 generation has been described in Fig. S3. It can be assumed that electron–hole pairs are generated on the exposure of Co@g-C3N4/Pt to the visible light on the absorption of the photons. The photo-generated electrons in the conduction band of Co@g-C3N4 migrated to the surface whereas holes remain in the valence band level. The Pt acted as a co-catalyst and improved electron transportation. The TEOA acted as a sacrificial agent and electron donor. The electrons may be transferred to the surface of Co@g-C3N4 and reduce protons (H+) to form the H2. The remaining holes in the Co@g-C3N4 can oxidize TEOA to form the radicals which can then react with water to generate more electrons and protons. The overall results showed that 50 mg Co@g-C3N4/Pt (3 wt%) is the most suitable and optimized photocatalyst for the generation of improved photocatalytic H2. The H2 production amount of the 50 mg Co@g-C3N4/Pt (3 wt%) has been compared with the previous studies, which are given in Table 1 which is comparable with the reported studies.

Table 1 Comparison of the H2 production of 50 mg Co@g-C3N4/Pt (3 wt%) with previous studies [43,44,45,46,47,48,49]

Conclusions

In this conclusion section, it is worthy to state that Co@g-C3N4 has been obtained using urea as a precursor. Furthermore, photocatalytic hydrogen production activities of the Co@g-C3N4 have been checked in the presence of a methanol scavenger agent. The Pt has been introduced as a cocatalyst and Co@g-C3N4/Pt (3wt%) exhibited good performance. The dose of the Co@g-C3N4/Pt (3wt%) has been optimized and 50 mg Co@g-C3N4/Pt (3wt%) showed the highest performance. Furthermore, different solvents have been applied and Co@g-C3N4/Pt (3wt%) demonstrated excellent photocatalytic H2 generation activity of more than 6000 µmol/g in the presence of TEOA scavenger agent. The Co@g-C3N4/Pt (3wt%) also demonstrated good reusability studies.