Introduction

Today, the global energy shortage, especially in most developed parts of the world, seems to be a major issue (Karaman 2021; Lashkenari et al. 2021; Shalan et al. 2020; Sharmoukh et al. 2020). The depletion of fossil resources and climate change caused by large-scale burning of fossil fuels are two of the main reasons for this growing interest (Abdelhameed et al. 2021). As a consequence, the development of renewable energy and alternative fuels is a promising solution to the problem. The key to lowering storage unit costs is to boost energy storage technologies with greater stability, capacity, and energy density, as well as lower post-maintenance costs (Karaman et al. 2020; Karaman et al. 2021). Supercapacitors (SCs) or electrochemical capacitors are two potential storage systems that are compatible with most renewable energy sources (ECs). Thanks to their high power density and long cycle life, supercapacitors have gained considerable attention for several years compared to secondary batteries (Kötz and Carlen 2000; Miller and Simon 2008; Service RF 2006; Simon and Gogotsi 2010; Wang et al. 2012). Such promising features enable SCs to be potentially applicable in vehicles, portable electronics, memory backup systems, and other electronic industries (Conway n.d. , Zeng et al. 2016). However, they have lower density of energy and cycle stability. As a response, the effort has based on increasing energy density while maintaining excellent cycling capability as a means of providing a better energy storage system.

Energy storage in SCs typically includes two pathways based on energy storage mechanisms, namely, non-faradic and faradic reactions. Electrical double-layer capacitors (EDLCs) have a non-faradic reaction in which there is an electrostatic separation of electrical and ionic charges between the interface of the electrode and the electrolyte. Not only does this electrostatic charge storage system ensure quick energy uptake and transfer, but it also prohibits electrode materials from expanding. This provides the EDLCs with unique power output and a very long cyclic lifetime. Activated carbon materials and conducting polymers in organic electrolytes typically show this behavior (Abdelhameed et al. 2021; Huang et al. 2014; Nyholm et al. 2011; Wei and Yushin 2012), while transition metal oxide materials exhibit faradic reactions involving reduction-oxidation (Redox) reactions with non-rectangular voltammogram and non-linear charge-discharge curves. The exception of a few materials, such as MnO2 and RuO2, which share similar characteristics with neutral electrolyte EDLC materials and are commonly referred to as pseudo-capacitive materials (Wang et al. 2015; Wei et al. 2011). Ruthenium oxide, in particular, has outstanding electrochemical characteristics. Owing to the high price and toxicity of ruthenium oxide, other metal oxides have been studied (Warren et al. 2015; Wu et al. 2010). For its high surface area, high specific capacitance, low cost, and ability to manifest a variety of morphologies, nickel oxide (NiO) has been commonly used for supercapacitors (Cao et al. 2014; Du et al. 2014; Moradlou et al. 2018; Wang et al. 2014). Pure NiO, however, frequently suffers from poor conductivity and limited electrochemical stability, rendering it undesirable for large supercapacitors (Chen et al. 2018; Gawali et al. 2016). Several methods have been successfully intended to address these limitations and enhance the electrochemical efficiency of pseudo-capacitive materials.

EDLC’s most extensively utilized electrode material was activated carbon, which was typically made from shells of coal, wood, and coconut. The synthesis of activated carbons from various materials has been studied in recent years by researchers. Researchers have researched in recent years the manufacture of activated carbons from different materials. Based on porous activated carbon, Wang et al. identified cationic starch as a supercapacitor (Wang et al. 2008), and Zhao et al. reported that a supercapacitor electrode composed of activated carbon based on potato starch could also be used (Zhao et al. 2009). Most activated carbons, however, were still made from coal, a resource for non-renewable depletion. The activated carbon sources, with the exception of coal, were mostly plants and crops, but these were food, so it would be a problem. Due to the material’s availability and low cost, agricultural waste-based biomass material has gained considerable significance as a precursor material for preparing carbon-based energy storage devices. Carbon electrodes obtained from biomass are an effective alternative because they have a large specific surface area and excellent electrical conductivity, making them a good candidate for energy storage applications (Ferrero et al. 2015). First, biomass refers to animal and plant-based materials or by-products that can behave as a prospective energy source. Carbohydrates, lignin, starch, protein, and lipids constitute biomass; these components vary depending on the geographical situation and source (Saidur et al. 2011). Biomass contains high levels of carbon, hydrogen, oxygen, and nitrogen, as well as traces of chlorine and sulfur, according to preliminary and final reports. In comparison to other electrode materials for energy and environmental applications, biomass-derived carbon has many significant advantages: (a) abundant and inexpensive availability, (b) eco-friendly in situ nanoporous structure formation, and (d) processing versatility. They can, however, have a variety of chemical functions, making them an excellent applicant for a variety of morphologies in carbon material design (Thomas et al. 2019). Numerous studies have focused on using cheap sources of biomass waste, including banana fibers, to generate useful energy storage materials of high quality for SCs. V. Subramanian et al (Subramanian et al. 2007), for instance, synthesized activated carbon with increased porosity from agriculture banana fibers using KOH and ZnCl2 as triggering agents. In 1 M Na2SO4, the material was tested in a possible 1 V window, recording a specific capacitance of 74 F/g obtained. Unfortunately, the activation process affects the carbon yield as well as the use of corrosive materials is not environmentally friendly.

Due to the benefits of double-layer capacitance and pseudo-capacitance, nickel oxide/carbon composite electrodes have been investigated. Katarzyna Lota et al. investigated nickel oxide/carbon composites made by chemical precipitation of nickel hydroxide on active carbon and calcination at 300 °C in air. Nickel oxide, activated carbon, and composite NiO/AC capacitance values ranged from 11 to 90 F/g (Lota et al. 2011). Abioye et al. employed physical activation of the oil palm using microwave to shape nanocomposite material at different temperatures for an electroless plating technique; recording the specific capacitance was 411.52 F/g at 300 °C (Abioye et al. 2017). The high specific capacitance of composite electroactive materials made of nickel oxide and porous carbon, on the other hand, has not been studied.

Therefore, we propose that porous carbon be synthesized from banana waste doped with NiO composites. The current study uses a low-cost, environmentally friendly synthesis method to create porous nanostructured carbon material from non-activated material. The previously activated materials usually use harmful corrosive acids, e.g., phosphoric, nitric, hydrochloric, sulfuric acids. The activation of banana peels in situ is a new technique. The supercapacitor electrodes made from porous carbon-doped nickel oxide electrodes were tested. To test their suitability as supercapacitor electrodes, the electrodes were characterized using electron microscope (SEM), FTIR, x-ray powder diffraction (XRD), surface area measurements, thermal analysis (TGA, DTG), and electrochemical measurements.

Materials and methods

Materials

From local juice shops, banana peel waste (BPW) was collected. The bright BPW with no disease signs were chosen and thoroughly washed with distilled water. Nickel acetate was purchased in analysis grade from Modern Lab Co, India, with no purification needed. Polyvinylidene fluoride PVDF and N-methylpyrrolidone (NMP) were analytical reagents and were purchased from Alfa Aeser. Nickel foam was supplied by Shanghai Hongxiang Plant. De-ionized water is used to prepare a solution of potassium hydroxide. All materials were used as received without further purification.

Methods

Carbonization of banana peel waste

Grinded BPW was subject to carbonization process at 700 °C under N2 for 2 h with heating rate 10 °C for min without activation in a muffle. The control sample and treated samples with nickel acetate (1, 3, and 5% (w/w)) were carbonized with same conditions.

Material characterization

Fourier transform infrared (FTIR) spectroscopy (Spectrum Two IR Spectrometer - PerkinElmer, Inc., Shelton, USA) investigated the structural shift. The surface morphology of the composite samples prepared were characterized by field emission scanning electron microscopy (SEM, Quanta FEG 250, FEI) connected to the EDX Unit (energy dispersive x-ray analysis). The SEM sample, a thin layer of Au, was coated with a sputtering coating unit on the sample. Composite micrographs using FESEM were analyzed with Gwyddion 2.45 software to investigate the roughness of the composite [27]. For each sample, 3D micrographs were obtained and the resolution of the micrographs was set. Finally, the parameters of roughness were measured in nm using the same program. Dynamic light scattering (DLS) measurements of the distribution of particle size and zeta potential of the prepared samples were calculated using the NicompTM 380 ZLS size analyzer from the USA. Laser light scattering was used at 170° for particle size detection, with the zeta potential measured at 18°. Using the SDT Q600 USA thermal analyzer, thermogravimetric analysis (TGA and DTGA) of composites was carried out in the nitrogen atmosphere with heating rate of 10 °C/min. The Quantachrome Nova-1000 method was used to analyze the sample’s N2 adsorption and desorption isotherms at 77   K temperature. The pore size of the samples was measured and analyzed using the Brunauer-Emmett-Teller (BET) equation. The sum of nitrogen adsorbed at a relative pressure (P/P0) of 0.97 was used to measure the basic surface areas and pore volumes of nitrogen adsorption desorption isotherms determined by a surface area analyzer.

Electrode preparation

To cast the active electrode material, commercially accessible Ni foam has been used as a current collector. The working electrode was washed with a 1 M HCl solution, DI water, and absolute ethanol for 10 min each under ultrasonication to remove the surface oxide layer before being drop-casted on the Ni foam (2.5 × 1 cm2) and then dried at 80 °C for 3 h. Subsequently, a weight ratio of 80:10:10 was used to disperse a mixture of PC and PC-NiO samples (active material), polyvinylidene fluoride PVDF (binder), and carbon black (conductive material) in 0.5 mL of N-methylpyrrolidone (NMP) as a solvent. The slurry was drop-cast onto the cleaned Ni foam over a working area of 1.5 × 1 cm2 and dried at 80 °C overnight in a drying oven.

Electrochemical measurements

In a three-electrode configuration, electrochemical measurements were performed using a Voltalab 40 (France) electrochemical workstation. As shown in Fig. 1, electrochemical measurements were carried out with Ag/AgCl, a Pt wire, and the coated Ni foam as guide, counter, and working electrodes, respectively, and 6 M KOH aqueous solution as the active electrolyte. To investigate the electrochemical performance of the prepared samples, cyclic voltammetry (CV) and galvanostatic CD (GCD) curves were obtained, as well as electrochemical impedance spectroscopy (EIS) in the frequency range of 001 Hz to 100 kHz with an AC amplitude of 5 mV. The CV characteristic and galvanostatic charge/discharge output were measured using a voltage range of 0.0–0.5 V.

Fig. 1
figure 1

Schematic illustrations of synthesized electrode materials utilized in supercapacitor application

Results and discussion

Physical characterization of PCs

Field emission scanning electron microscopy FESEM analyzed the surface morphology of synthesized porous carbon PC and PC/NiO composites (Fig. 2). As indicated in Fig. 2, PCs and composites have a three-dimensional porous structure with cavities and pores, and the average pore size is less than 500 nm, which allows the electrolyte to be moved easily. The EDX study indicated that silicon, phosphorus, calcium, carbon, and oxygen are the main components of porous carbon. The observed calcium content of the carbonaceous raw material is due to its normal occurrence. The prepared PC is enriched with oxygen species that would strengthen Ni/or NiO’s attachment during impregnation to the carbon surface. EDX research has characterized the chemical composition of NiO/PC powders. In addition to oxygen, carbon and nickel occurred in the specimens. In the as-prepared sample (Ni/PC), EDX analysis showed a high carbon to Ni atomic ratio approaching

Fig. 2
figure 2

FESEM of (a, b) PC and its corresponding EDX, (c, d) PC/NiO1 and its corresponding EDX, (e, f) PC/NiO2 and its corresponding EDX, (g, h) PC/NiO3 and its corresponding EDX, and (i) mapping of PC/NiO3

The behavior of surface roughness has been performed to make more identifications to the surface (Aly and Ahmed 2021; El-Kader et al. 2021) as shown in Fig. 3 and the roughness data are presented in Table 1. It could be noticed that the average roughness (Ra) of the PC was 105.624   nm and after the doping with NiO, this value has been raised to 183.201   nm for Pc-NiO3 which confirms that doping of PC with NiO enhancing surface roughness. Simultaneously, the root mean square roughness (Rq) exhibit the same pattern as Ra, rising from 158.852 nm for PC to 204.603 nm for PC-doped NiO3. It has been observed that doping PC with more NiO results in a large increase in PC surface roughness.

Fig. 3
figure 3

Surface roughness behavior of (a) PC, (b) PC-NiO1, (c) PC-NiO2, and (d) PC-NiO3

Table 1 Roughness parameters including roughness average (Ra), root mean square roughness (Rq), the maximum height of the roughness (Rt), and maximum roughness valley depth (Rv) of blank and NiO-doped PC

For further examination, FTIR was performed to outline the newly functional groups bearing nanocomposite. It is well known that, the original character of banana peel waste mostly appears in FTIR spectra of prepared PC samples as most lignocellulosic material carbons. This means that the produced PCs are characteristics with a unique features as well as the carbon properties. Figure 4 illustrates the FTIR spectra of prepared PCs. The bands which characterized the lignocellulose materials are observed at about 3440, 2925, 1630, 1400, and 1135 cm−1 which referred to OH stretching vibration, C-H stretching, C=O of carboxylic group, C=C of aromatic rings, and C-O-C stretching, respectively (Abou Hammad et al. 2019; Basta et al. 2019). Moreover, the addition of Ni ions is shown a significant change between native PC and Ni-doped PCs. Hence, the intensity of C=O peaks in the three doped PCs is decreasing with low shift in the low frequency as well as C-H starching peaks. In context, appearing of new peaks around 637 and 426 cm−1 which may be corresponds to vibrations of Ni-O bonds (Kayani et al. 2018). In addition, the concentration of Ni ion is affecting the behavior of PCs toward IR spectra. The intensity as well as the position of characteristic peaks which detected in native PCs where effect. The intensity of characteristic peaks is decrased with increase of Ni ions as a result to the interaction of Ni ions with PC active group. In context, the positions of characteristic peaks which appear in native were shifted to lower frequency by the same effect on intensity.

Fig. 4
figure 4

FTIR of prepared porous carbon-doped nickel oxide

The XDR patterns of PC illustrated the crystallographic ordering profile of each preparation conditions. Figure 5 shows the XRD pattern of as-prepared PC composites. The pristine porous carbon sample showed a characteristic peaks at 24.26 and 42° which attributed to (002) and 101 diffractions (Gomes Ferreira de Paula et al. 2019). These finding peaks are close to petroleum coke with the amorphous nature (Mopoung et al. 2015). In context, the doping of PCs with Ni ion referred significant changes in the doped PC XRD pattern. Moreover, the peaks which characterized crystal planes indicated the formation of phase pure, cubic nickel oxide are observed clear in 37.23, 43.3, 62.90, 75.7, and 79.87° which corresponding to (111), (200), (220), (311), and (222) respectively (JCPDS-780429) (Dharmaraj et al. 2006). Additionally, the patterns of doped PCs emphasized the increase of doped Ni ion percentage which leads to increasing the PC crystallinity.

Fig. 5
figure 5

XRD patterns of (a) PC, (b) PC-NiO1, (c) PC-NiO2, and (d) PC-NiO3

The surface area and porosity of PC and PC-NiO composites were investigated using BET analysis at 77 K. Figure 6 displays the N2 adsorption/desorption isotherm and corresponding BJH pore size distribution plot of the synthesized samples. The isotherm graph shapes are unique for each surface behavior. The PC sample isotherm graph types can be categorized as typical type IV(a) isotherm type with an H3 hysteresis loop at the relative pressure, suggesting the presence of mesopores in the sample according to the following IUPAC classification according to Thommes et al. (Thommes et al. 2015).

Fig. 6
figure 6

Nitrogen adsorption desorption isotherm of the (A) PC, (B) PC-NiO(1), (C) PC-NiO(2), and (D) PC-NiO(3)

The calculated BET-specific surface areas of the PC, PC/NiO (1), PC/NiO (2), and PC/NiO (3) are 465, 510, 691, and 1187 m2 g−1, respectively, as shown in Table 2 which means that the addition of NiO to PC increased the surface area and PC/NiO (3) has the greatest surface area hence expected to deliver higher capacity than other samples. The average pore diameter and pore volume of the PC, PC/NiO(1), PC/NiO (2), and PC NiO (3) are 2.72, 2.79, 2.97, and 8.28 nm and 0.637, 0.695, 1.768, and 2.857 cm3 g−1, respectively. The comparable specific surface area of prepared samples leads to increased ion accessibility at the electrode/electrolyte interface. PC/NiO (3)’s unique surface area and pore structure improve the Faradaic redox couple operations, resulting in the electrode material’s superior electrochemical performance in supercapacitor applications.

Table 2 Surface area and textural parameters of as-prepared samples

Moreover, the volume adsorption axis in the prepared PCs show a significant change where the gas adsorbed is referring to the surface area as well as porosity. The blank PC and doped sample with 1% Ni are more closed. On the other hand, the samples 3% and 5% showing an improvement in adsorbed gas volume. These results are in agreement with the surface results in Table 1 which offered that the surface area of sample 5% Ni is duplicated of blank sample and 1, 3% Ni-doped PC. In addition, the pore volume of sample 5% is duplicated of sample 3% as well as fourfold of blank PC and 1% Ni-doped PC. In context, the sample 5% clear an increase in mesopore as well as pore diameter is compared with the other PC samples. These results emphasize that the surface structure of blank sample is a heterogeneous pore distribution with amorphous behavior. Hence, the addition of Ni ion leads to increase of surface homogeneity, poor homogeneity distribution, and crystallinity.

The DLS measurements illustrated informative results about the PC surface charge and particle size distribution and the data are tabulated in Table 3. The zeta value of blank PC (−5.21 mV) is improved with the addition of Ni ion where recorded 139.97 mV. These results mean that the addition of Ni ion enhances the stability of colloidal solution of PC (Kumar and Dixit 2017) as well as increases the PC surface charge. Moreover, the value of zeta in PCs doped with 3% and 5% Ni ion referred to nanoparticle present of Ni ion. In addition, the particle size distribution measurements appear that the particles in PC 5% doping are may in nanoscale with average particle size 389.6 nm. In fact, this value in absolute is not nanosized but when we consider the structure of PC as well as the aggregation of particle, this value can be considered as nanosized. Overall the DLS results are confirmed that the prepared PCs are improved in surface charge, stability, and nanosized with an increase of Ni ion addition.

Table 3 DLS measurements of prepared composites

Thermal gravemetric analysis as well as its derivative for prepared PCs is illustrated in Fig. 7. All the tested PC samples are performed with the same thermal behavior. The first peak of degradation is observed around 168 °C. However, the second degradation peak shows a significant difference between the prepared PCs. The native PC sample recorded this peak at 649 °C as sharp. In addition, the PC samples PC-NiO (1) and PC-NiO (2) are recorded, this peak at about 645 °C as flat peaks. On the other hand, the sample PC-NiO (3) showed a change in this peak behavior where the peak was shifted to 677 °C as flat sharp peak. These results emphasize that the Ni oxide molecules are involved in the intermolecular structure of the PC sample and affect their thermal behavior as well as affect the physical characterization. Furthermore, the Ni concentration affects the thermal stability of the prepared PC sample, with the thermal stability increasing in full agreement with the Ni concentration.

Fig. 7
figure 7

Thermal gravimetric analysis and its derivatives for the synthesized composites

Electrochemical performance

In a three-electrode cell with aqueous electrolyte of 6 M KOH, the electrochemical performance of the working electrode were assessed at room temperature. Cyclic voltammetry (CV) and galvanostatic charge-discharge (GCD) experiments were carried out to assess the charge storage efficiency of PC/NiO composite electrodes. Figure 8 compares the CV curves of porous carbon PC, PC/NiO-1, PC/NiO-2, and PC/NiO-3 composite electrodes in the potential window range of 0.0 to 0.5 V at various scan rates of 5, 10, 25, 50, and 100 mV s−1. For all electrodes, pair of well-defined redox peaks (Fig. 8b, c, d) were observed, suggesting that the stored energy mainly derived from faradaic reactions (oxidation and reduction). The possible electrochemical reactions in KOH electrolyte are given below (Lu et al. 2011; Wang et al. 2014).

$$ NiO+ OH-\leftrightarrow NiO OH+e\hbox{--} $$
(1)
Fig. 8
figure 8

(a) CV curves of PC electrodes, (b) CV curves of the PC/NiO (1), (c) CV curves of the PC/NiO(2), (d) CV curves of the PC/NiO(3) electrode at different scan rates 25, 50, and 100 mV/s in 6 M KOH solution

The oxidation of NiO to NiOOH induced the anodic peak to appear at about 0.3 V, while the reduction of NiOOH to NiO induced the cathodic peak to appear at 0.2 V. A faradaic pseudo-capacitance is generated by the presence of nickel oxide, and porous carbon with a high specific area can provide both a broad double-layer capacitance.

The specific capacitance of composite electrodes can thus be increased by combining double-layer capacitance and Faradaic pseudo-capacitance. As the scan rate was increased from 5 to 100 mV s−1, the oxidation peak potential shifted to higher and lower potentials, showing a greater potential distinction between the oxidation and reduction peaks and implying that the redox reaction is reversible. Furthermore, the shapes of the CV curves were well preserved when the possible scan rates ranged from 5 to 100 mV s−1, suggesting the electrodes’ excellent rate capability and enhanced mass transport, as well as the structure’s uniqueness for fast redox reactions. As the scan rates increased, the samples’ specific capacitance decreased. The determined specific capacitances were calculated from CV measurements and revealed that PC-NiO (3) has the highest rate capability as it has the largest current response and integral region of the CV curve among the prepared electrodes, suggesting that it has the highest pseudo-capacitance. This is due to the fact that the samples’ crystalline structure, morphology, and BET surface area differ from those of the other samples.

Galvanostatic charge/discharge measurements were also carried out to investigate the electrode performance of the prepared electrode, as shown in Figure 9. The following equation can be used to measure the specific capacitance from the galvanostatic charge-discharge (Lamiel et al. 2017)

$$ \mathrm{Csp}=\frac{\mathrm{I}\ \left(\Delta \mathrm{t}\right)}{\left(\Delta \mathrm{E}\kern0.5em \mathrm{m}\right)} $$
(2)
Fig. 9
figure 9

Galvanostaitic charge/discharge of (a) PC, (b) PC-NiO 1, (c) PC-NiO 2, and (d) PC-NiO 3 at various scan rates

In this equation, Csp is the specific capacitance, I is the discharge current, Δt is the discharging time, ΔE is the potential window of the electrolyte, and m is the mass of the working material (Lee et al. 2012a).

Figure 9 displays the GCD galvanostatic charge-discharge curves of PC electrodes and PC-NiO composites. Figure 9a shows a triangular shape between 0 and −1.0 V for porous carbon PC electrodes versus Ag/AgCl at different current densities, indicating that PC as electrodes in 6 mole L−1 KOH solution has good Coulombic efficiency and ideal capacitive behavior.

The specific capacitances were calculated at current density 1 A/g for PC, PC-NiO (1), PC-NiO (2), and PC-NiO (3) as 151.52, 493.02, 661.15, and 811.46 F/g, respectively and the results are presented in Table 4. PC-NiO (3) composite maintains the best capacitance when the current density increased than the PC electrodes and other composites. The specific capacitance of PC-NiO (3) is 5.3 times more than that of PC material at 1.0 A/g. Furthermore, the PC-NiO (3) composite material still exhibits a specific capacitance of 471.20 and at 5.0 A/g and 658.72 F/g at a high current density of 10.0 A/g as shown in Fig. 10.

Table 4 Calculation of Specific capacitance (F/g) calculated from galvanostaic charge-discharge measurements for PC, PC/NiO (1), PC/NiO (2), and PC/NiO (3) composites
Fig. 10
figure 10

Relationship for PC and PC-NiO composite materials between specific capacitance and current densities

It should be observed that all composite materials prepared have greater capacitance than PCs alone, suggesting that porous carbon is affected by NiO doping. The highest specific capacitance of the PC-NiO(3) composite could be due to the improvement in surface properties relative to the other composite materials in Table 4. In addition, the doping of NiO particles into porous carbon has a significant effect on the surface properties of the carbon pores. The high specific capacitance was obtained for active materials with high specific surface area and pore distribution that facilitates the diffusion of OH ions by a redox reaction at the electrolyte/active material interface. These findings demonstrate that the introduction of NiO is a powerful way for improved electrochemical properties to be achieved.

EIS (electrochemical impedance spectroscopy) is a useful technique for studying more about the electrochemical properties of PC and PC/NiO composite materials. Figure 11 shows the Nyquist plots for PC and PC/NiO composite electrodes. At a high frequency, the Nyquist plots display a semicircle with a small radius and an inclined vertical line at a low frequency. A vertical line indicating the degree of electrochemical capacitive characteristics of porous carbon doped with NiO composites, which is a function of OH ion diffusion at the electrolyte and active material interface (Bao et al. 2009; Lee et al. 2012b). The supercapacitor behaves similarly to an ideal capacitor, as shown by a line that is more perpendicular to the imaginary y-axis. As compared to the other samples, the vertical line of PC-NiO (3) leans more toward the y-axis, indicating that PC-NiO (3) has excellent electrochemical action. The Nyquist plots increase with a nearly 45° line in the intermediate-frequency field, corresponding to the characteristic of ion diffusion into the carbon electrodes.

Fig. 11
figure 11

Nyquist plots of porous carbon and porous carbon doped with different Ni content electrodes in 6 M KOH solution

The charge-discharge cycling tests of PC-NiO(3) at a current density of 1 A/g for 1000 cycles are shown in Figure 12. After 1000 cycles, the real capacitance of PC-NiO(3) remained 95.25% of its initial value. The PC/NiO composites are thought to allow easy OH access to the NiO electrode surface, resulting in a high specific capacitance and less degradation during the cycle test.

Fig. 12
figure 12

Cycle test of PC-NiO(3) to 1000 cycles at a 10 A/g current density

Conclusion

Porous carbon was prepared by a green and facile synthesis route from banana peel waste materials. This porous carbon-doped nickel oxide. Three-dimensional porous structure with cavities and the average pore size is less than 500 nm was revealed by SEM. The crystalinity of nanocomposite and formation of phase pure, cubic nickel oxide was affirmed via XRD. N2 adsorption-desorption analysis showed that prepared porous carbon and its composites have a high surface area. A pair of well-defined redox peaks was observed for all electrodes indicating that the stored energy mainly originated from the Faradaic reactions (oxidation and reduction of Ni) ions which demonstrates pseudo-capacitive capacitance behavior based on a fast redox mechanism. PC-NiO(3) composite maintains the best capacitance when the current density increased than the PC electrodes and other composites. The specific capacitance of PC-NiO (3) is 5.3 times more than that of PC material at 1.0 A/g. Furthermore, the PC-NiO(3) composite material still exhibits a specific capacitance of 471.20 and at 5.0 A/g and 658.72 F/g at a high current density of 10 A/g and superior cycle stability at 1000 cycles.