Introduction

There are several environmental crises and issues that have occurred due to the quick increase in global energy consumption. Hence, many research works are dedicated to exploring effective alternative sources and technologies. Hydrogen gas is one of the most promising clean and safe energy carriers to replace fossil fuels owing to its renewability, zero carbon releases with the advantages of eco-friendly products, and excellent energy conversion with storage features [1,2,3,4,5,6]. Interestingly, high purity with large-scale hydrogen production has been developed through electrochemical water splitting, representing a carbon–neutral and environmentally sustainable protocol [7, 8]. Thus, developing an efficient electrocatalyst with high durability is urgently needed to achieve real-time applications of energy-efficient hydrogen evolution reaction (HER) via water splitting. In recent times, carbon-based materials received broad attention for being designated as electrocatalysts for HER because of their flexible carbon substructure, abundance, and great tolerance to a broad range of pH environments, although platinum has been recognized as a benchmark HER catalyst up to now [9,10,11]. Advancement in carbon nanostructures has also activated their possibility as metal-free catalysts in energy conversion technologies. Among the carbon materials, porous carbon has been recognized as a promising electrocatalyst because of its large surface area with massive porosity that can offer clear paths for fast mass diffusion, excellent electrical conductivity, and electrochemical stability [2, 3]. In addition, the proper amount of heteroatoms such as nitrogen, phosphorous, sulfur, and boron doping in porous carbon materials significantly improves its electrocatalytic activity through a synergistic effect [12]. Particularly, nitrogen atoms in the carbon matrix can effectively enhance the catalytic active site and electrocatalytic activity of the carbon material due to their tunable electronic properties, high stability, anticorrosion, and conductivity [2, 3, 13]. Multiple heteroatom-doped carbon material displays the smallest Gibbs free energy of hydrogen adsorption compared to single heteroatom-doped carbon material, which endorses much higher HER activity under acid and alkaline conditions for the reason that of the synergetic effect [14]. Various heteroatom-based synthetic precursors have been used to introduce heteroatoms into carbon-based materials to improve their electrocatalytic activities. Nevertheless, synthetic compounds are harmful to humans and to the environment as well, also they are expensive [5, 6]. Therefore, finding a simple, cheap, green heteroatom especially a nitrogen/sulfur-containing precursor to prepare nitrogen/sulfur-codoped carbon-based materials is essentially needed. In general biomass/ biowaste green resources (such as walnut shell, peanut shells, broccoli stem, corn stalks, food waste, palm waste, bean sprouts, cashew nut-skin waste, lotus seedpod, lotus stem, banana peel, and so on) have been confirmed the presence of many phytoconstituents which results in heteroatom-doped porous carbon materials [10, 10, 11, 11, 15,16,17,18,19,20,21,22]. These biomass derived porous carbon materials showed comparatively higher robust catalytic activity and long-term stability towards HER in alkaline and acidic mediums.

The use of biomass not only gives hetero atom-enriched carbon materials but also it reduces pollution. Methods, including the enzymatic hydrolysis route, hydrothermal process, and or pyrolysis route, are available for the preparation of heteroatom-doped porous carbon from biomass [23,24,25]. Among the above methods, pyrolysis technology is widely used for recycling biomass/biowaste due to their unique characteristics of converting low-value biomass into high-value energy products (comparatively straightforward method, high energy conversion efficiency, and short reaction duration with quality products) [26, 27]. To increase heteroatom-enriched biomass utilization value, the development of a pyrolysis route based on biomass’s unique elemental composition to maximize the enrichment of target elements is still in investigation.

Inspired by the above findings, we used the chebulic myrobalan (CM) as a biomass source for the synthesis of chebulic myrobalan-derived porous carbon (CM-PC) material. Also, we rely on the fact that as CM-PC material is from plant sources, it will have abundant heteroatoms and may have outstanding electrocatalytic activity. Besides, CMs are easily available and environmentally friendly precursors in Asia. The CM can help to astringe the body tissues, which may help to treat diarrhea and hemorrhoids. This herb’s cold and dry qualities may also help relieve inflammation and soothe irritated skin. Various state-of-the-art characterization techniques determined the physicochemical properties including structural, chemical composition, and morphological features of as-prepared CM-PC material. After careful characterization, CM-PC was used as an active catalytic material for the fabrication of a working electrode. Then, the electrocatalytic performances of the fabricated electrocatalysts including linear sweep voltammetry (LSV), basics of electrochemical impedance spectroscopy (EIS), and long-term durability were studied for HER in an acidic medium (0.5 M H2SO4 aqueous solution). Further, the electrochemical reaction and stability of the CM-PC were discussed. The results obtained from HER were compared with already reported materials in order to show the superiority of the CM-PC material.

Experimental

Preparation of Porous Carbon Material from Chebulic Myrobalan

The biomass-derived porous carbon material was prepared through a pyrolysis method using dried CM fruit. In a typical procedure, the dried CM fruit was first pounded into a powder using a commercial mixture grinder. Then the milled raw material was transferred to a quartz boat, placed at the center of the quartz tube in the tubular furnace, and heated to 800 °C with a ramp rate of 10 °C min–1. The temperature was maintained for 3 h under a continuous nitrogen protective environment and after the reaction time, the furnace was cooled to room temperature. The resultant carbon product was ground using a mortar and pestle. Finally, the obtained biomass-derived CM-PC material was investigated by various physicochemical characterizations to determine its structural and electrochemical properties. The detailed CM-PC material synthesis procedure and its applications were demonstrated in Scheme 1.

Scheme 1.
scheme 1

Formation of biomass-based porous carbon materials by simple pyrolysis under constant nitrogen gas flow and its application for hydrogen production

Results and Discussion

Structural Properties of Synthesized Porous Carbon Material

Naturally abundant CM was employed as a dual source for the preparation of heteroatoms interconnected porous carbon by direct pyrolysis route and investigated by various measurements. The morphologies of the CM-PC electrocatalyst were examined by the field emission-scanning electron microscope (FE-SEM) and field emission-transmission electron microscope (FE-TEM). As shown in Fig. 1a and b, the CM-PC demonstrates a stacked 2D sheet-like layer structure with smooth surface morphology, and folds are observed on the carbon surfaces and edges. The dimensions range of CM-PC materials are from hundreds of nanometers to several micrometers. The high-resolution images (Fig. 1c and d) display irregular pores with uniform distribution. The internally interconnected pores speared through the entire carbon matrix. The formation of interconnected pores in the CM-PC is credited to the unstable phytoconstituent escaping from the biomass (CM) during the pyrolysis. The chemical (elemental) compositions of CM-PC were determined from FE-SEM-energy dispersive X-ray (EDX) spectral and elemental mapping data. Figure 1e–i shows the FE-SEM electron image and corresponding element mapping images of CM-PC. FE–SEM–EDX elemental mapping images demonstrated that the CM-PC had carbon, oxygen, nitrogen, and sulfur elements with uniform distribution. Moreover, the overlapping of FE–SEM–EDX element mapping images (Fig. S1a) further validates the presence of oxygen, nitrogen, and sulfur elements over the carbon matrix. The FE–SEM–EDX spectrum of CM-PC additionally confirms the chemical composition and purity of CM-PC. The FE–SEM–EDX spectrum (Fig. S1b) demonstrated that the CM-PC possessed carbon, oxygen, nitrogen, and sulfur elements, which are from the source material CM. Apart from these crucial elements, the FE–SEM–EDX spectrum shows silicon and platinum peaks that originated from the silicon wafer (substrate) and coating, respectively, that are used for the microscopic analysis.

Fig. 1
figure 1

Surface morphology of prepared porous carbon. ae FE-SEM image of the obtained CM-PC and fi Corresponding elemental mapping images of carbon, oxygen, nitrogen, and sulfur atoms

The porous characteristics with crystallization/graphitization of the CM-PC can be viewed directly by FE-TEM with selected area electron diffraction (SAED), and the corresponding results are displayed in Fig. 2. TEM images (Fig. 2a and b) confirm the high porous network. Moreover, these interconnected porous structures of CM-PC are assumed to have a favorable penetration of the electrolyte (quick transport of electron) and could shorten the pathways between electrode and electrolyte that sufficiently may improve the diffusion of electrolyte from the pores. This is significant for fast charge–discharge of the electrode [28]. Figure 2c and d demonstrate that the high-magnification TEM images of the CM-PC reveal partial graphitization; hence, the CM-PC might have good electric conductivity [29]. The insets in Fig. 2d show the SAED patterns of the CM-PC and exhibit some narrow rings assigned to diffraction patterns.

Fig. 2
figure 2

Morphology of prepared porous carbon. a, b TEM image of the obtained CM-PC and c, d FE-TEM image of the obtained CM-PC (inset (d): FE-TEM-SAED pattern of CM-PC)

The X-ray diffraction (XRD) profile and Raman spectrum revealed information about the phase structures, including phase purity and degree of crystallinity/graphitization of porous carbon materials. The wide-angle powder XRD of CM-PC (Fig. 3a) displayed broad and distinct peaks centered at (2θ =) 23.5 and 43.5°, which can be indexed to the (0 0 2) and (1 0 0) planes that are responsible for the typical carbon materials [30,31,32,33]. Broad peaks rather than sharp peaks suggest that the partial graphitization of CM-PC (low degree of crystallinity) is due to its surface functionalization during thermal annealing (pyrolysis). Also, the broad peaks indicate that the center-to-center spacings of the mesopores have relatively wide distributions [28]. Raman spectrum of CM-PC (Fig. 3b) shows two distinct peaks centered at 1590 and 1345 cm−1 corresponding to the ordered graphitic structures (sp2-hybridized carbon atoms, G band) and disordered domains (sp3-hybridized carbon atoms, D band), respectively [34, 35]. The intense D band suggests that the CM-PC had a moderate degree of graphitization. Additionally, a weak and broad peak centered at 2850 cm−1 corresponds to the 2D band, which reveals partial graphitization (moderate degree of graphitization).

Furthermore, the intensity ratio of “D band” and “G band” (ID/IG) has been calculated which was less than one, indicating the partial graphitization of CM-PC [36], which might result in good electric conductivity. The XRD and FE-TEM results are in good agreement that CM-PC has partial graphitization/crystallization.

Fig. 3
figure 3

a XRD profile and b Raman spectrum of the obtained CM-PC

The surface area and pore nature of the carbon material plays a crucial role in electrochemical reaction performance. Thus the porosity of CM-PC has been investigated by nitrogen adsorption and desorption experiments. Figure 4a displays the nitrogen adsorption–desorption isotherms of CM-PC. Nitrogen isotherms demonstrate that the CM-PC are likely both type I and type IV isotherms with an H-4 hysteresis loop based on IUPAC classification, indicating the micropores and mesopores in the CM-PC [37,38,39,40]. A steep rise was observed in the isotherms at the low relative pressure (P/P0 < 0.1), corresponding to higher nitrogen uptake in the micropores [41]. The clear hysteresis loop (0.1 < P/P0 < 1.0) and a little sharp rise in the nitrogen isotherms at high relative pressure (P/P > 0.9) suggest the existence of mesopores and macropores in the CM-PC [32, 33, 42]. The small number of macropores may originate from the accumulation of carbon particles/sheets. The nitrogen adsorption and desorption experiments revealed that CM-PC has a surface area of ~ 650 m2 g−1 using the Brunauer–Emmet–Teller (BET) method. This high surface area with porosity might enhance the electrochemical properties of CM-PC towards HER [43].

Fig. 4
figure 4

a Nitrogen adsorption–desorption isotherms and b ATR—FTIR profile of the obtained CM-PC

Chemical functional information of the CM-PC was obtained by attenuated total reflection (ATR)-Fourier transform infrared (FTIR) spectroscopy. The stretching vibration of N–H and C–H bonds appeared at 3330 and 2950 cm−1, respectively [44, 45]. In general, biomass exhibits good C–H bond stretching, but the C–H bond intensity is insignificant in CM-PC; it might be broken during the pyrolysis process to form a more stable C=C (sp2-hybridized carbon) bond that was observed at 1560 cm−1 [46]. The small absorption band observed at 2323 cm−1 suggests the presence of C≡N stretching vibration. The IR spectrum of CM-PC displayed more obvious absorption bands at around 1737, 1370, 1212, and 1060 cm−1, which credits to the C=O in carbonyl groups, C–N in the carbon matrix, O–H in the carboxyl groups and C–O in epoxy groups, respectively [47, 48]. The bands around 1560 and 1060 cm−1 observed spectrum indicate the presence of a C=C (from the aromatic ring) and C–O–C stretching, respectively [49, 50]. The minor peak at 668 cm−1 corresponds to N–H out-of-plane deformation vibration [51]. The strong absorption band at around 470 cm−1 is assigned to the C–S (sulfur bonded with carbon matrix)/S–O (oxidized sulfur)/–CH3 out-plane stretching on aromatic carbon functional groups. This result confirms that the prepared CM-PC has successful incorporation of nitrogen-, oxygen-, and sulfur-containing functional groups.

The X-ray photoelectron spectroscopy (XPS) technique was employed to determine the elemental composition of prepared CM-PC. As shown in Fig. S2, the survey spectrum of CM-PC contains two prominent and two minor peaks at the binding energy level of 164, 284, 431, and 532, corresponding to sulfur, carbon, nitrogen, and oxygen, respectively. The XPS elemental analysis revealed for 80% carbon, 16% oxygen, and small quantities of nitrogen (3%) and sulfur (1%). Figure 5a displays high-resolution XPS spectra of C 1 s level exhibiting a broad peak which has been deconvoluted into four peaks at the binding energies of 283.9, 284.6, 285.6, and 286.7 eV that are attributed to the signals of hydrogen-bonded carbon (–C–H), graphitic sp2 bonded carbon (C=C)/sp3 bonded carbon (C–C), ether/alcohol (C–O–C/C–OH)/C–N/C–S functionalities, and ketone/aldehyde/carboxyl (C=O/–CHO/HO–C=O) groups, respectively [15,16,17, 52,53,54]. The presence of a graphitic sp2-hybridization (C=C bond), along with other C–C and C–O functionalities in the CM-PC, advises for advanced electric conductivity [55]. The existence of C–N, and C–S bonds confirms that the carbon matrix of CM-PC is doped with nitrogen and sulfur. The high-resolution spectrum of O 1 s was used to investigate the nature of oxygen species. The O 1 s spectrum (Fig. 5b) of CM-PC can be divided into three distinct peaks in the binding energy level of 531.0, 532.5, and 533.6 eV attributed to the carbonyl groups (C=O), epoxy/hydroxyl groups (C–O–C/C–OH) and carboxyl groups (HO–C=O), respectively [23,24,25, 56, 57]. The high-resolution spectrum of N 1 s was used to examine the nature of nitrogen species. Figure 5c displays the N 1 s excitation of CM-PC was deconvoluted into three typical component peaks namely; pyridinic-N groups (C–N–C, 398.5 eV), pyrrolic-N groups (C–N–H, 400.9 eV), and quaternary-N groups (C3–N, 403.6 eV), respectively. The presence of pyridinic-N, pyrrolic-N, and quaternary-N is believed to readily promote the surface wettability of electrode material by electrolyte, which subsequently improves the electrochemical properties of CM-PC towards HER [18, 58]. Figure 5d shows the deconvoluted S 2p for the CM-PC with spectrum peaks centered at 162.5, 164.6, and 168.8 eV, which corresponds to the S 2p3/2 spin–orbit splitting (–C–S–), S 2p1/2 spin–orbit splitting (–C–S–), and the possibility of sulfur is bonded with both nitrogen and oxygen species in the carbon matrix (–S–N/–S–O/C–SO3–), respectively [15,16,17, 59, 60]. The above characterization results confirm that the prepared CM-PC has partial graphitization with adequate pores and successful incorporation of nitrogen-, oxygen-, and sulfur-containing functional groups. Based on these excellent properties, the electrochemical performance of the CM-PC towards HER is expected to be significantly improved.

Fig. 5
figure 5

XPS analysis of prepared porous carbon. High-resolution XPS spectra of a C 1 s, b O 1 s, c N 1 s, and d S 2p excitation levels

Electrochemical Properties of Synthesized Porous Carbon Material

In order to measure the electrochemical performance of the CM-PC material towards HER, LSV measurements were conducted using a three-electrode cell configuration in 0.5 M H2SO4 aqueous electrolyte. Figure 6a displays the LSV polarization curves with iR correction on a reversible hydrogen electrode (RHE) scale of CM-PC loaded carbon cloth, pristine carbon cloth, and bare platinum plate (1 cm2) at a sweep rate of 10 mV s–1 under the same conditions. The cathodic current density of the pristine carbon cloth does not change much with the increase of negative potential. Not surprisingly, the pristine carbon cloth shows an overpotential − 800 mV vs. RHE at − 10 mA cm–2, which is a higher potential value compared to other electrode materials. Therefore, pristine carbon cloth showed the lowest (negligible) HER activity than the other electrode materials. The cathode current density of the prepared CM-PC material increased rapidly with the increase of negative potential suggesting that the synthesized CM-PC material had good catalytic activity [10, 11, 43, 61]. The overpotential values for CM-PC material and the bare platinum plate are − 166 and − 45 mV vs. RHE at − 10 mA cm–2, respectively. LSV polarization curves of CM-PC and bare platinum plate show similar trends by HER overpotential and ultimate current density being close. These LSV profile results indicate that the catalytic activity of CM-PC material is much greater than that of pristine carbon cloth but lower than the bare platinum plate. These excellent catalytic activities are due to the synergistic interaction between successfully incorporated heteroatoms (nitrogen and sulfur) with carbon matrix in CM-PC materials. Tafel slope is one of the valuable parameters for the evaluation of the electrocatalyst’s performance towards HER. A smaller Tafel slope generally denotes faster hydrogen production increase with potential increase. Tafel slopes (plots) of resulting electrocatalysts were obtained from the corresponding LSV curves by proper fitting, which is presented in Fig. 6b. The Tafel slopes of pristine carbon cloth, CM-PC material loaded carbon cloth, and bare platinum plate were 285 mV decade–1, 79 mV decade–1, and 38 mV decade–1, respectively. The obtained Tafel slope value of CM-PC material was much lower than that of pristine carbon cloth, suggesting that the CM-PC material owns the fastest hydrogen production [10, 11]. However, the Tafel slope value of CM-PC material is higher than that of the bare platinum plate. The excellent catalytic performance of CM-PC material might be due to various factors such as (i) a perfect spongy-like two-dimensional structure with abundant active sites during the catalytic process; (ii) rich porous structure beneficial for the diffusion of electrolyte and the release of evolved hydrogen; (iii) the heteroatom (especially nitrogen) doping in the CM-PC material could prevent the aggregation also alleviate the conductivity [62]. In order to show the superiority of the current materials, the electrocatalytic performance of CM-PC material for HER correlates with the other related materials reported in the recent literature. Table 1 [10, 11, 18, 23,24,25, 61, 63,64,65] shows the comparison overpotential values at − 10 mA cm−2 and Tafel slopes. Interestingly, the electrocatalytic activity of CM-PC material for HER is higher than the other biomass-derived carbon materials. However, CM-PC showed slightly less activity than cashew but still, the values are comparable.

Fig. 6
figure 6

Electrochemical analysis of prepared porous carbon. a LSV polarization profiles obtained at 10 mV s−1, b Tafel slope, c EIS Nyquist plots, the inset-diagram is a suitable equivalent circuit, and d Durability test of CM-PC material in 0.5 H2SO4 aqueous electrolyte

Table 1 Comparison of HER activity of prepared CM-PC material with other reported biomass-derived electrocatalysts

The HER pathways in acidic media were most commonly divided into three possible reaction steps. In the HER mechanism, the first step (1) is the Volmer reaction step (electrochemical adsorption of hydrogen ions). The second step (2) is known as the Heyrovsky reaction. Here, the hydrogen evolution reaction can proceed (electrochemical desorption reaction). Finally, the Tafel’s reaction step (3). Both the Heyrovsky reaction step and the Tafel reaction step produce H2 [5, 6, 10, 11, 66].

$${\text{H}}^{ + } + {\text{ e}}^{ - } \leftrightarrow {\text{H}}_{{{\text{ad}}}} ,$$
(1)
$${\text{H}}^{ + } + {\text{ e}}^{ - } + {\text{H}}_{{{\text{ad}} }} \leftrightarrow {\text{H}}_{{2}} ,$$
(2)
$${\text{2H}}_{{{\text{ad}} }} \leftrightarrow {\text{H}}_{{2}} .$$
(3)

Electrochemical impedance spectroscopy (EIS) measurement in the electrochemical process significantly influences the catalytic reaction. Thus, the EIS measurement was performed in an acidic aqueous solution to confirm the rapid electron transfer ability of CM-PC material. The EIS Nyquist plot of CM-PC material is shown in Fig. 6c. In general, the high-frequency region in the EIS spectrum is significantly associated with the porous nature of the active electrode material [67]. The low-frequency region is mainly associated with the overpotential used, which reflects the size of the charge transfer resistance. The charge transfer resistance is also related to the rate of catalytic reaction [68]. The EIS Nyquist plots displayed that CM-PC material has the minor diameter of a semicircle arc, implying it had little charge transfer resistance during the HER process. The little charge transfer resistance is beneficial for enhancing electrocatalysis behaviors of hydrogen evolution, which has fast electron transfer. Also, the HER rate is quicker and further reflects its outstanding catalytic activity. Long-term durability is also one of the essential parameters for the prepared CM-PC material in practical applications. The chronopotentiometric curve in Fig. 6d demonstrates that CM-PC material had remarkable stability with continued HER activity for 18, 000 s (5 h) at a constant current density of − 10 mA cm−2. This implies biomass-based CM-PC material with a great application value for HER in an acidic medium.

After stability measurement, the LSV polarization profile was recorded and compared with the initial LSV polarization profile to further prove the electrochemical stability of the prepared catalysts towards HER in the acidic medium. As shown in Fig. 7a, the LSV polarization profiles of CM-PC material in 0.5 H2SO4 aqueous electrolyte before and after long-term durability (18, 000 s) at a constant current density of − 10 mA cm−2 are compared. After long-term durability, the LSV polarization profile really matches well with the initial LSV polarization curve. The result demonstrated that the CM-PC material electrocatalytic activity of hydrogen evolution without any noticeable weakening suggests excellent long-term stability. In order to confirm the electrochemical stability of the prepared electrocatalyst, the EIS measurement was also conducted for the CM-PC material before and after the stability measurement. The corresponding EIS Nyquist plots were compared to each other, as shown in Fig. 7b. After stability measurement, the EIS Nyquist plot of CM-PC material shows an insignificant deviation from the initial EIS Nyquist plot. The insignificant changes of EIS Nyquist semicircle art imply the interfacial charge transfer resistance and mass transport through the porous nature of the CM-PC material retained even after long-term durability. Overall, the results above confirm the superior electrocatalytic activity and durable stability of prepared CM-PC material in acidic electrolytes.

Fig. 7
figure 7

Electrochemical analysis of prepared porous carbon. a LSV polarization curves obtained before and after long-term durability at 10 mV s−1, and b EIS Nyquist plots obtained before and after long-term durability of CM-PC material in 0.5 H2SO4 aqueous electrolyte

Conclusions

An environmentally friendly, efficient, and cost-effective CM-PC material has been successfully prepared using earth-abundant CM as a precursor through a thermal pyrolysis route. This strategy possesses excellent promise for implementation due to the low cost of precursor and facile process. The obtained CM-PC was characterized through various physicochemical techniques, such as FE–SEM–EDX, FE-TEM, XRD, Raman, nitrogen sorptions, ATR-FTIR, and XPS analyses. The above characterization techniques revealed that the as-prepared CM-PC has partial graphitization, high surface area with adequate pores, and with oxygen-, nitrogen-, and sulfur-existing functionalities, which were highly favored for the electrochemical reaction. The as-prepared CM-PC was directly used for the fabrication of a working electrode (electrocatalyst) for HER without any additional processes. Thus, the HER based on ideal CM-PC delivers an attractive overpotential of − 166 mV at − 10 mA cm−2 with a lower Tafel slope of 79 mV decade–1 and excellent stability in 0.5 M H2SO4 aqueous solution. The results showed that the biomass (CM)-derived porous carbon could be applied as a catalyst for HER in an acidic medium. Furthermore, this approach can be extended to prepare diverse biomass-derived porous carbon materials using different biomass/biowaste precursors. Also, it might offer great benefits for the mass production of biomass-derived porous carbon materials for advanced energy harvesting.