Introduction

The versatile character of Ppy has been the focus of a diverse range of research across the globe. It is known for its thermally viable [1], environmentally stable [2], and biocompatible [3] properties as well as it being a reliable sensor [4]. It has been used as actuators [5], anticorrosive agents [6], enzyme immobilizers, and in biomaterials [7]. Ppy has also been intensively studied as a nanocomposite material with reference to graphene [8], carbon nanotubes, and other metal nanostructures [8]. It has been modified to improve its structural, mechanical, optical, and electrical characteristics. These modifications of Ppy include C/N-alkylation [9, 10], backbone functionalization, co-polymerization, and metal chelation [11]. Ppy can be processed into thin films, powders, wires, and tube-like structures dependent upon application. Every aspect of synthesis, modification, and post-processing proved beneficial to improve its structural, morphological, and behavioral outcomes. Studies showed it to be a good electric and electronic material due to the highest conductivity and dielectric behavior [12, 13]. Recent works with reference to Ppy are highly focused in application for smart plastics, flexible super capacitors, and electrode materials for Li Ions batteries [14, 15].

The versatile nature of Ppy was further enriched by introducing an alkyl spacer between two pyrrole rings which linked their N-termini and converted them into N-functionalized bispyrrolyl moieties. Thus, a new modified form of pyrrole was synthesized and polymerized, in order to highlight the effects of this spacer introduction on the morphology, structure, thermal, and optical behavior. It was further compared with pristine Ppy prepared and analyzed under identical conditions. The newly synthesized material demonstrated uniform bead-like globular structures, which could be excellently exploited for enzyme immobilization, catalytic support, and as gas sensor. It has further demonstrated the enhanced thermal resistance and plasticization character. Finally, its optical properties were investigated using UV-Vis and diffused reflectance spectroscopy, which showed its greater molar absorbance and smaller HOMO-LUMO gap. Thus, this newly synthesized polymer added new scientific data to the horizon of Ppy and paved the way for further exploring new modes of synthesis, functionalization, and processing for different applications such as actuators, anticorrosive agents, electric, and electronic materials.

Experimental

Materials

The materials used are as follows: Pyrrole (BDH Chemicals.99%, UK), NaOH, FeCl3.6H2O (BDH Chemical LTD, UK), NaH (Sigma Aldrich, Germany), 1-5 dibromopentane (Merk, 99.99%, Germany), Conc. HCl, sodium sulfate, THF (analytical solvent, Sigma Aldrich Germany), DMF (analytical solvent, Sigma Aldrich, Germany), n-Hexane (analytic solvent, Lab-Scan, Thailand), methanol (analytic solvent, Sigma Aldrich, Germany), ethanol (98%, Merk, Germany), acetone (analytical reagents, Sigma Aldrich, Germany), and distilled H2O.

Methods

Synthesis of poly[1,5-bis(N-pyrrolyl)pentane (PBNPP) was achieved by synthesizing 1,5-bis (N-pyrrolyl)pentane monomers and subsequently its polymerization. The method is described in two steps, as outlined below.

Synthesis of 1,5-bis(N-pyrrolyl)pentane

1.75 ml (0.01 molar) pyrrole was mixed in 4 ml tetrahydrofuran (THF) and added 0.06 M sodium hydride. It was kept in ice bath for half hour and added 1,5-dibromo pentane (0.005 M). The progress of reaction was monitored by thin layered chromatography (TLC). Reaction was completed within 4 h, and the reaction mixture was poured into cold water, neutralized and extracted in ethyl acetate. The organic layer was further agitated using sodium sulfate (Na2SO4) as a dehydrating agent to completely remove the water. The product separated into the organic layer was concentrated under vacuo. The product was impurity free.

Synthesis of poly[1,5-bis(N-pyrrolyl)pentane] (PBNPP)

The newly synthesized monomer 1,5-bis(N-pyrrolyl)pentane was successfully polymerized in methanol using FeCl3 as oxidizing agent. The obtained monomer “1,5-bis(N-pyrrolyl)pentane” was mixed in 5 ml FeCl3 solution by 1:4 molar ratio for further reaction. The reaction was allowed to proceed for 4 h. TLC was used to monitor the consumption of monomer for the growth of polymer. Finally, the product in form of black powder was filtered and washed several times with distilled water to remove all impurities. It was dried overnight for further characterization.

Under similar conditions, PPy has been prepared for comparative study.

Characterization

Formation of bispyrrolyl and its polymer was characterized by Fourier-transform infrared spectroscopy (FT-IR) (Affinity 1, MIRacle 10, Shimadzu, Japan). Morphology of the synthesized PBNPP and PPy was characterized using SEM (FE-SEM TESCAN MIRA3MU, France). Structural information was obtained using X-ray diffraction (XRD) data using a Bruker D-8 discoverer X-ray diffractometer manufactured in the USA. The source of X-ray was Cu Kα (λ = 1.5408 Å), and the tube voltage and current were 40 kV and 40 mA, respectively. Thermal resistance of polymer was analyzed by thermogravic analysis (TGA) using Q 50 V6.2 BUILD 187; TGA instrument and Tg was measured by DSC Q100 V8.2 BUILD 268, both manufactured in the USA. Optical properties were measured under, Shimadzu 1800, Japan, UV-Vis spectrophotometer. Band gap of as-obtained polymer was analyzed by Perkin Elmer UV-Vis diffused reflectance spectrophotometer lambda 650 instrument, USA.

Results and discussion

The synthesis of 1,5-bis (N-pyrrolyl)pentane and its polymer; poly[1,5-bis(N-pyrrolyl)pentane], designated as BNPP and PBNPP, respectively were characterized by FT-IR, and their spectra were compared with that of pyrrole. There was a simple functional group conversion from cyclic amine to N-alkylated amine as shown in Scheme 1, where two pyrroles loss their H and linked with terminal C. The synthesized monomer “BNPP” was polymerized similar to pyrrole as reported elsewhere [16]. The FT-IR spectra of modified BNPP and PBNPP are shown in Fig. 1a, b. According to Fig. 1a, the disappearance of a band in the region from 3500 to 3100 cm−1 and an appearance of a band at 2926 cm−1 are indicating the replacement of an N–H bond by an N–C(aliphatic) bond [17, 18]. The stretching vibrations appearing at 2926 cm−1 band indicate the CH2 attributed to the incorporation of the n-pentane space [19]. The band at 2850 cm−1 is due to the C–H from the pyrrole ring. The absorption band at 1319 cm−1 is due to C–N stretching. The absorption at 1630 cm−1 is characteristic of pyrrole ring vibrations [20]. These IR bands confirm the synthesis of 1,5-bis[(N-pyrrolyl)pentane] had been successful. The ring and chain bending out of plane are reflected at 775 cm−1 and 721 cm−1, respectively [21]. It further confirmed the presence of pentane spacer in pyrrole moieties. The FT-IR spectrum obtained supported the theory that the conversion of pyrrole into BNPP had been successful.

Scheme 1
scheme 1

Conversion of pyrrole into bis-pyrrolyl pentane

Fig. 1
figure 1

FT-IR spectra of BNPP and PBNPP are given as a and b, respectively

Similarly, Fig. 1b shows the FT-IR spectra for the PBNPP, where all corresponding bands are much broader. The aromatic pyrrole and aliphatic pentane bands were present at 2840 cm−1 and 2910 cm−1 (respectively), which are almost identical to those observed in Fig. 1a. The aromatic ring symmetric and anti-symmetric stretching appeared at 1650 cm−1 and 1540 cm−1 respectively together with a shoulder band spreading from 1340 to 1440 cm−1 which is due to N–C stretching. The CH deformations appeared in the range of 1000 cm−1 to 1100 cm−1. The broader band at 900 cm−1 is due to the out-of-plane bending of the aromatic ring due to varying number of repeat units in as-produced chain length. Finally, the band observed at 780 cm−1 is the characteristic for the polymerization of the pyrrole as reported elsewhere [16, 22].

The morphology of the polymer was compared in Fig. 2a, b. Figure 2a shows the morphology of Ppy, which is exactly as reported by Sahoo et al. and Omastová et al. [23, 24] where Ppy was synthesized under the same conditions. Figure 2b shows the morphology of then PBNPP, prepared under identical conditions. There is a notable change in the morphology of the polymer when converted into PBNPP from Ppy. The introducing of the n-pentane spacer produced well-defined globular form with minimal appearance of the Ppy-like granules. It has also possessed small pores which may make it an important material for adsorption, storing, and sensing of different gasses like NH3, CO, and NO2 [22, 24, 25]. It may also hold potential in the clinical detection of uric acid, urea, and glucose etc. in comparison with Ppy that have been applied for such applications [26]. The as globular structure observed may also possess greater plasticizing behavior which could be used for further modification to make a highly refined membrane for selective exchange.

Fig. 2
figure 2

SEM micrographs of Ppy (a) and PBNPP (b) synthesized using FeCl3 as an oxidizing agent under identical conditions

The structural change produced in converting the Ppy into PBNPP was analyzed using XRD, and the data is shown in Fig. 3. The material which was produced under identical conditions is amorphous, but possesses crystallite of different sizes. Herein, average chain separation is calculated using Eq. 1 [27].

$$ S=5\lambda /8\mathrm{sin}\ \theta $$
(1)
Fig. 3
figure 3

XRD pattern of Ppy and PBNPP, respectively

According to Eq. 1, S is the average chain separation, λ is the X-ray wavelength, and θ is the diffraction angle at the maximum intensity in the graph. The average chain separation of PBNPP and Ppy is found as 2.30 nm and 2.49 nm respectively. Similarly, average crystallite size in the amorphous polymer was found through the Scherrer formula given in Eq. 2 [28].

$$ D=K\ \lambda /\beta \mathrm{COS}\ \theta $$
(2)

where D is crystallite size, θ is the diffraction angle at maximum peak intensity, β is the full width with half maximum in radians, and k is the shape factor with value of 0.89. The average crystallite sizes were deduced for PBNPP and Ppy as 8.4 nm and 14 nm respectively. These values demonstrated that a greater extent of amorphous character was present in the PBNPP as compared to the Ppy. The XRD data supported this notion that the globular morphology is more amorphous as it has been seen in many bead forms of polymer [29].

Thermal stability analysis of the PBNPP from the modified pyrrole monomer is shown in Fig. 4 and is compared with the reported data achieved under identical conditions. The sample was heated from 20 to 650 °C at the rate of 5 °C/min. According to Fig. 4, the polymer weight loss which occurred between 260 and 600 °C was not sharp. It can be postulated that there may be some polymer chains in granular form on the surface of the globular structure, and hence, these would be degraded first. Furthermore, varying chain lengths also produce similar thermograph. According to the study of Cassignol et al. and Sahoo et al., pure Ppy synthesized under similar conditions showed weight loss at 180 °C with no stability in any region observed before complete degradation [23, 30]. Similar results have also been shown elsewhere [22]. The improvement of thermal resistance is attributed to the crosslinking factor, which is expressed in Scheme 2. The crosslinking factor might have developed aromatic π–π stacking to some pyrrole units and hence increased their thermal stability. Therefore, formation of different chain lengths, granular to globular morphology, and π–π stacking effect limited to some pyrrole units have enhanced significant thermal stability which only has been achieved when Ppy modified into PBNPP by introducing the pentane spacer.

Fig. 4
figure 4

Thermal degradation of PBNPP synthesized using FeCl3

Scheme 2
scheme 2

Structure of PBNPP and its crosslinking pattern

The effect of plasticizing temperature on change of morphology of Ppy from granular to globular in PBNPP was investigated using differential scanning calorimetry (DSC) noting their Tg values. The values are recorded at the similar rate give in TGA analysis, i.e., 5 °C/min. The comparative data in plot form is given in Fig. 5. Ppy demonstrated its plasticizing temperature at 135 °C, which is in accordance, based on morphology to many published data as [16]. The Ppy analog PBNPP produced a globular morphology, which is less tightly packed and possesses greater voids. Therefore, it showed greater plasticizing behavior by demonstrating a reduced Tg value, i.e., at 117 °C. This may be further reduced for absolute globular structures and for larger globules. Therefore, study is still open for further exploration to relate plasticizing effect by producing new globular size.

Fig. 5
figure 5

DSC curves of Ppy and PBNPP synthesized under identical conditions

The optical behavior of PBNPP was compared with Ppy, and the data is shown in Fig. 6a, b. PBNPP and Ppy were dispersed in reagent grade ethanol using a sonicator. The stable dispersion was analyzed under UV-Vis spectrophotometer. The dominant shoulder in the case of Ppy is reflected at 400 nm, which is purely benzenoid behavior [31]. PBNPP possessed a λmax at 500 nm, which is quite red shifted. The modification of Ppy into PBNPP did not change the benzenoid configuration, but the red shifting depicts that the pyrrole rings in the PBNPP may have developed π–π stacking resulting in the decreased excitation energy.

Fig. 6
figure 6

UV-Vis absorptions of a PBNPP and b Ppy, respectively

The electronic transitions and band gap, i.e., Eg, is measured using differential reflectance spectroscopy (DRS) and is shown in Fig. 7. The values for Ppy and PBNPP appeared at 643 nm and 654 nm respectively. According to Eq. 3, given below, these can be converted to electron volts (eV) [27].

$$ \mathrm{Eg}=1240/{\lambda}_{\mathrm{excitation}} $$
(3)
Fig. 7
figure 7

DRS behavior and Kubelka-Munk interpretation of PBNPP and its comparison with Ppy is given, respectively

The calculations showed the band gap of Ppy and PBNPP is 1.9 eV and 1.8 eV respectively. Therefore, the newly synthesized polymer is expected to be suitable for use as a semiconducting material.

Conclusions

Modification of pyrrole into 1,5-bis(N-pyrrolyl)pentane resulted in a desirable molecule possessing a preferable morphological appearance in the polymeric form. Such transformation leads to the production of globular form rather than granular. The globular microstructure revealed porosity which ensures high potential for the anchoring of catalysts, enzymes, or other biomolecules of interest. Additionally, it showed improved thermal resistance and plasticizing character as compared to Ppy, which guaranteed the durability. It demonstrated increased optical molar absorption and decreased the band gap for electronic transitions as characterized by UV-visible spectrophotometer and DRS. This property is essential for making it a suitable candidate for photo-electric devices. It possessed reasonable crystallite size which predicated the crystalline transformation by optimizing polymerization conditions. The PBNPP is a new polymer that is widening the application of polypyrroles across multiple sectors. Further studies focusing on application-specific uses will elucidate the full potential of this exciting polymer.