Introduction

Conductive hydrogels are smart soft materials with self-healing ability, flexibility and electric conduction properties and will be widely used in the area of flexible electronics, soft energy storage devise and tissue engineering (Rong et al. 2018; Turky et al. 2020; Wei et al. 2020), etc. The main idea to develop conducting hydrogels is to incorporate conducting components into a hydrogel matrix, which is usually composed of cross-linking network of hydrophilic polymers. Metallic salts (Rong et al. 2018; Zhang et al. 2019), conducting polymers (Wang et al. 2018a) and carbon nano-materials (An et al. 2019; Uluturk and Alemdar 2019) have all been employed to develop conductive hydrogels. For conductive hydrogels used as strain or stress sensors, conducting components which can easily disperse in aqueous medium, possess high conductivity, and show good compatibility with the hydrogel skeleton are highly desired. Among the numerous conducting components, conducting polymers, including polyaniline (PANI), polypyrrole (PPy) and poly(3,4-ethylenedioxythiophene) (PEDOT), etc. are highly considered since they can be facilely synthesized in the hydrogel matrix, and most importantly, exhibit both the ionic conducting and electronic conducting properties. In recent years, high performance conductive hydrogels based on PANI, PPy and PEDOT have been more and more reported (Chen et al. 2018; Wang et al. 2018b), especially those for strain sensing.

At present, the mostly reported preparation methods for conducting polymer based hydrogels are basically carried out through (1) polymerization of the aniline or pyrrole monomer inside a pre-prepared non-conducting hydrogel matrix, or (2) construct hydrogel network together with the water-soluble polymer solution and a conducting polymer solution or dispersion. In the first way, the pre-prepared hydrogel matrix was soaked in the solution of aniline (or pyrrole) and oxidants such as ammonium persulfate or iron(III) chloride. Since the polymerization takes place simultaneously as the monomer or oxidant diffusing into the hydrogel center, the outer part of the hydrogel will be firstly covered with a layer of the insoluble conducting polymer which in turn inhibits further diffusion of the residual reactants. This method is more applicable to small sized hydrogels and is hard to produce conducting polymers homogenously inside a larger hydrogel samples (Stejskal 2017). Moreover, because the conducting polymer is directly produced inside the hydrogels, dialysis process is usually required to purify the hydrogels in order to remove the byproducts, which is always time-consuming and will lead to swollen of the hydrogels.

As a comparison, the second method seems to be more attractive, since in this case the conducting polymer was incorporated in the form of a solution prior to the formation hydrogel networks, thus a better distribution of the conducting components in the hydrogel network can be achieved. Since PANI and PPy are hardly soluble in water, so PEDOT:PSS solution was more preferred for preparation of conductive hydrogels. For example, Bao et al. used ionic liquid induced gelation of PEDOT:PSS solution and further infiltrate acrylic acid to construct the secondary cross-linking network through radical polymerization (Feig et al. 2018). Rong et al. (2017) obtained anti-freezing hydrogels by co-dissolving PVA and PEDOT:PSS in the mixture of ethylene glycol and water. Nevertheless, the PEDOT:PSS solution is always expensive with a quite low solid content (ca. 1 wt%), which restricts the further improvement of the hydrogel conductivity and their widely application for cheap or single-used flexible electronics. Moreover, for hydrogels in which the conducting components are evenly dispersed in the molecular level, their conductivity is just slightly changed as the hydrogels deforms, i.e., they are usually in-sensitive to the change in strain (Lee et al. 2016), and is not suitable for strain sensors.

Recently, Stejskal et al. (2017) reported a kind of conductive hydrogel formed when the conducting network and hydrogel matrix are simultaneously constructed. This method starts from the dispersion polymerization of aniline in a PVA solution, followed by fast freezing of the reaction mixture. It provides an important direction to incorporate conducting polymer nanostructures evenly into the hydrogel matrix. In early studies, the nanostructures of conducting polymers have been shown to exhibit much more attractive properties than their bulk counterparts (Huang and Kaner 2004; Yang et al. 2005), and the most typical case is polypyrrole. Polypyrrole nanotubes exhibit conductivity nearly two orders of magnitude higher than the conventionally synthesized irregular PPy particles (Li et al. 2017b). Our previous work further manifests the unique roles of sulfonic azo dyes in the morphology control and conductivity improvement of PPy (Li et al. 2020). By finely tuning the synthetic conditions including the type of organic dyes and the polymerization temperature, 1-D PPy nanostructures with conductivity high to 170 S/cm were also reported (Minisy et al. 2020). Most importantly, conducting polymers with one-dimensional morphology are more propitious to form inter-connecting conducting pathways than those isolated nanoparticles or random aggregated molecular strings (Li et al. 2016, 2017a). The highly connecting conducting pathways will probably contribute good electronic conducting properties in hydrogels which are actually a composite system composed of non-conducting matrix and the conducting components. Unfortunately, it is not convenient to directly induce the formation of PPy nanotubes in a hydrogel matrix. Neither the high viscosity of a water-soluble solutions (Li and Jing 2009) nor the elevated temperature usually required for free-radical polymerization of hydrogel matrix polymers is suitable for the formation of conducting polymer nanostructures with high aspect ratio (Minisy et al. 2020). Especially for PPy nanotubes synthesized with sulfonic azo dyes, removal of excess dyes from the hydrogels is quite time-consuming. Therefore, it is highly desired to prepare hydrogels directly from the as-synthesized conductive PPy nanotubes.

In this work, we are trying to prepare conductive hydrogels by employing PPy nanotubes to form the conducting pathways. This idea is proposed based on the fact that well-organized PPy nanotube sponge can be formed during the chemical oxidative polymerization of pyrrole with a much higher reactant concentration. The as-formed porous PPy nanotube sponge can be easily purified through filtration and thus provide naturally conducting framework. By infiltrating water-soluble polymer solutions into the PPy sponge, the hydrogel matrix can be constructed though physical cross-linking or dynamically ionic cross-linking. We believe that this kind of hydrogels in which the electronic conducting pathways are made of 3D network of nanotubes, will display resistance change much more closely dependent on the hydrogel’s geometrical deformation, thus find interesting applications as strain sensor materials.

Experimental

Materials

Pyrrole, polyvinyl alcohol (PVA117, Mw = 145,000), iron(III) chloride hexahydrate and methyl orange (MO) were all purchased from Sigma. Poly (acrylic acid) (PAA, Mw = 240,000, 25 wt%) was purchased from Acros Organics. Citric acid (CA) and hydrochloric acid were purchased from Tianjin Damao Chemical Reagents (Tianjin, China). Pyrrole was vacuum distilled before use and the others were used received.

Synthesis of the PPy nanotube sponge

The PPy nanotube sponge was prepared through the chemical polymerization of pyrrole followed by vacuum filtration. A typical synthetic process was carried out as we reported earlier (Li et al. 2017b), e.g., firstly, dissolve 0.245 g methyl orange (0.75 mmol) into deionized water, into which 1039 μL pyrrole (15 mmol) was added, and the total volume of this mixture solution was mediated to 50 ml; Dissolve 8.109 g iron (III) chloride (0.3 mmol) into deionized water, the total volume of iron (III) chloride solution was also mediated to 50 ml. Secondly, the solution containing pyrrole and MO thus was rapidly mixed with the solution of iron (III) chloride, and the mixture was vigorously shaking for several minutes followed by keeping steady for 24 h. After 24 h of reaction period, the black products became gel-like semi-solid state probably due to the high specific area of PPy nanotubes. Take a certain amount of the semi-solid product mixtures and filtrate it under vacuum, the gel-like products shrink to a sponge and release water containing soluble by-products. Rinse the PPy sponge with 0.2 M hydrochloride acid solution and filtrate again until the filtration solution was colorless and less than 1 mL liquid dropped during 5 min, the PPy sponge was prepared. A piece of the as-prepared PPy sponge is shown in Fig. 1d, the PPy content in the sponge is ca. 6 ± 0.5 wt%.

Fig. 1
figure 1

The gel-like PPy polymerization products (a, b) and PPy sponge (c, d) after vacuum filtration

Construction of hydrogel matrix

PVA solution (12 wt%) in 0.2 M HCl was prepared by dissolving PVA117 into hot water followed by cooled down to room temperature and added the desired amount of concentrated hydrochloric acid. Approximately 2 g of PVA solution and 1 g of the PAA solution (25 wt%) were evenly mixed, into which ca. 2 g of the PPy sponge was put in. The sponge and the mixed solution were put in a closed oven and vacuumed at room temperature with vacuum degree of −0.09–−0.1 MPa for 5–6 min, until the solution was totally absorbed into the PPy sponge. The sponge infiltrated with PVA and PAA solution was filled into a Teflon mold and put in a refrigerator (-18 ℃) for at least five times of frozen and thawing. After that, the de-frosted hydrogel was immersed in to iron (III)/citric acid solution ([Fe3+] = 0.25 M, [Fe3+]/[CA] = 1:2) to induce the cross-linking of PAA with iron (III) ions.

Characterization

The hydrogel was freeze-dried and a thin slice was cut along its cross section direction directly used for morphology examination on a scanning electronic microscope (SEM, Gemini 500). Structure of the freeze-dried PPy-NT/PVA/PAA hydrogel was examined on a Fourier Transform Infrared Spectrometer (Bruker Tensor 27) using ATR mode. Conducting ability of the samples was evaluated using a Keithley 2182 Nanovoltmater and Keithley 6223 current source connected with two graphite rods contacting with each end of the sample. The tensile (10 mm/min) and compression tests (2 mm/min) of the hydrogel were conducted on an electronic universal testing machine (SANS CMT 6503, Shenzhen Sansi, China) by using rectangular hydrogels (7 mm × 60 mm × 2 mm) and cylindrical hydrogels (ϕ10 mm × 10 mm), respectively.

Results and discussion

Formation of the PPy nanotube hydrogels

During pyrrole chemical oxidative polymerization in the presence of sulfonic azo dyes, the high aspect ratio of PPy nanotubes are produced and the multiple non-covalent interactions provide fundamentals for the in-situ formation of 3D polypyrrole skeleton. Both our and the literature results have proved that, for pyrrole polymerization with iron (III) salts as the oxidant and sulfonic azo dyes as the structure directing agents, respectively, highly conducting PPy nanotubes with uniform morphology can be obtained at mild conditions (Kopecka et al. 2014; Li et al. 2017b; Yang et al. 2005). Despite the little differences in their chemical structure or aggregation structures, PPy nanotubes differ oppositely from their irregular particle counterpart in the specific surface area (Li et al. 2017b). As we reported earlier, the specific surface area of PPy nanotubes is almost 8–10 times higher than that of the irregular nanoparticles. Besides, PPy exhibits strong affinity to the sulfonic dyes (Kopecka et al. 2014; Stejskal 2020; Wang et al. 2015). One notable experimental phenomenon is that, when the red-colored MO solution was used for pyrrole polymerization, after 24 h reaction period, the liquid phase almost becomes colorless, indicating MO has been almost totally incorporated into PPy nanotubes. The azo sulfonic dyes were also reported to show strong coordination interactions with metal ions(Chirila et al. 2011). One of our recent works also verified the special interactions between MO and ferric ions (Li et al. 2020). Therefore, under the multiple effects of the high specific surface area of PPy nanotubes, the strong affinity of PPy nanotubes to MO, the coordination interactions between MO and ferric ions, the pyrrole polymerization products become a swollen gel-like bulk block (Fig. 1a) instead of separated precipitates. Some researchers reported that PPy hydrogels were formed after aging of this in-situ formed gel-like products (Dai and Lu 2007; Lu et al. 2014; Pan et al. 2012), whereas the gel-like products are actually fragile.

It is effective to construct strengthened PPy hydrogels by replacing water swollen in the as-formed PPy gel with polymer solutions through filtration. The gel-like polymerization products become a free-standing sponge after vacuum (Fig. 1c, d). Even after several times rinsing with 0.2 M HCl followed by filtration, the sponge structure can still be kept. The apparent density of the as-prepared sponge is ca.18–21 mg/cm3 with water content of 92–95 wt% slightly varied with the vacuum time. The PPy sponge can absorb aqueous polymer solution nearly twice amount of its own weight. This property makes it possible to construct conductive hydrogels based on the purified PPy nanotubes. After infiltration of the PVA and PAA solutions, the sponge becomes flowable and easy to be shaped in a mold. A preliminary PPy hydrogel was formed (Fig. 2) after the infiltrated PPy sponge was repeatedly frozen and de-frosted, due to the crystallization of PVA molecules (Stejskal et al. 2017). After that, the PPy hydrogel was immersed into the mixture solution of iron (III) solution and citric acid, and it was further strengthened by cross-linking the PAA with iron (III) ions (Liu et al. 2019). Thus, hydrogels based on PPy nanotubes with dual cross-linking networks are formed (Fig. 3).

Fig. 2
figure 2

a PPy sponge after infiltrated with PVA and PAA solution; b The preliminary hydrogel after freezing and thawing

Fig. 3
figure 3

Schematic illustration of the network structure inside the PPy hydrogels

Morphology and structure

The nanotube morphology of PPy is well retained inside the hydrogel and becomes a part of the hydrogel framework with the supporting polymers, e.g., PVA and PAA. As shown in Fig. 4a, nanotubes connect to each other forming 3D porous structure, and the non-conducting polymers (the low brightness region which are less conducting) attach closely with the PPy nanotubes. With this kind of structure, it is probable that the electronic conducting pathways will deform along with the hydrogels matrix, in comparison with hydrogels where the conducting components are evenly distributed in the molecular level in the hydrogel medium. The PPy-NT hydrogels are supposed to display a higher sensitivity to the strain signals.

Fig. 4
figure 4

The morphology (a) and structure (b) of a cross-section of the PPy-NT/PVA/PAA hydrogel after freeze-drying

The FTIR spectrum showed the composite structure features of the PPy-NT/PVA/PAA hydrogels (Fig. 4b). The typical peaks belong to PPy (1530 cm−1 and 1450 cm−1) (Dai et al. 2006), PAA and PVA are all clearly shown in the dried samples. For instance, the peaks at 2090 cm−1 and 1697 cm−1 represent the –C=O in PAA, and the peaks around 3380 cm−1 (hydroxyl groups), 2918 cm−1 (–CH2 groups) can be contributed both to PVA and PAA. The peak at 1400 cm−1 indicates the interaction between the carboxyl group and N–H group of pyrrole ring (Ustamehmetoglu et al. 1999).

Mechanical properties

The PPy nanotube hydrogels with dual cross-linking network show good mechanical properties, which are suitable to handle. The tensile strength and compression strength of the PPy/PVA/PAA hydrogels are ca. 54 kPa and 160 kPa, respectively (Fig. 5), which are higher than some of the literature values where pyrrole polymerization take place inside the hydrogel matrix (Chen et al. 2018; Gu et al. 2018) or PPy (PANI) cryogels (Han et al. 2018; Stejskal et al. 2017) As a matter of fact, the water content, the mass ratio of PPy to the matrix polymer and the cross-linking degree of the matrix network all affect the hydrogels’ mechanical strength. Although PPy nanotube hydrogels can be obtained by employing chemical cross-linking or construct dual cross-linking network, in this work, considering the infiltration process, the viscosity of the matrix polymer solution will restrict the increase in the matrix polymer content. The primary PPy nanotube hydrogels formed through freezing–thawing is fragile and can easily collapse during the installation for mechanical testing. After immersion in iron (III)/CA solution for 6 h, the mechanical strength of the hydrogel is significantly improved and can be successfully tested.

Fig. 5
figure 5

Tensile (a) and compression (b) strain–stress curves of the PPy/PVA/PAA hydrogel

Conducting properties

The PPy-NT/PVA/PAA hydrogels are mainly electronic conducting and show fast response to their strain change (Fig. 6). Their conductivity depends on both the PPy content in the whole hydrogel and the relative content of PPy with respect to the non-conducting polymer matrix. In this work, the PPy content inside the hydrogel is ca. 2 wt%, and relative weight of PPy to that of non-conducting polymers (PVA and PAA) is ca. 19%. Under this condition, the hydrogel shows conductivity of 0.02–0.04 S/cm with the swollen medium of 0.2 M HCl. This conductivity value has achieved the medium level and is even higher than most of the literature values (Stejskal 2017). However, it is still not attractive compared with the high conductivity of dried PPy nanotubes (101–102 S/cm), which can be attributed to the low content of PPy with respective to the non-conducting polymer matrix. For instance, Stejskal reported that hydrogels with 2 wt% of PANI showed conductivity up to 0.105 S/cm, where the relative weight of PANI to PVA is about 40% (Stejskal et al. 2017). Moreover, the conductivity of PPy-NT/PVA/PAA hydrogels changed slightly after it was swollen in 1.0 M HCl or 0.2 M HCl, which indicates that PPy-NTs contribute more to the conductivity than the acidic medium. As a comparison, the PVA hydrogels without PPy-NTs merely showed conductivity of ca. 0.003 S/cm after swollen in 1.0 M HCl. The conductivity of the PPy-NT/PVA/PAA hydrogel can be further improved by carefully improving the intrinsic conductivity of PPy nanotubes and adjusting the relative ratio of PPy-NTs to non-conducting polymer matrix, in order to improve the integrity of the 3D electronic conducting pathways. The detailed work is still under progress. Nevertheless, the PPy-NT/PVA/PAA exhibits smart resistance change by responding their deformation during multiple stretching and recover cycles, which indicates they are attractive for strain sensor applications.

Fig. 6
figure 6

Left: Demonstration of the conducting property of PPy-NT/PVA/PAA hydrogels with LED lamps, the back blocks in bottom row are the hydrogel samples. Right: The resistance change in a PPy-NT/PVA/PAA hydrogel during multiple stretching and recover with a strain change of ca. 30–50%

Conclusions

We have developed a facile method to construct conductive hydrogels based on the as-formed PPy nanotubes. This method avoids the time-consuming purification of the pyrrole polymerization products and the inhomogeneous distribution of the conducting polymer inside the hydrogel matrix. The as-formed PPy nanotubes with high specific area and strong affinity to water are susceptive to absorb the water soluble polymers, thus the electronic conducting pathways and the hydrogel matrix networks are well combined. Mechanical property of the infiltrated hydrogels is improved by constructing physical cross-linked (PVA) and chemical cross-linked (PAA/Fe3+) dual networks. Benefited from the high aspect ratio of PPy-NTs, the PPy-NT/PVA/PAA with PPy content of ca.2wt% exhibited the maximum conductivity of 0.04 S/cm in the medium of 0.2 M HCl and showed fast response to the compression strain change. Both the mechanical and conductivity of the PPy-NT/PVA/PAA hydrogels can be improved further, and this kind of facilely prepared hydrogels with dual conducting pathways will play important roles for strain sensing.