1 Introduction

Nowadays, more effective energy storage devices are required given huge fossil fuel combustion coupled, and the environmental threat requires the advancement of Industry. Electrochemical capacitor (EC), known as supercapacitors, which is characteristic of long cycle life and large specific power, has drawn growing attention in the energy storage technology field [1]. EC has a wide variety of applications [2] such as digital devices, electrical vehicles, and pulsing techniques [3]. Based on the charge-storage mechanism, there are two categories in the EC, pseudocapacitors, and electric double-layer capacitors (EDLCs) [4]. Supercapacitors store energy by the accumulation of charge in an electric double-layer that formed at electrodes interface under electrostatic forces, which means that the electrodes play an important role in the storage performance of EDLCs [5, 6].

Generally, Activated carbon (AC) is widely regarded as the first alternative electrode material for EDLCs [7], because of its high specific area and excellent conductivity [8,9,10]. By virtue of the energy storage mechanism, more studies on the preparation of ordered AC materials were conducted in recent years [11, 12]. The production way of AC can be classified into physical activation [13, 14] and chemical activation [15, 16] typically. The difference is that the activator of physical activation is gas such as CO2, meanwhile, the activator of chemical activation is chemical agents, such as KOH, ZnCl2, H3PO4, and K2CO3 [17, 18]. Sometimes chemical activation can be one step, while generally, both the activation methods can involve two steps: the carbonization of raw materials comes first, and then activated at temperatures in the range 500–900 °C [19]. A variety of precursors has been successfully prepared and converted into ACs [20,21,22]. It is essential to further promote the porosity and specific surface area of AC materials to enhance capacitance, and have a better understanding of the connection between surface chemistry and the performance of EDLCs [23].

Biomass wastes as one type of sustainable, abundant, and environmentally friendly materials showed great potential as AC precursors [24]. Many biomass materials such as waste coffee bean [25], cotton stalk [26], dead leaves [2], nut shells [27], pomelo peels [28], and beer waste [29] have been used as AC materials which are applied for carbon electrodes in supercapacitors with excellent electrochemical performances. The type of precursor materials and activation conditions make a big difference in the electrochemical performance, the surface area, pore size, porous structures, and active surface functional groups of AC electrodes all affect the capacitive performance [30]. This utilization method of biomass wastes can not only provide a new view on energy storage materials but also offer an environmentally friendly approach to take advantage of biomass wastes and generate significant economic valorization [31].

The walnut shell is a nontoxic and stable biowaste material which is mainly composed of lignin, cellulose, and lignocellulose. Due to the high content of carbon, activated carbon prepared from walnut shells has been studied for some application fields such as adsorption, separation, and wastewater treatment. However, the activated carbon derived from the walnut shell is rarely applied in the energy storage area. With input from industrial and environmental perspectives, activated carbons were prepared from low cost and easy available walnut shells in this work.

2 Experimental

2.1 Materials

The raw walnut shell powder (200 mesh) was obtained from Jie-Kang environmental protection company in Henan province China. Potassium hydroxide (KOH) and hydrochloric acid (HCl) used were of analytical grade without any purification. Distilled water was used for solutions preparation and samples wash. The walnut shell was rinsed with distilled water to remove impurities repeatedly before processing, filtered, and then dried in an oven for 12 h at 105 °C.

2.2 Sample preparation

In this study, a typical one-step chemical activation process was conducted. Firstly, 10 g raw walnut shell was mixed with 100 mL distilled water and 15 g KOH. After stirring for 4 h at room temperature, the mixture was dried at 100 °C in the oven overnight. The obtained product was then pyrolyzed at 10 °C/min heating rate under N2 atmosphere in the box furnace for 1 h, the final temperature was 650–750 °C. The resulting samples were then washed with diluted HCl solution and deionized water until pH 7. Filtration and dry process were the final steps for sample preparation. AC samples were named AC-X (X = 650, 700, 750), respectively, where X stands for the activation temperature.

2.3 Structural characterization

The AC samples were characterized by N2 adsorption to analyze the surface area. All the samples were degassed at 300 K for 7 h under vacuum before nitrogen–desorption measurements. The specific surface area was calculated from N2 Desorption isotherms with the Brunauer–Emmett–Teller (BET) method. The micropore volume was obtained by the t-plot model for surface analysis. Besides, the Barrett–Joyner–Halenda (BJH) model was utilized to calculate the pore size distribution from the adsorption branches of the isotherms, and the total pore volume was obtained at a relative pressure p/p0 of 0.99.

Scanning electron microscopy (SEM) was conducted to characterize the morphologies of prepared samples. X-ray diffraction (XRD) measurements were carried out from 5° to 90° (2θ) to investigate the crystallographic information of the AC samples. The surface chemistry of the prepared samples was identified through FTIR spectra measurements. The chemical state of carbon, oxygen, nitrogen elements, and surface chemical composition was investigated by X-ray photoelectron spectroscopy (XPS).

2.4 Electrode preparation and electrochemical measurements

To assess the electrochemical performance of activated carbons, the electrodes were fabricated by mixing AC samples, carbon black, and polytetrafluoroethylene (PTFE, mass percent = 15%) at a mass ratio of 8:1:1. The mixture was stirred with the addition of ethanol to form a homogenous slurry. Then the resultant slurry was pressed onto a nickel foam current collector (1.5 cm × 1 cm). The electrodes were finally prepared after drying at 100 °C for 4 h in an oven. The mass of activated materials was in the range of 10–20 mg.

The electrochemical property was conducted in a typical three-electrode system, in which Platinum foil and Hg/HgO were employed as counter and reference electrodes, and the electrolyte was 6 M KOH aqueous. The electrochemical tests were evaluated on a CHI660D electrochemical workstation by cyclic voltammetry (CV), electrochemical impedance spectra (EIS), and galvanostatic charge–discharge cycles (GC). CV and GC tests were measured at a potential window of 0–1 V, CV tests were carried out at scan rates of 10–100 mV/s, GC cycles were conducted in a current density of 0.5–10 A/g, and EIS tests were measured over the frequency window of 0.01–10 kHz. Finally, 1000 cycles at a current density of 2 A/g under GC were carried out to test the electrochemical stability. The specific gravimetric capacitance of a single electrode derived from the CV tests was calculated according to the following Eq. 1.

$${C}_{CV}=\frac{Q}{\Delta V\cdot m},$$
(1)

where CCV (F/g) is the specific capacitance of one single electrode, ΔV is the potential window (V), m is the mass (g) of the active material on the electrode, and Q is the voltammetric charge (C).

The specific gravimetric capacitance of a single electrode was derived from GC tests by Eq. 2.

$${C}_{GC}=\frac{I\cdot \Delta t}{m\cdot \Delta V},$$
(2)

where I (A) is the constant current, Δt (s) is the discharge time, m (g) is the mass of active material on the electrode, and ΔV (V) is the voltage ranging from the end of the voltage drop to the end of the discharge process.

3 Results and discussion

3.1 Textural properties

The capacitance performance of AC electrodes materials in supercapacitors has a significant correlation with their specific surface area. Therefore, the test for nitrogen adsorption–desorption was essential. Figure 1a shows the N2 adsorption and desorption isotherms of all the samples. The isotherms of AC-650 and AC-700 demonstrate that the nitrogen adsorption reached saturation at low pressure, belonging to type I isotherms based on the IUPAC classification, which implies that AC-650 and AC-700 are predominantly microporous. In contrast, AC-750 displays a typical type IV isotherm with a clear H4-type hysteresis loop at a relative pressure range from 0.3 to 0.9, indicating that this carbon material contains a majority of mesopores. Figure 1b displays the pore size distribution of walnut shell-derived activated carbons. The porosity of AC samples essentially consists of small mesopores (range from 2 to 10 nm). The intrinsic texture of walnut shell might have a bearing on the formation of these mesopores. The pore size distribution also illustrates that macropores in all the AC samples are existent.

Fig. 1
figure 1

a Nitrogen adsorption–desorption isotherms and b pore size distribution of AC samples

Table 1 displayed the pore structure parameters of AC samples prepared from different activation temperatures. It indicates that the influence of activation temperature on the specific surface area of walnut shell-derived carbons is significant. With the increase of temperature from 650 to 750 °C, the specific surface area of AC samples decreased from 1016.4 to 728.2 m2/g, the micropore surface area decreased from 752.9 to 384.7 m2/g, and the ratio of micropore volume to total volume decreased from 58.9 to 37.8. At the same time, the average pore size of AC-650, AC-700, and AC-750 are 2.2, 2.6, and 2.5 nm, respectively. It demonstrates that the activation temperature has a great influence on the AC preparation process. When the temperature exceeded a critical point, the micropores began to collapse and the small mesopores formed [32]. On the whole, all the AC samples have a relatively large surface area and developed pore structure, providing a lot of ion adsorption sites for electric double-layer and interconnected ion-diffusion pathways [5].

Table 1 The pore structure parameters of AC samples in different activation temperatures

Figure 2a displays the XRD patterns of all the AC materials derived from the walnut shell, there are two diffraction peaks observed at about 22° and 44° in all the samples, which can be indexed as the (1 0 0) and (0 0 2) graphitic planes, implying that each sample contains amorphous carbon [33]. The FTIR spectra in Fig. 2b show that AC-650 is composed of several functional groups. The peak in the region of 3500–3600 cm−1 could be ascribed to the O–H stretching from the hydroxylic groups and adsorbed moisture. The peaks appearing at about 1650 cm−1 are associated with the presence of –C=O stretching vibration of carbonyl groups. In addition, the sharp peak at about 1380 cm−1 is attributed to the C–H bonds, which is originated from the hydrochloric acid used for the neutralization of KOH (activation agent) in the AC samples.

Fig. 2
figure 2

XRD patterns (a) of all AC samples and FTIR spectra (b) of AC-650

SEM tests were used to observe the microscopic morphology of AC materials derived from walnut shells. Figure 3 shows the SEM images of AC-650, AC-700, and AC-750. The SEM images demonstrate that each sample was filled with hollow tunnels, ascribing to the gasification of volatiles after activation. All the AC samples were composed of high-quality particles in agglomeration. What is more, it could be observed that the carbon particles in every sample were disordered/turbostratic, which was consistent with the results of XRD analysis.

Fig. 3
figure 3

SEM images of AC-650 (a, b); SEM images of AC-700 (c, d); SEM images of AC-750 (e, f)

XPS tests were used to measure the components and chemical bonding of AC samples. Figure 4a displays the XPS spectrum generated from AC-650, which exhibits a predominant C 1s peak, an O 1s peak, and a weak N 1s peak. The carbon, oxygen, and nitrogen contents of AC-650 are 76.83%, 22.54% and 0.63%, respectively, calculated from XPS tests. It can be seen obviously that carbon and oxygen elements are the main moieties of the AC sample. The high resolution of C 1s spectra for AC-650 is shown in Fig. 4b. There are five sub-peaks deconvoluted from the C 1s peak, the main peak centered at 284.4 eV corresponds to conjugated C=C sp2 hybridized bonds [34]. The secondary peak at 285.7 eV is ascribed to the existence of C–C sp3 hybridized bonds. The peaks located at 286.8 eV, 287.2 eV, and 289.7 eV can be attributed to the presence of C–O/C–N, C=O/C=N, and O=C–O, respectively [35]. The O 1s core-level spectrum of AC-650 is shown in Fig. 4c. As shown in the picture, the peak at 533.1 eV is attributed to C–O–H and C–O–C bonds. The peak appearing at 532.1 eV corresponds to phenol groups. What is more, the peak at 534.9 eV is attributed to COOH and HOH bonds. The coexistence of all these functional groups can enhance the capacitance of AC samples [36].

Fig. 4
figure 4

XPS spectra (a), C 1s (b), O 1s (c), and core-level spectra of AC-650

3.2 Electrochemical studies

The typical CV curves of AC samples AC-650, AC-700, AC-750 at a scan rate of 10 mv/s are exhibited in Fig. 5a. All the CV curves exhibit quasi-rectangular shape with slightly distorted, which indicates the generation of typical electrical double layer in aqueous electrolyte (6 M KOH) and equivalent series resistance (ESR) in every electrode [37]. At the same time, there was no significant redox signal in all CV curves, meaning the absence of pseudocapacitance in this charge-storage mechanism. The ion diffusion rate in the pores of the electrodes can be conjectured from the rectangular degree of the CV curves, which means that the rectangular degree is positively correlated with the ion diffusion rate. Consequently, the quasi-rectangular shape of all the CV curves in Fig. 5a shows that every electrode performed a fast speed ion diffusion and excellent charge propagation at a relatively low scan rate [38].

Fig. 5
figure 5

a CV curves of AC-650, AC-700, and AC-750 at a scan rate of 10mv/s; b plot of specific capacitance of AC-650, AC-700, and AC-750; c CV curves of AC-650 at different scan rates

The specific capacitances of AC electrodes at different scan rates were calculated from the CV curves shown in Fig. 5b. The maximum specific capacitance values of AC-650, AC-700, AC-750 were performed at 10 mV/s and, respectively, computed as 156.19 F/g, 138.15 F/g, and 109.76 F/g. Figure 5b demonstrates that the specific capacitance of all three electrodes declines with the raise of scan rates, which is consistent with the previous studies, ascribing to diffusion limitation. Considering rate capability is a significant factor for electrode materials in supercapacitors, Fig. 5c shows the CV tests of AC-650 electrode at diverse scan rates ranging from 10 to 100 mV/s, just as shown in Fig. 5c, with the amplification of scan rates, a certain extent of distortion occurred, but the CV curves still retained rectangular-like shape even at a high scan rate. At the same time, the capacitance of AC-650 is maintained at 101.70 F/g when the scan rate increased to 100 mv/s, the capacitance retention is 65.11%. The similarity of the CV curves at different scan rates indicates that a preeminent high-rate capacitive behavior existed within the electrode material [39].

Figure 6a depicts typical GC curves of activated carbon electrodes at 1 A/g current density. Each GC curve is highly symmetric and linear with a slight IR drop. The curves suggest great reversibility and high coulombic efficiency as electrodes for supercapacitors. The IR drop may result from ionic transport obstruction at the elevated potential. At the same time, the slight drop indicates that each electrode presents a low internal series resistance. A longer charge–discharge time typically indicates a higher specific capacitance value [40]. The AC-650 electrode has the best specific capacitance among all samples, which is consistent with the CV result shown before. Therefore, GC tests of AC-650 electrode at diverse current densities from 0.5 to 3 A/g were conducted, which is shown in Fig. 6b. The GC curve at each current density presents a similar isosceles triangular shape, implying that the AC-650 electrode has excellent electrochemical reversibility and conductivity.

Fig. 6
figure 6

a GC curves of AC samples at 1 A/g; b GC curves of AC-650 at different current densities; c influence of current density on the specific capacitance of AC-650, d influence of current density on capacitance retention of AC-650

The specific capacitance values of AC-650 calculated from discharging curves are summarized in Fig. 6c. The specific capacitances at 0.5, 0.8, 1, 1.5, 2, and 3 A/g are 169.2, 162.92, 160.29, 155.58, 151.68, and 144.92 F/g, respectively. The specific capacitance declines from 169.2 F/g to 144.92 F/g with increase in the current density from 0.5 A/g to 3A/g. The lower current density indicates higher specific capacitance. This is due to the faster diffusion and migration of ions at lower current density through the electrodes. Furthermore, the capacitance retention of AC-650 is displayed in Fig. 6d, the specific capacitance could retain as high as 85.65% when the current density reached 3 A/g, implying excellent rate performance. The electrochemical performances of AC samples in this study and AC materials prepared from various precursors are compared in Table 2.

Table 2 Comparison of AC derived from different precursors

To evaluate the charge kinetic properties of AC electrodes, electrochemical impedance spectroscopy (EIS) tests were conducted in 6 M KOH electrolyte at the frequency ranging from 0.01 Hz to 10 kHz, and the alternate current amplitude is 5 mV. Figure 7 displays the Nyquist curves of AC electrodes at open-circuit voltage. The Nyquist plot of a typical AC electrode can be divided into two distinct parts: one is a semicircle part of high frequency, and the other is a linear part in low frequency [47]. As shown in Fig. 7, each plot performs an excellent Nyquist curve of a typical AC electrode just as one previous study [48]. The intersection of the x-axis at the high frequency is known as the equivalent series resistance (ESR), determining the power capability for a supercapacitor. Every electrode was found to be a low internal resistance, which is 0.6, 0.7, and 0.9 Ω for AC-650, AC-700, and AC-750, respectively. The low ESR can be ascribed to the high electron conductivity of the local graphitized framework. At the same time, the ESR values can be concluded in the order of AC-650 > AC-700 > AC-750. The semicircle in high frequency could be ascribed to the reason that double-layer capacitance parallel with faradaic reactions charge-transfer resistance (Rct) [49]. According to previous study, the impedance for the tested electrode which increased with the semicircle diameter is closely related. As displayed in Fig. 7, the order of impedance is just the same as ESR values. With the decrease of frequency, each curve of the AC electrode presents an inclined line and is almost vertical to the y-axis. The nearly vertical line at low-frequency range has a bearing on the diffusion of the ions within the supercapacitors system, or called Warburg impedance [50]. A higher phase angle means a lower Warburg impedance, so AC-650 < AC-700 < AC-750, in the term of Warburg impedance. It could be attributed to the high porosity and high surface area of AC-650 which is better than others. The nearly theoretical vertical lines of AC electrodes indicate excellent diffusion of the electrolyte into the electrodes in the system [2].

Fig. 7
figure 7

Nyquist plot of AC-650

Long cycle life is another essential concern for the application of supercapacitors. The electrochemical stability of the AC-650 electrode was evaluated under GCD tests for 1000 cycles at a current density of 2 A/g, which is shown in Fig. 8. It can be seen that there is only a slight decline in specific capacitance after 1000 cycles. AC-650 electrode can retain approximately 94.6% of its capacitance. The gradual decay could be ascribed to the block of the micropores on the AC electrode after the continuous cycle process. Such blockage could reduce ions adsorption, and decrease the specific capacitance. Therefore, the capacitance retention performance of AC-650 indicates that the AC electrode exhibits excellent electrochemical cycling stability.

Fig. 8
figure 8

Stability test for AC-650 at 2 A/g for 1000 cycles

4 Conclusions

In summary, high value-added AC materials derived from walnut shell have been fabricated under different temperatures with KOH activation for supercapacitor electrode. As a cheap, sustainable, and environmental-friendly resource, the walnut shell would be a promising precursor for the industrial production of high-quality activated carbon at a high efficiency/cost ratio. Structural characterizations display that all the AC samples possess large surface areas and moderate mesoporosities. Electrochemical measurements illustrate that the samples have excellent electrochemical performance. The optimum sample is AC-650, which exhibited the highest specific surface area and the best electrochemical performance. The specific surface area of AC-650 is 1016.4 m2/g, and the total pore volume is 0.56 cm3/g. The AC-650-based electrode for supercapacitor possesses a high specific capacitance of 169.2 F/g at 0.5 A/g. The electrochemical findings in this study indicate that the walnut shell, as a cheap, sustainable, and environmental-friendly resource, is a promising suitable precursor to fabricate activated carbon for the supercapacitor electrode.