1 Introduction

The silver nanoparticles have potential in technological applications due to its interesting properties including catalysis, conductive inks, thick film pastes, and adhesives for various electronic components, in photonics and in photography [13]. The conducting polymers have the excellent hosts for trapping nanoparticles of metals and semiconductors, because of their ability to act as stabilizers or surface capping agents. The nanoparticles embedded or encapsulated in a polymer; the polymer terminates the growth of the particles by controlling the nucleation. For application in opto-electronics and electronics, the control of particle size and their uniform distribution within the polymer is the key to technology. Conducting organic polymers especially doped polyaniline, which have high electrical conductivity with great environmental stability in organic, inorganic, and aqueous medium. The methods of preparation may lead to small differences in physical and chemical properties of the product culminated into the electronic applications such as sensing [4]. However, the synthesis of Ag-PANi nanocomposite via photo-polymerization process has reported for the first time for the electrocatalytical hydrazine oxidation. Hydrazine is an agricultural chemicals (pesticides), blowing agents, pharmaceutical intermediates, photographic developers, treatment of water for corrosion protection, textile dyes, and jet and rocket fuels [5]. Besides these, individuals occupationally exposed to hydrazine in the workplace or from accidental discharges into water, air, and soil, which may also occur during storage, handling, transport, and improper waste disposal [6]. The photolysis of aniline into polyaniline utilizing AgNO3 is an alternate strategy for in situ polymerization of aniline was established. This method has considered more suitable for synthesis of not only nanoparticles but also nanocomposite. The preparations of nanoparticles of silver by photolysis are rather scarce, although a large number of chemical methods have reported. However, the synthesis of silver nanoparticles of desired shape and size with uniform distribution within the matrix remains highly challenging and meaningful.

Polyaniline-AgNPs nanocomposites show enhanced sensing, electrical and catalytic capabilities, as compared with those of pure PANi. Khanna et al. [7] have reported the synthesis of Ag-PANi nanocomposites via in situ photo-redox mechanism by which radiation from UV lamps have used to reduce silver salt in aniline. Kang et al. [8] have prepared nanocomposites by oxidative polymerization of aniline-stabilized Ag colloids by gamma-irradiation. Karim et al. [9] jave synthesized core–shell silver nanocomposites by in situ gamma radiation-induced chemical polymerization method. Du et al. [10] have employed one-pot synthesis method for Ag/polyaniline nanoparticles; whereas Pillalamarri et al. [11] have also used one-pot synthesis method in which composite materials consisting of polyaniline nanofibres decorated with noble-metal (Ag or Au) nanoparticles were synthesized with γ-radiolysis. Zhou et al. [12]. have applied the unsymmetrical square wave current method, and characterized by the combination of an anodic process of aniline monomer polymerization and a cathodic process of metal ionic electrodeposition to produce the PANi silver nanocomposite film.

Although the limitations associated with these methods are very hard to avoid, like sub-micrometre size diameter, risk of contamination and complex process control. To the best of our knowledge, the PANi/silver nanocomposite films for the elctrocatalytic oxidation of hydrazine have not reported until date. The advantage of the present method requires no other template for the reduction of silver salt into AgNPs. In this manuscript, an easy route to a silver/polyaniline nanocomposite powder was prepared using UV lamp at 365 nm wavelength. Silver nitrate has reduced by aniline in an aqueous medium via photolysis to produce PANi, in which silver acts as a catalyst to initiate the polymerization in aqueous medium.

2 Experimental

Aniline, silver nitrate and ethanol were obtained from Merck, India. Aqueous solutions were prepared using deionized water. Aniline stored in dark at low temperature in the concentration of 0.5 M aniline mixed with 0.5 M of silver nitrate in total volume (5.0 mL) of mixture. The assay mixture had irradiated using 365 nm wavelength for 12 h at room temperature in UV chamber. The colour of the solution changes from whitish to blue and then finally it becomes green.The solution kept inrefrigerator at rest for 24 h to complete the polymerization process and then this solution was centrifuged at 5,000 rpm for 30 min. The mass obtained was washed with acetone, ethanol and double distilled water to remove excess of monomer, oligomer. The powdered sample have characterized by several techniques. ITO substrates were cleaned using distilled water with several times and air-dried. The reaction mixture well vortexes and put on the desired area of the substrate. After that, put inside the UV lamp chamber (365 nm) carefully for 12 h. The presence of a green thin PANi film on ITO substrate has observed, suggesting the protonation of the emeraldine base. The AgNPs/PAni film on the ITO electrode washed with buffer solution.

Morphology of nanocomposites are studied by a Scanning electron microscopy (SEM) FEI, model Quanta 200, Netherland. The optical absorption band has measured with UV–Vis spectroscopy (Perkin Elmer model L35, Germany). Photoluminescence spectra of the samples have obtained out using LS 55 Fluorescence spectrophotometer (Perkin Elmer). The excitation wavelength for the PL study of the sample is 330 nm. TGA of the samples have carried out on Pyris 1 TGA instrument at a heating rate of 10 °C per minute in N2 atmosphere over a temperature range of 25–700 °C. FTIR is recorded with a FTIR-NEXUS, NICOLET instrument in the region of 500–4000 cm−1 using KBr pellet. XRD was performed on Rigaku D/max-2200 PC diffractometer operated at 40 kV/20 mA, using Cu Kα1 radiation with wavelength of 1.54 Å in the wide angle region from 20 to 80°. Cyclic voltammetry (CV) and differential pulse voltammetry (DPV) were performed on electrochemistry workstation CHI 660A (Austin, USA). Electrochemical measurements have performed in one-compartment cell containing the ITO modified electrode (geometric area of 1.0 cm2) as working electrode, a platinum auxiliary electrode, and Ag/AgCl sat electrode as reference. DPV experiments have performed at a scan rate of 20 mVs−1 using instrumental conditions of 50 mV pulse amplitude, pulse width of 50 ms and pulse time of 200 ms.

3 Results and Discussions

The excitation of aniline monomer by UV light @ 365 nm is playing role for the polyaniline formation and controlling of silver particle sizes. The speculation to this mechanism is also due to Ag+ ions, which oxidize the aniline monomer and as result reduce it into metal Ag0 and finally PANi and Ag0 particles are formed. Possibly, in another way, the decomposition of NO3− by UV light yields hydroxyl radicals (OH) as oxidizing agent and they are responsible for aniline photopolymerization rather than rather than due to Ag+. Thus, we can propose that NO3− ions are able to promote the polymerization of aniline monomer by UV light. Strongly we can state that the exact mechanism of photopolymerization process are still not fully understand, probably UV light interacts with aniline and silver nitrate to yield PANi and Ag0 due to photo-excitation process.

Figure 1 shows UV–Vis absorption spectrum of polyaniline-silver nanocomposite. The polyaniline-silver nanocomposite displays a blue shift of the absorption bands. It is well established that metal nanoparticles display surface plasmon resonance bands in the UV–Vis region due to the excitation of electrons. An additional absorption band is obtained at around 370 nm for the polyaniline composite and it corresponds to the surface plasmon resonance absorption band of silver nanoparticles indicating that the nanoparticles are existed in the nanocomposite.

Fig. 1
figure 1

Shows UV–Vis absorption spectrum

Figure 2 shows photoluminescence (PL) of standard polyaniline (a) and polyaniline–silver nanocomposite (b). PL spectrums of standard polyaniline (sigma) and polyaniline-silver nanocomposite as prepared are observed and suggested the intensity of PL increases with content of silver nanoparticles. The emission peak is centered at 443 nm. In this investigation exciton wavelength is taken as 330 nm to excite silver nanoparticles may be due to the π* transition of the benzenoid unit of polyaniline.

Fig. 2
figure 2

Photoluminescence (PL) of standard polyaniline and polyaniline-silver nanocomposite

Figure 3 shows the FTIR spectrum of standard polyaniline (a) and polyaniline-silver nanocomposite (b). In corporation of silver nanoparticles in polyaniline matrix leads to small shift of the peaks to the lower wavelengths and also decreases in the intensity of peaks, which indicates that the structural change of polymer occurs. The infrared spectra of the nanocomposite films are similar to the standard PANi, confirming the formation of PANi. There is a shift in the peaks associated with C=C and C=N stretching of the quinoid ring and C–H bending of the benzene ring.

Fig. 3
figure 3

Shows FTRI spectra of standard polyaniline (a) and PANi-AgNPs nanocomposite (b)

Figure 4 shows XRD pattern of standard polyaniline (a), AgNPs (b) and polyaniline-silver nanocomposite (c). The XRD pattern of polyaniline-silver nanocomposite shows characteristic peaks at 2θ = 38, 45, 65, 73, and 77 representing Bragg’s reflections from (111) (200) (220) (311) planes of the face centered cubic lattice phase (JCPDS no-01-1164). Generally, the broadening of peaks in the X-ray diffraction pattern is related to smaller particle size when compared with (b), suggested the smaller AgNPs embedded in polyaniline.

Fig. 4
figure 4

Shows X-ray diffraction pattern of standard PANi (a) 1% AgNPs (b) and PANi-AgNPs nanocomposite (c)

Figure 5 shows the morphology of the polyaniline-silver nanocomposite It indicates that nano-sized PANi possess nanofibers morphology and influence strongly the composite morphology. Since, the silver nanoparticles were synthesized in the polyaniline solution, the nanoparticles embedded into the polyaniline matrix.

Fig. 5
figure 5

Shows SEM image of PANi-AgNPs nanocomposite

Figure 6 shows TGA of standard polyaniline (a) and polyaniline-silver nanocomposite (b) in the temperature range of 25–700 °C. The thermogravimetric analysis indicates better thermal stability of the polyaniline-silver nanocomposite than that of standard polyaniline.

Fig. 6
figure 6

Shows TGA of standard polyaniline (a) and polyaniline-silver nanocomposite (b)

The ITO/PANi/AgNPs electrode was characterized by cyclic voltammetry, using a 0.1 mol L−1 H2SO4 support electrolyte as shown in Fig. 6. The ITO/PANi/AgNPs electrode shows oxidation (0.36 V) and reduction (0.12 V) due to silver nanoparticles. The voltammograms correspond to a reversible system, at low scan rates i. e. 15 mV s−1. Upon varying the scan rate, the charge transfer was diffusion-limited up to 50 mV s−1, and shows linearity (data not shown). Furthermore, the ITO-PANi/AgNPs electrodes were stable, displaying practically the same voltammograms after four cycles in the presence of 0.1 M phosphate buffer, pH 7.0 Fig. 7.

Fig. 7
figure 7

Shows CV of ITO/PANi/AgNPs electrode using a 0.1 mol L−1 H2SO4 support electrolyte

DPV technique have used for determination of hydrazine as shown in Fig. 8. The DPV gave a peak at 0.12 V for hydrazine in 0.1 M PBS (pH 7.0). The plot of the peak current versus concentration of hydrazine was shown in inset of Fig. 8 in the range of 0.0010–0.50 mM. The linear response obtained at low hydrazine concentrations have used to construct a hydrazine sensor.

Fig. 8
figure 8

Shows DPV for determination of hydrazine concentration in the range of 0.0010–0.50 mM and inset shows the plot of peak current versus concentration of hydrazine

4 Conclusions

The synthesis of Ag-PANi nanocomposite by simple route is established in presence of aniline as a starting material. The photolysis is effective in the initial reduction of silver nitrate into AgNPs and then simulataneously act as photocatalyst to oxidize aniline to polyaniline. This nanocomposite is more thermally stable and more crystalline than standard polyaniline. Confirmation of the presence of silver nanoparticles in polyaniline is obtained by UV–Vis, PL, FTIR, XRD, TGA, SEM and CV analysis. The modified electrode are used for the first time to confirm the utility and application of this, towards the electrocatalytic oxidation of hydrazine.