1 Introduction

Nowadays, the demands for sustainable and clean energy are becoming more and more critical owing to the increasing environmental problems, such as the shortage of resource, pollution and global warming. Hence, it is realistically significant to develop new, low-cost and eco-friendly energy conversion and storage system [1, 2]. As a new type of energy storage devices, supercapacitors have attracted significant attentions due to high power density and exceptionally long cycle life, etc [3,4,5]. In general, according to the charge storage mechanism, supercapacitors can be classified into two types, including electrochemical double layer capacitors and pseudocapacitors [6,7,8]. It is well known that the key factor to develop high-performance supercapacitors is the design and synthesis of electrode materials with excellent electrochemical properties and high conductivity [9]. Generally, three kinds of electrode materials have been used for the fabrication of supercapacitors, including carbon based materials (activated carbon, carbon nanotubes and graphene, etc.) [10,11,12], metal compound (metal oxide, metal hydroxide and metal sulfide, etc.) [13,14,15] and conducting polymers (polypyrrole, polyaniline and polythiophene, etc.) [16,17,18].

Among electrode materials above, conducting polymers play a vital role in high-performance supercapacitors owing to their advantages of high conductivity and redox properties, etc [19, 20]. As one kind of conducting polymers, polypyrrole (PPy) has attracted much attention due to its wide potential window, high conductivity, high capacitance and low cost, etc [21, 22]. Up to now, PPy has been widely used in electrochemical fields, such as sensors, corrosion protection, secondary batteries and supercapacitors [23,24,25,26].

To improve the electrochemical performance of supercapacitors, the growing interest has concentrated on controlling microstructures of electrode materials via different synthetic routes [27]. In general, PPy nanoparticles or thin films can be fabricated through chemical polymerization or electropolymerization method [28, 29]. However, the traditional chemical polymerization and electropolymerization of conductive polymer materials are easily affected by polymerization rate, solvent nature and media pH, etc [30, 31]. Recently, microemulsion method has received considerable attention for the preparation of nanomaterials [32, 33], where micro/nano droplets of water phase containing reactants are dispersed and stabilized by a surfactant in an organic medium, resulting in morphologically controllable nanomaterials. Therefore, the nanomaterials with different sizes can be prepared by altering different components involved in the formation of surfactant-assisted microemulsion [34].

In addition, electrolyte is another important factor in influencing the performance of supercapacitors [35]. Electrolytes used in supercapacitors can be classified into three categories, including aqueous, organic and ionic liquids based electrolytes. In general, aqueous based electrolytes have attracted more attention due to their higher concentration and smaller ionic radius, which can provide higher conductivity than organic based electrolytes [36]. Among the aqueous based electrolytes, H2SO4, Na2SO4 and KCl are frequently employed as electrolytes in supercapacitors because of their desired properties, such as high conductivity, low viscosity and low cost, etc [35]. Unfortunately, most of researches focus on the electrode materials although the selection of electrolyte is an important factor in affecting the electrochemical performance of supercapacitors [37]. Based on the consideration above, H2SO4, Na2SO4 and KCl are chosen as electrolytes to investigate the electrochemical behavior of as-prepared PPy nanomaterials fabricated by microemulsion method.

In this work, the unique 3D network nanostructured PPy built by nanospheres was successfully synthesized via a simple and effective CTAB-assisted microemulsion method and the electrochemical performances of as-prepared PPy based electrodes were assessed in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes, respectively. As-prepared PPy based electrode exhibited the highest specific capacitance in 1.0 M H2SO4 electrolyte, but the capacitance retention of as-prepared PPy based electrode in 1.0 M H2SO4 electrolyte was lower than that in 1.0 M Na2SO4 or 1.0 M KCl electrolyte after 5000 continuous charge/discharge cycles.

2 Experimental

2.1 Reagents and materials

Ammonium persulfate (APS), cetyltrimethylammonium bromide (CTAB), n-butyl alcohol, n-hexane, ethanol, H2SO4, Na2SO4 and KCl were analytically pure grade and purchased from Aldrich Chemical Reagent Co. Ltd. (Chengdu, China). Conductive carbon black and polytetrafluoroethylene (PTFE) were obtained from Tianjin Chenhua Chemical Reagent Factory (Tianjin, China).

Pyrrole monomer (Py) was purchased from Chengdu Institute of Organic Chemistry, Chinese Academy of Science (Chengdu, China). Py was purified through distillation under reduced pressure and stored at a temperature of less than 5 °C before use.

Ni foam was purchased from Jinan Henghua Chemical Reagent Factory (Jinan, China). Ni foam substrates were pre-treated under ultrasonication by sequentially immersing in acetone, distilled water and ethanol each for 20 min and dried at 60 °C for 24 h before use. Distilled water was used throughout the whole experiments.

2.2 Synthesis of PPy materials

The preparation of PPy was described as follows. Firstly, 1.14 g APS was dissolved into 10 mL distilled water and stirred with a magnetic stirrer. Secondly, 0.040 g CTAB, 0.90 mL n-butyl alcohol and 6.0 mL n-hexane were slowly added into the solution above. Then, the mixed solution above was put into ice bath at a temperature of 0 °C under stirring to form a transparent microemulsion system. Next, 5.0 mmol Py (350 µL) was slowly injected into the microemulsion system, and some black flocculent products appeared at organic/aqueous interface. After stirring for 12 h in ice bath, the product was obtained by demulsification with ethanol, washed with ethanol and distilled water for several times and dried at 70 °C for 24 h in air.

2.3 Characterization of as-prepared PPy materials

Fourier transform infrared (FTIR) spectroscopy of as-prepared PPy materials was acquired by Nicolet-5700 (Nicolet Instrument Co., America) in the wavenumber range of 4000–500 cm−1. The crystal structure of as-prepared PPy materials was determined by X’Pert PRO (XRD, PANalytical B.V., Holland) using Cu Kα radiation (λ = 0.154060 nm) recorded from 5° to 70° at a speed of 2° min−1. The morphology and microstructure of as-prepared PPy materials were investigated by Ultra 55 microscope (FE-SEM, Carl Zeiss SMT Pte Ltd, Germany).

2.4 Preparation of PPy based electrode

As-prepared PPy based electrode was fabricated as follows. Briefly, as-prepared PPy nanomaterials, conductive carbon black and 10% PTFE emulsion were mixed with a mass ratio of 8:1:1 and dispersed in ethanol. The mixture was ultrasonically treated for 10 min and placed in an oven at 60 °C to form sticky slurry. Then, the resulting sticky slurry was pasted onto Ni foam with size of 1.0 cm × 2.0 cm (coated active area = 1.0 cm2), followed by drying at 60 °C under vacuum for 12 h. Finally, the coated Ni foam was pressed to a thin foil under a pressure of 5.0 MPa.

2.5 Electrochemical measurements

Electrochemical tests of cyclic voltammetry (CV), galvanostatic charge/discharge (GCD) and electrochemical impedance spectrum (EIS) were conducted with an electrochemical workstation (PARSTAT 2273, Ametek, USA) in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes, respectively. A three-electrode system consisted of platinum electrode as counter electrode, as-prepared PPy based electrode as working electrode and saturated calomel electrode (SCE) as reference electrode. CV and GCD measurements were conducted in the potential range of − 0.2 to 0.8 V in 1.0 M H2SO4 electrolyte or − 0.5 to 0.5 V in both 1.0 M Na2SO4 and 1.0 M KCl electrolytes. EIS measurements were performed in the frequency range of 105–10−1 Hz at open-circuit potential with an ac-perturbation of 5 mV.

3 Results and discussion

3.1 FTIR and XRD analyses of as-prepared PPy materials

Shown in Fig. 1a was FTIR spectrum of as-prepared PPy materials. The broad band was observed at 3500 to 3000 cm−1, corresponding to the stretching vibration of C–H and N–H of pyrrole ring [38]. The fundamental vibrations of Py ring located at 1550 cm−1 and 1480 cm−1 were ascribed to the antisymmetric and the symmetric ring-stretching modes, respectively [39]. The absorption bands at 1300 cm−1 and 1180 cm−1 were attributed to the in-plane deformation of =C–H, and the out-of-plane vibration of =C–H at 920 cm−1 was also observed [40]. The absorption band at 1405 cm−1 was due to the stretching vibration of C–N [38]. These results above confirmed that as-prepared materials were pure polypyrrole.

Fig. 1
figure 1

FTIR spectrum (a) and XRD pattern (b) of as-prepared PPy materials

XRD spectrum of as-prepared PPy materials was presented in Fig. 1b. It was observed that a broad diffraction peak was located at 2θ angle around 26.3°, indicating that as-prepared PPy was a kind of amorphous materials with low crystallinity which could facilitate the penetration of ions through the bulk of active materials [41, 42].

3.2 SEM analysis of as-prepared PPy nanomaterials

Shown in Fig. 2 were SEM images of as-prepared PPy nanomaterials under different magnifications. It was observed that as-prepared PPy materials exhibited a unique 3D network nanostructure stacked by a large number of nanospheres with an average diameter around 100 nm, and the surface of PPy nanospheres possessed open channeled structure, resulting in large specific surface area. The unique 3D network nanostructure of PPy materials could provide abundant active sites for electrochemical reactions and be beneficial to the diffusion of ions, resulting in enhanced electrochemical performance [43].

Fig. 2
figure 2

SEM images of as-prepared PPy nanomaterials under different magnifications

3.3 Electrochemical performances of as-prepared PPy based electrode

Shown in Fig. 3a, b, c were the typical CVs of as-prepared PPy based electrodes at different scan rates in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes, respectively. It was observed that the CVs of as-prepared PPy based electrodes had no obvious redox peak in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes. It was reported that the CVs of PPy based electrode with pseudocapacitance behavior exhibited nearly rectangular shape [44]. As shown in Fig. 3a, b, c, the CV curves of PPy based electrodes were similar and presented nearly rectangular shape in three electrolytes, indicating that PPy based electrode exhibited pseudocapacitance behavior. The results above were consistent with the reported literatures [45, 46].

Fig. 3
figure 3

CVs of as-prepared PPy based electrodes in 1.0 M H2SO4 (a), 1.0 M Na2SO4 (b) and 1.0 M KCl (c) electrolytes at different scan rates, and comparison of CVs in three electrolytes at a scan rate of 5 mV s−1 (d)

In addition, the CVs of as-prepared PPy based electrode deviated slightly from the rectangular shape in 1.0 M H2SO4 electrolyte at higher scan rates (Fig. 3a). In contrast, the CV curves of PPy based electrodes exhibited similar shapes at different scan rates in 1.0 M Na2SO4 and 1.0 M KCl electrolytes (Fig. 3b, c), indicating a high rate-capability and efficient ionic and electronic transport in Na2SO4 and KCl electrolytes [46].

Shown in Fig. 3d was the comparison of CVs of as-prepared PPy based electrodes in three electrolytes at a scan rate of 5 mV s−1. It was observed that the integral area of CV in 1.0 M H2SO4 electrolyte was larger than that in 1.0 M Na2SO4 or 1.0 M KCl electrolyte, suggesting that as-prepared PPy based electrode exhibited the highest specific capacitance in H2SO4 electrolyte.

Shown in Fig. 4a were GCDs of as-prepared PPy based electrode at different current densities in 1.0 M H2SO4 electrolyte. It was observed that a smaller potential platform appeared at the GCDs of as-prepared PPy based electrode in 1.0 M H2SO4 electrolyte due to the intercalation and deintercalation of massive H3O+ [47]. In contrast, the GCDs of as-prepared PPy based electrodes were regular symmetrical triangles in 1.0 M Na2SO4 and 1.0 M KCl electrolytes at different current densities (Fig. 4b, c), and the potential of electrode showed a favourable linear relationship with increasing time.

Fig. 4
figure 4

GCDs of as-prepared PPy based electrodes in 1.0 M H2SO4 (a), 1.0 M Na2SO4 (b) and 1.0 M KCl (c) electrolytes at different current densities

The specific capacitances were calculated from the slope of charge/discharge curves according to the equation as follows:

$${C_s}=\left( {i \times {\text{ }}\Delta t} \right)/(m \times \Delta V)$$
(1)

where Cs was the specific capacitance (F g−1), i the discharge current (A), Δt the discharge time (s), m the mass of active materials on Ni foam (g) and ΔV the discharge potential window after the IR drop (V) [48].

The calculated specific capacitances of as-prepared PPy based electrodes in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes were 329.0 F g−1, 156.6 F g−1 and 153.2 F g−1 at a current density of 1.0 A g−1 and 331.0 F g−1, 176.2 F g−1 and 179.4 F g−1, respectively, at a current density of 0.5 A g−1. Clearly, the specific capacitance of as-prepared PPy based electrode in 1.0 M H2SO4 electrolyte was higher than that in 1.0 M Na2SO4 or 1.0 M KCl electrolyte at the same current density.

In general, in the process of deoxidation and reoxidation, the electrochemical performance of PPy based electrode was influenced by the intercalation and deintercalation of cations and anions in different electrolytes [43]. And the process of intercalation and deintercalation of ions was closely related to the sizes, radii and conductivities of ions [49]. Listed in Table 1 were the radii and molar ionic conductivities of ions in aqueous solutions [50]. It was shown that H3O+ had the smallest ionic radius and highest ionic conductivity. Therefore, the process of deoxidation and reoxidation of PPy nanomaterials was accompanied by the intercalation and deintercalation of massive H3O+ in 1.0 M H2SO4 electrolyte, resulting in the highest specific capacitance [44].

Table 1 Radii and molar ionic conductivities of ions in aqueous solutions [50]

In addition, the calculated specific capacitance of PPy based electrode decreased with increasing current density in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes. It was reasonable that, with increasing current density, concentration polarization increased inevitably. Furthermore, while maintaining high current density necessarily demanded higher excitation voltage, but the numbers of interface charges didn’t increase, which would lead to the decrease of specific capacitance [40]. Therefore, the specific capacitance decreased with increasing current density.

Shown in Fig. 5 were cyclic stabilities of as-prepared PPy electrodes at a current density of 1.0 A g−1 in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes after 5000 continuous charge/discharge cycles. Illustrated in the inset of Fig. 5 were cyclic stabilities of PPy based electrodes after 500 continuous charge/discharge cycles in three electrolytes. It was observed that the specific capacitance of as-prepared PPy based electrode in H2SO4 electrolyte decayed quickly with increasing cycle number and remained nearly stable after 425 continuous charge/discharge cycles. Moreover, the specific capacitance of as-prepared PPy based electrode in 1.0 M H2SO4 electrolyte was similar to those in 1.0 M Na2SO4 and 1.0 M KCl electrolytes after 425 continuous charge/discharge cycles.

Fig. 5
figure 5

Cyclic stabilities of as-prepared PPy based electrodes at a current density of 1.0 A g−1 in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes. Inset was cyclic stabilities of PPy based electrodes after 500 continuous charge/discharge cycles in three electrolytes

In addition, after 5000 continuous charge/discharge cycles, the specific capacitance of PPy based electrode in 1.0 M H2SO4 electrolyte decayed from 329 to 133.6 F g−1, and the capacitance retention was only 40.6%. In contrast, as-prepared PPy based electrode exhibited higher capacitance retention, 83.9% in 1.0 M Na2SO4 and 81.3% in 1.0 M KCl electrolytes, at a current density of 1.0 A g−1 after 5000 continuous charge/discharge cycles. The results indicated that the cyclic stability of as-prepared PPy based electrode in 1.0 M H2SO4 electrolyte was poorer than that in 1.0 M Na2SO4 or 1.0 M KCl electrolyte.

We have further explored the reasons why as-prepared PPy nanomaterials exhibited distinctly different cyclic stabilities in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes. The CVs of as-prepared PPy based electrodes before and after 5000 continuous charge/discharge cycles were measured in three electrolytes at a scan rate of 5 mV s−1. After 5000 continuous charge/discharge cycles, it was shown that the shape of CV curve in H2SO4 electrolyte changed and the surrounded area of CV curve decreased to a certain extent (Fig. 6a). In contrast, the shape and integral area of CV curves before and after 5000 continuous charge/discharge cycles had no obvious change in Na2SO4 and KCl electrolytes (Fig. 6b, c).

Fig. 6
figure 6

CVs of as-prepared PPy based electrodes before and after 5000 continuous charge/discharge cycles in 1.0 M H2SO4 (a), 1.0 M Na2SO4 (b) and 1.0 M KCl (c) electrolytes, and comparison of CVs of as-prepared PPy based electrodes after 5000 continuous charge/discharge cycles in three electrolytes (d). Scan rate: 5 mV s−1

The reason for the poor cyclic stability of as-prepared PPy based electrode in H2SO4 electrolyte can be interpreted as follows. On the one hand, the process of deoxidation and reoxidation occurred in 3D network nanostructured PPy based electrodes during the cycling process, which might result in the expansion or contraction of crystal microstructure of as-prepared PPy nanomaterials [51]. On the other hand, the process of deoxidation and reoxidation of PPy was accompanied by the intercalation and deintercalation of H3O+ due to its smaller ionic radius and higher ionic conductivity [40]. H2SO4 solution has a high concentration of H3O+, which might easily diffuse into PPy matrix to compensate charge, resulting in high acidity to weaken the activity and damage the nanostructure [52]. Therefore, the collapse of crystal structures or microspheres of as-prepared PPy nanomaterials during the earlier stage of cycling process might result in the relative instability in 1.0 M H2SO4 electrolyte.

In order to observe change of the morphology of PPy nanomaterials during the cycling process, SEM measurements were conducted on as-prepared PPy based electrodes after 500, 2500 and 5000 continuous charge/discharge cycles in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes, respectively (Fig. 7). It was observed that the unique 3D network nanostructure of PPy based electrode collapsed seriously in 1.0 M H2SO4 electrolyte after 500 continuous charge/discharge cycles (Fig. 7a1). After 2500 (Fig. 7a2) and 5000 (Fig. 7a3) cycles, the collapsed nanostructure of PPy based electrode in H2SO4 electrolyte had no obvious change compared with the morphology after 500 continuous charge/discharge cycles. On the contrary, the nanostructure of PPy based electrodes had slight collapse after 500, 2500 and 5000 continuous charge/discharge cycles in 1.0 M Na2SO4 (Fig. 7b1, b2 and b3) and 1.0 M KCl (Fig. 7c1, c2 and c3) electrolytes.

Fig. 7
figure 7

SEM images of as-prepared PPy based electrodes after 500, 2500 and 5000 continuous charge/discharge cycles in 1.0 M H2SO4 (a1, a2 and a3), 1.0 M Na2SO4 (b1, b2 and b3) and 1.0 M KCl (c1, c2 and c3) electrolytes

The unique 3D network nanostructure stacked by nanospheres of as-prepared PPy materials collapsed seriously in 1.0 M H2SO4 electrolyte during the processes of deoxidation/reoxidation and intercalation/deintercalation of H3O+ during the earlier stage of cycling process [52]. Therefore, the collapse of crystal structure or morphology of PPy based electrode might result in the poor cyclic stability in 1.0 M H2SO4 electrolyte. The result above was coincident with the conclusion of electrochemical cyclic stability testing.

In order to further investigate the electrochemical performances of as-prepared PPy based electrodes before and after 5000 continuous charge/discharge cycles in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes, EIS measurements were conducted on as-prepared PPy based electrodes in three electrolytes in the frequency range from 105 to 10−1 Hz (Fig. 8a, b, c). It was shown that the impedance spectra in three electrolytes were composed of a semicircle in the higher frequency region, followed by a linear part in the lower frequency region. Shown in Fig. 8d was an equivalent circuit for fitting the impedance data of as-prepared PPy based electrodes and the corresponding fitting data were listed in Table 2. The intercept of the curves on the real axis was the internal solution resistance (Rs), including bulk electrolyte solution resistance, intrinsic resistance of electroactive materials and contact resistance between current collector and electroactive materials [29]. The semicircle in the high frequency region represented the charge transfer resistance (Rct) and the nearly linear plot in the low frequency region stood for the Warburg impedance (Zw). CPE was the constant phase element [53].

Fig. 8
figure 8

Nyquist plots of as-prepared PPy based electrodes in 1.0 M H2SO4 (a), 1.0 M Na2SO4 (b) and 1.0 M KCl (c) electrolytes before and after 5000 continuous charge/discharge cycles, and equivalent circuit for fitting the impedance data of as-prepared PPy based electrodes (d)

Table 2 Fitting data of equivalent circuit of impedance spectra of PPy based electrodes before and after 5000 continuous charge/discharge cycles in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes

It was shown that the semicircle of initial PPy based electrode in 1.0 M H2SO4 electrolyte was smaller than that in 1.0 M Na2SO4 or 1.0 M KCl electrolyte in the high frequency region, indicating the better change transport in H2SO4 electrolyte. The linear slope of initial PPy based electrode in H2SO4 electrolyte was more vertical than that in Na2SO4 or KCl electrolyte, suggesting that initial PPy based electrode possessed higher conductivity in H2SO4 electrolyte. Based on Table 2, it was found that the values of Rs, Rct and Zw of initial PPy based electrode in H2SO4 electrolyte were smaller than those in Na2SO4 and KCl electrolytes. The results above indicated that initial PPy based electrode in H2SO4 electrolyte exhibited higher capacitive performance than that in Na2SO4 or KCl electrolyte.

In addition, due to the collapse of crystal structure or morphology of PPy based electrode in 1.0 M H2SO4 electrolyte, the values of Rs, Rct and Zw after 5000 continuous charge/discharge cycles had a sharp increase compared with those of initial PPy based electrode. It further proved that as-prepared PPy based electrode in 1.0 M H2SO4 electrolyte exhibited lower capacitance retention after 5000 continuous charge/discharge cycles. Besides, the values of Rs, Rct and Zw of as-prepared PPy based electrode in 1.0 M H2SO4 electrolyte were similar with those in 1.0 M Na2SO4 and 1.0 M KCl electrolytes after 5000 continuous charge/discharge cycles. The results showed that PPy based electrodes possessed similar capacitance performance in three electrolytes after 5000 continuous charge/discharge cycles. These results above were consistent with the tests of CV, GCD and cyclic stability.

4 Conclusions

In summary, CTAB-assisted microemulsion method has been employed to successfully fabricate 3D network nanostructured PPy materials built up by nanospheres with an average diameter of 100 nm. Furthermore, the electrochemical performances of as-prepared PPy based electrode are investigated in 1.0 M H2SO4, 1.0 M Na2SO4 and 1.0 M KCl electrolytes. It is shown that as-prepared PPy based electrode in 1.0 M H2SO4 electrolyte exhibits poorer cyclic stability although the initial specific capacitance is relatively higher than that in 1.0 M Na2SO4 or 1.0 M KCl electrolyte. The results in this work adequately illustrate that the 3D nanostructured PPy based electrode exhibits different electrochemical performances in different electrolytes.