Introduction

Polypyrrole (ppy), a conducting polymer, has risen as a multifunctional material since its discovery in the early twentieth century [1] with the current research being focussed on it. It is the preferred choice among conducting polymers due to its ease of synthesis both chemically and electrochemically, appreciable redox electroactivity, good environmental stability, non-toxicity, biocompatibility and low cost [2,3,4,5]. It has wide range of applications in supercapacitors and energy storage devices [6,7,8], biosensors [9,10,11], chemical sensors [12, 13], medical field [14], solar cells [15], catalysis [16] and as an adsorbent for metal ions [17]. Its facile synthesis in both aqueous and non-aqueous solvents with flexibility of pH adjustment that can be acidic or neutral gives the opportunity to synthesize a variety of composites and hybrids with carbonaceous materials such as graphene [7, 8, 18], GQDs [9], carbon nanotubes [15], phthalocyanines [19, 20] and porphyrins [21,22,23,24,25,26]. Porphyrin, a stable macrocycle [27], has been used in diverse fields such as solar cells, photodynamic therapy, catalysis and electrochemical sensors due to its metal coordinating property, π-conjugated structure, unique optical and redox properties. Fan et al. [28] have synthesized zinc(II)-porphyrin derivatives for non-enzymatic H2O2 electrochemical sensing. Paul et al. [22] incorporated 5,10,15,20-tetraphenyl-21H,23H-porphyrin iron(III) chloride into polypyrrole and developed CO sensor. Zhou et al. [26] prepared electrocatalyst for oxygen reduction from nanocomposites of cobalt porphyrin and polypyrrole. Recently, polypyrrole/hemin nanocomposite was synthesized by Hu et al. [21] with applications as a glucose biosensor, in dye removal and photothermal therapy. Buntem et al. [29] used porphyrin with silica for metal ion sensing, whereas Zhang et al. [30] developed ultrasensitive Cu2+ sensors using meso-tetra(4-sulfonatophenyl)porphyrin. On the other hand, the zero-dimensional GQDs with their quantum confinement and edge effects render them with unique electrical and optical properties. Additionally due to their electron-rich sp2 hybridized carbon skeleton, abundant oxygen-containing functional groups and low toxicity, they have gained importance in areas such as electrochemical sensors, photovoltaic devices, catalysis and bioimaging [31,32,33]. Chen et al. [34] prepared GQD-doped polypyrrole for use as counter electrodes in dye sensitized solar cells. Wang et al. [9] used ppy, GQDs and Prussian Blue to make a nanocomposite for electrochemical sensing of l-cysteine. GQDs have also been used in metal ion sensing like in the works reported by Ting et al. [31] and Qian et al. [32] for determination of heavy metal ions including Hg2+ and Cu2+ by the former and Pb2+ by the latter. Metal ion sensors especially for heavy, toxic metal ions are necessary because heavy metal pollution is a growing environmental problem affecting living beings both on land and on water [35, 36]. It is considered a serious threat because these pollutants are highly toxic even at low concentration and are non-biodegradable [37] with allowed values of 3 and 10 ppb for Cd2+ and Pb2+, respectively, as given by the World Health Organization (WHO) [38]. Thus, in this work, it was considered of interest to develop a nanohybrid-containing ppy, TSPP and GQDs based on their above advantages and its characterization, which could be applied in future works for easy and simultaneous electrochemical/optical detection of Cd2+ and Pb2+. The interaction between nitrogen of ppy and metal ions improves its prospects to be used for their detection [39]. Polypyrrole was used in the form of nanofibers which were formed using cetyltrimethylammonium bromide (CTAB) as template, and it was found that morphology had enormous impact on its redox properties as nanofibers provided a higher surface-to-volume ratio as compared to polypyrrole microspheres. An anionic water-soluble porphyrin namely tetrasodium salt of meso-tetra(4-sulfonatophenyl)porphyrin (TSPP) was used which simultaneously doped the PNF through its sulfonate groups and also provided a core for binding of metal ions.

Experimental

Materials and methods

Pyrrole monomer (99%, Spectrochem) was distilled before use, tetrasodium salt of meso-tetra(4-sulfonatophenyl)porphyrin (TSPP) was purchased from Sigma-Aldrich (≥ 98.0%) and other chemicals—cadmium(II) chloride monohydrate, CdCl2.H2O (CDH), lead(II) acetate trihydrate, Pb(CH3COO)2.3H2O (CDH), copper(II) acetate monohydrate, Cu(CH3COO)2.H2O (Fisher Scientific), zinc(II) acetate dihydrate, Zn(CH3COO)2.2H2O (CDH), nickel(II) chloride hexahydrate, NiCl2.6H2O (S.D. Fine Chem. Limited), ammonium persulfate, (NH4)2S2O8 (APS) (CDH), sodium hydroxide, NaOH (Fisher Scientific), citric acid anhydrous (CA) (Merck), sodium acetate trihydrate, CH3COONa.3H2O (Fisher Scientific), acetic acid glacial, CH3COOH (SRL), cetyltrimethylammonium bromide (CTAB, Spectrochem), potassium ferrocyanide, K4Fe(CN)6.3H2O (CDH), potassium ferricyanide, K3Fe(CN)6 (SRL)—were of AR grade and used as such. Nafion D-520 dispersion (5% w/w in water and 1-propanol, Alfa Aesar) and absolute ethanol C2H5OH were also used without any further purification. Deionized water with resistivity of 18.2 MΩ cm at 25 °C was used for all experiments. 10 mM stock solutions of Cd2+ and Pb2+ was used for making further dilutions.

Preparation of polypyrrole nanofibers (PNF)

PNF were prepared according to an earlier reported method [40]. A homogeneous aqueous solution of the cationic surfactant CTAB (30 ml, 0.01 M) was prepared by stirring the surfactant in water. Pyrrole monomer (0.03 M) was added to it and was vigorously stirred for 10 min so that the pyrrole molecules could arrange themselves inside the hydrophobic cavity of the surfactant micelles. It was cooled to around 5–8 °C in an ice bath. Thereafter, a pre-cooled solution of APS (0.14 M, 6.5 mL) was added to it drop-wise along with vigorous stirring. It generated a white precipitate on account of formation of the persulfate salt of the cationic surfactant that acted as the oxidizing template. A gradual color change to black was observed with progress in the polymerization of pyrrole. After that, the reaction mixture was kept undisturbed at 0 °C for 24 h which was later centrifuged to separate the solid product (PNF). It was washed with deionized water and ethanol to remove any remaining surfactant and unreacted reactants. The collected PNF were dried in oven at 60 °C overnight.

Preparation of graphene quantum dots (GQDs)

Blue luminescent GQDs were prepared by a similar procedure as reported earlier [41] in which citric acid was directly pyrolyzed. 2 g of citric acid (anhydrous) was taken in a 50-mL beaker and heated at 200–220 °C in an oil bath for 30 min. After 4 min of heating, the white powder completely melted with a gradual color change from colorless to light yellow and finally orange indicating the formation of GQDs. The viscous orange liquid was added drop-wise to NaOH aqueous solution (0.25 M, 50 mL) with vigorous stirring resulting in a golden yellow-colored solution with pH 5. It was neutralized to pH 7 with further addition of NaOH solution and stored at 0–4 °C. It was also observed that the obtained aqueous solution when viewed under UV light showed blue luminescence. Digital photographs for the above steps are given in Fig. S1.

Preparation of meso-tetra(4-sulfonatophenyl)porphyrin-doped polypyrrole nanofibers with GQDs (PTG)

PTG nanohybrid was prepared in situ during the preparation of PNF. After the addition of pyrrole monomer (0.03 M) in 30 mL of homogeneous solution of CTAB (0.01 M) and vigorous stirring of 10 min, TSPP (1 mM) was added which changed the color of the solution to reddish purple from colorless. Subsequently, GQDs solution was injected (3:1 v/v with respect to pyrrole) into it with a 10-min interval between the additions. The reaction mixture was cooled to 5–8 °C followed by drop-wise addition of pre-cooled solution of APS (0.14 M, 6.5 mL). The color of the reaction mixture changed to a bright green color which gradually changed to black with hints of green. The reaction mixture was kept undisturbed at 0 °C for 24 h after which it was centrifuged and washed with deionized water and ethanol. The collected product was dried in oven at 60 °C overnight.

Electrode preparation and electrochemical measurements

The construction of PNF and PTG electrodes was performed as follows: 20 μL of the uniform suspension made by ultrasonicating a mixture of the sample (5 mg), Nafion (5 μL) and isopropanol was drop-casted on a 1 cm × 3 cm ITO electrode. The ITO electrode prior to use was ultrasonically cleaned in a stepwise manner, first in soap solution, then in deionized water and finally with acetone. Electrochemical measurements were done by cyclic voltammetry and differential pulse voltammetry (DPV) in a three-electrode cell assembly powered by a potentiostat (CorrTest two channel electrochemical workstation) using ITO, PNF and PTG electrodes, Ag/AgCl (3 M KCl) and platinum wire as the working, reference and counter electrodes, respectively. The electrolyte used was 1 mM Fe(CN) 4−/3−6 (aq) with 0.1 M KCl as the supporting electrolyte and acetic acid–sodium acetate buffer (HAc-NaAc, pH 5) for different experiments. The simultaneous detection of Cd2+ and Pb2+ (6 μM) was checked by DPV in HAc-NaAc buffer (pH 5) at a potential window of − 1.0 to − 0.3 V, pulse amplitude of 0.050 V with increment potential of 0.004 V, pulse width of 0.03 s and pulse period of 0.2 s.

Characterization

The morphological studies of PNF and PTG were carried out using scanning electron microscopy (SEM) on SEM ZEISS EVO18 at a voltage of 20 kV and high-resolution transmission electron microscopy (HRTEM) on FEI Tecnai G2 F30 at 300 kV. FT-IR spectra were recorded using Shimadzu IRAffinity-1S in KBr pellet mode with 45 scans at a resolution of 4 cm−1 from 4000 to 400 cm−1. UV–Vis spectra were obtained on a Hitachi U-2900 UV–visible spectrophotometer in water. X-ray diffraction (XRD) was carried on a Rigaku Ultima IV X-ray diffractometer with Cu Kα radiation (λ = 1.541 Å) at an operating voltage and current of 40 kV and 30 mA, respectively. X-ray photoelectron spectroscopy (XPS) was performed using Al Kα (1486.71 eV) X-ray radiation. Electrical conductivity was measured by four-probe method using Keithley 2450.

Results and discussions

Formation mechanism of PNF and PTG

Polypyrrole nanofibers (PNF) were prepared using an oxidative template comprising of cationic surfactant, CTAB and APS [40]; as without it, literature studies have shown the formation of polypyrrole mostly in the form of spheres [42, 43]. CTAB aqueous solution which was taken at a higher concentration than its cmc (0.91 mM) [44] formed micelles in solution with hydrophobic alkyl chains in the interior and polar head groups in contact with the surrounding water molecules. With the addition of pyrrole, an organic liquid, it arranged itself in the interior cavity of the micelles on account of the hydrophobic effect. APS was added then, which resulted in the formation of a white precipitate of (CTA)2S2O8. The S2O8 2− ions led to the formation of lamellar ionic micelles acting as a binding force between the lamellae. With the progress in polymerization by (CTA)2S2O8, the oxidative template, lamellar polypyrrole was prepared, but the degradation of persulfate ions led to the weakening and disappearance of bonding between the lamellae causing an increase in the surface/interface energy. In order to lower this energy, the lamellae curled and rolled [45] leading to the formation of PNF. PTG was formed by the addition of TSPP and GQDs into the surfactant solution along with pyrrole. When TSPP, an anionic porphyrin, was added to the CTAB aqueous solution, the color of the reaction mixture turned to a reddish purple color signifying it to be present in the non-aggregated monomer form inside the micelles or dissolution of TSPP took place in the micelles. This phenomenon occurred as [CTAB] was well above its critical micellar concentration (cmc). Subsequent addition of APS brought about a color change to bright green which generally occurs when porphyrin is present in the form of lamellar J-aggregates at a low pH, but here it was mildly acidic (pH ~ 5–6); hence, this aggregation was assumed to occur in the form of π–π interactions, H-bonding and electrostatic interactions with GQDs and PNF. Based on the above mechanism, a schematic illustration for the preparation of PTG is displayed in Fig. 1.

Figure 1
figure 1

Schematic illustration of the process for preparation of PTG nanohybrid

Analysis by FT-IR, UV–Vis spectroscopy and X-ray diffraction (XRD)

Chemical structure of PNF and PTG was determined by FT-IR spectroscopy. Figure 2 shows the FT-IR spectra of PNF and PTG. FT-IR spectrum of PNF depicted all the characteristic peaks of polypyrrole as reported in the literature [40, 46]. The medium broadband at 3500–3000 cm−1 was ascribed to N–H and aromatic C–H stretching vibrations. The peaks observed at 1548 and 1479 cm−1 were assigned to antisymmetric and symmetric ring stretching modes of polypyrrole, respectively. Peaks at 1313 and 1043 cm−1 were attributed to C–N stretching and C–H in-plane deformation vibration denoting 2,5-disubstituted pyrrole, respectively. Furthermore, the two strong peaks observed at 1192 and 914 cm−1 represented the doping state of ppy. The bands observed at 964 and 786 cm−1 established the formation of polymerized pyrrole corresponding to C–C and C–H out-of-plane ring deformation, respectively. In the FT-IR spectrum of PTG, all the constituents—GQDs, TSPP and PNF—were clearly recognized suggesting the successful formation of the hybrid and doping of PNF by GQDs and \({\text{SO}_{3}^-}\) groups of TSPP. However, compared to PNF, the majority of characteristic peaks showed an upward shift to high wavenumbers viz. 1556 cm−1 (1548 cm−1), 1485 cm−1 (1479 cm−1), 1317 cm−1 (1313 cm−1), 1049 cm−1 (1043 cm−1), 966 cm−1 (964 cm−1) and 923 cm−1 (914 cm−1) as a consequence of homogeneous effect of TSPP and GQDs on PNF. Hydroxyl and carboxyl groups of GQDs were present at 3122 and 1712 cm−1, respectively, while TSPP’s presence was verified by N–H stretching vibration at 3471 cm−1, a shoulder at 1643 cm−1 for aromatic C=C stretching, peaks at 1188 and 1112 cm−1 assigned to νasymm \(({\text{SO}_{3}^-})\) and νsymm \(({\text{SO}_{3}^-})\) vibrations [47, 48], weak peaks at 800 and 734 cm−1 ascribed to C−H out-of-plane bending vibration for 1,4-disubstituted phenyl ring and S–O stretching vibration, respectively [49]. It was concluded from FT-IR examination that the phenyl and \({\text{SO}_{3}^-}\) groups of TSPP were involved in hybrid formation due to the presence of a shoulder at 1643 cm−1 assigned to aromatic C=C stretching which was observed as a strong peak in TSPP (Fig. S2) at 1641 cm−1 indicating π–π interaction between TSPP, pyrrole rings in PNF and GQDs planes. Also, porphyrin ring stretching modes of C α –C β , C β –C β , C α –C m (m-mesocarbon) at 1550 and 1469 cm−1 [50] were absent that implied conformational change in the porphyrin ring due to interaction of mesosubstituents with other constituents. Besides, the peaks for νasymm \(({\text{SO}_{3}^-})\) and νsymm \(({\text{SO}_{3}^-})\) vibrations weakened and shifted to lower wavenumbers as compared to original TSPP (1193 and 1124 cm−1) suggesting the involvement of sulfonate group in electrostatic interaction with polypyrrole backbone. Furthermore, peaks at 800 and 734 cm−1 ascribed to C–H out-of-plane bending vibration for 1,4-disubstituted phenyl ring and S–O stretching vibration, respectively, appeared as weak peaks and shifted to lower wavenumbers when compared with TSPP (804 and 738 cm−1). Another striking observation was the absence of a strong peak at 636 cm−1 which was present in TSPP depicting C–S stretching vibration. All these corroborated the fact that phenyl and \({\text{SO}_{3}^-}\) groups of TSPP were involved in hybrid formation. The FT-IR spectrum for GQDs is given in Fig. S3.

Figure 2
figure 2

FT-IR spectra of a PNF and b PTG, where symbols s, m, w, sh and br correspond to strong, medium, weak, shoulder and broad, respectively

The UV–Vis absorption spectra of PNF and PTG are shown in Fig. 3. PNF (Fig. 3a) depicted the characteristic absorption spectrum for ppy. The absorption band at about 430 nm was ascribed to the π → π* transition of ppy chains and the broadband beyond 600 nm extending toward the near infrared region was due to the transitions from valence band to polaron/bipolaron/antibonding bipolaron band signifying doped PNF which was consistent with earlier reported works [51, 52]. PTG (Fig. 3b) showed three prominent peaks at 424, 489 and 707 nm. The Soret band of TSPP bathochromically shifted and also showed hypochromicity with the emergence of new bands at 489 and 707-nm vis-à-vis TSPP (Fig. S4) [53] signaling the association of porphyrin monomers with GQDs and oxidized PNF. Literature studies revealed that these peaks corresponded to the formation of J-aggregates of TSPP under strong acidic conditions [47, 53, 54], but in the present work the conditions were only slightly acidic with pH ~ 5–6; hence, it was concluded that TSPP was involved in π–π interactions with GQDs and PNF and also electrostatic interactions with positively charged PNF backbone through \({\text{SO}_{3}^-}\) groups resulting in a similar effect as J-aggregation. Thus, PTG nanohybrid was successfully formed as also observed in FT-IR results. The UV–Vis spectrum of GQDs is presented in Fig. S5.

Figure 3
figure 3

UV–Vis spectra of a PNF and b PTG

XRD pattern of PNF (Fig. 4a) showed a broad amorphous peak centered at 2θ = 23.6o with d-spacing of 3.77 Å attributed to the scattering from polypyrrole chains in PNF at interplanar distance as reported in the literature [55,56,57]. PTG (Fig. 4b) depicted a similar diffractogram to that of PNF with the broad peak centered at 2θ = 23.5o with increased intensity denoting that no extra crystalline phase has been formed in the hybrid with uniform distribution of TSPP and GQDs.

Figure 4
figure 4

X-ray diffractograms of a PNF and b PTG

Morphological studies by SEM and HRTEM

SEM micrographs of PNF (Fig. 5a) represented noodle-like morphology. The diameters of the nanofibers formed were in the range of 29–57 nm. The surface morphology of PTG (Fig. 5b) also showed fibrous structure with the constituents, viz. TSPP and GQDs covering and aggregating on the nanofibers. HRTEM image of PTG (Fig. 5c, d) gave a clearer description about the hybrid formation with the PNF being intercalated by TSPP and GQDs nanosheets. These results further endorsed earlier results of FT-IR and UV–Vis spectroscopy that PNF, TSPP and GQDs successfully formed the hybrid by interacting with each other through π–π and electrostatic interactions.

Figure 5
figure 5

SEM (a, b) and HRTEM (c, d) micrographs of (a) PNF and (b, c, d) PTG

X-ray photoelectron spectroscopy (XPS) analysis

Chemical composition of PTG was determined by X-ray photoelectron spectroscopy (XPS). The survey spectrum (Fig. 6a) showed the presence of C, N, O and S elements with peaks corresponding to C 1s, N 1s, O 1s and S 2p at their characteristic binding energies [58]. C 1s, N 1s and O 1s peaks were also studied by their respective high-resolution spectra (Fig. 6b, c, d). The N 1 s peak was deconvoluted into four components representing –NH– in pyrrole, polaron (C–N+), bipolaron (C=N+) and C=N at ~ 399, ~ 400, ~ 402 and ~ 398 eV, respectively. The deconvolution of C 1 s peak resulted in five components attributed to C α and C β of ppy at ~ 284.6 and ~ 283.9 eV, respectively, C–O/C–N, C=O/C=N, O–C=O/N–C=O at around 286, 287.4 and 290 eV, respectively. The high-resolution spectrum of O 1 s peak is depicted to be made up of three components, viz. C–O, C=O and \({\text{SO}_{3}^-}\) at about 531.5, 533.3 and 530.3 eV, respectively. The S 2p peak at ~ 167 eV in the survey spectrum denoted sulfonic acid group of TSPP [59]. Thus, it was demonstrated that TSPP and GQDs had inserted between PNF and the results were consistent with FT-IR study.

Figure 6
figure 6

XPS spectrum of PTG: a survey scan, b high-resolution and deconvoluted N 1s spectrum, c high-resolution and deconvoluted C 1s spectrum and d high-resolution and deconvoluted O 1s spectrum

Electrochemical behavior of PNF and PTG electrodes

The cyclic voltammograms (CVs) of bare ITO, PNF and PTG electrodes (Fig. 7) were recorded in 1 mM Fe(CN) 4−/3−6 (aq) with 0.1 M KCl as the supporting electrolyte over a potential window of − 1.0 to + 1.0 V at a scan rate of 0.010 V s−1. All the CVs showed distinct oxidation and reduction peaks corresponding to Fe(CN) 4−/3−6 redox couple. The curves had been identified to represent a quasi-reversible electrode reaction with the peak potential difference (ΔEp) and ratio of anodic to cathodic peak current (I pa/I pc) as 90 mV, 1.02 for bare ITO; 110 mV, 1.50 for PNF and 130 mV, 1.60 for PTG electrode. The PNF electrode displayed an enhanced current as compared to bare ITO confirming the successful modification and deposition by a matrix with better conductivity, charge transfer rate and large surface area due to the nanosized effect of PNF. Furthermore, the PTG electrode depicted even better Faradaic redox response than PNF electrode with twofold increase in current, owing to the presence of GQDs and TSPP providing improved electron transport channels. The synergistic structural organization of PNF, GQDs and TSPP in the hybrid also made this achievable.

Figure 7
figure 7

Cyclic voltammograms of 1 PTG, 2 bare ITO and 3 PNF electrodes in 1 mM Fe(CN) 4−/3−6 (aq) and 0.1 M KCl as the supporting electrolyte over a potential window of − 1.0 to + 1.0 V at a scan rate of 0.010 V s−1

Moreover, the knowledge about the electron transfer mechanism was obtained by plotting a graph between peak current vs square root of scan rate (Fig. 8a) by recording the cyclic voltammograms of bare ITO (Fig. 8b), PNF (Fig. 8c) and PTG (Fig. 8d) electrodes at different scan rates. It was found that it varied in a linear manner, thus obeying Randles–Sevcik equation as given in Eq. 1, and a diffusion-controlled reaction was inferred. It was then employed to estimate the electroactive surface area of PNF and PTG electrodes utilizing the slope calculated from the graphs [60].

$$ i_{p } = \left( {2.687 \times 10^{5} } \right)n^{3/2} \nu^{1/2} D^{1/2} AC $$
(1)

where i p  = peak current, n = number of electrons in the redox reaction, ν = scan rate (V s−1), D = diffusion coefficient (5.7 × 10−6 cm2 s−1), A = surface area (cm2) and C = concentration of analyte (mol cm−3). The electroactive surface area of bare ITO, PNF and PTG electrodes was 2.74, 3.83 and 7.75 cm2, respectively. The increase in area proved the modification of ITO electrode by better conductive materials. The electrical conductivity of PNF and PTG was measured by four-probe method and was determined to be 2.75 and 3.15 mS cm−1.

Figure 8
figure 8

a Plot of peak current and square root of scan rate for (filled square, filled circle) bare ITO, (filled triangle, filled down pointing triangle) PNF and (filled diamond suit, filled left pointing triangle) PTG electrodes and cyclic voltammograms of b bare ITO electrode c PNF electrode and d PTG electrode at different scan rates varying from 0.010 to 0.100 V s−1 in 1 mM Fe(CN) 4−/3−6 and 0.1 M KCl as the supporting electrolyte over a potential window of − 1.0 to + 1.0 V

Detection of Cd2+ and Pb2+ by UV–Vis spectroscopy and DPV

The response of PTG as a sensor for Cd2+ and Pb2+ was initially determined by UV–Vis spectroscopy. A dilute dispersion of PTG (20 mL) prepared in deionized water was mixed with 200 nM of Cd2+ and Pb2+ individually and kept undisturbed for 24 h. The UV–Vis spectra for PTG before and after addition of target analyte metal ions are displayed in Fig. 9. The Soret band at 424 nm of PTG (Fig. 9a) experienced strong hypochromicity along with suppression of the other two peaks at 489 and 707 nm with Cd2+ (Fig. 9b). Similarly in Fig. 9c in the case of Pb2+ the peaks suffered hypochromicity and were also bathochromically shifted. The significant spectral changes indicated coordination of metal ions with the hybrid and causing a change in the electronic environment, hence establishing its ability for detecting Cd2+ and Pb2+.

Figure 9
figure 9

UV–Vis response of PTG toward Cd2+ and Pb2+ a before addition and b, c after addition

PTG electrode was used to check its applicability for simultaneous detection of Cd2+ and Pb2+ (6 μM) by DPV technique in 0.1 M HAc-NaAc buffer (pH 5). The effect of pH was studied in the range 4.0–6.0. The dependence of DPV peak current on pH was observed with the maximum current being obtained at pH 5. The current decreased for 5 > pH > 5 which was attributed to the protonation of a few binding sites for metal cations in the hybrid and lesser availability of metal cations due to their chemical speciation reaction resulting in the formation of hydroxides in the latter condition. The voltammogram (Fig. 10) clearly depicted the presence of two anodic peaks at − 0.67 and − 0.48 V for Cd2+ and Pb2+, respectively, thus demonstrating simultaneous detection. Interference studies were also investigated with tenfold addition of Ni2+, Zn2+ and Cu2+ with respect to Cd2+ and Pb2+, whereby it was noticed that Ni2+ presented no interference. However, Zn2+ and Cu2+ slightly interfered with Pb2+ and the peak current moderately increased.

Figure 10
figure 10

Differential pulse voltammogram for simultaneous detection of Cd2+ and Pb2+ (6 μM) in HAc-NaAc buffer (pH 5) at a potential window of − 1.0 to − 0.3 V, pulse amplitude of 0.050 V with increment potential of 0.004 V, pulse width of 0.03 s and pulse period of 0.2 s

Conclusions

The aim of the work to prepare the nanohybrid utilizing polypyrrole, TSPP and GQDs was successfully achieved which was confirmed by various analytical techniques such as FT-IR and XPS. Cyclic voltammetry analysis revealed that the nanosized form of polypyrrole in the form of nanofibers greatly enhanced the electrochemical response which further increased on incorporation of GQDs and TSPP, thus providing better channel for electron transfer. HRTEM investigation of PTG showed PNF being intercalated by TSPP and GQDs nanosheets. UV–Vis spectroscopy showed that the hybrid was able to interact strongly with Cd2+ and Pb2+ which was also checked electrochemically by DPV. Overall, it presented an easy and cost-effective method which could be explored for detection of Cd2+ and Pb2+.