1 Introduction

Organic–inorganic polymer composites attracted much attention owing to the opportunity to achieve desirable physical and chemical characteristics that cover extensive applications in wide sectors for future technologies (Sadek et al. 2021).

PVC is one of the most significant thermoplastic polymers and has wide industrial, agricultural, and medical applications due to its low cost (Mallakpour and Sadaty 2016). Unfortunately, PVC has poor UV stability, which limits its application range (Wang et al. 2022).

The physical properties of different polymers or blended polymers can be improved as long as they are loaded with a suitable dopant. For example, the electrical conductivity of PVC was increased as it was doped with nano ZnO, Fe2O3 or TiO2 (Sadek et al. 2021). Doping PVC with nano ZnTe induced a novel optical feature. Also, its electrical resistivity decreased as the amount of nano ZnTe increased (El-Hachemi et al. 2021a). The photocatalytic investigations reveal the good potential of PVC/nano cadmium sulfide films for MB degradation under UV light irradiation (Rouabah et al. 2021). The adapted thin films of PVC with organosilicon have many uses such as optical stability in electronic applications, low fabrication cost, non-flammability, high heat borne, coating the inner lining of the rocket engine, and heat shielding material (Abed et al. 2022).

PANI is one of the most promising conducting polymers that has redox activity and non-linear optical features. The conductivity of PANI can be adjusted based on its oxidation states and mode of conductivity (Mohamed and Heiba 2017). Higher PANI loading increased the electrical conductivity of the Poly (Ethylene Oxide)/Poly (Vinyl Chloride)/PANI film until the percolation threshold was reached at 10 wt% (Yazid et al. 2017). The polyvinyl alcohol/x wt% PANI blend with 0.25 wt% of PANI revealed the optimal DC conductivity (El-naggar et al. 2023a). The ease way of formation of bismuth vanadate/grapheme oxide/PANI and its excellent performance, could be a promising, competitive and safe visible-light driven photocatalyst in the field of environmental remediation (Biswas et al. 2020). The smart multifunctional devices can be fabricated based on PANI protonated with camphor sulfonic acid—polyethylene oxide doped with nano gallium nitride (Ahmad et al. 2023). The optical features of polyvinyl alcohol (PVA) polymer can be adjusted by adding PANI and nano silver to it (Abdelhamied et al. 2020). The tri-layer polystyrene/PANI/CeO2 hybrids shown can be applied in photodegradation towards wastewater containing organic dyes (Chen et al. 2022). The electrical and mechanical characteristics of PVC were enhanced as it was doped with graphene and carbon nanotubes (Taha et al. 2019). Sharma et al. demonstrated that the characteristics of PANI started dominating in PVC/PANI matrix as its amount reached 40 wt%, while minor variations were noticed up to 20 wt% PANI (Sharma et al. 2021). Increasing the content of MWCNTs in the PVC nanocomposite enhanced its thermal stability, dielectric constant and AC conductivity (Abdel-Fattah et al. 2019).

Tin disulfide (SnS2) has a semiconductor nature, and it can transfer into the intermediate band gap semiconductor materials as it is doped with Fe or V that enables it to absorb more sunlight energy (El-naggar et al. 2022a). Energy harvesting technologies based on polyvinylidene fluoride' s (PVDF) piezoelectric properties can greatly benefit from the addition of SnS2 to the PVDF matrix (Harshvardhan and Singh 2023). The linear and nonlinear optical properties of PVA/PVP blend were improved as it was loaded with different amounts of nano SnS2/Fe (El-naggar et al. 2022a). Upon doping a polyvinyl alcohol (PVA)/polyvinyl pyrrolidone (PVP) blend with nano Sn0.75M0.25S2, (M = Y, Fe, Cr, V) the refractive index value changed in the order Sn0.75Cr0.25S2 > Sn0.75Fe0.25S2 > SnS2 > Sn0.75V0.25S2 > Sn0.75Y0.25S2 > undoped blend at 600 nm. Sn0.75Cr0.25S2/PVA/PVP blend has the highest dielectric constant. The optical conductivity was improved for all PVA/PVP/ Sn0.75M0.25S2 blends (Harshvardhan and Singh 2023).

Different procedures were developed to fabricate UV protective materials to reduce the UV irradiation from sun exposure or any other sources to avoid its destructive effects on human health and environment (Wang et al. 2022). Some materials display outstanding UV blocking capability by combining with polymers. For example, the highly dispersed ZnO nanoparticles in PVC films showed UV shielding ability and greatly reduced photocatalytic efficiency (Wang et al. 2022).

In this work, we study the effect of the combination of nano Sn0.9Fe0.1S2 and PANI doping on the structural, morphological, optical, fluorescence and dc conductivity of PVC polymer properties. The possible applications of the formed materials in different fields such as protective materials from different UV types, band pass filters for laser protection, solar cell, photocatalysis, antireflection coatings for solar cells, photonic crystals, and Bragg gratings and optoelectronic applications were also explored.

2 Methods and materials

Nano Sn0.9Fe0.1S2 sample was formed using the solid state reaction method. Stoichiometric amounts from tin (II) chloride dihydrate (Sigma Aldrich, 98%): iron citrate (Sigma Aldrich, 99%): thiourea (Merck, 99%)≡0.9:0.1:4 were mixed and grinded for 3 h then heated at 300 °C (60 min) in a tube electric furnace under flow of nitrogen.

PVC polymer was created using casting method: 2 g of polyvinyl chloride (PVC, Sigma-Aldrich) was dissolved in 40 ml tetrahydrofuran (THF) by a magnet stirrer at room temperature for 4 h, until a clear solution was obtained. PVC/Sn0.9Fe0.1S2 polymer was formed by repeating the last step but in the present of Sn0.9Fe0.1S2. PVC/2 wt% Sn0.9Fe0.1S2/x wt% PANI (x = 0, 0.001, 0.005, 0.01, 0.03, 0.05) polymers were also produced by repeating the last step but in the presence of PANI (Sigma Aldrich). The formed solutions were poured in Petri dishes for 2 days and the films were formed. The created blended polymers have thickness ≈ 0.28 mm (the digital micrometer).

The x-ray diffraction data were performed using a PANalytical diffractometer (X’Pert MPD, Philips, Cu source, step size: 0.02°, counting time of 10 s/step, 45 kV, 40 mA), the dimensions of the polymer samples are 2 cm × 1.5 cm. The fluorescence spectra were collected employing a luminescence spectrophotometer (FP-8200 JASCO). Energy dispersive X-ray data (EDS) and scanning electron microscope (SEM) images were conducted using JEOL, Akishima, Tokyo, Japan JED- 2200 Series. The different vibration bands of all polymers were got using a Fourier transform infrared (FTIR) spectroscopy device.

UV diffused reflectance (R), absorbance (A) and transmittance (T) spectra for all samples were obtained using a diffuse reflectance spectrophotometer device (JASCO–V-670) with an attached integrating sphere assembly in the wavelength range of 200–800 nm. The R values were corrected before additional calculations using a similar process as in Ref (El-Naggar et al. 2021).

The optical energy gap (\({E}_{g})\) value of different polymers was obtained using Tauc’s relation (El-naggar et al. 2022b):

$$h=D{\left(h-{E}_{g}\right)}^{r}$$
(1)

where h, υ, D, t and α (= 2.303*A/t) are Planck's constant, the frequency of the incident light, a constant known as the disorder parameter, the thickness of the blended polymer and absorption coefficient, respectively. The sort of the transition can be determined by using the value of the parameter r; \(\frac{1}{2}\) for direct allowed and 2 for indirect allowed.

The luminescence (JASCO FP-8200) spectrophotometer under excitation wavelengths of 317 nm was used to obtain the emission from each blend.

The dielectric constant parameters, optical conductivity, energy loss functions, nonlinear optical parameters of the different polymers were derived from the equations in Ref. (El-Naggar et al. 2021).

The electrical conductivity (\(\sigma\)) is given by the following equation using samples in the form of a disk [w1]:

$$\upsigma =\frac{\mathrm{L}}{\mathrm{R x A}}$$
(2)

where L, A, R(\(=\frac{V}{I}\)), ε0, V and I are sample thickness (mm), electrode area (m2), resistance (Ω), permittivity of free space, voltage in volts and current in amperes, respectively.

3 Results and discussion

3.1 Structural examination

X-ray diffraction pattern Rietveld analysis was performed for the powder filler Sn0.9Fe0.1S, Fig. 1a. A single phase of hexagonal brucite structure of space group P-3m1 was determined with cell constants a = 3.6451(9) Å and c = 5.9564(46) Å. Anisotropic broadening is obvious, Fig. 1a, for different diffraction lines, implying highly anisotropic crystallite size and microstrain; the determined values are 13.2 nm and 4.8–4 along the [001] direction and 2.4 nm and 3.1–5 along the [100] direction, respectively

Fig. 1
figure 1

a Rietveld analysis for Sn0.9Fe0.1S2 and b XRD diffraction for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers

The measured diffraction patterns for pure PVC, PVC/Sn0.9Fe0.1S2, and PVC/Sn0.9Fe0.1S2 /x wt% PANI (x = 0.1, 0.5, 1.0, 3.0, 5.0) are plotted in Fig. 1b. All patterns disclosed the same characteristics as pure PVC pattern and no diffraction peaks for Sn0.9Fe0.1S2 or PANI could be observed owing to the small content of Sn0.9Fe0.1S2 or PANI in the blend. All patterns revealed high diffuse scattering that overlapped with some weak diffraction peaks implying a main amorphous phase of the PVC. The weak diffraction lines at 36.5 and 41°, and the two humps around 15 and 17° are characteristic of PVC which crystallizes in an orthorhombic unit cell of space group Pacm. The poor crystallization of PVC arises from the amorphous nature of atactic and isotactic isomers, and the weak diffraction peaks arise from the crystalline syndiotactic isomer in the polymer (Selvi et al. 2017).

Fourier transform infrared (FT-IR) transmittance data of PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt % PANI polymers are revealed in Fig. 2. As revealed from the plot, the C–Cl bond stretch, CH rocking and carbonyl group vibrations for PVC polymer appeared at 792, 1146 and (1731, 1777) cm−1, respectively (Selvi et al. 2017; Brunner 1972; Mallakpour and Shamsaddinimotlagh 2018; Jia et al. 2017). The CH stretching, CH bending and CH rocking vibrations for PVC polymer are located at 2925 and 1408 cm−1, respectively (Chen et al. 2017; Soman and Kelkar 2009). Upon doping PVC with Sn0.9Fe0.1S2 and/ or PANI, the positions of the vibration peaks and their intensities changed. For example, the intensities of sub bands of carbonyl group varied and became one dominant subpeak as the amount of PANI increased in the PVC matrix. The position of C–Cl band changed from 792 cm−1 to 800 cm−1 as PVC doped with Sn0.9Fe0.1S2 and then reduced to 785 cm−1 as the amount of PANI increased in the polymer matrix. This indicated the presence of interaction between PVC and doping materials.

Fig. 2
figure 2

FTIR data for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers

SEM images and EDS analysis for PVC, PVC/Sn0.9Fe0.1S2 and PVC/ Sn0.9Fe0.1S2/ PANI polymers are shown in Fig. 3. The SEM micrograph of pure PVC is smooth without any pores but with some white patches representing partially immiscibility of PVC polymer. By adding Sn0.9Fe0.1S2 and/or PANI to the PVC polymer, the surface morphology of the film turns rough. The EDS data of PVC/ Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/ PANI polymers demonstrated the existence of (C, N, Cl), (C, N, Cl, Sn, Fe, S) and (C, N, Cl, Sn, Fe, S) ions in the different polymers, respectively.

Fig. 3
figure 3

a–c EDX analysis and df corresponding SEM images for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/PANI polymers

3.2 Optoelectronic features

The exploration process for various optical parameters depends on absorption (or transmission) and reflectance data is necessary to understand the variations within the band gap range. The diffused optical absorption data for PVC, PVC/2 wt% SnFeS and PVC/2 wt% Sn0.9Fe0.1S2/x wt% PANI polymers have been measured in the wavelength region 200–800 nm, Fig. 4. The absorbance of PVC has two absorption peaks at 214 and 282 nm which are assigned as the electron transfer from π→π* and n→π ∗ transitions owing to (C=C) unsaturated bonds and C–Cl bond, respectively (Rajendran et al. 2007). Upon doping PVC with nano Sn0.9Fe0.1S2, the absorption increased. This increase is associated with the absorption feature of Sn0.9Fe0.1S2 sample. Besides, the absorption data exhibited two more extra absorption peaks as PVC/Sn0.9Fe0.1S2 loaded with different amounts of PANI. These two peaks, located at around 325 and 605 nm, represent the π-π* transition (benzenoid and quinoid units) and polaron band, respectively (Gaabou 2021; Mirmohseni and Wallace 2003). Furthermore, the absorbance spectra of the system increased as the amount of PANI increased. Similar results were observed for PVC doped with MWCNTs and PVA doped with nano Ag and PANI (Abdelhamied et al. 2020; Abdel-Fattah et al. 2019). Also, the plot revealed that loaded blends with PANI above x = 0.001 have a good absorbance of UV light at 320 nm (UVA) relative to other samples. In addition, the transmittance data for PVC exhibited approximately 90% over the wavelength range larger than 300 nm, Fig. 5a. The transmittance was reduced to 35–60% as it was loaded with TiO2. The transmittance was reduced further as the polymer doped with PANI reached zero value as the PANI became higher than 0.003 wt% (opaque material). Samples with x = 0.005 and 0.01 exhibited a band pass filter for laser protection. In the visible range, the reflectance of doped PVC polymer increased irregularly as compared with pure PVC, Fig. 5b. Previously, it was found that the absorption and reflectance spectra of PVA/x wt %PANI were raised while transmittance decreased as the amount of PANI increased (Laourari et al. 2022).

Fig. 4
figure 4

Absorbance spectra for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers

Fig. 5
figure 5

a Transmittance and b reflectance spectra for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers

The optical band gap energy (Eg) between the highest occupied molecular orbital (HOMO) and the lowest unoccupied molecular orbital (LUMO) for the different samples can be obtained by analyzing the absorption data near the absorption edge. The direct and indirect optical band gap values for all polymers can be determined using Tauc’s formula (Eq. 1) via plotting the graph between (αhν)2 or (αhν)0.5 and the photon energy () as demonstrated in Fig. 6. The direct and indirect optical band gap values were obtained by extrapolating the linear portion of the curves to zero absorption values. As revealed from the plot, the direct/indirect optical band gap for PVC is 4.94/4.57 eV. These values were decreased to 4.55/3.41 eV as PVC loaded with Sn0.9Fe0.1S2 and reduced further to (4.45, 3.34. 3.25, 3.26 and 3.23)/(3.03, 1.81, 2.33, 2.56 and 2.47) eV as the amount of x wt % PANI in the polymers became 0.001, 0.005, 0.01, 0.03 and 0.05, respectively. Similar behavior occurred when PVC was doped with NiO, or functionalized graphene oxide or CdS (Rouabah et al. 2021; Taha et al. 2019; Mansour et al. 2015). The decrease in optical band gap may result from the formation of localized states inside the optical band gap of the PVC due to increasing the number of disorders (defects) upon filling with Sn0.9Fe0.1S2 and different amounts of PANI. Therefore, the investigated doped polymers can be used in solar cells, photocatalysis and optoelectronic applications (Taha 2018).

Fig. 6
figure 6

Tauc relation for a, b direct and c, d indirect optical transitions for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers

The changes in the refractive index (n) values with the wavelength of the incident photons under the effect of doping are very essential parameters for the design of electronic and optoelectronic devices. The extinction coefficient (k) is an optical parameter that reflects the variations taking place during the absorption process within the material. The wavelength dependence of n and k for all samples is shown in Fig. 7a, b, respectively. The n value of PVC increased as it was doped with Sn0.9Fe0.1S2 and it increased further as it was doped with 0.001 wt % PANI, but with increasing the amount of PANI, the n value reduced. This variation is clear evidence for the polymer matrix intermolecular changes, change in internal strain and aggregation of the material (Abdelhamied et al. 2020; Wadatkar and Waghuley 2021; Sayed and Soliman 2000). Such improvement in the values of n enables the doped polymers to be suggested as antireflection coatings for solar cells, photonic crystals, and Bragg gratings (Kroschwitz 1988). On the contrary, the n values of PVA were reduced as it was doped with nano Ag and/or PANI (Abdelhamied et al. 2020). Furthermore, polymer with 0.001 wt% PANI displayed the maximum values of n among the other polymers. Also, the k values rose as PVC doped with Sn0.9Fe0.1S2 and increased further as the content of PANI raised in the matrix, which may explain the high absorption coefficient. The estimation process for polymers in electronic and optoelectronic applications is dependent on their dielectric constant characteristics. The dielectric constant is one of the essential parameters that describe the polymer’s performance. The real part of the dielectric constant (\({\varepsilon }_{r}\)) points to the dispersion mechanism inside the polymer and it illustrates the change in speed of the incident electromagnetic beam by the polarizability influence of the molecules. The imaginary part of the dielectric constant (\({\varepsilon }_{i})\) gives information about the loss in the incident electromagnetic energy by the medium i.e., it reveals the material resistance to the incident beam of photons. Furthermore, the rate by which the resulting fast electrons can lose energy within the bulk material relates to the volume energy loss function (VELF) while the rate by which electron energy can be lost by the surface of the material is linked to the surface energy loss function (SELF). The variations of the \({\varepsilon }_{r}\), \({\varepsilon }_{i}\), VELF and SELF as functions of the wavelength of the incident photon for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers are displayed in Fig. 8. As depicted from the graph, both \({\varepsilon }_{r}\) and VELF have higher values than the corresponding \({\varepsilon }_{i}\) and SELF values in each polymer, respectively. \({\varepsilon }_{r}\) revealed a gradual reduction with the wavelength. \({\varepsilon }_{i}\) displayed a gradual reduction with increase in the wavelength for PVC and PVC/Sn0.9Fe0.1S2 samples. Upon doping PVC/Sn0.9Fe0.1S2 with PANI exhibited a variable behavior depending on the measured wavelength range. The values of \({\varepsilon }_{r}\), \({\varepsilon }_{i}\), VELF and SELF of PVC were increased as it doped with Sn0.9Fe0.1S2 and/or PANI. As PVA doped with nano Ag and PANI, \({\varepsilon }_{r}\) was reduced while \({\varepsilon }_{i}\) was increased (Abdelhamied et al. 2020). Besides, in the visible range, sample with x = 0.001 has a higher \({\varepsilon }_{r}\) value. A sample with x = 0.05 has higher \({\varepsilon }_{i}\), VELF and SELF values. The variations in \({\varepsilon }_{r}\) and \({\varepsilon }_{i}\) values may result from the change in the absorption coefficient and scattering process, respectively. Besides, these modifications in the real part of the dielectric constant are linked to the variation in the band structure of the PVC polymer, as more states are created within the forbidden gap. Additionally, the high values of dielectric loss relate to the modification in the polarization of the host PVC as it doped with filler materials (Ahmed et al. 2021). Moreover, the increase in the values of the SELF and VELF functions with doping PVC with Sn0.9Fe0.1S2 and/or PANI confirms the presence of higher number of fast electrons. The optical conductivity \(({\sigma }_{opt})\) is a necessary parameter for electronic and optoelectronic device applications. It gives us information about electronic transitions within states. The spectral values of \({\sigma }_{opt}\) for PVC and PVC/Sn0.9Fe0.1S2 polymers illustrated a reduction while the \({\sigma }_{opt}\) for polymers doped with PANI exhibited a fluctuation with increasing the wavelength which is similar to the absorbance behavior. The value of \({\sigma }_{opt}\) for PVC polymer was increased as it loaded with Sn0.9Fe0.1S2 and increased further as it doped with different amount of PANI. Similar behavior was detected as PVC loaded with different NiO amounts (Taha et al. 2019). This enhancement in \({\sigma }_{opt}\) can be returned to the highly number of free electrons produced by doping effect and therefore increased the number of defect states or disorders within the host PVC matrix which facilitate the movement of electrons within the band gap and hence raised \({\sigma }_{opt}\) (Ahmed et al. 2021). Similar results were observed for PVA doped with nano silver and PANI (Abdelhamied et al. 2020). This supports the good miscibility between PANI, nano Sn0.9Fe0.1S2 and PVC chains as revealed in the XRD data. The spectra dependent on the first-order optical susceptibility (χ(1)), third-order nonlinear susceptibility (χ(3)) and nonlinear refractive index (n2) for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers with the wavelength are displayed in Fig. 9. As depicted from figure, the three nonlinear optical (NLO) parameters for PVC polymer were raised as it was doped with Sn0.9Fe0.1S2 and/or PANI. As the amounts of PANI increased, the increase in NLO parameters are irregularly and their reached maximum values as the ratio of PANI became 0.001, Fig. 10. The NLO parameters of PVC were increased as it was loaded with different contents of NiO (Taha et al. 2019). The obtained results may result from the dependence of the NLO parameter on the n values of the different polymers. The development in the NLO of doped PVC with Sn0.9Fe0.1S2 and/or PANI is considered a helpful guide for upcoming optoelectronic applications.

Fig. 7
figure 7

Spectra variations of a refractive index and b extinction coefficient with the wavelength for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers

Fig. 8
figure 8

The changing of a real and b imaginary dielectric constant, c SELF and d VELF with the wavelength for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt % PANI polymers

Fig. 9
figure 9

Optical conductivity for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers

Fig. 10
figure 10

ac Wavelength dependent of the nonlinear optical parameters for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers

3.3 Fluorescence (FL) characteristics

The FL emission spectra of pristine PVC, PVC/Sn0.9Fe0.1S and PVC/Sn0.9Fe0.1S2/ x wt% PANI, under excitation with λ = 317 nm, are given in Fig. 11a. The spectra exhibited a broad fluorescence emission ranging from 300 to 620 nm with peak intensities depending on the doping ratio (x). The spectra comprise peaks at 346 (near UV), 420 (yellow) with a right shoulder 375–400 nm, 581 nm (orange) and 610 nm with a plateau from 350 to 420 nm. It is expected that the emission from the PVC polymer is dominated by excimer fluorescence (El-naggar et al. 2023b). FL emission spectra of neat PVC film revealed a peak at 380 nm when excited with λ = 310 nm, and the peak was shifted to ~ 425 nm under excitation of 360 nm (Graeme 1985). Under 415 nm excitation wavelength (Rouabah et al. 2021), the FL spectrum of PVC polymer exhibited a strong emission band at 467 nm (blue) related to PVC excimer fluorescence and corresponding to π*–π transition. The spectrum convoyed two shoulder bands around 480 and 492 nm, attributed to trapped energy levels generated by impurities in the PVC (El-Hachemi et al. 2021a). For pristine PVC and under excitation of 340 nm, Taha et al. (Ahmed et al. 2021) recorded a wide hump-like emission band that peaked at 401.5 nm (violet).

Fig. 11
figure 11

a FL spectra and b changing of the FL sub peaks for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers

The FL intensity for the pristine PVC is very weak, Fig. 11b, which was enhanced when PVC was loaded by Sn0.9Fe0.1S, and greatly enhanced as PVC doped with Sn0.9Fe0.1S2 and PANI. The increase in FL intensity is not linear with PANI percent (Fig. 11b), the intensity greatly increased for x = 0.001, then decreased for further increases in amount of PANI, probably due to concentration quenching, but is always higher than that of pure PVC. The interactions of PVC and PANI side chains or main chains lead to variations in efficiency of luminescence and temporal evolution (Sharma et al. 2021). The enhancement of luminescence intensity could be attributed to the crosslink-enhanced emission effect between PVC and PANI (Taha et al. 2020). A similar enhancement in PVC fluorescence intensity was obtained upon loading with CdS (Tao et al. 2020) or with CdTe (Rouabah et al. 2021). Ramazanov et al. (El-Hachemi et al. 2021b) investigated loading PVC with different percents of TiO2 (1.0, 3.0, 5.0, 10.0%); under excitation wavelength 410 nm, the PL intensity increased with increasing the TiO2 content up to 5% and interpreted to be mainly due to the growth in the luminescent center surface area.

3.4 DC electrical conductivity

Figure 12 shows the variation of ln (σ) with the inverted temperature (1000/T) for PVC, PVC/Sn0.9Fe0.1S2 and PVC/ Sn0.9Fe0.1S2/x wt% PANI polymers. As depicted in the graph, the ln (σ) values for all polymers decreased as the inverted temperature (1000/T) increased. Also, the dc conductivity was reduced depending on the amount of filler, dispersion, and polymer-filler interaction (Ramazanov et al. 2020).

Fig. 12
figure 12

Variation of lnσ with temperature for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers

The dc conductivity of the polymer as a function of temperature can be described using the Arrhenius relation (Ramazanov et al. 2020):

$${\sigma }_{dc}=\mathrm{A exp}(-\mathrm{E_{A}}/\mathrm{k_{B}T})$$
(3)

where EA, A and kB are the dc conductivity activation energy, temperature independent constant (based on the physical and chemical properties of the polymers) and Boltzman’s constant, respectively.

The value of EA for different polymers can be determined after performing the least squares fitting of the dc data using the last formula, Table 1. It can be noticed that EA of PVC (0.213 eV) decreased to 0.206 eV as it loaded with Sn0.9Fe0.1S2. Upon loading PVC/ Sn0.9Fe0.1S2 polymer with different contents of PANI, EA decreased in general, except in the sample with 0.001 wt % PANI, it increased to 0.239 eV. The lowest EA (0.168 eV) value can be obtained as PANI becomes 0.03 wt%. This result may be caused by the variation of the delocalized charge carriers in different samples (Taha 2018).

Table 1 Activation energy for PVC, PVC/Sn0.9Fe0.1S2 and PVC/Sn0.9Fe0.1S2/x wt% PANI polymers

4 Conclusion

Sn0.9Fe0.1S2 has a single phase of hexagonal brucite structure with highly anisotropic crystallite size and microstrain. All patterns disclosed the same characteristics as pure PVC pattern with a poor crystallization. EDS analysis confirmed the doping of PVC by Sn0.9Fe0.1S2 and/or PANI. The surface morphology of PVC film turns to rough as it doped with Sn0.9Fe0.1S2 and/or PANI. The n value has its maximum value as PVC/Sn0.9Fe0.1S2 doped with 0.001 wt % PANI. In the visible range, sample with x = 0.001 has a higher ε′ value while sample with x = 0.05 has a higher ε′′, VELF and SELF values. The value of \({\sigma }_{opt}\) and NLO parameters for PVC polymer was increased as it loaded with Sn0.9Fe0.1S2 and increased further as it was doped with different amounts of PANI. All polymers emitted UV, blue, yellow, and orange colors and their intensity was affected by the ratio of PANI. The dc conductivity and activation energy in general were reduced as the amount of PANI increased. PVC/Sn0.9Fe0.1S2 with PANI above x = 0.001 wt% has a good UVA absorbance. Samples with x = 0.005 and 0.01 exhibited a band pass filter for laser protection. The reduction in optical band gap nominated doped polymers to be used in solar cells, photocatalysis and optoelectronic applications. The improvement in the values of n enables the doped polymers to be suggested as antireflection coatings for solar cells, photonic crystals, and Bragg gratings. The development in the NLO of doped PVC with Sn0.9Fe0.1S2 and/or PANI is considered a helpful guide for upcoming optoelectronic applications.