Introduction

Hydrogels, a classic representative of soft materials, have been widely consumed in our daily life (e.g., jellies, paints, cosmetics and so on). Hydrogels can be made electrically conductive by embedding various conducting components (e.g., carbon, conducting polymers, metal nanomaterials) into aqueous gels mainly by physically compositing1,2,3,4,5,6,7 or forming co-networks8,9,10,11,12 for the potential uses in chemical mimicry of neural networks11,13,14, implantable electrochemical biosensors8,15, electro-stimulated drug release7,16,17, etc. However the performances of these conductive hydrogels would be significantly restricted by the limited electrical conductivity resulting from the leaching out of the conducting components while the hydrogel network swells or the existence of non-conductive host matrix to make electron-transferring domains ineluctably discrete18. Thus a few novel conducting hydrogels based on one component conducting polymers (e.g., conducting polymers including polyaniline (Pani), polypyrrole (PPy), polythiophene (PTh), etc.) as the continuous phase (i.e. conducting polymer hydrogels) have been developed19,20,21,22,23,24,25,26. For instance, a Pani hydrogel free of insulating polymers has been synthesized by using phytic acid as both gelator and dopant to directly form a gel network24; an amphiphilic thiophene derivative hydrogel with unusual 2D building blocks has been synthesized in one step via a combination of oxidative coupling polymerization and non-covalent crosslinking25; a PPy nanotube hydrogel with controlled morphology has been synthesized by oxidative polymerization in the presence of dye molecules as templates26. However all the obtained conducting polymer hydrogels show no elastic behaviors (See Supporting Information, Fig. SI1) which were frequently observed from some insulating polymer counterparts27,28,29,30,31,32. On account of inherent rigidity of the conjugated macromolecular chains originated from the delocalized π-electron system along the polymer backbone33, it has been a huge challenge to make these conducting polymer hydrogels elastic by far.

Motivated by the challenges of elastic conducting polymer hydrogel formation, we sought to exploit two-step synthesis, i.e. the fast reaction and the slow reaction procedure in sequence, to prepare polypyrrole (PPy) hydrogels. The fast reaction provides the incipient network with low joint density aimed at restraining the fragility caused by high joint density. The slow reaction procedure strengthens the framework by forming homogenous polymer coatings. The assumption can be realized by several methods, among which the oxidation of pyrrole by deficient oxidant Fe(NO3)3 (Fe3+ and NO3 dominate the fast and slow oxidation procedures respectively), reported by this communication, is a very simple, cheap, repeatable and scalable process to synthesize elastic conductive PPy hydrogels. The resulting PPy hydrogels can be successfully converted into light-weight, elastic, conductive, organic sponges via a convenient supercritical fluid drying process. The work reported here, to the best of our knowledge, is the first report on the synthesis and properties of the elastic conducting polymer hydrogels (and sponges). Our work might also offer much inspiration to make more elastic conducting polymer hydrogels (as well as sponges) directly derived from Pani, PTh, etc.

Results

Syntheses of PPy hydrogel and sponge

The synthetic process for elastic PPy hydrogel is demonstrated in Figure 1A. In a brief procedure, pyrrole (433 μL, 6.26 mmol) was dissolved in 3.0 mL H2O/ethanol (v/v 1:1) mixed solvents to form colorless uniform solution. Then, a deficient amount of Fe(NO3)3·9H2O (2.53 g, 6.26 mmol) dissolved in 3.0 mL H2O/ethanol (v/v 1:1) mixed solvents were added rapidly to the pyrrole solution under vigorous agitation at 0–4°C. (Note that the sufficient amount of ferric nitrate is 7/3 folds of monomer moles for the doped polymer34,35). The mixed solvents allowed both of the monomers and oxidants dissolved easily. The mixture was stirred for 30 seconds before standing and formed gel in several minutes. Finally, the initial gel was grown at 25–30°C for 30 days (i.e. aging process). The resulting PPy hydrogel was solvent-exchanged with ethanol and supercritical CO2 in sequence to obtain the corresponding sponge.

Figure 1
figure 1

Schematic diagrams for the synthetic process and polymerization mechanism of the elastic polypyrrole hydrogel.

(A), The synthetic process of elastic polypyrrole hydrogel. Enlarged sketch maps indicated by squares in A have shown aggregated structural change of the polypyrrole hydrogel building blocks during polymerization. (B), The polymerization mechanism of the polypyrrole hydrogel.

Structural characterization

The structure of the product was measured by Fourier-transform Infrared (FT-IR) (See Fig. SI2) and Raman (See Fig. SI3) detections. FT-IR spectroscopy had confirmed the molecular structure of PPy through distinguishing vibrational band assignments. In comparison with the FT-IR and Raman spectra of PPy oxidized by equimolar amount of Fe(NO3)3 without and with aging process, there are no obvious changes in band positions. It can be inferred that the aging process only concerns about hydrogel network morphological changes resulting in the slow oxidization step instead of the rearrangement of molecular chains. Besides, Infra-red and Raman spectra had also confirmed that the gel framework was made of conventional PPy macromolecules with quite low doping level caused by the deficient oxidation.

Super-elasticity of PPy hydrogel

To our surprise, the obtained PPy hydrogel could be compressed by ≥70% and recovered to its original shape in 30 seconds (Figure 2a–c and Video S1). From the compressive stress σ versus stain ε curves for PPy hydrogels along the loading direction during loading-unloading cycles at ε = 10–70%, compressive stress σ returning to the origin after unloading for each strain ε (Figure 2d). Although we found hysteresis loops in the loading-unloading cycles, indicating dissipation, that did not affect the shape recovery of the obtained hydrogles. This dissipation was negligible at ε = 10%, but steadily increased with ε (Figure 2d). From the comparison of the σ vs. ε curves for multi compress-release circles, the PPy hydrogel could recover their original shape with little mechanical failure under similar compression (Figure 2e). In comparison, the resulting PPy hydrogels without experiencing quite long aging progress (i.e. secondary growth) could not be elastic at all (See Fig. SI4a), just as observed from those conducting polymer hydrogels reported elsewhere19,20,21,22,23,24,25,26. These observations have shown that the secondary growth has played a key role in determining the elasticity of the resulting PPy hydrogel.

Figure 2
figure 2

Elasticity of PPy hydrogel.

(a–c), Macroscopic visualization, showing that PPy hydrogel recovers their original shape after compression ≥70%. (d) σ versus ε curves for PPy hydrogels along the loading direction during loading-unloading cycles at ε = 10–70%. (e) Fatigue resistance of PPy hydrogel at 50% strain for 5 cycles.

To our best knowledge, this is the first successful trial to synthesize super-elastic all conducting polymer hydrogel and sponge. The PPy-G (G stands for Graphene) foam based materials possessing similar compression-recovery properties have been published before36, but there are several considerable differences between the two materials. The biggest one is the contribution of polypyrrole to the material elasticity. In the PPy-G foam, the highly uniform deposition of PPy layers along graphene sheets increase the strength of 3D structure via strong π–π interaction to bear a certain extra force. The source of the elasticity is still graphene sheets. However, for the PPy gels in our system, the superb elasticity comes from 3D PPy network achieved by structural design.

Origin of the super-elasticity

It has been well known that during aging of sol-gel process, two different mechanisms might affect the structure of the traditional gels: transport of materials to the neck region and dissolution of small particles into large ones (Ostwald ripening)37,38. There are lots of differences between aging of sol-gel process and the secondary growth of gelation procedure described here. In our case, it was observed that the monomers were oxidized into polypyrrole as soon as the oxidant was added. The insoluble polypyrrole separated from the solution to form clusters, grow into spherical particles and connect each other to form three-dimensional network through π-π interaction (Figure 3a).

Figure 3
figure 3

SEM detections of PPy hydrogels grown for different times.

SEM images of PPy hydrogels grown for 0 d (a), 1 d (b), 5 d (c), 10 d (d), 20 d (e) and 30 d (f), respectively.

To explore the origin of elasticity for the obtained PPy hydrogel, real time SEM imaging and rheological recording have been done for the fresh-made PPy hydrogel during the secondary growth. After 1 day growth, many micro-protrusions began to appear on the surface of the original particles inhomogeneously (Figure 3b), which indicated that un-reacted monomers have been transferred and oxidatively coupled onto the surfaces of the PPy particles, rather than only in the neck regions between these particles. With the increase of growth time, these micro-protrusions further grew to form branches (Figure 3c). Finally these branches evolved into the ginger-like building blocks and thus jointed together randomly (Figure 3d–f). It has been observed from dynamic rheology that each storage modulus (E’) is always higher that the corresponding loss modulus (E”) and that both E’ and E” have increased with the increase of growth time (See Fig. SI5). These observations have directly reflected further growth of PPy particles during aging process.

Thus far, we can infer that the increasing elasticity of the aged PPy hydrogel may come from the microscopic structural changes during secondary growth: (a) in comparison with the traditional synthesis of PPy, the reaction rate is slowed down strikingly by the deficient oxidant, resulting in the reduced joint density of the incipient network. As a result, the obtained PPy hydrogel exhibits less stiffness. Then, the slow reaction process in the secondary growth reinforces the initial network by coarsening the joints effectively, which avoids the structural fracture when the PPy hydrogel was compressed; (b) the asymmetrically epitaxial growth of the original particle offer many new weak contacting joints. Single-point contact mode for the building blocks of traditional PPy hydrogels under compression is replaced by muti-point contacting or even face-contacting. Taken these two possibilities into consideration, the PPy hydrogel can restrict the irreversible fracture of the hydrogel network when bearing compression.

To explore the reaction essence of the PPy secondary growth, a few comparable experiments have been designed. When sufficient ferric nitrate was used, or when deficient ferric chloride was used, to replace deficient ferric nitrate, the resulting aged PPy hydrogels showed much worse elastic performance (See Fig. SI4b, c). According to these comparisons, we can infer that the whole reaction procedure contains rapid and slow reaction stages as shown in Figure 1B. Rapid reaction stage dominates the incipient gelation of pyrrole, while the slow reaction stage is reflected in the 30 days' second-growth process. In the fast reaction stage, Fe3+ ions oxidize pyrrole to form polypyrrole at first39. With the consumption of Fe3+ ions, the reaction rate slows down. Because of the deficiency of oxidant, there are lots of monomers remaining and the reaction gets into the slow stage40. The oxidation of pyrrole produces H+ ions39 and the generated proton can promote the oxidizability of NO3. Thus, the NO3 ions begin to exhibit the ability to oxidize pyrrole (or oxidize Fe2+ into Fe3+, which can oxidize pyrrole further). In another word, the oxidation with NO3 ions dominate the slow reaction stage.

Novel properties of elastic PPy hydrogel

Excellent elasticity has endowed the resulting PPy hydrogels with some novel properties as shown in Figure 4. First of all, the PPy hydrogel maintained the compressed shape after eliminating the squeezed-out solvents (H2O or CH3CH2OH) and if fed the solvents again the hydrogel recovered their original shape (i.e., shape memory) gradually as shown in Figure 4a–b and Video S2. Considered that solvent molecules could form hydrogen bonds with -NH- groups in PPy chains41, these solvent molecules could act as the glue in our system. When the hydrogel was compressed, many new contacting points were generated and new hydrogen bonds formed at the same time, which could effectively lock the compressed deformation. Providing sufficient solvent, the new formed hydrogen bonds were destroyed by the self-bonding of solvent molecules. Thus, the locked compression deformation was released.

Figure 4
figure 4

Novel properties of the elastic PPy hydrogels.

(a), Illustrated photos showing shape-memory elasticity of the PPy hydrogel. When PPy hydrogels were compressed and the squeezed-out solvent was removed, the PPy hydrogel kept the compressed shape. Given solvent again, PPy hydrogel recovered their shape gradually. (b), The relationship between the relative solvent content and the hydrogel deformation. (c), Schematic illustration on fast functionalizing of the PPy hydrogels with magnetic Fe3O4 nanoparticles. (d), Digital photo and (e), SEM image of the Fe3O4 functionalized PPy hydrogels and digital photos showing fast removal of (f) methyl orange, (g) victoria blue and (h) brilliant yellow from waste water with the elastic PPy hydrogels in syringes.

Secondly, this shape memory elasticity could be used to realize fast functionalization of the PPy hydrogels with various nano-building blocks, e.g., Fe3O4 nanoparticles as shown in Figure 4c–e. When the squeezed-out solvent was removed, the PPy hydrogel remained the compressed shape. Once the Fe3O4 suspension was supplied, they were absorbed into the PPy hydrogel to recover the deformation. In the same time, the PPy/Fe3O4 composite hydrogel has been prepared. The obtained PPy/Fe3O4 composite hydrogel could be magnetic attracted by magnet (Figure 4d). From the SEM image (Figure 4e), we can see that the Fe3O4 nanoparticles with the diameter of around 150 nm were embedded in the network of PPy hydrogel.

Finally, the elastic PPy hydrogel can be also applied to extract dye molecules from the dye solutions in a very fast way. The hydrogels were placed in the tube of a syringe and the plunger was pulled or pushed allowing take in or expel the dye solutions after permeating through the PPy hydrogels. For all three kinds of dye molecules, the colorful dye solutions changed into colorless in several seconds as shown in Figure 4f–i and Video S3 and the hydrogel could be used for many times. For methyl orange (MO), the dye capacity of PPy hydrogel in fast absorption mode is 389.5 mg/g with the adsorption efficiency of 99.99%. Besides, the hydrogel saturated with dye molecules can be refreshed by eluting with 80°C 2 mol/L NaOH aqueous solution (See Supporting information) and the refreshed hydrogel could adsorb MO with the capacity of 196.4 mg/g and the efficiency of 99.89%. The fast and effective dye absorption attributes to the high specific surface area of PPy hydrogel (ca.12 m2/g) and strong π-π interaction between dye molecules and sorbent matrix42,43,44. Meanwhile, the good mechanical properties of PPy hydrogels allow them to bear the dye solutions rushing through rapidly and to be used repeatedly.

Elastic, conductive and polymeric sponges

More importantly, the PPy hydrogel can be readily converted into the light-weight, elastic, conductive and organic sponges as shown in Figure 5 and Video S4. Recently, there has been growing interest in developing conductive sponges by various strategies45,46,47,48,49,50, but none of them can make all-organic sponges with desirable conductivity. However in our case, pure organic, electrically conductive (ca. 0.5 S/m) and light-weight (70 mg/cm3) PPy sponges (Figure 5a) have been conveniently made from the resulting PPy hydrogels via simple supercritical fluid drying process. The obtained sponges have still kept the excellent elasticity after drying of the PPy hydrogels. To better explain the elasticity of the PPy sponge with the compression, SEM images of the PPy sponge under 0% and 50% compression were collected and compared (See Fig. SI6). As we can see (Fig. SI6a–b), the original sponges exhibit many macro pores with the diameter of about 10 μm, which will inhibit the electrical transport. However, these macro pores provide the possibility of compressed sponges to dissipate the external energy by shutting off the pores without breaking the gel framework. As the images of compressed sponges (Fig. SI6c–d) shown, the gel network became more compact and many macro pore disappear. Inevitably, many new contact points are formed and the electrical conductivity of the sponge will be raised. The gel framework of the PPy sponge did not crush by compression and still processed deformation ability. So the sponge can recover the compressive deformation and the electric conductivity will return to the original level when the compressive stress is released.

Figure 5
figure 5

The light-weight, elastic, conductive and organic sponges made from the resulting PPy hydrogels via supercritical fluid drying process.

(a), Digital photos of PPy sponges located on a dandelion and connected to the LED bulb. (b), Schematic illustration of how to prepare a stress sensor used by PPy sponge, copper sheets and metal wires. (c), Change of electrical resistance of the PPy sponge sensor with the compression ratio (the errors bars represent one standard deviation) and (d), change of electrical resistance of the PPy sponge sensor with the compression and release circles at ε = 50%. Inset in d: macroscopic visualization, showing that PPy sponge recovers their original shape after compression.

In order to explore the stress-dependent conductivity of PPy sponge during compression process, the sponge was tried to be made into stress sensors. The PPy sponge was imbedded into two parallel copper electrodes and then two copper wires were connected onto the electrodes (Figure 5b). Then, it was connected into electrical loop to detect the electrical resistance change (ΔR/R0 = (R0–R)/R0, where R0 and R denote the resistance without and with applied stress, respectively) when it was compressed. It can be seen (Figure 5c) that the electrical resistance decreases gradually with the compression strain, changing by 3% when it was compressed up to 80%. The electrical response speed and sponge sensor stability were investigated by alternate supply of compress and release stimulations time after time. It is shown that decrease of the electrical resistance of PPy sponge resulted from the compression strain could be realized within 1.5 seconds and so was the electrical resistance recovery once sponge was released (Figure 5d). Besides, the electrical response of PPy sponge to the external stress input exhibit high stability during compression and release circles (See Fig. SI7). The decrease of electrical resistance of the compressed PPy sponge can be explicated by the more contacting points of the gel network resulting from the compression. Because of the structural elasticity of PPy sponge, the deformation recovers in seconds once the load removed and the newly-built contacts are no longer exist. Thus, the electrical resistance of the released PPy sponge returns to the original value.

Discussion

In this communication we present a very simple, cheap, repeatable and scalable process to synthesize conductive PPy hydrogels according to the following requirements: 1) pyrrole was dissolved in mixed solvents; 2) deficient oxidant was used to polymerizing the monomer and 3) long time (ca. 30 days) second-growth was occurred. The resulting PPy hydrogels have shown extraordinary elasticity with compress strain ≥ 70% and such unexpected elasticity has endowed as-made conducting polymer hydrogels with some novel properties, e.g., simple functionalization with various nanoparticles, fast removal of various dyes from waste water, shape memory effect controlled by alternately adsorbing and desorbing solvents, etc. What's more, the resulting PPy hydrogels can be conveniently converted into organic, light and conductive sponges via supercritical fluid drying process and the resulting sponges show very excellent stress-sensing performance. All of these characteristics of the resulting PPy hydrogels and sponges render them excellent candidates for intelligent materials, environmental engineering, etc.

The smooth going of the exploration in preparing elastic PPy hydrogels and sponges opens up the possibility that the rigid conducting polymers can be processed into elastic porous materials. Stepwise growth procedure in synthesizing conducting polymer hydrogels helps us improve 3D network and strength the framework independently. Furthermore, the combination of different kinds of oxidants has been proved to be an effective way to realize stepwise oxidation. Thus, our work might offer much inspiration to make more elastic conducting polymer hydrogels (as well as sponges) directly derived from Pani, PTh, etc.

Methods

Chemicals

The pyrrole was distilled under reduced pressure before use. All the other chemicals were of analysis grade and used as received. The synthesis procedures on various conducting polymer hydrogels are described as below. If it was not mentioned specially, the obtained hydrogels were purified via solvent exchange process with a large amount of deionized water to remove unreacted monomer and other impurites.

Synthesis of Polypyrrole hydrogel

Oxidized by deficient Fe(NO3)3: The elastic PPy hydrogel was synthesized by mixing pyrrole monomer and equimolar amount of Fe(NO3)3 in H2O/ethanol (v/v 1:1) mixed solution at 0°C and aging at 25–30°C for 30 days. In order to illustrate the contribution of aging procedure, the fresh made hydrogel was compressed and released to probe the hydrogel elasticity.

Oxidized by sufficient Fe(NO3)3 :In order to compare the elasticity of PPy hydrogel synthesized by fast oxidation, the pyrrole was mixed with sufficient Fe(NO3)3 (nFe3+: npyrrole = 2.3:1) in H2O/ethanol (v/v 1:1) mixed solution at 0°C and then placed at room temperature for 2 h to form PPy hydrogel.

Oxidized by deficient FeCl3 :In order to emphasize the dominant effect of NO3 in the slow oxidation step described in our work, PPy hydrogel was synthesized by equimolar amount of FeCl3 in H2O/ethanol (v/v 1:1) mixed solution at 0°C and then placed at room temperature for 30 days to form PPy hydrogel.

Synthesis of various conducting polymer hydrogels for comparison

Pani hydrogel: The chemical oxidative polymerization of aniline is carried out according to the mothod reported by Bao Zhenan et al.24 In a typical synthesis, 0.921 mL (1 mmol) phytic acid (50%, wt/wt in water) and 0.458 mL aniline were dissolved in 2 mL DI water at first. Then 1 mL oxitant solution containing 0.286 g (1.25 mmol) ammonium persulfate aqueous solution was added to that mixture at 4°C with violent agitation. The reaction mixture was placed at room temperature for 24 hours to obtain Pani hydrogels.

PTh derivative hydrogel: PTh derivative hydrogel was prepared according to the procedure reported in our previous study25 by oxidizing sodium 4-(2,3-dihydrothieno[3,4-b] [1,4]dioxin-2-yl) methoxybutane-1 -sulfonate (EDOT-S) monomer with iron(III) chloride (FeCl3) in DI water. In a typical procedure, the prepared EDOT-S monomer (40 mg, 0.12 mmol) dissolved in 0.1 mL deionized water and FeCl3 (392.8 mg, 2.42 mmol) in 0.7 mL DI water were mixed and stirred for ~30 s to ensure complete mixing. Subsequently the reaction proceeded without agitation for 24 h at room temperature. Thus, the PEDOT-S hydrogel was been prepared.

Polypyrrole Nanotube hydrogel: polypyrrole hydrogel synthesized via template of Fe(NO3)3·MO (MO = sodium 4-[4-(dimethylamino) phenyldiazo] phenylsulfonate (CH3)2NC6H4N]NC6H4SO3Na, Methyl orange) as described in literature26. 0.303 g of Fe(NO3)3·9H2O (0.75 mmol) was first added into 10 mL MO aqueous solution with the concentration of 5 mmol/L. Then 0.5 mmol of pyrrole was added. The resulting system was stirred for 2 min and then placed at room temperature for two hous to form PPy hydrogel.

Characterization

The structure of the product was measured by Fourier-transform Infrared (FT-IR) and Raman detections. The PPy hydrogel samples were mashed, washed, filtered and dried under vacuum before measurement. FT-IR spectra were recorded on a Magna-IR 750 spectrometer. The powdered PPy hydrogel samples were milled with potassium bromide (KBr) to form fine powders. The powders were then compressed into a thin pellet for analysis. Raman spectra were recorded on a LavRAM Aramis spectrometer with 50 mW He-Ne laser operating at 632.8 nm with a CCD detector. The powdered PPy hydrogel samples were placed on slides for detection. The morphologies of the obtained PPy hydrogels oxidized by equimolar Fe(NO3)3 were examined by SEM (Hitachi S-4800) with the acceleration voltage of 10 KV. PPy hydrogel samples aging for different time periods were purified in a large amount of deionized water and dried at room temperature under atmospheric pressure. The dried samples for SEM experiments were set on conducting stages and observed with gold coatings. The aging procedure of PPy hydrogel was tracked by dynamic rheological measurements operated on Physica MCR 301 apparatus at 25°C. The storage modulus (G′) and loss modulus (G″) of the hydrogel samples were measured at the angular frequency ranging from 0.1 to 100 rad/s. The compressive stress-strain measurements were performed on the elastic PPy hydrogel by using a BESTE KJ-1065 tensile testing machine at a crosshead speed of 5 mm/min. The conductivity of obtained hydrogels and sponges were measured by testing the electric current of series circuit which contained the tested samples under 1 V input voltage.

Performance tests

The shape-memory property of the elastic PPy hydrogel was demonstrated by setting the hydrogel sample onto the stacked filter papers to absorb the squeezed solvent rapidly when the hydrogels were compressed. Subsequently, the solvent were added dropwise from the top of the squeezed hydrogel. The relationship between the amount of the solvent added and deformation recovery of PPy hydrogel was recorded and the corresponding diagram was made. In order to illustrate that the PPy hydrogels can be easily functionalized by absorbing nanoparticle suspensions, Fe3O4 magnetic nanoparticles (MNPs) were produced according to the literature at first51. Briefly, 1.39 g (0.005 mol) of ferrous sulfate (FeSO4) and 1.24 g (0.005 mol) of sodium thiosulfate (Na2S2O3) was dissolved with 14 mL distilled water in a Teflon-lined stainless autoclave, followed by dropwise addition of 10 mL NaOH (1.0 mol/L) solution to produce a black colloid medium. The autoclave was maintained at 140°C for 12 hours and then allowed to cool to room temperature. The obtained Fe3O4 MNPs, extracted by using a magnet, were washed by a large amount of deionized water. The purified Fe3O4 MNPs were dissolved in deionized water to form suspension, which was added to the compressed PPy hydrogel at last. Methyl orange, Victoria blue and Bright yellow were selected to illustrate the fast absorption of dye molecules with the PPy hydrogel. Three kinds of dye aqueous solutions changed into colorless after passing through purified PPy hydrogel which had been put into the tube of a syringe. Quantitative data of dye removal were collected using a V-660 UV-vis spectrometer (Jasco International Co., Tokyo, Japan). The absorbance spectra of filtered solvent were determined by UV-vis spectroscopy detection and dye concentrations were analyzed by comparing absorption intensity at its absorbance maximum with the standard curves. Methyl orange (MO) was selected as the representative of the dye molecules.

The amount of adsorbed MO was calculated by Eq. (1):

where Qt is the dye capacity in the polypyrrole hydrogel placed in the tube of a syringe (mg/g), C0 is the initial dye concentration in aqueous solution (mg/mL), Ct is the dye concentration in the filtered solution (mg/mL), V is the total volume of dye solution permeated through hydrogel in which the dye can't be detected after filtered (mL) and M is the mass of sorbent used (g).

And the absorption efficiency was calculated by Eq. (2):

The PPy sponge was made by supercritical CO2 drying of the as-made PPy hydrogel. Two parallel copper electrodes were pasted onto the top and bottom surface of PPy sponge by brushing silver conductive epoxy adhesive and then two copper wires were connected onto the electrodes. The electrical resistance of PPy sponge under compression was measured by testing the electric current of series circuit which contained the tested samples under 1 V input voltage. In order to trace the electrical resistance changes during compression, the PPy sponge was compressed from ε = 0% to 90% slowly in 30 seconds. The PPy sponge suffered instant alternate compression and release to investigate the resistance response rate to external stimuli.