1 Introduction

Lithium ion batteries have revolutionized the portable electronic devices, which could not meet the requirements for large-scale grid applications and electric vehicles [1]. The current lithium ion battery technology based on transition-metal oxide cathodes and nanoengineered carbon anode has limited energy storage capacity [2,3,4,5,6]. Lithium–sulfur batteries (LSB) have an overwhelming advantage in energy density, with a theoretical value of about 2600 Wh kg−1 calculated on the basis of the lithium anode and the sulfur cathode, and is up to several times greater than that of traditional lithium ion batteries [7]. However, the widespread usage of LSB is limited by a few defects such as poor coulombic efficiency, fast fading of specific discharge capacity, irreversible loss of active material, and poor cycle life [8, 9]. The above issues may be attributed to the insulation of sulfur and dissolved intermediate lithium polysulfides (Li2Sx, 4 ≤ x ≤ 8) into electrolyte during charge–discharged process, which is the culprit of the shuttle effect [10,11,12].

To address the above stated problems, widespread efforts have dedicated, including the design new cell structures [13], electrolyte [14], passivation of anode [15], and novel technology to encapsulate sulfur in cathode [16]. Among these, the current research tends to wrap sulfur in the porous host. Mesoporous/microporous carbon [17], carbon nanofibers [18], and graphene [19] have been applied as sulfur matrixes in cathode. Nevertheless, microstructure materials like these with varying pore size distribution could retain polysulfides in the porous structure via a physical way. This combination of carbon matrix and polysulfides is neither durable nor enough. Polysulfides were absorbed by a chemical way which was investigated widely in recent years, such as the nitrogen atoms in carbon materials [20], the multifunction groups [21], and other polar compounds [22]. There are three kinds of forms of nitrogen atoms in nitrogen (N)-doped carbon matrixes, which conclude pyridinic N, pyrrolic N, and quaternary N [23, 24]. These previous results proved that the nitrogen in doped states also possesses strong chemical bond with polysulfides. Moreover, these nitrogen modified carbon allows the uniform distribution of active substances and creates more active sites on the surface of carbon hosts [25].

Graphitic carbon nitride (g-C3N4) nanosheets are a representative graphitic-like two-dimensional (2D) layered material, weaker van der Waals force between layers ensures a 2D-layered structure and connected with the amino group of each layer to form a tri-s-triazine unit structure [26, 27]. In practically, g-C3N4 can be prepared by the pyrolysis of various nitrogen-rich precursors. For example, g-C3N4 was synthesized with 2-amino-4, 6-dichlorotriazine by Zhang et al. in a suitable condition [28]. Xu et al. prepared g-C3N4 by directly heating dicyandiamide first at 350 °C for 2 h and then 550 °C for another 2 h, respectively [29]. Chuang et al. obtained g-C3N4 from urea at 550 °C for 3 h [30]. Depending on reaction conditions, g-C3N4 with different degrees of condensation and properties was obtained [31, 32]. So far, little information is known about the effects of different precursors on physical and chemical properties of g-C3N4 under the same conditions, such as surface area, pore volume, morphology, and electrochemical behaviors.

In the present work, considering the fact the g-C3N4 samples prepared from urea, melamine, thiourea, and dicyandiamide separately have different physicochemical properties, the molecular composite precursor of urea, melamine, thiourea and dicyandiamide were treated simultaneously under the same thermal condition. Various characterization tools were utilized to analyze the influences of precursor on the physicochemical properties of g-C3N4. The g-C3N4 powders were used as sulfur matrix for LSB. These results showed that the precursors have considerable impact on the electrochemical properties of g-C3N4.

2 Experiments

2.1 Preparation of g-C3N4 and sulfur/g-C3N4 electrodes

High nitrogen-level compounds, including urea, melamine, thiourea, and dicyandiamide, were selected as precursors and g-C3N4 powders were obtained by polymerization process. A weighed precursor was placed in differently labeled alumina crucibles and calcined at 550 °C for 4 h in muffle furnace. When the furnace temperature dropped to room temperature, the as-prepared g-C3N4 were collected and used as such for further studies. In practical, the different g-C3N4 prepared from urea, melamine, thiourea and dicyandiamide were labeled as U-CN, M-CN, T-CN and D-CN. Figure S1 in Supporting Information illustrates the procedure for obtaining bulk g-C3N4.

Then, the U-CN was mixed with sublimed sulfur by ball milling and the mass ratio is 3:7. The mixture was then transferred to a vacuum drying oven and dried overnight at 60 °C to remove the moisture present in the powder. The dried powder material is sealed in a stainless steel reactor with PTFE liner and kept at 155 °C for half a day to obtain S/U-CN composite. The slurry of S/U-CN composite cathode was prepared from a mixture of the as-fabricated S/U-CN composite materials, conductive carbon black, and binder using mass ratio of 7:2:1. Using carbon-coated aluminum foil as the current collector and coating the above slurry on the surface uniformly, cathode should be also dried at the particular condition which is same with condition of mixture after ball milling. Finally, the S/U-CN cathodes with 1.13 cm2 have approximately 2.2 mg cm−2 sulfur loading. For comparative analysis, S/M-CN, S/T-CN, S/D-CN, and pure sulfur electrodes were also prepared following the procedure described above. The sulfur/g-C3N4 electrodes are schematically exhibited in Figure S2 of Supporting Information.

2.2 Materials characterization

XRD (Rigaku D/Max 2500PC) was utilized to analysis the phase analysis of materials by diffraction with using Cu Ka radiation. The specific surface area measurements of samples were carried out via BET analysis using a pore size distribution analyzer (NOVA 2000e). The morphology of the prepared samples was demonstrated by scanning electron microscopy (SEM, JSM-7001F). The morphologies and structures of the samples were further understood by high-resolution transmission electron microscopy (HRTEM, Tecnai G2 F30) at an acceleration voltage of 200 kV.

2.3 Electrochemical measurement

The electrochemical behavior of the four samples was measured using a CR2032-type coin cells system. Lithium metal foil and celgard 2400 polypropylene film were selected as anode and the separator. The electrolyte solvent is 1, 2-dimethoxyethane (DME) and 1,3-dioxolane (DOL) at a volume ratio of 1:1, the solute is 1 M lithium bis(trifluoromethanesulfone)imide (LiTFSI) and 0.1M lithium nitrate. In addition, electrolyte is added about 100 µL in each cell. The cells within S/CN composite cathodes were tested cycle performance at 0.37 mA cm−2 (1C = 1675 mA g−1) by a CT2001A cell test equipment (LAND model, Wuhan RAMBO testing equipment, Co., Ltd) from 1.7 to 2.8 V (vs. Li/Li+). A scanning speed of 0.1 mV s−1 was selected in cyclic voltammetry (CV) measurements at the same voltage ranging with cycle performance. The EIS measurements in the 10 mHz ≤ frequency ≤ 100.0 kHz were recorded using a VMP2 electrochemical workstation (DHS Instruments Co., Ltd.) at an alternating current (AC) voltage of 10 mV.

3 Results and discussion

3.1 Characterization of as-prepared g-C3N4 with different precursor

The XRD patters (Fig. 1a) of the specimens prepared from urea, melamine, thiourea and dicyandiamide can be indexed to g-C3N4, masked as U-CN, M-CN, T-CN and D-CN, respectively. The strongest interplanar stacking peaks of the conjugated aromatic systems at around 27.4° are indexed to graphitic materials as the (002) peak. The low intensity peak at 12.9° can be linked to the in-plane structural repeat motif of the (100) tri-s-triazine unit [33, 34]. Moreover, the presence of two characteristic peaks in Fig. 1a indicates that its basic structure was fully preserved in all g-C3N4 samples. In addition, the XRD patters of the S/g-C3N4 composites are demonstrated in Fig. 1b, which proved that the sublimated sulfur in the S/g-C3N4 composite is a kind of the orthorhombic sulfur particles phases (JCPDS: 08-0247).

Fig. 1
figure 1

Powder XRD patterns of a U-CN, M-CN, T-CN, D-CN specimens and b S/U-CN, S/M-CN, S/T-CN, S/D-CN and sublimated sulfur

As shown in Fig. 2a, the pore volumes of M-CN with 0.02 cm3 g−1 and 0.03 cm3 g−1 of D-CN are clearly lower than that 0.32 cm3 g−1 of U-CN and 0.12 cm3 g−1 of T-CN. The BET analysis significantly illustrates that the hetero-atoms of oxygen and sulfur play a crucial role in enhancing the pore volumes of g-C3N4 during the condensation. The formation of carbon dioxide and hydrogen sulfide, release of ammonia, and generation of additional water vapor during the pyrolysis of urea and thiourea favor the expansion of the packing layers and porous structure. Meanwhile, the porous structure of urea-derived g-C3N4 with the high BET surface areas was expected to enhance electrochemical properties [35,36,37]. Compared with pure CN powders, the specific surface areas and pore volumes of the obtained S/CN hybrids decrease drastically (Fig. 2b), suggesting that the porous structures of CN matrices are all occupied by the incorporated sulfur particles.

Fig. 2
figure 2

BET surface areas and pore volumes of a U-CN, M-CN, T-CN; D-CN specimens and b S/U-CN, S/M-CN, S/T-CN, S/D-CN composites

The SEM images of the as-prepared U-CN, M-CN, T-CN and D-CN are demonstrated in Figure S3. Obviously, the porous structure of CN consists of thin CN nanosheets with porosity, which can also be confirmed in Fig. 3. The morphological features as seen by TEM, however, revealed significant differences. TEM image of U-CN in Fig. 3a displayed thinner sheets crinkly paper-folded and the M-CN in Fig. 3b can be characterized as an agglomerate of flat sheets, but due to the layered structure of the CN, the resulting aggregates have a smooth surface. A TEM image of T-CN in Fig. 3c demonstrates large thick film curled sheets. The D-CN in Fig. 3d revealed layered platelet-like morphology. The TEM images, respectively, show unique morphological and structure differences between all the CN derived from different precursors. The presence of hetero-atoms oxygen and sulfur led to different degrees of folding of U-CN and T-CN, respectively [34]. These condensation pathways are longer than the condensation pathways of M-CN and D-CN, which results in multiple exfoliations of the layer and the formation of sheets that fold into different degrees. Meanwhile, M-CN and D-CN constrain the formation of planar aggregates [38].

Fig. 3
figure 3

TEM images of a U-CN, b M-CN, c T-CN and d D-CN; TEM image (e) and elemental mapping (f) of S/U-CN

TEM image of S/U-CN (Fig. 3e) clearly shows that the pores of CN are filled with sulfur. The elemental mapping analysis was also carried out to give insight to the composing of S/U-CN and the uniformity of sulfur in porous U-CN. The element mapping images (Fig. 3f) of porous S/CN proves the uniform distribution of sulfur in the porous U-CN.

3.2 Electrochemical performance of S/g-C3N4 electrodes

The electrochemical behavior of pure sulfur and S/g-C3N4 composites cathodes were tested by cyclic voltammetry at first cycle, as shown in Fig. 4, of which testing ranging is from 1.7 to 2.8 V with 0.1 mV s−1. There are three redox peaks in the testing results, which coincides with the two cathodic and oxidation peaks of the classic features of lithium–sulfur batteries. Two typical reduction peaks near 2.25 and 1.95 V correspond to the process of sulfur particles changing to long-chain dissolved polysulfides and the conversion of the insoluble Li2S/Li2S2 from low-order polysulfides, respectively [39]. Here, compared with the pure sulfur and S/CN cathodes (Fig. 4a), the S/U-CN composite cathode demonstrates the lowest voltage hysteresis in electrochemical polarization (ΔV), showing that S/U-CN composite cathode has more full electrochemical redox reaction and low internal resistance in LSB. In addition, the magnified the reduction peak around 1.95 V is shown in Fig. 4b. Compared with the reduction peak of pure sulfur electrode, the red shift of reduction peak can be detected, which may prove the g-C3N4 loading, increasing the kinetics of electrochemical reactions in cell.

Fig. 4
figure 4

Full (a) and magnified (b) cyclic voltammogram profiles of the S/U-CN, S/M-CN, S/T-CN, S/D-CN and pure sulfur electrodes

Figure 5a shows the cycling performance of pure sulfur and S/CN composites electrodes between 1.7 and 2.8 V. The pure sulfur cathode has the lowest initial specific discharge capacity of 567 mAh g−1 and only remained specific discharge capacity of 157 mAh g−1 after 200 cycles at 0.37 mA cm−2. In contrast, the cycle performance of the cells with S/CN composite cathodes was clearly improved. The S/U-CN, S/T-CN, S/D-CN and S/M-CN composites electrodes deliver the initial specific discharge capacity of 1207, 1080, 816, and 767 mAh g−1, and separately maintained about 517, 375, 282, and 243 mAh g−1 after 500 cycles at the same current. Meanwhile, the rate performances of the cells with S/CN composite cathodes at different current density which are from 0.37 to 1.85 mA cm−2 are also analyzed. As shown in Fig. 5b, it is clearly exhibited that the rate performance of S/U-CN composite cathode is much better than other S/CN composites cathodes and pure sulfur cathodes. Even at 1.85 mA cm−2, a reversible specific discharge capacity of 560 mAh g−1 was also achieved for the S/U-CN cathodes. These results show that as-prepared g-C3N4 in which different nitrogen-rich precursors could truly affect its electrochemical behavior of LSB.

Fig. 5
figure 5

a Cycle performances and b rate behaviors of S/U-CN, S/M-CN, S/T-CN, S/D-CN and pure sulfur electrodes

Electrochemical impedance spectroscopy (EIS) measurement of a pure sulfur cathode and S/U-CN, S/T-CN, S/M-CN, and S/D-CN composite cathodes are also performed in Fig. 6a. The dates of EIS consist of the high-frequency region is semi-circular and the straight line is represented low-frequency region, which is related to the electron transfer resistance and Li+ diffusion within the cathode. The equivalent circuit schematic is shown in Fig. 6b. R1 shows the sum of interfacial resistances, including the electrodes and separators after the electrolyte is immersed. The charge transfer resistance in cell was reflected by R2. W01 in the equivalent circuit diagram indicates the Warburg resistance caused by the diffusion of Li+ to the anode within the cathode [40]. Table 1 shows the related resistance dates of the five cathodes. Apparently, the S/U-CN cathode possesses the lowest charge transfer resistance than other S/CN composite cathodes and pure sulfur cathode, demonstrating a more comfortable charge transfer environment between active materials and U-CN.

Fig. 6
figure 6

a EIS of the as-prepared CN by different precursors with sulfur cathodes and a pure sulfur cathode, b schematic diagram of equivalent circuit, c the relationship between Zre and ω−0.5 at low frequencies of S/CN composite cathodes

Table 1 Impedance parameters of the cathodes

To further prove the impact of mobility coefficient of lithium ion, we initially calculated the Warburg diffusion coefficient σ which is obtained using Eq. (1) as follows [41, 42]:

$${Z_{{\text{re}}}}=~{R_1}+{R_2}+\sigma {\omega ^{ - 0.5}},$$
(1)

where both R1 and R2 are kinetics parameters independent of frequency. Therefore, values of σ which are displayed in Fig. 6c represent the slopes for the plots of Zre vs. the reciprocal square root of the lower angular frequencies (ω−0.5). Then, the diffusion coefficient values of the lithium ions (DLi+) for the pure sulfur cathode and S/U-CN, S/T-CN, S/M-CN, S/D-CN composites cathodes were calculated by Eq. (2) and are also listed in Table 1 [43]:

$${Z_{{\text{re}}}}=~0.5{\left( {\frac{{RT}}{{A{F^2}\sigma C}}} \right)^2}.$$
(2)

In the above formula, F (= 9.65 × 104 C mol−1) is the Faraday’s constant, and C (= 1.1 × 10−3 mol cm−3) is the molar concentration of Li+ ions, R (= 8.314 J mol−1 K−1) is the gas constant, T (= 298.5 K) is the room temperature and A (= 1.13 cm−2) is the area of the electrode surface. Similarly, the σ of S/U-CN is lower than that other S/CN composites and pure sulfur cathode, demonstrating the better diffusion environment. This good diffusion environment can be further enhanced by effective adsorption of urea-derived g-C3N4 for the lithium polysulfides, due to its highest specific area, largest pore volume and crinkly paper-folded thinner sheets. Thus, all of these electrochemical measurements show that the g-C3N4 materials applied to different microstructures of exhibit different electrochemical properties as sulfur matrix in lithium–sulfur batteries.

To illustrate the effects of U-CN in a lithium–sulfur battery from the cycled cathode, the cell was transferred to a glove box and disassembled after a specified cycle test. The cycled S/U-CN composite cathode was repeatedly cleaned with anhydrous tetrahydrofuran (THF) and dried at 60 °C for overnight in a vacuum environment remove electrolyte before TEM testing.

The sulfur or lithium polysulfides adsorption of U-CN nanosheet can still be observed, as shown in Fig. 7. However, due to the high vacuum and high voltage HRTEM testing environment and the generated on the surface of high temperature as the electrons pass through the sample, the active substances, including sulfur or polysulfide, was obviously sublimated. A video (shown in supplementary material) exhibited the changing of sublimation process. Figure 7a–d shows several screen shots of abovementioned video at different times, respectively. Obviously, the increase in sulfur or polysulfide on U-CN surface with electron irradiation gradually disappears. Therefore, since electron radiation radiates heat generated on the surface of the sample for a long time, active substances have become sublimated in the testing environment. Meanwhile, the black area changed significantly that only U-CN sheets were still visible, which demonstrated as-prepared U-CN can not only suppress the trapped the polysulfides and increased the utilization of element sulfur by retraining the shuttle effect. These experiment results further certify the prospective program that introducing U-CN used as sulfur matrix can constrain the shuttle effect of LSB, reutilization of the active material and improve the electrochemical behavior of LSB.

Fig. 7
figure 7

TEM images of S/U-CN composite after cycling process at different electron irradiation times: a 0 s, b 5 s, c 10 s, and d 30 s

4 Conclusion

In summary, g-C3N4 samples were prepared via a simple pyrolysis of urea, melamine, thiourea and dicyandiamide under the same procedures, respectively. The as-prepared g-C3N4 was used as sulfur matrix in lithium–sulfur batteries. The electrochemical performance of the g-C3N4 was found to be influenced more by the pore size distribution and pore volume. The urea-derived g-C3N4 (U-CN) exhibited the highest specific area, largest pore volume and crinkly paper-folded thinner sheets. Compared with pure sulfur cathode, the S/U-CN composite improved electrochemical properties, which can not only provide more active sites during charge–discharge process, but also be beneficial the immersion of electrolyte in cathode. Our research results could provide significant insights into appropriate choice of precursors for g-C3N4 synthesis as sulfur matrix in lithium–sulfur batteries.