Skip to Content
MoleculesMolecules
  • Article
  • Open Access

1 December 2026

15 Pages

N,O-Codoped Hollow Carbon Nanosphere/Nanosheet Hybrids Derived from Poly(aniline-co-pyrrole) for Supercapacitors

,
and
Shaanxi Laboratory of Advanced Materials, School of Materials Science and Engineering, Shaanxi University of Science and Technology, Xi’an 710021, China
*
Author to whom correspondence should be addressed.

Abstract

Supercapacitors can deliver energy within seconds and endure hundreds of thousands of charge and discharge cycles, which makes them indispensable for applications requiring burst power. Although porous carbon is the dominant electrode material for supercapacitors, much of its theoretical surface area remains electrochemically inaccessible because of poorly developed ion-transport channels. In this work, hollow poly(aniline-co-pyrrole) nanospheres, prepared with Tergitol 15-S-9 as a soft template, were used as the carbon precursor, while potassium citrate served as both an additional carbon source and an activator, affording N,O-codoped hollow carbon nanosphere/nanosheet hybrids (HCNS). The obtained HCNS possesses a high specific surface area of 2603.67 m2 g−1 and a micropore volume of 0.993 cm3 g−1. In a three-electrode system, at an active material loading of ~1 mg cm−2, the HCNS electrode delivers a specific capacitance of 321 F g−1 at 1 A g−1 and retains 212 F g−1 at 20 A g−1, with 88% capacitance retention after 8000 cycles at 5 A g−1. The symmetric supercapacitor assembled with HCNS electrodes delivers a maximum energy density of 8.2 Wh kg−1 at a power density of 500 W kg−1 and retains 6.1 Wh kg−1 even at a high power density of 10,000 W kg−1, with 83% capacitance retention after 10,000 cycles at 5 A g−1. These results demonstrate that the soft template regulates the hollow cavity of the polymer precursor, whereas potassium citrate activation generates the nanosheets and the microporous and mesoporous network, and that their synergy enables the high capacitance and rate capability, offering a generalizable route to high-performance carbon electrode materials for supercapacitors.

1. Introduction

The increasing global demand for energy, together with the depletion of fossil fuel reserves, has created an urgent need for renewable energy conversion and advanced energy storage systems. Supercapacitors, with their fast charging rates, long cycle life, and low cost, are promising energy storage devices. However, their low energy density remains a critical bottleneck to be overcome [1,2]. Among various electrode candidates, porous carbons dominate commercial electric double-layer capacitors (EDLCs) because their huge internal surface can accommodate a large amount of adsorbed charge, while their interconnected pores give ions a short diffusion path [3,4]. Porous carbon materials can be derived from a wide range of precursors, including biomass, metal–organic frameworks (MOFs), covalent organic frameworks (COFs), polymers, and organic salts [5,6,7,8,9]. However, despite this diversity, precisely regulating the pore architecture of these carbons remains challenging. This is particularly true for the construction of well-defined hollow structures with hierarchical micro- and meso-porosity. Their capacitive performance is still limited by insufficient accessible surface area and sluggish ion transport kinetics.
Biomass-derived carbon has attracted considerable attention because of its renewable feedstock and environmental friendliness [10]. However, biomass generally suffers from poor structural uniformity. MOFs and COFs offer tunable molecular structures, but their high cost hinders large-scale application [11]. In contrast, polymer precursors combine a tunable molecular structure, uniformly controllable heteroatom doping, and ease of morphology regulation [12]. By optimizing the precursor and the activation conditions, the pore size can be deliberately tuned to match the size of the electrolyte ions, thereby maximizing the capacitive performance. Among polymers, polyaniline (PANI), polypyrrole (PPy), and their copolymers, such as poly(aniline-co-pyrrole) (PACP), have become a research focus in the field of heteroatom-doped porous carbon materials owing to their adjustable structure and rich nitrogen content [13,14,15]. Moreover, PACP possesses a more complete cross-linked network than either PANI or PPy alone, which enables more uniform nitrogen doping during carbonization.
Activation is the core strategy for regulating the specific surface area, porosity, and heteroatom content of porous carbon materials. Conventional activation methods are classified into physical activation and chemical activation. Physical activation uses CO2 or steam as the oxidizing medium to etch the carbon skeleton. Although environmentally friendly, it is energy-intensive and offers limited precision in pore structure regulation [16]. Chemical activation employs reagents such as KOH to react with the carbon precursor, and it efficiently constructs highly microporous structures with large specific surface areas, making it the mainstream strategy at present. KOH remains the most popular chemical activator, since its etching strength can be readily tuned through the activation temperature and the KOH-to-carbon ratio. Nevertheless, the strong corrosiveness of KOH causes severe equipment wear. The violent redox reactions at elevated temperatures compromise the integrity of the carbon skeleton and lead to heteroatom loss, which reduces the pseudocapacitive contribution [17]. Moreover, KOH activation alone tends to yield purely microporous carbons with high ion diffusion resistance, which limits the rate capability. Potassium citrate is an organic salt typically produced by neutralizing citric acid derived from biomass, which is abundant in plants and especially in citrus fruits. Owing to its dual functionality, potassium citrate can serve as both a carbon source and an activator, which makes it an ideal precursor for porous carbon materials [18,19]. In our previous studies, hollow polymer precursors were prepared with methyl orange as the template for PPy nanotubes [14] and with Triton X-100 as the soft template for PACP hollow spheres [15]. Potassium citrate activation of these precursors afforded hierarchical porous carbons combining nanosheets with hollow structures, which exhibited high specific surface areas (1671 and 1947.36 m2 g−1, respectively), and micropore volumes (0.547 and 0.812 cm3 g−1, respectively), and delivered excellent electrochemical performance in zinc-ion and sodium-ion capacitors, respectively. These results demonstrate that combining a polymer hollow structure with potassium citrate activation is a promising route to hierarchically porous carbons with well-balanced micropores and mesopores. However, the specific surface areas and pore structures achieved with these templating systems still leave room for improvement.
In this work, Tergitol 15-S-9 is employed as a soft template during the copolymerization of aniline and pyrrole to direct the self-assembly of PACP into hollow nanospheres (HPNS), while the counterpart synthesized without the template is denoted as PACP nanospheres (PNS). Subsequent carbonization and activation with potassium citrate convert HPNS and PNS into N,O-codoped hollow carbon nanosphere/nanosheet hybrids (HCNS) and N,O-codoped carbon nanosphere/nanosheet hybrids (CNS), respectively. The role of the soft template in regulating the morphology of the polymer precursor, the pore structure of the resulting carbon, and the capacitive performance is systematically investigated. HCNS possesses a hierarchically porous structure with a high specific surface area of 2603.67 m2 g−1 and delivers a specific capacitance of 321 F g−1 at 1 A g−1 in a three-electrode configuration. The symmetric supercapacitor assembled with HCNS electrodes delivers a maximum energy density of 8.2 Wh kg−1 at a power density of 500 W kg−1 and retains 6.1 Wh kg−1 even at a high power density of 10,000 W kg−1. Comparison with the template-free counterpart reveals that the soft template plays a decisive role in constructing the hollow cavity of the polymer precursor, whereas potassium citrate activation produces the nanosheet morphology and builds the microporous and mesoporous network within the carbon walls. The synergy between these two processes accounts for the high specific capacitance and rate capability of the resulting electrode.

2. Results and Discussion

The morphology of the as-prepared samples was characterized by scanning electron microscopy (SEM). As shown in Figure 1a,b, both PNS and HPNS exhibited a relatively uniform spherical morphology with smooth surfaces and well-dispersed particles. This morphological feature can be attributed to the cross-linked network formed by aniline and pyrrole during polymerization, which provides a stable framework for the subsequent carbonization process. Moreover, the use of Tergitol 15-S-9 did not significantly alter the particle size or surface morphology of HPNS. After activation and carbonization with potassium citrate, both CNS and HCNS (Figure 1c,d) exhibited a hybrid structure composed of PACP-derived nanospheres and potassium citrate-derived nanosheets. During carbonization, potassium citrate first decomposes at a low temperature (<650 °C) to produce potassium carbonate (K2CO3), which further decomposes at higher temperatures (650–750 °C) to generate CO2 and K2O. These species (CO2 + C → 2CO, K2O + C → 2K + CO, 800–850 °C) act as effective activating agents toward the carbonized products of PNS or HPNS, and potassium citrate. Additionally, the potassium vapor generated at temperatures above 800 °C intercalates into the carbon lattice, causing lattice expansion and the formation of structural defects and pores [20,21].
Figure 1. SEM images of (a) PNS, (b) HPNS, (c) CNS, and (d) HCNS; TEM images of (e) CNS and (g) HCNS; HRTEM images of (f) CNS and (h) HCNS; EDS elemental mapping of (i) CNS and (j) HCNS.
The internal fine structure of the samples was further revealed by transmission electron microscopy (TEM). As shown in Figure 1e, CNS consisted of solid nanospheres and nanosheets, whereas HCNS exhibited a well-defined hollow structure (Figure 1g). This hollow morphology is attributed to the spatial confinement of the Tergitol 15-S-9 soft template during polymerization: the non-ionic surfactant self-assembles into micelles, onto whose surface the aniline and pyrrole monomers polymerize and form a coating. Upon high-temperature carbonization, the template is removed, replicating the hollow cavity [22]. The high-resolution TEM (HRTEM) images in Figure 1f,h revealed that both CNS and HCNS possess a typical disordered, amorphous carbon skeleton without discernible graphitic lattice fringes. This amorphous structure, together with the hollow cavity and surface porosity of HCNS, effectively mitigates structural shrinkage during carbonization while providing abundant ion-accessible active sites. Thus, the introduction of the Tergitol 15-S-9 soft template plays a decisive role in regulating the pore structure of PACP-derived carbon materials. Energy-dispersive X-ray spectroscopy (EDS) elemental mapping (Figure 1i,j) further confirmed the uniform distribution of C, O, and N elements in both CNS and HCNS.
The Fourier transform infrared (FTIR) spectra of PNS and HPNS are shown in Figure 2a. Both samples exhibit characteristic absorption bands at 1580 and 1495 cm−1, assigned to the C=C skeletal vibrations of quinoid and benzenoid rings, respectively, which confirm the formation of the PACP chains [22,23]. A weak band at ~1700 cm−1 is assigned to the stretching vibration of carbonyl (C=O) groups. Such carbonyl species are not intrinsic to the ideal polyaniline or polypyrrole backbones but are introduced by overoxidation of the polymer chains during oxidative polymerization with ammonium persulfate [24]. Since potassium citrate was introduced only at the subsequent carbonization and activation stage, citrate-derived species can be excluded as the origin of this band in the as-polymerized precursors. In addition, the band at ~1050 cm−1 is attributed to C–O–C stretching, further confirming the presence of oxygen-containing groups generated during oxidative polymerization [22,23]. The XRD patterns of CNS and HCNS in Figure 2b display two broad, weak diffraction peaks at approximately 23° and 43°, assigned to the (002) and (100) planes of turbostratic carbon, respectively, suggesting a predominantly amorphous structure [25]. Notably, the (002) reflection of HCNS is centered at 2θ = 24.7°, compared with 21.6° for CNS, corresponding to d002 spacings of 0.360 and 0.411 nm, respectively, as calculated using Bragg’s law. The substantially smaller interlayer spacing of HCNS indicates a more compact stacking of the aromatic layers. It should be noted that this difference does not originate from the removal of the template, because the soft template decomposes during the early stage of carbonization and both precursors experience identical activation conditions. A plausible explanation is that the hollow precursor, with its thinner and more accessible carbon walls, undergoes more uniform activation, which facilitates the local rearrangement of the aromatic layers at high temperature. Raman spectroscopy (Figure 2c) was employed to further evaluate the local carbon structure and defect features of CNS and HCNS. Both spectra were deconvoluted using a four-peak model (D4, D1, D3, G) typical of disordered turbostratic carbon [26]. The D1 band at ~1350 cm−1 arises from edge/structural defects within sp2 carbon domains, and the G band at ~1590 cm−1 corresponds to the in-plane stretching of sp2 C=C bonds. The D3 peak at ~1510 cm−1 is attributed to isolated amorphous carbon clusters, whereas the D4 peak at ~1150 cm−1 is ascribed to aliphatic sp3 carbon and residual polyene fragments. Here, IG and ID1 denote the integrated areas of the G and D1 bands obtained from the fitting, and the ratio IG/ID1 is used as a measure of the relative ordering of the sp2 domains. The IG/ID1 values of CNS and HCNS are 0.556 ± 0.003 and 0.626 ± 0.004, respectively (Table 1), where the uncertainties were propagated from the standard errors of the fitted peak areas. The difference between the two values is more than one order of magnitude larger than the fitting uncertainty. The higher IG/ID1 and the correspondingly lower ID1/(ID1 + IG) value of HCNS (0.615 ± 0.002 vs. 0.643 ± 0.001 for CNS) indicate a modest yet statistically significant enhancement in the ordering of the sp2 domains, which is consistent with the smaller interlayer spacing revealed by XRD. Such improved local ordering of the conductive sp2 network is beneficial for electron transport during charge–discharge processes [27]. The N2 adsorption–desorption isotherms of CNS and HCNS (Figure 2d) exhibit a mixed type I/IV profile, indicating the coexistence of micropores and mesopores in a hierarchical pore structure. The corresponding pore size distribution curves (Figure 2e) confirm that both samples possess abundant micropores in the range of 0.5–2 nm, accompanied by a mesoporous network of 2–5 nm. This hierarchical porosity originates from the activating behavior of potassium citrate: the in situ generated K2O etches the carbon skeleton to create micropores, while the released CO/CO2 gases expand the pores to form mesopores. The carbonaceous residue of potassium citrate develops into the nanosheet phase that enlarges the mesopore fraction. Meanwhile, the hollow structure constructed by the soft template promotes the development of both micropores and mesopores, endowing HCNS with a larger total pore volume and an increased average pore size [28]. As listed in Table 1, HCNS exhibits a high specific surface area of 2603.67 m2 g−1, a micropore surface area of 2272.03 m2 g−1, a micropore volume of 0.993 cm3 g−1, and a total pore volume of 1.806 cm3 g−1, with an average pore diameter of 2.78 nm, all of which exceed those of CNS (2577.12 m2 g−1, 2186.25 m2 g−1, 0.963 cm3 g−1, 1.420 cm3 g−1, and 2.20 nm, respectively). Notably, the micropore fraction of HCNS (87.3% of Stotal) is also higher than that of CNS (84.8%), while its non-micropore volume (0.813 cm3 g−1) is 1.8 times that of CNS (0.457 cm3 g−1), suggesting that the hollow structure enriches micropores while simultaneously enlarging the transport channels. Compared with the methyl orange and TX-100 templating systems used in our previous studies, the Tergitol 15-S-9 strategy provides more effective regulation of the hollow cavity and a higher specific surface area, while offering a more environmentally benign alternative to alkylphenol-based soft templates [14,15]. The abundant micropores within the carbon walls of HCNS provide sufficient charge adsorption sites; the hollow cavity and enlarged mesopore network can accommodate abundant electrolyte and buffer the volume stress generated during charge–discharge, and the continuous, well-connected pore structure ensures rapid ion transport, thereby improving the capacity retention of the electrode at high current densities. The XPS survey spectrum (Figure 2f) displays three characteristic peaks at 284.8, 398.8, and 534.6 eV, corresponding to C 1s, N 1s, and O 1s, respectively [29]. The N originates from PACP, while the O is supplied by potassium citrate and Tergitol 15-S-9 surfactant. As shown in Figure 2g–i, the high-resolution spectra of CNS and HCNS exhibit similar peak positions and similar types of N- and O-containing functional groups, while their relative contents differ slightly, with CNS showing a marginally higher surface N and O content (Figure S1 and Table S1). This difference in surface chemistry provides a compositional rationale for the structural observations above: the fewer heteroatoms in HCNS exert less steric expansion on the carbon layers, which accounts for the (002) shift toward higher angles in the XRD patterns and agrees well with the moderately enhanced ordering of the sp2 domains indicated by Raman analysis. Among these groups, pyridinic nitrogen (N-6) and pyrrolic nitrogen (N-5), as well as C=O and C–O groups, can undergo redox pseudocapacitive reactions, contributing additional charge storage capacity [30]. Despite the slightly lower heteroatom content, the hollow cavity of HCNS, together with its continuous pore network, provides efficient ion transport pathways that allow a larger fraction of the surface to participate in electric double-layer storage [31].
Figure 2. (a) FTIR spectra of PNS and HPNS, (b) XRD patterns, (c) Raman spectra, (d) N2 adsorption/desorption isotherms, (e) pore size distribution and (f) XPS survey spectra; high-resolution (g) C 1s, (h) N 1s, and (i) O 1s spectra of CNS and HCNS.
Table 1. Raman and pore size distribution data for CNS and HCNS.
As shown in Figure 3a,b, the cyclic voltammetry (CV) curves of both CNS and HCNS exhibit approximately rectangular profiles, indicating that the charge storage of the two samples is dominated by the electric double-layer mechanism, which relies on the rapid adsorption and desorption of electrolyte ions on the electrode surface. No discernible redox peaks are observed, indicating that the redox reactions of the N- and O-containing functional groups contribute only a minor pseudocapacitive fraction [30], consistent with the low heteroatom contents of both samples. At the same scan rate, the integrated area of the CV curves of HCNS is markedly larger than that of CNS, indicating its higher specific capacitance. As the scan rate increases from 5 to 100 mV s−1, the CV curves of HCNS retain the quasi-rectangular shape, whereas those of CNS show more pronounced distortion, arising from its larger diffusion-controlled contribution as quantified below. The kinetic behavior was evaluated from the CV curves recorded at scan rates from 5 to 100 mV s−1 using the power law of Equation (1),
i = a v b
where i (A g−1) and ν (mV s−1) are the current density and scan rate, respectively; a and b are adjustable parameters. A b value of 0.5 indicates an ideal diffusion-controlled process, whereas a b value of 1 indicates an ideal surface-controlled capacitive process. The b values were determined from the slopes of the logi versus logv plots at fixed potentials of −0.3, −0.5 and −0.7 V. As shown in Figure 3c,d, the b values fall in the ranges of 0.92 to 0.93 for HCNS and 0.75 to 0.84 for CNS. The near-unity b values of HCNS confirm its surface-controlled capacitive kinetics, whereas the lower values of CNS indicate that its charge storage is partially limited by sluggish ion transport in the narrow, poorly connected micropores. The surface-controlled and diffusion-controlled contributions were further separated by Dunn’s method [32]. The current at a given potential was separated according to Equation (2),
i V = k 1 v + k 2 v 1 / 2
where k1v and k2v1/2 correspond to the surface-controlled and diffusion-controlled contributions, respectively. For quantitative analysis, Equation (2) is rearranged as Equation (3),
i V / v 1 / 2 = k 1 v 1 / 2 + k 2
At each potential, k1 and k2 were obtained from the slope and intercept of the linear plot of i(V)/v1/2 versus v1/2, and the fraction of the surface-controlled contribution was calculated as the ratio of k1v to the total current density. As shown in Figure 3e,f, the surface-controlled contribution of HCNS reaches 65.4% at 5 mV s−1 and increases to 91.5% at 100 mV s−1, markedly higher than that of CNS (34.4% and 75.8%, respectively). Given the low heteroatom contents of both samples and the absence of discernible redox peaks in the CV curves, the surface-controlled contribution is dominated by electric double-layer charging, with fast surface redox reactions accounting for only a minor part. The higher capacitance of HCNS therefore originates from electric double-layer storage on its more accessible surface rather than from pseudocapacitance.
Figure 3. Electrochemical performance and charge storage kinetics in the three-electrode system with an active material mass loading of ~1 mg cm−2: CV curves of (a) CNS and (b) HCNS at scan rates of 5, 10, 30, 50, 70 and 100 mV s−1. log i versus log v Plots at fixed potentials of −0.3, −0.5 and −0.7 V for (c) CNS and (d) HCNS, where the b values were obtained from the slopes of the fitting lines. Surface-controlled and diffusion-controlled contributions at different scan rates for (e) CNS and (f) HCNS.
The galvanostatic charge–discharge (GCD) curves (Figure 4a,b) display approximately symmetrical triangular shapes, further confirming the dominant EDLC behavior. At the same current density, HCNS exhibits a markedly longer discharge time than CNS. The specific capacitance (C, F g−1) was calculated based on the above GCD curves using Equation (4) [33],
C = I × ∆ t m × ∆ V
where I (A), m (g), Δt (s) and ΔV (V) represent the current, active materials mass, discharge time and potential window, respectively. The specific capacitance data were summarized in Figure 4c and Table S2. Over the entire current density range of 1–20 A g−1, the specific capacitance of HCNS (321 F g−1 at 1 A g−1, 212 F g−1 at 20 A g−1) remains higher than that of CNS (222 F g−1 at 1 A g−1, 162 F g−1 at 20 A g−1). It should be noted that the capacitance retention of HCNS from 1 to 20 A g−1 (66%) is slightly lower than that of CNS (73%). This is because the additional interior surface of HCNS, enabled by the hollow cavity and the open mesoporous network, is fully accessible at low current densities but contributes less as the current density increases, while its absolute capacitance remains higher over the entire range. The capacitance gain of HCNS far exceeds the negligible difference in the BET surface area, indicating that the performance enhancement does not originate from the surface area itself. When normalized to the BET surface area, HCNS delivers 12.3 μF cm−2 compared with 8.6 μF cm−2 for CNS at 1 A g−1 (Table S2), confirming a higher intrinsic surface utilization. Three structural factors account for this enhancement. First, compared with CNS, the pore network of HCNS is more open, with larger total pore volume, mesopore volume and average pore size, which improves the accessibility of the pores to hydrated ions in the electrolyte. Second, the hollow architecture provides dual-side electrolyte access to the carbon wall and halves the maximum ion diffusion path. Third, the more compact aromatic stacking and the higher IG/ID1 value of HCNS indicate a better-connected sp2 network with faster charge transfer. Electrochemical impedance spectroscopy (EIS) was employed to evaluate the charge transport dynamics. The Nyquist plots were fitted using an equivalent circuit (Figure 4d, inset), which consists of a series resistance (Rs), a charge-transfer resistance (Rct), a constant phase element (CPE) in parallel with Rct, and an open Warburg element (Wo) accounting for ion diffusion within the porous structure at low frequencies [31]. As shown in Figure 4d, HCNS displays a smaller semicircle diameter and a more vertical low-frequency line than CNS. According to the equivalent-circuit fitting (Figure 4e), the Rct of HCNS is 0.12 Ω, lower than that of CNS (6.12 Ω), confirming faster charge-transfer kinetics, which can be attributed to its more compact sp2 domain stacking and continuous pore network [33]. The Rs of HCNS is slightly higher (0.74 Ω vs. 0.46 Ω), which is mainly associated with the interfacial contact resistance within the hollow-sphere-based electrode film. The frequency response was further compared by Bode analysis (Figure 4f). The characteristic frequency (ƒ0), defined as the frequency at which the phase angle reaches −45°, is 0.77 Hz for HCNS, corresponding to a relaxation time constant (τ0) of 1.29 s, whereas the ƒ0 of CNS is only 0.11 Hz with a τ0 of 8.75 s. However, the maximum phase angle of CNS is only −49.3°, far from the −90° expected for an ideal capacitor, because its large charge-transfer resistance keeps the low-frequency response resistive rather than capacitive. These results confirm that the slightly higher Rs of HCNS does not compromise the overall rate capability. As shown in Figure 4g, the capacitance retention and coulombic efficiency of HCNS remain at 88% and ~100%, respectively, after 8000 cycles at a current density of 5 A g−1, demonstrating its good long-term cycling stability. This stability can be attributed to the hollow framework and the continuous pore network constructed by the soft-template strategy, which preserve the ion transport pathways and the structural integrity of the electrode during repeated charge and discharge processes.
Figure 4. Electrochemical performance of the three-electrode system with an active material mass loading of ~1 mg cm−2: GCD curves of (a) CNS and (b) HCNS at current densities of 1, 3, 5, 7, 10 and 20 A g−1. (c) Specific capacitance at different current densities, (d) Nyquist plots (inset: the equivalent circuit), (e) the fitted Rs and Rct data and (f) Bode plots of CNS and HCNS. (g) Capacitance retention and coulombic efficiency of HCNS over 8000 cycles at 5 A g−1.
The electrochemical performance of the symmetric supercapacitor assembled with HCNS electrodes was systematically investigated. As shown in Figure 5a, the CV curves at scan rates of 5–100 mV s−1 all exhibit approximately rectangular profiles without obvious redox peaks, demonstrating typical EDLC behavior. Even at a high scan rate of 100 mV s−1, the curves maintain a good rectangular shape, indicating excellent ionic diffusion kinetics of the electrode. As shown in Figure 5b, the GCD curves at different current densities display approximately symmetric triangular shapes with small IR drops, reflecting the low internal resistance and good charge–discharge reversibility of the device. The specific capacitance of the symmetric supercapacitor was calculated according to Equation (4) based on the mass of the active materials in the positive and negative electrodes. At a current density of 1 A g−1, the specific capacitance was 59 F g−1, and gradually decreased with increasing current density; yet, a considerable capacitance of 44 F g−1 is still retained at a high current density of 20 A g−1, demonstrating excellent rate capability. The energy density (E, Wh kg−1) and power density (P, W kg−1) were calculated using the following Equations (5) and (6) [33],
E = C × ∆ V 2 2 × 3.6
where C (F g−1) is the specific capacitance of the symmetric supercapacitors, calculated based on the total mass of the active materials in the two electrodes, and ΔV (V) is the voltage.
P = 3600 × E ∆ t
where Δt (s) is the discharge time. The specific data of energy and power densities are summarized in Table S3. The Ragone plot (Figure 5c) shows that the device delivers a maximum energy density of 8.2 Wh kg−1 at a power density of 500 W kg−1 and retains 6.1 Wh kg−1 even at 10,000 W kg−1, outperforming most reported porous carbon devices under high-power energy storage devices [19,34,35,36,37]. It should be noted that the energy density is proportional to the specific capacitance and to the square of the cell voltage, and several factors beyond the surface area itself should be considered in such comparisons. As shown in Table 2, although HCNS possesses a much larger surface area, its low heteroatom content provides only a minor pseudocapacitive contribution, and charge is stored predominantly through the double-layer mechanism. In addition, the present work employs 6 M NaOH, whereas most of the listed studies used 6 M KOH. The larger hydrated Na+ ion (approximately 0.72 vs. 0.66 nm for K+) and the lower conductivity of NaOH render the capacitance values reported here a conservative estimate [38,39]. Moreover, a voltage window of 1.0 V in this work is commonly adopted for aqueous electrolytes. Taken together, these factors explain why the larger surface area of HCNS does not translate into a proportionally higher device-level energy density. As shown in Figure 5d, the long-term cycling test reveals that the capacitance retention remains at 83% after 10,000 consecutive charge–discharge cycles at a current density of 5 A g−1, with nearly 100% coulombic efficiency. The gradual loss of capacitance is tentatively attributed to the slow blockage of a fraction of the micropores by trace electrolyte decomposition products and to the partial loss of surface heteroatom functionalities during repeated ion adsorption and desorption [40]. This excellent cycling stability confirms the robust structural stability and outstanding electrochemical durability of the prepared electrode, highlighting its promising potential for practical applications in supercapacitors.
Figure 5. Electrochemical performance of the symmetric supercapacitor assembled with HCNS electrodes (active material mass loading of ~1 mg cm−2 for each electrode): (a) CV curves at scan rates of 5, 10, 30, 50, 70 and 100 mV s−1, (b) GCD curves at current densities of 1, 3, 5, 7, 10 and 20 A g−1, (c) Ragone plot compared with previously reported carbon-based supercapacitors [19,34,35,36,37] and (d) capacitance retention and coulombic efficiency after 10,000 cycles at 5 A g−1.
Table 2. Comparison of electrochemical performance of the symmetrical supercapacitor assembled with HCNS electrodes with other reported works.

3. Experimental Section

3.1. Materials

Tergitol 15-S-9 was purchased from Shanghai McLyn Biochemical Technology Co., Ltd., Shanghai, China. Aniline (C6H7N), pyrrole (C4H5N), ammonium persulfate (APS, (NH4)2S2O8) and potassium citrate (C6H5K3O7) were all obtained from Sinopharm Group Chemical Reagents Co., Ltd., Shanghai, China.

3.2. Preparation of CNS and HCNS Samples

HPNS was synthesized via a chemical oxidative polymerization route. In a typical procedure, 0.25 g of the Tergitol 15-S-9 was dissolved in 220 mL of deionized water pre-cooled to 0–2 °C, and the solution was magnetically stirred at this temperature for 0.5 h. Subsequently, 1.71 mL of aniline and 1.305 mL of pyrrole were added successively, and the mixture was stirred for another 0.5 h to form a homogeneous dispersion. Then, 30 mL of a pre-cooled (0–2 °C) APS solution was added dropwise to the above system within 5 min. After rapid stirring for 30 s, the polymerization was allowed to proceed at 0–2 °C for 12 h. The resulting product was washed with deionized water until the filtrate was neutral and vacuum-dried at 60 °C for 12 h to obtain HPNS. The control sample PNS was prepared by the same procedure without the addition of any template. For carbonization, 2 g of PNS or HPNS was mixed with potassium citrate and heated at 900 °C for 2 h at a heating rate of 5 °C min−1 under a nitrogen atmosphere. The mass ratio of the precursor to potassium citrate (1:4) and the activation temperature were selected on the basis of our previous studies [14,15]. After immersion in 1 M hydrochloric acid, the samples were washed with deionized water until neutral and dried under vacuum at 60 °C for 12 h, affording CNS and HCNS, respectively. The specific preparation process is shown in Figure 6.
Figure 6. Schematic diagram of the preparation process of HCNS.

3.3. Characterization

Field-emission SEM (Hitachi S-4800, Tokyo, Japan) and TEM (FEI Tecnai G2 F20, fitted with an EDS detector, Hillsboro, OR, USA) were used to examine the morphology and elemental distribution of the samples. FTIR spectra were recorded on a Bruker Vector-22 spectrometer (Ettlingen, Germany). XRD measurements were performed on a Rigaku SmartLab 9 kW diffractometer (Tokyo, Japan) using Cu Kα radiation (λ = 1.5406 Å). Raman spectra were collected on a Thermo Fisher DXRxi micro-Raman spectrometer (Waltham, MA, USA) with a 532 nm laser (10 mW). N2 adsorption–desorption isotherms were measured at 77 K using a Micromeritics ASAP 2460 surface area and pore size analyzer (Norcross, GA, USA). XPS measurements were carried out on a Thermo Scientific K-Alpha spectrometer (Waltham, MA, USA) with monochromatic Al Kα radiation (hν = 1486.6 eV), and the binding energies were calibrated using the C 1s peak at 284.8 eV.

3.4. Electrochemical Measurements

The electrochemical performance of CNS and HCNS was evaluated in a three-electrode configuration. The working electrodes were prepared as follows: the active material (80 wt.%), acetylene black (10 wt.%), and polytetrafluoroethylene (PTFE, 10 wt.%) were thoroughly mixed to form a homogeneous slurry, which was coated onto nickel foam (1 cm × 1 cm) and dried at 60 °C for 12 h. The mass loading of the active material was approximately 1 mg cm−2. A platinum sheet (1 cm × 1 cm) and a saturated calomel electrode (SCE) served as the counter and reference electrodes, respectively, and 6 M NaOH aqueous solution was used as the electrolyte. For the two-electrode measurements, a symmetric supercapacitor was assembled in a CR2032-type coin cell using two identical HCNS electrodes with 6 M NaOH as the electrolyte. CV, GCD, and EIS measurements were carried out on an electrochemical workstation (CHI 660E, Shanghai, China). EIS was performed over a frequency range of 105–10−2 Hz with a 5 mV AC amplitude. The long-term cycling test was performed on a LAND battery test system (CT3002A, Wuhan, China).

4. Conclusions

In summary, an HPNS precursor was synthesized via the low-temperature copolymerization of aniline and pyrrole assisted by a Tergitol 15-S-9 soft-template emulsion, and N,O-codoped HCNS was subsequently prepared through one-pot carbonization and activation using potassium citrate. Comparison with CNS without the template demonstrates that the soft template regulates the hollow cavity of the polymer precursor, whereas potassium citrate activation generates the carbon nanosheets and the microporous and mesoporous network within the carbon walls. The HCNS possesses a high specific surface area of 2603.67 m2 g−1 and a micropore volume of 0.993 cm3 g−1, in which the abundant micropores and mesopores facilitate rapid ion diffusion and charge storage. In a three-electrode configuration, HCNS delivers a specific capacitance of 321 F g−1 at 1 A g−1, retains 212 F g−1 at 20 A g−1, and maintains 88% of its initial capacitance after 8000 cycles at 5 A g−1. Furthermore, the symmetric supercapacitor assembled with HCNS electrodes delivers an energy density of 8.2 Wh kg−1 at a power density of 500 W kg−1 and retains 6.1 Wh kg−1 at 10,000 W kg−1, together with 83% capacitance retention after 10,000 cycles at 5 A g−1. These results establish soft-template-regulated precursor design combined with potassium citrate activation as an effective and generalizable strategy for constructing N,O-codoped porous carbon electrodes for supercapacitors.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/molecules31234387/s1, Figure S1: Proportions of N- and O-containing functional groups in CNS and HCNS; Table S1: XPS composition of CNS and HCNS; Table S2: Specific capacitance data of CNS and HCNS; Table S3: Energy and power densities of the symmetric supercapacitor assembled with HCNS electrodes.

Author Contributions

Conceptualization, K.Z.; methodology, J.G.; software, K.Z. and J.G.; validation, J.G.; investigation, K.Z. and J.G.; data curation, K.Z.; writing—original draft, K.Z.; writing—review & editing, J.H.; visualization, J.H.; supervision, J.H.; project administration, J.H.; funding acquisition, J.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Natural Science Basic Research Program of Shaanxi Province, grant number 2025JC-YBQN-211.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article and its Supplementary Materials. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Pallavolu, M.R.; Prabu, S.; Nallapureddy, J.; Banerjee, A.N.; Park, K. Integrated supercapacitors for future energy technologies: A comprehensive review. Renew. Sustain. Energy Rev. 2027, 243, 117368. [Google Scholar] [CrossRef] [Scilit]
  2. Yang, S.; Fu, W. Electrospun carbon-based materials for conventional and hybrid supercapacitors: Progress and prospects. Energy Environ. Mater. 2026, 9, e7013. [Google Scholar] [CrossRef] [Scilit]
  3. Xu, C.; Kang, S.; Ma, J.; Lu, Y.; Chen, Z.; Liu, C.; Pan, Y.; Shi, M.; Tong, G. Cellulose-mediated synthesis of lignosulfonate-derived N/S co-doped hierarchical porous carbons for supercapacitors. Chem. Eng. J. 2026, 548, 181937. [Google Scholar] [CrossRef] [Scilit]
  4. Lv, Q.; Tian, Z.; Li, W.; Duan, G.; Han, X.; Zhang, C.; He, S.; Mao, H.; Ma, C.; Jiang, S. Porous carbon derived from biomass-based polymers: Innovative applications in supercapacitors. Chin. Chem. Lett. 2026, 37, 110860. [Google Scholar] [CrossRef] [Scilit]
  5. Yang, J.; Peng, J.; He, L.; Qiu, W.; Zhou, K.; Zhang, T.; Zheng, L.; Wang, X.; Wang, X. Unraveling the role of pre-carbonization temperature on pore architecture and supercapacitive behaviors of biomass-derived hierarchical porous carbon. J. Power Sources 2026, 691, 2241022. [Google Scholar] [CrossRef] [Scilit]
  6. Zhang, C.; Bi, S.; Fan, J.; Zhang, J.; Chen, S. Hierarchical porous multi-heterometallic Co2MnS4@ NiFe2O4/CC heterostructures fabricated via MOF template for high-performance hybrid supercapacitors. ACS Appl. Energy Mater. 2026, 9, 741–753. [Google Scholar] [CrossRef] [Scilit]
  7. Ma, Q.; Qian, J.; Zhuang, Q.; Zuo, P.; Liu, X. Nitrogen–Oxygen co-doped porous carbons from flexible covalent organic frameworks for supercapacitors. ACS Appl. Nano Mater. 2025, 8, 8612–8621. [Google Scholar] [CrossRef] [Scilit]
  8. Huo, J.; Wang, X.; Zhang, X.; Zhang, L.; Yue, G.; Guo, S. Porous polypyrrole-derived carbon nanotubes as a cathode material for zinc-ion hybrid supercapacitors. J. Energy Storage 2023, 73, 108925. [Google Scholar] [CrossRef] [Scilit]
  9. Chang, P.; Chen, H.; Meng, C.; Dong, J.; Xie, L.; Ding, R. Hierarchical porous carbon derived from coal-derived potassium humate for high-voltage supercapacitors. J. Alloys Compd. 2026, 1081, 191123. [Google Scholar] [CrossRef] [Scilit]
  10. Yuan, S.; Liu, L.; Ruan, C.; Wu, Z.; Cao, D.; Guan, W.; Xu, Q.; Zhou, N.; Li, K. Synergistic urea-assisted activation and nitrogen doping of biomass-derived porous carbon from coconut shell for high-performance supercapacitors. J. Energy Storage 2026, 182, 125122. [Google Scholar] [CrossRef] [Scilit]
  11. Chen, F.; Chen, Z.; Yang, J.; Yang, N. Temperature-controlled construction of Co@NC/C heterointerface from MOF/COF precursors for sensitive rutin electrochemical detection. Microchem. J. 2026, 231, 120129. [Google Scholar] [CrossRef] [Scilit]
  12. Mon, P.P.; Cho, P.P.; Hegde, S.S.; Dobhal, S.; Ramesh, A.; Garlapati, K.K.; Martha, S.K.; Subrahmanyam, C. Hydrogel-derived hierarchical porous cosmic weblike carbon for high-performance supercapacitors in aqueous electrolytes. Energy Fuels 2026, 40, 3904–3916. [Google Scholar] [CrossRef] [Scilit]
  13. Zhang, L.; Guo, Y.; Shen, K.; Huo, J.; Liu, Y.; Guo, S. Ion-matching porous carbons with ultra-high surface area and superior energy storage performance for supercapacitors. J. Mater. Chem. A 2019, 7, 9163–9172. [Google Scholar] [CrossRef] [Scilit]
  14. Huo, J.; Wang, X.; Li, Z.; Zhang, L.; Yue, G.; Guo, S. Potassium citrate/polypyrrole-derived O, N dual-doped hierarchical porous carbon as cathode materials for advanced zinc-ion hybrid supercapacitors. J. Energy Storage 2025, 107, 115020. [Google Scholar] [CrossRef] [Scilit]
  15. Huo, J.; Li, Z.; Xiao, Y.; Zhang, L.; Yue, G.; Guo, S. Kinetically well-matched dual-carbon electrodes derived from poly(aniline-co-pyrrole) hollow nanospheres for advanced sodium-ion capacitors. Carbon 2025, 243, 120524. [Google Scholar] [CrossRef] [Scilit]
  16. Patel, H.; Weldekidan, H.; Mohanty, A.; Misra, M. Effect of physicochemical activation on CO2 adsorption of activated porous carbon derived from pine sawdust. Carbon Capture Sci. Technol. 2023, 8, 100128. [Google Scholar] [CrossRef] [Scilit]
  17. Liu, J.; Zhang, H.; Xie, B.; Cheng, J.; Song, T.; Bai, Y.; Ma, R.; Li, C.M. Chemically activating biomass into hierarchically porous carbon as an efficient sulfur host for high-performance room temperature Na-S batteries. Chem. Eng. J. 2025, 510, 161470. [Google Scholar] [CrossRef] [Scilit]
  18. Hou, L.; Yang, W.; Jiang, B.; Wang, P.; Yan, L.; Zhang, C.; Huang, G.; Yang, F.; Li, Y. Intrinsic defect-rich porous carbon nanosheets synthesized from potassium citrate toward advanced supercapacitors and microwave absorption. Carbon 2021, 183, 176–186. [Google Scholar] [CrossRef] [Scilit]
  19. Liu, G.; Zhang, A.; Ahmed, S.F.; Guo, X.; Ma, W. Biomass nanoarchitectonics on one-step synthesis of citrate-based capacitive carbon from ryegrass straw. J. Electroanal. Chem. 2025, 996, 119428. [Google Scholar] [CrossRef] [Scilit]
  20. Sevilla, M.; Fuertes, A.B. Direct synthesis of highly porous interconnected carbon nanosheets and their application as high-performance supercapacitors. ACS Nano 2014, 8, 5069–5078. [Google Scholar] [CrossRef] [Scilit]
  21. Li, P.; Liu, P.; Liu, H.; Zhang, R.; Zhang, Y.; Wang, Y. Nitrogen-oxygen co-doped porous carbon directly derived from biomass via potassium citrate activation for high-performance supercapacitors. J. Energy Storage 2025, 121, 116349. [Google Scholar] [CrossRef] [Scilit]
  22. Zhou, C.; Han, J.; Song, G.; Guo, R. Fabrication of poly(aniline-co-pyrrole) hollow nanospheres with Triton X-100 micelles as templates. J. Polym. Sci. Part A Polym. Chem. 2008, 46, 3563–3572. [Google Scholar] [CrossRef] [Scilit]
  23. Li, Z.; Li, Y.; Tian, Y.; Xiao, J.; Pan, F.; Liu, S. Rational engineering of triple-hierarchical pores in carbon nanospheres for superior organic supercapacitive storage. J. Mater. Chem. A 2025, 13, 26534. [Google Scholar] [CrossRef] [Scilit]
  24. Blinova, N.V.; Stejskal, J.; Trchová, M.; Prokeš, J.; Omastová, M. Polyaniline and polypyrrole: A comparative study of the preparation. Eur. Polym. J. 2007, 43, 2331–2341. [Google Scholar] [CrossRef] [Scilit]
  25. Zhou, L.; Cui, Y.; Niu, P.; Ge, L.; Zheng, R.; Liang, S.; Xing, W. Biomass-derived hard carbon material for high-capacity sodium-ion battery anode through structure regulation. Carbon 2025, 231, 119733. [Google Scholar] [CrossRef] [Scilit]
  26. Sadezky, A.; Muckenhuber, H.; Grothe, H.; Niessner, R.; Pöschl, U. Raman microspectroscopy of soot and related carbonaceous materials: Spectral analysis and structural information. Carbon 2005, 43, 1731–1742. [Google Scholar] [CrossRef] [Scilit]
  27. Sun, Y.; Wang, J.; Sun, S.; Zhong, H.; Wei, K.; Liu, H.; Wei, Q.; Li, Y.; Yang, F. Effects of pores structure of MgO-templated combined with KOH active porous carbon on its supported Pt catalysts for enhanced electrocatalytic reactions. Green Chem. Eng. 2026, 7, 298–308. [Google Scholar] [CrossRef] [Scilit]
  28. Dou, Y.; Liu, N.; Zhang, X.; Jiang, W.; Jiang, X.; Yu, L. Synthesis of polymer-derived N,O-doped bowl-like hollow carbon microspheres for improved electromagnetic wave absorption using controlled template pyrolysis. Chem. Eng. J. 2023, 463, 142398. [Google Scholar] [CrossRef] [Scilit]
  29. Aleena, P.A.; Bahadur, R.; Perumalsamy, V.; Ansah, S.; Singh Raman, R.K.; Sajan, D.; Vinu, A. B, N, and O co–doped nanoporous activated carbon with high surface area and hierarchical porous structure for enhanced Li-ion battery and supercapacitor performance. Small 2026, 22, e13011. [Google Scholar] [CrossRef] [Scilit]
  30. Yan, J.; Fang, X.; Yao, D.; Zhu, C.; Shi, J.; Qian, S. N/O co-doped microporous carbon as a high-performance electrode for supercapacitors. New Carbon Mater. 2025, 40, 231–242. [Google Scholar] [CrossRef] [Scilit]
  31. Lang, Q.; Feng, R.; Shi, B. Hypercrosslinking-induced self-assembled carbon nanospheres: A synergistic system integrating hollow structures, micro–mesopores, and nitrogen doping for supercapacitors. New J. Chem. 2026, 50, 2916–2925. [Google Scholar] [CrossRef] [Scilit]
  32. Wang, J.; Polleux, J.; Lim, J.; Dunn, B. Pseudocapacitive contributions to electrochemical energy storage in TiO2 (anatase) Nanoparticles. J. Phys. Chem. C 2007, 111, 14925–14931. [Google Scholar] [CrossRef] [Scilit]
  33. Gao, M.; Huang, L.; Zhai, S.; Li, M.X.; Zhu, K.R.; Dong, X. Self-assembly mediated 3D architectural multiple-heteroatom doped porous carbons for supercapacitors. New J. Chem. 2026, 50, 9786–9796. [Google Scholar] [CrossRef] [Scilit]
  34. Pan, C.; Ji, Y.; Ren, S.; Lei, T.; Dong, L. Lignin-derived activated carbon as electrode material for high-performance supercapacitor. Molecules 2025, 30, 89. [Google Scholar] [CrossRef] [Scilit]
  35. Qin, C.; Wang, S.; Wang, Z.; Ji, K.; Wang, S.; Zeng, X.; Jiang, X.; Liu, G. Hierarchical porous carbon derived from gardenia jasminoides ellis flowers for high performance supercapacitor. J. Energy Storage 2021, 33, 102061. [Google Scholar] [CrossRef] [Scilit]
  36. Ma, Q.; Xi, H.; Cui, F.; Zhang, J.; Chen, P.; Cui, T. Self-templating synthesis of hierarchical porous carbon with multi-heteroatom co-doping from tea waste for high-performance supercapacitor. J. Energy Storage 2022, 45, 103509. [Google Scholar] [CrossRef] [Scilit]
  37. Qi, P.; Su, Y.; Yang, L.; Wang, J.; Jiang, M.; Sun, X.; Zhang, P.; Xiong, Y. Nanoarchitectonics of hierarchical porous carbon based on carbonization of heavy fraction of bio-oil and its supercapacitor performance. J. Energy Storage 2023, 74, 109398. [Google Scholar] [CrossRef] [Scilit]
  38. Tansel, B. Significance of thermodynamic and physical characteristics on permeation of ions during membrane separation: Hydrated radius, hydration free energy and viscous effects. Sep. Purif. Technol. 2012, 86, 119–126. [Google Scholar] [CrossRef] [Scilit]
  39. Zhang, X.; Wang, X.; Jiang, L.; Wu, H.; Wu, C.; Su, J. Effect of aqueous electrolytes on the electrochemical behaviors of supercapacitors based on hierarchically porous carbons. J. Power Sources 2012, 216, 290–296. [Google Scholar] [CrossRef] [Scilit]
  40. Réty, B.; Yiin, H.Y.; Ghimbeu, C.M. Quantification of activated carbon functional groups and active surface area by TPD-MS and their impact on supercapacitor performance. Energy Storage Mater. 2025, 74, 103963. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.