1 Introduction

Mixing polymers is a key step in making new polymeric materials which can be used in many ways. Polymer blends have many benefits, but the most important is that the qualities of finished product can be altered to suit requirements of various applications in a manner not achievable with single polymers. Polymer nanocomposites have just recently been found to be useful in a wide range of scientific fields. Because of this, new technologies have been made. This is because adding nanoparticles to a polymer matrix has a big effect on the material's thermal, optical, and electrical characteristics, even though the material still has its own qualities and characteristics. This is because adding nanoparticles to a polymer matrix changes the thermal, optical, and mechanical characteristics of the material in a big way (Chang et al. 2008). When studying electronic transitions, the optical properties of polymers are important because they can be used as optical filters, cover insulators, selection surfaces, and green homes, among other things (Luo et al. 2013). Polymer optical characteristics, on the other hand, are designed to improve reflection, antireflection, interference, and polarization qualities. Because of its remarkable thermal stability, PEO is an intriguing basis material. PEO is a semi-crystalline polymer that can exist in both solid and liquid form.at ambient temperature, amorphous and crystalline phases (Hayder et al. 2020). PVA is one of the most significant polymeric compounds since it has many industrial uses and is very affordable to create. PVA is a crystalline polymer which is extremely soluble in water; nevertheless, dissolving it necessitates the breakdown of the crystal structure, which must be done at a high temperature (Kumar et al. 2015). SrTiO3 has been demonstrated to have persistent photoconductivity, which means that exposing the crystal to light increases its electrical conductivity by more than two orders of magnitude. The improved conductivity lasts for several days after the light is switched off, with negligible degradation (Pattabi et al. 2007). NiO is a transition metal oxide which has a cubic lattice structure. It has gained prominence due to its potentials. There are applications in numerous fields, such as catalysis. With the advancement of every industry and technology, the focus has shifted to nanoscale materials because this length scale requires additional qualities (Chandrakala et al. 2014). Optical engineering has evolved to be based on precision optical products as a result of the development of laser and optoelectronic technology. The subjects of information science, energy science, material science, life science, space science, precision manufacturing, computer science, and microelectronics technology are now linked disciplines that closely straddle and encroach upon one another. It encompasses several important developing fields, including optical information processing, optical storage and recording, laser technology, and optical communication (McKee et al. 1998). Since the emergence of infections which are resistant to antibiotics is hardly keeping up with the discovery of new antimicrobial medications, developing effective antibiotic substitutes has attracted more attention due to these and other factors. Utilizing nanoparticles with antibacterial properties and nanostructures with anti-adhesive activities against biofilms is a viable method (Abutalib and Rajeh 2021; Alghamdi et al. 2022a, b). The efficiency of composites' production is significantly impacted by the usage of these nanoparticles, which enhance the chemical and antimicrobial processes inside them. There have not been many researches, nevertheless, on how nanomaterials affect the performance characteristics of an enhanced composite. SrTiO3–NiO has an antibacterial effect on bacteria without producing dangerous biocides. To our knowledge, no attempt has been made to synthesize nanocomposites including SrTiO3–NiO nanoparticles. The purpose of this study is to present of the low-cost and easy synthesis process by PEO–PVA–SrTiO3–NiO nanocomposites for optoelectronics and antibacterial applications.

2 Materials and methods

The casting procedure was used to make f PEO–PVA–SrTiO3–NiO nanocomposites. Casting method has many advantages: it can be easily used in laboratories, the solution may either spread on a substrate or cast into a mold, an additive can be easily added and the properties of polymer composites can be easily identified, a liquid on a surface is dried without any external factor such as thermal or mechanical stress, offers a variety of additive options to the polymer, the additive can be added to any polymer–solvent solution, polymer films formed through solvent casting method usually have thicknesses which are homogeneously distributed and produces clear films of higher optical clarity. The films were prepared by dissolving 1 gm of (PEO–PVA) blend with 50/50% in Using a magnetic stirrer, stir 40 ml of distilled water for 45 min. at temperature 70 C to create a more uniform solution. SrTiO3 and NiO nanoparticles are mixed with polymers at various concentrations of 0, 1, 2, 3, and 4 weight percent. The solution was kept in a petri dish. Polymer mix nanocomposites were created after 4 days of room temperature progressive drying of the fluid. The petri dish's PEO–PVA–SrTiO3–NiO NCs were cut out and utilized for analysis. The optical characteristics of PEO–PVA–SrTiO3–NiO NCs were investigated using a double beam spectrophotometer (Shimadzu, UV-18000A) at wavelengths ranging between 200 and 800 nm, and a test for samples in different concentrations was performed using an Olympus type Nikon-73346 optical microscope with a magnifying power of (10x) and equipped with a camera for microscopic photography. The antimicrobial activity of the nanocomposite films against two clinical bacteria, Escherichia coli and Staphylococcus aureus.

Equation-defined absorption coefficient (α) for nanocomposites (Gautam and Ram 2010)

$$\upalpha = {23}0{3}\,{\text{A}}/{\text{t}}$$
(1)

A is the absorbance of the sample, and t is its thickness.

For calculating the energy gap, the following equation was employed (Blythe and Bloor 2005; Goswami et al. 2017)

$$\alpha {\text{h}}\upsilon \, = {\text{B }}\left( {{\text{h}}\upsilon \, {-}{\text{ Eg}}} \right)^{{\text{r}}}$$
(2)

B is constant, hυ indicates photon energy, Eg indicates optical energy band gap, r = 2, or 3 for allowed and forbidden indirect transition.

Refractive index (n) of PEO–PVA–SrTiO3–NiO NCswas calculated by using the equation (Shankar et al. 2014)

$${\text{n}} = \left( {{1} + {\text{R}}^{{{1}/{2}}} } \right)/ \, \left( {{1} - {\text{R}}^{{{1}/{2}}} } \right)$$
(3)

Following equation was used to compute the extinction coefficient (k) (Mahdi and Habeeb 2022)

$${\text{k}} = \upalpha \uplambda /{4}\uppi$$
(4)

Real and imaginary (ε1 and ε2) components of the dielectric constant were computed (Selvi et al. 2017)

$$\upvarepsilon _{{1}} = {\text{n}}^{{2}} - {\text{k}}^{{2}}$$
(5)
$$\upvarepsilon _{{2}} = {\text{2nk}}$$
(6)

Optical conductivity was estimated using the equation below (Tintu et al. 2010)

$$\sigma = \frac{\alpha n c}{{4\pi }}$$
(7)

where: c is the velocity of light.

3 Results and discussions

3.1 Scanning electron microscope (SEM) measurements of PEO–PVA–SrTiO3–NiO NCs

Figure 1 displays a SEM image at different doses of NPs, of the surface of a pure and filled polymer film (0, 1, 2, 3, and 4) wt% of the blend. The image of pure blend PEO–PVA in Fig. 1a shows morphological structure which has numerous crystalline domains i.e. spherules. Adding of SrTiO3–NiO nanoparticles to the pure reduces the size of spherules significantly, and the surface morphology improves from rough to relatively smooth, as illustrated in Fig. 1b for PEO–PVA–SrTiO3–NiO nanocomposites. A smooth look is usually related to a decrease in the crystallinity of the PEO–PVP blend. Furthermore, the surface is completely filled with pores, where their distribution becomes denser due to an aggregation of SrTiO3–NiO nanoparticles because of spherule shrinkage, pores form between nanoparticles and polymer blend surfaces, and are regarded a sort of complexation/miscibility between PEO–PVA blend and SrTiO3–NiO nanoparticles. Furthermore, these pores correlate to polymer linked networks. The increase in porosity has been attributed to an increase in free ion production and thus, an increase in ionic conductivity. The number of pores in nanocomposites is greatly reduced due to aggregation of SrTiO3–NiO nanoparticles, as displayed in Fig. 1c, d, due to the presence of structural rearrangement by an, which allows SrTiO3–NiO nanoparticles to combine. PEO–PVA SrTiO3–NiO nanocomposites, the pores are practically invisible, as illustrated in Fig. 1e when 4 wt% SrTiO3–NiO nanoparticles are added to PEO–PVA (Jebur et al. 2020a).When SrTiO3–NiO nanoparticlesratio gradually growing in PEO–PVA blend, appearance of several spherical particle aggregates or chunks on the surface of nanocomposites indicates the presence of a homogenous growth mechanism. It gets softer as the concentration of both particles increases, where nanoparticles aggregate and are well distribution in PEO–PVA blend form a continuous network with in the polymers (Jebur et al. 2020b).

Fig. 1
figure 1

SEM images 1 μm for PEO–PVA–SrTiO3–NiO NCs: a for pure b for 1 wt% SrTiO3–NiO NPs, c for 2 wt% SrTiO3–NiONPs, d for 3 wt% SrTiO3–NiONPs, e for 4 wt% SrTiO3–NiONPs

3.2 Optical Microscope for PEO–PVA–SrTiO3–NiO NCs

Figure 2 displays optical microscope images for PEO–PVA–SrTiO3–NiO NCs films. Different concentrations were taken for specimens. Magnification strength (10X) nonetheless, as shown in the images, there is a clear difference between the samples (a- b- c- d- and e). When to increasing ratiosof SrTiO3–NiO NPsin PEO–PVA blend, the NPs create a continuing network inside the polymers, reaching to 4 wt% for PEO–PVA–SrTiO3–NiO nanocomposites. This network is made up of indoor routes, and nanocomposites allow charging carriers to move through such pathways (Habeeb and Hashim 2020; Habeeb 2011).

Fig. 2
figure 2

Photomicrographs 10 × for PEO–PVA–SrTiO3–NiO NCs: a for PEO–PVA, b for 1 wt% SrTiO3–NiO, c for 2 wt% SrTiO3–NiO, d for 3 wt% SrTiO3–NiO, e for 4 wt% SrTiO3–NiO

3.3 The Optical Characteristics for PEO–PVA–SrTiO3–NiO NCs

Figure 3 shows the relationship between optical absorbance and wavelength for PEO–PVA–SrTiO3–NiO NCs. PEO–PVA exhibits significant radiation absorption in the wavelength range 200–400 nm. The spectra suggest that all of these films have a higher absorption in the UV range. In the visible range, all nanocomposites have a low absorption. This phenomenon can be explained as interacting with atoms, resulting in photon transmission. The interaction between incident photon and substance occurs as the wavelength decreases, and the photon absorbs. It is very clear from the figure that, As the doping concentration of SrTiO3–NiO nanoparticles is raised, the absorption bands alter, and the band edges shift towards the higher wavelength region with varied absorption strengths. As the weight percentages of nanomaterial's grow, the absorbance rises. This is because free electrons absorb the incident light (Alsulami 2021; Chudek et al. 2018; Habeeb et al. 2020).

Fig. 3
figure 3

Difference of absorbance for PEO–PVA–SrTiO3–NiO NCs by wavelength

Figure 4 clarifies the optical transmission spectra for PEO–PVA–SrTiO3–NiO NCs against wavelength.Due to the existence of the PEO–PVA polymer band gap, a substantial drop in transmittance spectrum between 210 and 248 nm was observed (Abbas et al. 2015). (Shown with the doping of PEO–PVA–SrTiO3–NiO NCs polymer solutions, its intensity is continually diminishing. This graph shows unequivocally that the spectrum was changed towards low wave lengths when nano-oxide metals were added to PEO–PVA polymer, which demonstrates that the transmittance spectrum for PEO–PVA–SrTiO3–NiO NCs diminishes as the number of SrTiO3–NiO NPs rises.This is necessary for the electrons in the extra SrTiO3–NiO NPs to capture electromagnetic energy from incoming light and go up to higher energy levels. Since the moving electron fills up open energy band positions and blocks part of incoming light from passing through the material, the process does not result in the emission of radiation.However, since there is not a free electron (i.e., since electrons are attached to atoms by covalent bonds), which is required for electron to be broken and moved to conduction band, the PEO–PVA combination has a high transmittance (Sheha et al. 2012).

Fig. 4
figure 4

Difference of transmittance for PEO–PVA–SrTiO3–NiO NCs by wavelength

Figure 5 shows how the absorption coefficient for a PEO–PVA blend with different SrTiO3–NiO NP concentrations relates to photon energy. At low energy levels, there is little absorption, it should be noted. There is a low probability of an electron transition because the input photon's energy is inadequate to move the electron (hv < Eg) from the valence band to the conduction band. Since absorption increases with energy, there is a good chance that when the input photon's energy is high enough, the electron will transition from the valence band to the conduction band. The incident photon has greater energy than the gap with the forbidden energy, as shown by this example. This shows that the kind of the electron transition may be determined when the absorption coefficient is high (α > 104 cm−1 at high energy). It is thought that electrons will undergo a straight transition while maintaining their velocity and energy. The opposite, however, is true when the absorption coefficient is low (α < 104 cm−1). The value of the acceptable and forbidden indirect transition energy gap will depend on the approved and prohibited indirect transition energy gap in the PEO–PVA combination. The energy gap of the PEO–PVA polymer narrows when the concentration of SrTiO3–NiO nanoparticles in the film's structure rises, leading to the formation of a larger UV absorption peak. Researchers were able to locate the absorption edge using the (α) versus (hv) curves' linear component to extrapolate to the zero absorption value (Habeeb and Mahdi 2019; Devi et al. 2002). As the SrTiO3–NiO nanoparticle concentration in the PEO–PVA matrix rose, the band edge shrunk. As the absorption edge advances up towards longer wavelengths, the doped sheets' optical band gapgets smaller and narrower. The UV absorption edge shifts as a result of modifications to the electron holes in the conduction and valence bands (Habeeb and Abdul Hamza 2018).

Fig. 5
figure 5

The absorption coefficient for PEO–PVA–SrTiO3–NiO NCs versus photon energy

Figure 6 for PEO–PVA–SrTiO3–NiO NCs, the variation of the absorption edge (αhυ)1/2 as a function of photon energy is displayed.It has been shown that Eg of nanocompositesdrop with increasing SrTiO3–NiO NPs concentration. The values of permissible energy gap for PEO–PVA–SrTiO3–NiO NCs are due to localization in the prohibited energy gap to high degrees. Indirect transition is suitable for the transition that occurs in the samples. Due to the variety of composites, this behavior occurs (i.e. the electronic conduction depends on added impurities) (Reddy et al. 2006; Yq and Chen 2008). It can be observed from the change of the energy gap for PEO–PVA–SrTiO3–NiO NCs nanocomposites films that the energy gap values decrease as the concentration of SrTiO3–NiO rises. This decrease in the band gap caused by the emergence of new levels made it easier for electrons to go from the valence band to these local levels and into the conduction band, which increased conductivity and reduced the band gap. According to Table 1, a faster addition rate produces polymer routes for electron crossing, which contributes to increased concentration levels in the forbidden energy gap (Varishetty et al. 2010; Hashim et al. 2020).

Fig. 6
figure 6

Relation between photon energy for PEO–PVA–SrTiO3–NiO NCs and (αhυ)1/2

Table 1 Values of energy gap for (allowed and forbidden) indirect transition for PEO–PVA–SrTiO3–NiO NCs

Figure 7 shows the connection between photon energy and(αhυ)1/3by increasing the amount of SrTiO3–NiO NPs in blend the energy gap values for forbidden indirect transitions are reduced, and similarly, these allowed indirect transition values are lower than the forbidden indirect transition values. Table 1 indicates that this attribute contributes to the formation of additional levels as well as electron transitions between the new level tails created by the additive (SrTiO3–CoO)NPs (Alsulami and Rajeh 2021).

Fig. 7
figure 7

Relation between the energy of photons for PEO–PVA–SrTiO3–NiO NCs and (αhυ)1/3

Figure 8 shows the relationship between the extinction coefficient of PEO–PVA–SrTiO3–NiO NCs and wavelength. This graph shows that the value of the extinction coefficient increases as SrTiO3–NiO NPs concentration does. Conduct has a high coefficient of absorption as a result. The fluctuation of k values with wavelength indicates that there is some interaction between the medium and the light photons. The percentage of electromagnetic energy lost by scattering and absorption per unit thickness in a specific material is known as the extinction coefficient. This figure shows that the extinction coefficient rises at high wavelengths (Habeeb 2014; Habeeb and Hamza 2018; Lee et al. 2006).

Fig. 8
figure 8

Relation between extinction coefficient for PEO–PVA–SrTiO3–NiO NCs and wavelength

Fig. 9
figure 9

Refractive index for PEO–PVA–SrTiO3–NiO NCs and wavelength

Figure 9 PEO–PVA–SrTiO3–NiO NCs have changes in their refractive index and wavelength. One of the reasons for the increase in reflectance PEO–PVA–SrTiO3–NiO NCs is the refractive index increased for the doped samples because the addition of SrTiO3–NiO NPs enhances the intensity of NCs by raising the PEO–PVA blend's refractive index and thereby, increasing the dispersion of the photon event. It is clear that the refractive index displays an area of dispersion at low wavelengths and practically reaches a plateau at high wavelengths. One of a material's most fundamental characteristics is its index of refraction, which is directly tied to its electrical polarizability. The electromagnetic field of the light induces polarization in the molecules, which is reflected by the refractive index. Due to the impact of the electric field component of the incident wave, a material exposed to electromagnetic light will experience time-varying forces inside its internal charge structure. The polar character of the samples was attributed to the broad dispersion area. Polar molecules' inertia prevents them from following the field alternation at high wavelengths (Habeeb and Kadhim 2014; Zhang et al. 2017)

Figures 10 and 11 illustrate the real and imaginary components of the dielectric constant for PEO–PVA–SrTiO–NiO–NiO NCs. The variation of (1) for PEO–PVA–SrTiO3–NiO NCs as a function of wavelength in Fig. 10 indicates the propensity of a material to interact with an electric field and become polarized. The stored energy is associated with the imagined portion, whereas the actual portion discloses the amount by which the substance will reduce the speed of light. Increased SrTiO3–NiO NP concentration alters the imaginary component as a function of wavelength, as seen in Fig. 11. Although the real and imaginary sections display the same pattern of activity, the real component has bigger values. Variable dielectric constants were brought about by interactions between photons and charge carriers in the generated films. A rise in the dielectric constant shows the presence of more energy-dense states; this, in turn, causes an increase in polarization, which results in a greater dielectric constant value (Obaid et al. 2013).

Fig. 10
figure 10

Difference real part of dielectric constant of PEO–PVA–SrTiO3–NiO NCs with wavelength

Fig. 11
figure 11

Difference imaginary part of dielectric constant of PEO–PVA–SrTiO3–NiO NCs with wavelength

Figure 12 illustrates the variety of the optical conductivity of PEO–PVA–SrTiO3–NiO NCs with wavelength. The optical conductivity of all NCs samples diminishes as wavelength rises, which is a characteristic linked to how the optical conductivity varies depending on the wavelength of the light impinging on the NCs sample. The optical conductivity spectra show that all NC samples in this region have high absorbance, which raises optical conductivity at low photon wavelengths and causes the samples to transmit light in the visible and near-infrared spectrum. Along with this, it indicates that more SrTiO3–NiO nanoparticles are produced at greater concentrations, optical conductivity values rise as SrTiO3–NiO concentrations do. The band gap narrows as a result of this increase in conductivity, which is caused by the formation of new local levels in the band gap that make it easier for electrons to move from the valence band to the conduction band. The density of localized stages in the band structure also rises, enhancing optical conductivity and absorption coefficient. Localized levels that have formed in the energy gap are responsible for this behavior in PEO–PVA–SrTiO3–NiONCs (Prabhu et al. 2015; Abutalib and Rajeh 2020).

Fig. 12
figure 12

Difference of optical conductivity for PEO–PVA–SrTiO3–NiO NCs with wavelength

3.4 Application of PEO–PVA–SrTiO3–NiO NCs antibacterial activity

The antibacterial mechanism is not entirely known, although it differs from nanoparticle to nanoparticle other. While some postulated processes are related to the nanoparticles' physical makeup, such as their potential to damage membranes, others are related to the increased release of antibacterial metal ions from their surfaces. As the particle size lowers, the specific surface area of a dosage of nanoparticles grows, enabling increased material interaction with the environment. Consequently, increasing the surface to volume ratio for materials that are naturally antibacterial improves the antibacterial impact. The release of antibacterial metal ions from the particle surface and the antibacterial physical properties of a nanoparticle related to cell wall penetration or membrane damage are two examples of the various antibacterial mechanisms that an inherently antibacterial material's nanoparticle may possess. The PEO–PVA–SrTiO3–NiO NCs samples were investigated for their antibacterial efficacy against gram positive (S. aureus) and gram negative (pseudomonas fluorescence) bacteria. Figures 13 and 14 demonstrate that when SrTiO3–NiO NP concentrations increase, the inhibition zone increases. PEO–PVA–SrTiO3–NiO NCs' antibacterial activity might be attributed to reactive oxygen species (ROS) which are created by different NP concentrations. The hydrogen peroxide produced by a chemical interaction between membrane proteins and hydrogen peroxide, which penetrates bacterial cell membranes and destroys the + nanoparticles in NCs and the negative charges on the microbes, may interact electromagnetically, which is another possible mode of action. When the attraction takes shape, the germs oxidize and die. The results showed that the antibacterial activity of PEO–PVA blend was enhanced by the addition of SrTiO3–NiO NPs (Prabhu et al. 2015; Abutalib and Rajeh 2020; Hezma et al. 2019)

Fig. 13
figure 13

Antibacterial effect of PEO–PVA blend as a function of SrTiO3–NiO NPs concentrations on S. aureus

Fig. 14
figure 14

Antibacterial effect of PEO–PVA blend as a Function of SrTiO3–NiO NPs concentrations on E. coli

4 Conclusion

In the present work, solution cast technique was used to create polymer nanocomposites (PNCs) based on a PEO–PVA blend. The SEM images show that the surface morphology of PEO–PVA–SrTiO3–NiO NCs films is uniform and consistent, with a random distribution of different pieces or aggregates. Optical microscope images show that the distribution of SrTiO3–NiO NPs additives was homogeneous in the blend and the NPs form a continuous network inside the polymers. Increases in the quantities of SrTiO3–NiO NPs in the PEO–PVA blend lead to increases in absorbance, as well as, absorption coefficient, refractive index, extinction coefficient, dielectric constant (both real and imaginary) and optical conductivity, whereas transmittance decrease. The allowed and forbidden indirect energy gap of this NCs decreased from 3.6 to 2.5 (eV), and from 3.8 to 2.5 (eV) respectively when increasing the weight percentages of NPs to 4 wt%. The diameter of the inhibition zone of E. coli and S. aureusbacteria increases to 28 and 24 mm respectively as the concentration of SrTiO3–NiO NPs increases. It was evident from the experimental results that enhancement of SrTiO3–NiO nanoparticles is possible through the structural and optical properties and also through the antimicrobial activity of the PEO–PVA blend. This confirms the potential use of these materials in optoelectronics fields such as light filters, transistors sensors diodes, lasers, electronics gates and in food packaging industries.