1 Introduction

Recently, environment issue has become extremely urgent and noticeable. In addition, the shortage of renewable energy resources also hinders sustainable development of human society. Hence, looking for new energy storage and conversion devices has become an immediate requirement [1,2,3]. Lithium ion battery has made great revolution in the past few years. However, relatively low power density limits its charge/discharge rate during electrochemical reaction process [4]. Supercapacitor, as well named electrochemical capacitor or ultracapacitor, has attracted extensive attention owing to its remarkable power density (~ 10,000 W kg−1), rapid charge/discharging rate (charging/discharging quickly in a short time), long cycle life (> 100,000 cycles), low operation and maintenance cost as well as high safety factor [5]. Hence, supercapacitor has great potential to become next generation energy storage device for potential applications of universal electronic equipment. Although supercapacitor possesses a great number of advantages, relatively low energy density is the great barrier for its practical application in modern/next-generation electronic back-ups [6, 7]. Therefore, the current development goal of supercapacitor is to further increase its energy density.

Generally speaking, electrochemical performance of supercapacitor principally relies on electrode materials. Hence, developing novel electrode materials is an effective technique to promote property of supercapacitor. In recent years, supercapacitor electrode materials include metal oxides, conductive polymers as well as carbonaceous materials [8,9,10]. Although metal oxide such as ruthenium dioxide exhibits excellent electrochemical properties, high cost and poor conductivity limit its widespread application. In addition, conducting polymers are frequently confronted with the obstacle of poor cycling stability, which imputes to irreversible swell and shrink of volume during electrochemical reaction process [11,12,13]. Recently, carbons (e.g. graphene [14], carbon nanotubes [15], porous carbon [16]) have aroused considerable attention owing to their abundant reserves, low cost, superior conductivity and high chemical stability [17,18,19,20]. Nevertheless, graphene and carbon nanotube have some shortcomings of high-cost, complex preparation process, non-renewable precursors and highly corrosive reagents, which impede their large-scale applications [21]. Among various carbon materials, porous carbon has attracted intense attention on account of its large specific surface area (SSA), remarkable conductivity, prominent stability, low price and eco-friendliness, which can act as a promising candidate of supercapacitor [22]. Although SSA is a vital factor to electrochemical performance for porous carbon materials, specific capacitance does not linearly increase with SSA because of wide pore size distribution of porous carbon including micropores, mesopores and macropores. Tiny micropores (< 0.3 nm) are identified to be inaccessible to electrolyte ions, severely degenerating electrochemical property of porous carbon [23]. Compared with microporous carbon, ordered mesoporous carbons (OMCs) can provide sufficient ion transmission channel and demonstrate a more superior electrochemical property [24]. Nevertheless, relatively low SSA (~ 1000 m2 g−1) and porosity of large mesopores still impedes capacitance of OMCs. Hence, suitable pore size is crucial for enhancing capacitance of porous carbon. There are three prerequisite ingredient for porous carbons of supercapacitors: high SSA, outstanding electro-conductivity, as well as admirable electrolyte accessibility to internal porosity of carbon matrix. From the above, a hierarchical pore morphology with coexistence of micro-, meso-, and macropores can effectively improve electrochemical property of supercapacitor [25]. For hierarchical porous carbon, adequate micropores and mesopores can supply sufficient accessible SSA, which can generate high specific capacitance and energy density. Besides, abundant mesopores and macropores can promote ion transfer into internal space of carbon matrix, guaranteeing excellent rate capacitance and power density. In addition, heteroatoms doping also acts crucial roles in enhancing electrochemical property of carbon-based materials [26]. Nitrogen doping can not only improve surface wettability on of carbon, but also generate extra faradaic pseudocapacitance, which are beneficial to ion diffusion of supercapacitors [27,28,29]. Despite of enormous achievements for heteroatom-doped porous carbon, complicated preparation process, costly precursor and poisonous by-product are not favor of its large-scale production and utilization [30, 31]. Recently, biomass carbons and their derivatives can act as alternatives for heteroatom-doped porous carbons with large SSA and multistage pore morphology owing to their natural abundance, easy accessibility, low cost and environment friendliness [32,33,34]. Biomass-derived porous carbon materials (human hair [35], pigskin [36], wheat flour [37], coconut shell [38]) by a simple preparation process exhibit excellent energy density and power density.

Pig nail usually is abandoned as a common waste during food production process. The primary ingredient of pig nail is scleroprotein, including α-helix keratins and β-lamella keratins. Furthermore, more than 7.35 million tons pig nails were produced every year. Due to its increasing volume in global region, appropriate managements of pig nail have become a worldwide issue. Considering a great deal of nitrogen content in pig nail, it is viable to convert it into nitrogen-rich carbonaceous materials for application in supercapacitors. This technique could meet the urgent requirement for both disposal of pig nail and manufacture of carbonaceous material. The obtained porous material at the activation temperature of 800 °C possesses 3D honeycomb interconnected network and large SSA, which are advantageous to ion transport and storage in the process of charging/discharging and thus exhibits outstanding capacitance performance, rate performance and cycle stability.

2 Experimental

2.1 NHPC preparation

Pig nail was gathered from Chengdu supermarket. Pig nails were first washed several times with deionized water until there is no impurity and finally dried at 100 °C for 6 h. Dried pig nails were pre-carbonized in a tuber furnace at 300 °C and then heated for 2 h on N2 flow. Then pre-treatment materials were thoroughly mixed with KOH (AR) in mass ratio of 2:1. Subsequently, mixture was stirred to form an uniform liquid and heated to the high temperature (700 °C, 800 °C and 900 °C, respectively) with rate of 2 °C min−1 and kept for 1 h at N2 atmosphere. Obtained products were adequately washed using 1 M HCl (AR) and deionized water until pH 7. Specimens were named as NHPC-x, x being activation temperature of 700, 800 and 900, respectively.

2.2 Material characterizations

Scanning electron microscope (SEM) was displayed on JSM-7500 SEM (Japan). X-ray diffractometer (XRD, Smart Lab, Rigaku, Japan) and Raman spectrometer (Renishaw RM2000, UK) was performed to identify crystallographic structure of specimens. Transmission electron microscope (TEM) was characterized on GZF20 (USA). The SSA was detected via nitrogen adsorption–desorption isotherms (Micromeritics ASAP2020, USA) and counted by Brunauer Emmett Teller (BET) method. X-ray photoelectron spectroscopy (XPS) was measured on XPS spectrometer (Thermo ESCALAB 250XI, USA) to investigate the composition and valence state of surface elements of samples. Thermogravimetric analysis (DSC-TGA, Q500, American) was performed at air atmosphere up to 800 °C.

2.3 Electrochemical characterization

To fabricate working electrode in three-electrode system, 80 wt% NHPC-x, 10 wt% acetylene black and 10 wt% PVDF was mixed in N-methylpyrrolidone (NMP). The Hg/HgO electrode was employed as the reference electrode, while a platinum gauze electrode was served as counter electrode. The electrochemical impedance spectroscopy (EIS), galvanostatic charge–discharge (GCD) and cyclic voltammetry (CV) were performed on the Shanghai CHI660E electrochemical workstation. The cycle performance test was recorded on CT2001A Land Battery Tester.

The specific capacitance was obtained via formula (1):

$$C=\frac{{I \times \Delta t}}{{m \times \Delta V}}$$
(1)

where C (F g−1) is specific capacitance; I (A) is discharge current; Δt (s) is discharge time; m (g) is electroactive substance mass; and ΔV (V) refers to voltage change.

The electrochemical performances were also investigated in a NHPC-based symmetric supercapacitor. The symmetric capacitor was assembled into a 2032 cell, which was formed by two nearly identical electrodes, EMIMBF4 electrolyte and glassy fibrous separator.

Energy and power densities of symmetric supercapacitor were defined by formulas (2) and (3):

$$E=\frac{{C \times \Delta {V^2}}}{{2 \times 4 \times 3.6}}$$
(2)
$$P=\frac{{3600 \times E}}{{\Delta t}}$$
(3)

where E (Wh kg−1) and P (W kg−1) are the energy density and power density; C (F g−1) refers to specific capacitance; ΔV (V) is the voltage change during discharge process; and Δt (s) is the discharge time.

3 Results and discussion

3.1 Characterization

It can be seen that morphologies of NHPC-x gradually alter with the increasing in activation temperature(Fig. 1a–c). When activation temperature is 700 °C, NHPC-700 consists of a small number of macropores (Fig. 1a) and possesses the widest average distance between neighbor pores of all specimens. The microstructure of NHPC-700 may not be conducive to transfer of electrolyte ions. With activation temperature increasing to 800 °C, NHPC-800 exhibits more highly interlinked honeycomb-like pore structure (Fig. 1b), which is beneficial to transmission of ion/electron between electrolyte and electrode surface. However, pore structure of NHPC-900 suffers over corrosion due to excessive temperature (Fig. 1c). It can be seen that all materials show porous framework with numerous pores. The architectural feature with dense pore structure was ascribed to pyrolyzation of collagen and release of plentiful gaseous substances (such as carbonic oxide, carbon dioxide and hydrogen) [39]. Hence, the optimum activation temperature is 800 °C at which the obtained porous material possesses 3D honeycomb-like interconnected network. This 3D honeycomb-like structure with abundant porosity not only is highly beneficial to effective electrochemical contact of electroactive substance and electrolyte, but also assists permeation of electrolyte into interior of carbonaceous materials [40]. In addition, the mapping images imply the uniform distribution of C (Fig. 1e), N (Fig. 1f) and O (Fig. 1g) in NHPC-800. Furthermore, oxygen/nitrogen-containing functional groups play vital roles in improving electrochemical performance of carbon materials [26, 41].

Fig. 1
figure 1

SEM images of a NHPC-700, b NHPC-800 and c NHPC-900; elemental mappings dg of NHPC-800

The TEM images of NHPC-800 at different magnifications are shown in Fig. 2a–d. Figure 2a displays cross-linked porous structure of NHPC-800. As shown in Fig. 2b, a rough nanostructure layer with mesopores and micropores can be clearly observed. With the improvement of magnification (Fig. 2c, d), abundant micropores can be also observed. These indicate that NHPC-800 possesses hierarchical porous structure. This unique morphology with coexistence of various sizes of pores primarily depends on chemistry activation at high temperature. The activation mechanism between carbon and KOH can be proceeded as: 6KOH + C → 2K + 3H2 + 2K2CO3 [42, 43]. During reaction process, the generation of a large amount of gas (H2, CO, CO2) is favorable to form a great quantity of pores, which provide abundant store spaces and wide transmission paths for electrolyte ions.

Fig. 2
figure 2

TEM images of ad NHPC-800

Figure 3 displays N2 physisorption analyses of NHPC-x. From Fig. 3a, all samples exhibit typical I and IV isotherms, illustrating coexistence of micropores and mesopores in NHPC-x [44, 45]. As shown in Fig. 3b, pore sizes with x = 700, 800 and 900 centrally distribute at 0–3.5 nm. Table 1 exhibits porous characteristics of samples. Visibly, the porosity of NHPC-x is distinctly affected by activation temperature. The SSA and pore volume of NHPC-700 are 1394.24 m2 g−1 and 0.73 cm3 g−1, which are the lowest among all samples. As activation temperature rising to 800 °C, the SSA prominently increases to 2563.30 m2 g−1, and pore volume also prominently enlarges to 1.35 cm3 g−1, which can be attributable to sufficient etching by KOH and adequate pyrolysis of collagen at high temperature. However, at high temperature of 900 °C, the SSA and pore volume of NHPC-900 reduce to 2370.37 m2 g−1 and 1.26 cm3 g−1, which ascribe to partial collapse of pore structure due to excessive temperature. It is worth noting that NHPC-800 possesses highest SSA and the most plentiful porosity with optimal hierarchical porous morphology, which can provide massive ion absorption sites and transmission channels and thus is conductive to rapid transfer of electrolyte ion [38]. XRD patterns of NHPC-x are displayed in Fig. 3c. NHPC-x have two broad diffraction peaks located at ~ 25° and 44°, corresponding to (002) and (101) planes, respectively [46]. The peak intensities of the NHPC-800 and NHPC-900 obviously become weaker compared to NHPC-700, illustrating distinct graphitization and crystallinity decrease due to the existence of amorphous carbon structure after activation by KOH [47]. Figure 3d shows the Raman spectras of the NHPC-x. Two characteristic peaks located at around 1340 cm−1 and 1590 cm−1 accord to D-band and G-band. It is well-known that D-band stands for structural defect, while the G-band is associated with the graphite degree of carbon materials [48]. The intensity ratio (ID/IG) can illustrate graphitization degree of carbonaceous sample [48]. Lower the ID/IG ratio is, greater the graphitization degree [28]. When the temperature increased from 700 to 900, the ID/IG values of samples are 0.71, 0.98 and 0.89, respectively. As the temperature rises from 700 to 800 °C, the ID/IG value increases from 0.71 to 0.98. Probably, a high activation temperature can lead to a higher amount of defects and disordered structures because of more chemical reaction between KOH and the graphitized area in the carbon particle [49]. It should be noted that the ID/IG value decreases from 0.98 to 0.89 with the temperature further increasing to 900 °C, which may be attributed to the partial collapse of pore structure and exposure of internal atomic structure due to excessive high temperature. The TGA curves of NHPC-x are revealed in Fig. 3e. The mass losses of NHPC-700, NHPC-800 and NHPC-900 are 44.29%, 14.93% and 8.35%, respectively, which indicate that the defects structures increase with the enhancing of pyrolysis temperature.

Fig. 3
figure 3

a Nitrogen sorption isotherms; b pore size distributions; c XRD patterns; d raman spectras; and e TGA patterns of NHPC-x

Table 1 Pore parameters of samples

Chemical components of NHPC-800 have been analyzed via XPS (Fig. 4). Three distinct peaks of carbon (283.77 eV), nitrogen (399.25 eV) and oxygen (531.04 eV) element with their contents of 86.66, 2.10, 11.24 at.% are observed in Fig. 4a. C 1s located at 283.73, 284.71, 287.59 and 289.97 eV correspond to C–C, C–N, C–O and C=O, respectively (Fig. 4b). From Fig. 4c, the N 1s can be discovered to N-6 (398.54 eV, pyridinic N), N-5 (399.85 eV, pyrrolic N), N-Q (401.72 eV, quaternary N), N-X (402.63 eV, oxidized N), respectively [50, 51]. pyridinic and pyrrolic nitrogen are conducive to formation of defects at surface as well as edge of carbon materials and the increase in electrochemical reaction activity sites to trigger pseudocapacitance behavior during the charging/discharging process [52]. Pyridinic and pyrrolic nitrogen can induce pseudocapacitance as following faradic process [53]:

Fig. 4
figure 4

a XPS spectra; and high-resolution XPS spectra analysis of NHPC-800: b C 1s; c N 1s; and d O 1s

$$>{\text{CH}} {-} {\text{N}}{{\text{H}}_2}+2{\text{O}}{{\text{H}}^ - } \leftrightarrow>{\text{C}}{=}{\text{NH}}+2{{\text{H}}_2}{\text{O}}+2{{\text{e}}^ - }$$
(4)
$$>{\text{C}} {-} {\text{N}}{{\text{H}}_2}+2{\text{O}}{{\text{H}}^ - } \leftrightarrow>{\text{C}} {-} {\text{NHOH}}+{{\text{H}}_2}{\text{O}}+2{{\text{e}}^ - }$$
(5)

In addition, N–Q in the carbon skeleton can abate the resistance of charge migration to improve the electrical conductivity [21]. The O 1s depicted in Fig. 4d can be fitted into three peaks, including O-I (530.72 eV), O-II (532.39 eV), O-III (534.48 eV), respectively. It is generally believed that oxygen doping can also enhance electrochemical performance via introducing faradaic pseudocapacitance [41]. It is reported that nitrogen and oxygen doping have remarkable electron-donor feature and higher charge movability, which can induce electron donor properties, lessen work-function as well as provide high surface energy and surface reactivity in electron-transfer process, thus enhancing surface wettability of electrode material. This is favorable for increasing the contact area of electrolyte and electrode material [54, 55]. In summary, the introduction of heteroatom can increase the electrochemical performance of carbon electrode for supercapacitor [56, 57].

3.2 Electrochemical characterizations

The electrochemical performances of NHPC-x have been evaluated in a three-electrode system. With CV at 5 mV s−1, all samples present approximately rectangular CV shapes (Fig. 5a), implying dominant electrical double-layer capacitor behavior. It is noticeable that NHPC-800 shows the maximum loop area among the three samples, indicating that NHPC-800 has the highest specific capacitance, which ascribe to its high SSA and interrelated honeycomb-like porous structure [58]. The GCD curves of samples are presented in Fig. 5b. The highly linear and relatively symmetric triangular curves can be clearly observed, implying typical electrical double-layer capacitance characteristic [59]. Obviously, NHPC-800 shows the highest specific capacitance of 251.4 F g−1 at 1 A g−1, which is much better than NHPC-700 (134.8 F g−1), NHPC-900 (162.7 F g−1) and other source-prepared carbon materials (Table 2) [60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75]. This can be ascribed to two reasons as follows: (1) highly cross-linked porous morphology with plenty of micropores, mesopores and macropores is beneficial to effective aggrandizement of SSA and acceleration of ion transport and diffusion [40]; and (2) nitrogen doping is able to induce extra pseudocapacitance, improve conductivity and surface wettability of carbonaceous materials. For example, Hu et al. prepared N-doped reduced graphene oxide (N-RGO) and reduced graphene oxide (RGO) using microwave-assisted hydrothermal technique. The N-RGO possesses 3.0 at.% nitrogen content. It is found that the specific capacitances of N-RGO and RGO are 233.1 and 193.4 F g−1, respectively [71]. Figure 5c shows the specific capacitances of specimens at various current density. Even at 10 A g−1, NHPC-800 can still maintain at 203 F g−1 (80.7%), which can be attributed to its high SSA, well-developed pore structure and nitrogen-doping. The EIS from 10 mHz to 100 kHz is revealed in Fig. 5d. NHPC-x demonstrates nearly vertical linear parts at low frequency region, illustrating main electrical double layer charge storage behaviors [76]. Notably, NHPC-800 shows semicircular-like shape with smallest diameter at high frequency region (Fig. 5d), manifesting that NHPC-800 has excellent capacitive characteristic, superior conductivity and short ion diffusion route due to its high SSA, 3D interconnected porous morphology and nitrogen and oxygen functional groups. CV curve of NHPC-800 retains rectangle-like without palpable distortion even at 200 mV s−1 (Fig. 5e), suggesting remarkable rate property, which may be attributed to interrelated hierarchical porous morphology that provides abundant ion transport channels to promote ion diffusion [38]. Figure 5f shows the XRD patterns of NHPC-x after electrochemical test. The three intense peaks centered at 44.5°, 51.8° and 76.3° in all the three patterns are attributed to Ni foam substrate [77]. Diffraction peaks of amorphous carbon are nearly invisible, which may be attributed to its low mass loading (~ 4 mg). No other extra peaks are detected in all patterns, suggesting superior purity and stability of obtained specimens. The cyclic stability of NHPC-800 has been investigated by circulation measurement at 1 A g−1. Besides, NHPC-800 has the specific capacitance retention as high as 99% after 5000 cycles (Fig. 5g), demonstrating superior cycling durability. Simultaneously, coulombic efficiency of NHPC-800 is 104.2%.

Fig. 5
figure 5

Electrochemical property of NHPC-x in6 M KOH: a CV curves at 5 mV s−1; b GCD curves at 1 A g−1; c specific capacitances of NHPC-x at different current densities; d Nyquist plots; e CV curves of NHPC-800; f XRD patterns after electrochemical experiments; and g cycling stability and coulombic efficiency of NHPC-800 for 5000 cycles at 1 A g−1

Table 2 Supercapacitances performance of some reported carbon materials

A symmetrical supercapacitor by using two pieces of NHPC-800 with the same size and weight was been assembled and tested in 6 M EMIMBF4 electrolyte. In Fig. 6a, the CV curves of NHPC-800 at 5–200 mV s−1 under 0–3.5 V show quasi-rectangular shape, which indicates a great electrochemical capacitance behavior. As shown in Fig. 6b, NHPC-800 displays symmetrical triangular-like curves at 1–5 A g−1, suggesting that NHPC-800 has a remarkable rate property and outstanding reversibility. Significantly, the capacitance of NHPC-800 can be calculated to be 69.92 F g−1 at 1 A g−1. Besides, ragone plot of NHPC-800 is revealed in Fig. 6c. NHPC-800 exhibits an outstanding energy density of 29.43 Wh kg−1 at power density of 847.9 W kg−1, and can still maintain 15.58 Wh kg−1 even at corresponding power density of 4497.83 W kg−1, which is much better than some commercial carbonaceous materials [78, 79]. Figure 6d shows the Nyquist plot of NHPC-800. A vertical line in the low frequency region represents low transport and transfer resistance, implying typical electric double-layer capacitance behavior of NHPC-800. Meanwhile, there is a semicircle with small diameter in high-frequency region, which means a low charge-transfer resistance of carbon electrode.

Fig. 6
figure 6

Electrochemical property of NHPC-800 in two-electrode system in EMIMBF4: a CV curves at 5–200 mV s−1; b GCD curves at 1–5 A g−1; c Ragone plot; and d Nyquist plot

4 Conclusion

The NHPC have been fabricated using pig nail as natural abundant protein-rich carbon source by the facile process of pre-carbonization and KOH high-temperature activation. Our results show that the micromorphology and structure can be effectively tailored by changing activation temperature. The optimum activation temperature is 800 °C at which the material has unique 3D honeycomb-like hierarchical porous morphology with ultrahigh SSA of 2563.30 m2 g−1, which are beneficial to rapid ion diffusion. Particularly, the existence of nitrogen functional groups is beneficial to introduce pseudocapacitance and increase conductivity and surface wettability. The specific capacity of NHPC-800 is 251.4 F g−1 at 1 A g−1 and cycling durability of NHPC-800 is still as high as 99% after 5000 cycles.