1 Introduction

Many efforts have been made on improving electronic devices to be low cost and more compatible with the well-known current applications [1,2,3,4,5]. Hexagonal wurtzite n-type ZnO is well known for being a conductive oxide with lot of properties such as benefiting wide optical energy gap (3.37 eV), high Urbach energy (60–100 meV), high melting temperature, good chemical stability, inexpensive growth, earth abundance and non-toxicity. These evaluated properties are of interest to highlight ZnO either pure or with additives as an outstanding optoelectronic and optical devices through promising phosphor material for ultraviolet (UV) and photoluminescence emissions [6,7,8,9,10,11].

The charge carries such as electrons are excited from VB due to absorption of photons, and consequently the pairs of e–h are obtained [12,13,14]. The irradiative and Urbach tail processes have been found to be responsible for the chat of light energy above and below the limit of the ZnO gap, respectively. Anyhow, the binding energy of exciton (e–h pairs) of ZnO is given by the amount of photon energy against maximum absorbance or lower reflectance [15, 16].

On the other hand, the ZnO degree of quality through emission from the states of discrete and structural defects could be provided from photoluminescence (PL) [17]. It is usually characterized by green-yellow emission regime according to the vacancies of oxygen. The near band edge (NBE) due to blue emission of PL usually occurs as a result of recombination of e–h pairs [18,19,20,21], while the yellow-orange emission regime is due to interstitial-oxygen and hydroxide-surface states [22]. However, the deep level and oxygen vacancies, during sintering of ZnO sintering, are taken as inevitably feature of reaction method.

Several efforts have been carried out to describe the influence of additives, such as Bi2O3, Cr2O3, Al2O3, MnO, NiO, CoO and Fe2O3, on the properties of ZnO [23,24,25,26,27,28,29,30,31,32]. It is approved that the d and f states of impurities can fill the odd states of ZnO, and consequently a clear ferromagnetism at RT (RTFM) along with evaluated magnetic moment may be obtained [33,34,35,36,37]. This behavior originates also from the interaction between the delocalized free carriers of ZnO with the d-spin localized states of dopants [38,39,40,41,42,43,44,45].

However, structural, mechanical and electrical properties of ZnO varistors doped by Ni have been investigated [46]. It is approved that the potential barrier of ZnO is deformed by 0.025 of Ni and, consequently, the non-linearity disappears. It is also believed that RTFM and valence state produced by Ni are responsible for that barrier deformation. Though mostly Fe, Co and Mn ion-doped ZnO has been studied, only limited studies have been reported on Ni. Although the limit (0.05–0.10) of 3D transition metals is well chosen to avoid their solubility within ZnO, Ni is expected to have a larger solubility due to the relatively smaller Ni ion as compared to Zn at the same tetrahedral fold coordination [10].

In this study, the samples are synthesized by conventional solid-state reaction method due to its simplicity and it is a low-cost method. The structural, optical, photoluminescence and ferromagnetic properties are investigated as a function of the Ni doping concentration. It is shown that addition of Ni up to 0.20 to ZnO reduces the energy loss rate of the oscillation mode of ZnO which support the present samples for the high-frequency applications required for high quality of capacitors. Further, a decrease of bandgaps is obtained by Ni and, consequently, the optical and electrical conductivities are improved. Moreover, the signature of a clear ferromagnetic with an increase for saturated magnetization and effective magnetic moment is obtained. Therefore, addition of Ni to ZnO materials makes them more suitable for optoelectronic applications which highlight the present investigation.

2 Experimental details

Zn1−xNixO samples with x = 0.00, 2.5%, 5%, 10% and 20% are synthesized by using conventional solid-state reaction method. The powders of ZnO and NiO (Aldrich 99.999 purity) are thoroughly mixed and calcined for 12 h in air at 1000 °C, pressed into pellets, sintered at 1000 °C for 10 h, and then quenched to RT. The purity of the phase and structural morphology are tested by XRD and SEM techniques. The reflectance and absorption spectra against wavelength are recorded by Jasco V-570 (Japan) double-beam spectrophotometer. However, PL spectra are obtained using a JASCO PF-6300 WTE spectrofluorometer with S.N. C033560902, 220–750 nm wave length with standard PM tube, light source Xe lamp, Ac220V and class I protect. Finally, the magnetization curves at RT and up to 18,000 G are obtained by using vibrating sample magnetometer (VSM).

3 Results and discussion

3.1 Structural analysis

The structural investigation of the samples is carried out using the XRD pattern shown in Fig. 1. As seen in the figure, the common diffraction peaks belong to wurtzite structure of pure and Ni-doped ZnO are clearly observed. The well-known peaks (101), (210) and (220) of little intensities recorded at Ni ≥ 0.05 are belonging to ZnO wurtzite structure. It is noted that the peaks (100), (002) and (111) formed with relatively more increased intensities for Ni samples up to 0.20 as compared to pure ZnO. This indicates that Ni is well substituted for Zn2+ in the unit cell due to the matching of ionic radii of Ni2+ (0.69 Å) as compared to Zn2+ (0.74 Å) at the same tetrahedral fold coordination. The values of lattice parameters a and c listed in Table 1 are slightly changed with Ni and they are consistent with those ideal values of ZnO (a = 3.250 Å, c = 5.206 Å) [47,48,49]. The values of U-parameters, \(U = 0.333\left( \frac{a}{c} \right)^{2} + 0.25\), listed in Table 1, are nearly constant (U = 0.379) as reported [50, 51]. The Zn–O bond length (L), \(L = \left[ {\left( {\frac{{a^{2} }}{3}} \right) + (0.5 - U)^{2} c^{2} } \right]^{\frac{1}{2}}\)[52] are between 1.991 and 1.981 Å for all samples indicating that no more electrons contributed in the bond formation [53,54,55,56].

Fig. 1
figure 1

The XRD pattern of pure and Ni-doped ZnO samples

Table 1 a, c, U, L, D, δ, n, ε, σ and type of stress for pure and Ni-doped ZnO

The crystallite size Dhkl is given by [15, 57, 58]

$$D_{hkl} = \frac{K\lambda }{{\beta \cos \theta }}.$$
(1)

K = 0.9 for ZnO, λ = 1.5418 Å and β is the half-maximum line width. The average values of D for the most intense diffraction peaks (D100), (D002) and (D111), listed in Table 1, are increased by Ni up to 0.20. They are 28.32, 41.77, 36.30, 38.58 and 37.1 nm for all samples. Although the values of D are not systematic against Ni content, it is generally increased as Ni increases. The inverse behavior is obtained for the dislocation density calculated by, δ = 1/D2 and listed in Table 1 [59, 60]. This behavior indicated that Ni helps the doped ZnO samples to have good crystalline qualities and to be free from the lattice defects [16, 61]. The number of unit cells existent in each particle of ZnO is given by [62, 63]

$$n = \frac{{V_{un} }}{{V_{uc} }} = \frac{{\frac{4}{3}\pi \left( \frac{D}{2} \right)^{3} }}{{\frac{\sqrt 3 }{2}a^{2} c}} = 0.604\frac{{D^{3} }}{{a^{2} c}},$$
(2)

where Vun and Vuc are the volumes of ZnO as a spheres and ZnO hexagonal unit cell, respectively. The values of n listed in Table 1 are increased by Ni as well as Dhkl behavior (n α D). For more illustration of the effect of Ni on the structure defects of ZnO, the residual stress \(\sigma\) is given by [17, 64, 65]

$$\sigma = \frac{{[2S_{13}^{2} - S_{33} (S_{11} + S_{12} )]\varepsilon }}{{2S_{13} }} = - 232.8\varepsilon,$$
(3)

where = \({S}_{13}\) = 104.2 GPa, \({S}_{33}\) = 213.8 GPa, \({S}_{11}\)= 208.8 GPa, \({S}_{12}\)= 119.7 GPa are the elastic stiffness constants of hexagonal Zn. ε is the lattice strain along c-axis and can be calculated by \(\varepsilon = \frac{{c - c_{ \circ } }}{{c_{ \circ } }}\), where co = 5.2066 Å for the unstrained ZnO hexagonal structure [66, 67]. However, similar values of ε and \(\sigma\) listed in Table 1 indicated that ε is positive and almost decreases as Ni increases up to 0.10, but it is changed from positive to negative at Ni = 0.20. An inverse behavior is obtained for\(\sigma\), which indicated compressive stress for the samples up to Ni = 0.10, but it is changed to tensile stress for Ni = 0.20. Consequently, 0.20 of Ni to ZnO may eliminate the compressive stress and turn it to tensile behavior [68].

The structural morphology shown in the SEM micrographs of Fig. 2 does not show any second phases formed by Ni at the grain boundaries, but the grains are randomly distributed and composed over the matrix structure which makes them higher conductive as compared to ZnO. The average grain size (D) is given by \(D = \frac{1.56\ell }{{MN}}\), M is the magnification, \(\ell\) is the arbitrary length, M is the graph magnification of graph, and N is the counted grain boundaries [69]. The average grain sizes listed in Table 1 are 2.06, 3.09, 2.59, 2.27 and 2.46 μm, respectively, for all pure and doped samples. This means that D is generally increased by Ni, which is in agreement with the behavior of crystallite size Dhkl deduced from XRD analysis.

Fig. 2
figure 2

SEM images of pure and Ni-doped ZnO samples

3.2 Optical constants

Here the optical constants of the investigated samples are determined using the absorbance and reflectance data shown in Fig. 3. As shown in the figure, the absorbance as well as reflectance decreases with increasing the wavelength and become nearly constant at longer wavelengths. The effect of the Ni content on both the absorbance and reflectance is clearly seen where they increase with increasing the concentration of Ni. One can observe the improvement in the optical absorption of ZnO samples by the doping with Ni ions. This result states that Ni doping plays an important role in optimizing the optical properties of ZnO samples for optoelectronic applications based on the materials of high absorption as well as good conductivity. Furthermore, an absorption band is observed in the optical data which is centered at a wavelength of 552 nm (see Fig. 3). In addition, it is observed that the center of the band is shifted towards longer wavelengths with increasing Ni content. This band could be attributed to some structural defects which are formed as result of the substitution of Zn ions by Ni ones. On the other hand, the absorption coefficient \(\alpha\) of the pure and Ni-doped ZnO samples is calculated using the following equations:

$$\alpha = 2.303 \log A,$$
(4)

where A is the absorbance. The absorption coefficient is among the important optical parameters which is used here in the optical analysis to determine the type of electronic transition and the value bandgap of the ZnO samples as well. This can be achieved by using the following relation [70, 71]:

$$\left( {\alpha h\nu } \right) = G\left( {h\nu - E_{g} } \right)^{r},$$
(5)

where G is constant and \({E}_{g}\) is the optical bandgap. From the results, we found that r = 0.54 indicating a direct transition for the considered samples. Therefore, Eq. 5 can be rewritten as

$$\begin{gathered} \left( {\alpha h\nu } \right) = B\left( {h\nu - E_{g} } \right)^{0.54} \hfill \\ or \hfill \\ \left( {\alpha h\nu } \right)^{2} = B\left( {h\nu - E_{g} } \right) \hfill \\ \end{gathered}.$$
(6)

Figure 4 shows \({(\alpha h\nu )}^{2}\) against \(h\nu\) of the pure and Ni-doped ZnO samples. One can see that there are two absorption edges, which confirms that the studied samples possess two electronic transition mechanisms. The intercept of the straight lines in Fig. 4 and inset figure with x axis at \({(\alpha h\nu )}^{2}=0\) gives the value of the direct bandgap (Eg1 and Eg2) for the two transitions of the studied samples (see Table 2) [72]. As shown in Table 2, the bandgaps Eg1 and Eg2 decrease from 3.31 to 2.91 and 2.84 to 2.65 eV, respectively, indicating the great effect of the Ni content on the band structure of ZnO. Such trend of bandgap narrowing is also observed for Co-doped ZnO thin films [73]. This behavior is explained in terms of the proposed model which is used for interpreting the winding and shrinkage of the dopants, and consequently the energy gap is determined by [74, 75]

$$E_{g} = E_{g0} + E_{wg} + E_{Ng},$$
(7)

where \({E}_{g0}\) is the energy gap between the upper limit of VB to the lower limit of CB, while \({E}_{wg}\) is the gap widening defined by the shift of Burstein Moss [76]. This shift is due to that the lowest states of conduction band are populated and this causes a blocking of the conduction band minimum. This phenomenon usually appears for the degenerate semiconductors [77]. The third term \({E}_{Ng}\) in Eq. 7 is the decrease in the gap as a result of Coulomb forces between the electrons in CB and electron impurity scattering [78]. In our present work, the ZnO samples could not degenerate semiconductors and thus the term \({E}_{wg}\) is negligible compared to \({E}_{Ng}\). In this case, increasing the Ni doping concentration will result in an increase of \({E}_{Ng}\) , thereby causing a reduction in the optical bandgap of Ni-doped ZnO samples. Another reason for the reduction of Eg is the formation Sp–3d hybridization by the 3d levels of the Ni2+ ions which are located below the conduction band. Increasing the Ni doping concentration usually decreases the strength of hybridization between Sp and 3d, and therefore the gap may also decrease [79]. On the other hand, the two bandgaps observed for the investigated ZnO samples could be attributed to two electronic transition mechanisms. The first is due to transition from the upper of VB to the upper of CB and the other from VB to the bottom of CB.

Fig. 3
figure 3

a The absorbance and b reflectance versus the wavelength of pure and Ni-doped ZnO samples

Fig. 4
figure 4

\({(\alpha h\nu )}^{2}\) versus photon energy \(h\nu\) of pure and Ni-doped ZnO samples

Table 2 Eg, Ed, Eo, ɛ and (N/m*) of pure and Ni ZnO samples

In addition to the above-determined optical constants, the refractive index n is also computed for the investigated samples using the following formula [80]:

$${\text{n}} = \left( {\frac{1 + R}{{1 - R}} + \left[ {\frac{4R}{{\left( {1 - R} \right)^{2} }} - k^{2} } \right]^{{{1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-\nulldelimiterspace} 2}}} } \right).$$
(8)

One can observe in Fig. 5 that n increases by the increase of Ni and λ. This could be caused by increasing the density of states as result of increasing the number of Ni ions in ZnO samples. In addition, a peak is a formed around 528 nm and its maximum is shifted to higher wavelengths with increasing the Ni content.

Fig. 5
figure 5

The refractive index versus wavelength \(\lambda\) of pure and Ni-doped ZnO samples

Determining the refractive index in the present work enabled us to get many optical parameters which are important from the point view of the optoelectronic applications. Among these parameters are the optical \({\sigma }_{\text{opt}}\) and electrical \({\sigma }_{\text{elec}}\) conductivity which are obtained using the relations [80]:

$$\left. {\begin{array}{*{20}c} {\sigma_{{{\text{opt}}{.}}} = \alpha nc\varepsilon_{0} = \frac{\alpha nc}{{4\pi }}} \\ {\sigma_{{{\text{elec}}{.}}} = \left[ {\frac{2\lambda }{\alpha }} \right] \cdot \sigma_{{{\text{opt}}{.}}} } \\ \end{array} } \right\},$$
(9)

where c is speed of the light and \({\varepsilon }_{0}\) free space permittivity. As indicated in Fig. 6, \({\sigma }_{\text{opt}}\) and \({\sigma }_{\text{elec}}\) generally increase as Ni increases as a result of increasing the free carriers in the host lattice of ZnO.

Fig. 6
figure 6

The optical and electrical conductivity of pure and Ni-doped ZnO samples

Fabrication of the capacitors requires materials with specific characteristics. The dissipation factor tan (δ) is among the physical quantities which determine the degree of the capacitors quality using the real and imaginary parts of dielectric constant, \({\varepsilon }_{r} \left({\varepsilon }_{r}={n}^{2}-{k}^{2}\right)\), \({\varepsilon }_{i} \left({\varepsilon }_{i}=2nk\right)\) [81]:

$$\tan \delta = \frac{{\varepsilon_{i} }}{{\varepsilon_{r}. }}$$
(10)

Figure 7 shows the dissipation factor tanδ versus and in which tan(δ) decreases with increasing the Ni content and photon energy as well. This refers to that the Ni doping reduces the energy loss rate of the oscillation mode of ZnO samples. It is known that the quality of the capacitor depends on tan(δ). It is inversely proportional to the dissipation factor. Hence, the studied Ni-doped ZnO materials can be potential materials for the fabrication of high-frequency applications which require high-quality capacitors.

Fig. 7
figure 7

VELF and SELF versus the photon energy \(h\nu\) of pure and Ni-doped ZnO samples

Additionally, the real and imaginary parts are used to determine the volume energy (VELF) and surface energy loss functions (SELF) which represent the electrons energy loss as they move through the bulk or surface of the materials, respectively [82]:

$${\text{VELF}} = \frac{{\varepsilon_{i}^{2} }}{{\varepsilon_{r}^{2} + \varepsilon_{i}^{2} }}$$
(11a)
$${\text{SELF}} = \frac{{\varepsilon_{i}^{2} }}{{(\varepsilon_{r} + 1)^{2} + \varepsilon_{i}^{2} }}.$$
(11b)

The parameters VELF and SELF are plotted versus the photon energy in Fig. 8. It is found that VELF and SELF decrease with increasing the photon energy and Ni as well. It is clear that the doping of ZnO by Ni2+ ions reduce the energy loss of electrons as they travel through the bulk or surface of the ZnO samples. This could be interesting property from the point of view of the practical applications of ZnO.

Fig. 8
figure 8

\(\mathrm{tan}\delta\) versus the photon energy \(h\nu\) of pure and Ni-doped ZnO samples

The refractive index values are analyzed using different models to determine other parameters such as the high-frequency dielectric constant \({\varepsilon }_{L}\) and the dispersion parameters (dispersion Ed and single oscillator energy E0). This was carried out using the following equations [82]:

$$n^{2} = \varepsilon_{L} - \left( {\frac{{e^{2} }}{{4\pi^{2} c^{2} \varepsilon_{0} }}} \right)\left( {\frac{N}{{m^{ * } }}} \right)\lambda^{2}$$
(12a)
$$n^{2} = 1 + \frac{{E_{O} E_{d} }}{{E_{O}^{2} - (h\nu )^{2} }},$$
(12b)

where e is the electronic charge and N/m* is the ratio of carrier number to the effective mass of the electron. Figure 9a and b represents the plot of n2 versus the wavelength \(\lambda\) and (n2 − 1)−1 versus \((h\nu )^{2}\). The appearance of the straight lines in Fig. 9 confirms the linear relationship of both Eqs. 12a and b. Furthermore, the linear fit procedure of the data in the figure enabled obtaining the values of \({\varepsilon }_{L}\), E0, Ed and N/m* which are listed in Table 2. The first observation in the table is that N/m* is continuously increasing with the Ni content, indicating that the introduction of Ni2+ ions into the ZnO samples produce more free carriers thereby improving the optical and electrical conductivity as mentioned above. Furthermore, the dispersion energy and high-frequency dielectric constant increase but the oscillator energy is reduced with the doping concentration. This reveals the effect of the incorporation of Ni2+ ions on the dispersion parameters which is a good indication of controlling the optical parameters of ZnO by the doping and this is very important for the fabrication of the optical devices. In addition, the non-linear optical parameters for the optoelectronic show that refractive index depends on light intensity which propagates in the material. In this case, the refractive index is called non-refractive index and is given by [83]

$$n_{2} = \frac{{12\pi \chi^{\left( 3 \right)} }}{{n_{o} }},$$
(13)

where χ(3) is third-order non-linear susceptibility and no is static dielectric constant which are computed by

$$\chi^{\left( 3 \right)} = B\left( {\chi^{\left( 1 \right)} } \right)^{4}$$
(14a)
$$n_{o} = 1 + \frac{{E_{d} }}{{E_{0} }},$$
(14b)

where χ(1) is the linear susceptibility which is dependent on the dispersion parameters E0 and Ed:

$$\chi^{\left( 1 \right)} = \frac{{E_{d} }}{{4\pi E_{o} }}.$$
(15)
Fig. 9
figure 9

a \({n}^{2}\) versus \({\lambda }^{2}\) and b \({{(n}^{2}-1 )}^{2}\) versus \({(h\nu )}^{2}\) of pure and Ni-doped ZnO samples

By combining the above three equations, we obtain the relation which is used to calculate the values of third-order non-linear susceptibility:

$$\chi^{\left( 3 \right)} = \frac{B}{{(4\pi )^{4} }}\left( {n_{o}^{2} - 1} \right)^{4}.$$
(16)

B is constant and it is equal to 1.7 × 10–10. The values of the optical parameters, no, n2, χ(1) and χ(3) are shown in Table 3. It is clear that the Ni content has a positive effect on the non-linear parameters where no, n2, χ(1) and χ(3) are increased with increasing the number of Ni ions in ZnO lattice. This is another interesting result which confirms the controlling as well as improvement of the optical properties of ZnO by Ni doping and this enables the possibility of the development of ZnO to be promising materials for the optoelectronic applications.

Table 3 χ(1), χ(3), n2 and no of pure and Ni ZnO samples

3.3 Photoluminescence (PL)

The characteristic of UV band edges against the optimum value of PL intensity for pure and Ni-doped ZnO is shown in Fig. 10. However, a lot of continuous peaks are recorded in which the wave number is slightly shifted by Ni to higher values (lower energy against each peak), and the intensity is increased. Interestingly, some of strong UV common emissions listed in Table 4 are recorded at about 390, 420 and 440 nm, in consistent with the reported for ultraviolet energy gap of ZnO ~ (3–3.2) eV [84]. This of course is another clear evidence for decreasing the bandgap energy of ZnO by Ni at these most intensive peaks due to their shift to higher wave lengths as indicated above. These original emissions are, respectively, due to e–h or exciton recombination below CB to VB and transition of electron from the level of shallow donor of Zn ion to the upper limit of VB at about 340 meV below CB [85,86,87]. It has been demonstrated that the free carrier has an effect on the ionization state of the oxygen vacancy, which can strongly impact the green emission intensity [88, 89]. Therefore, the increase of PL intensity by Ni is due to increasing the electron free carries in conduction band with doping of donor impurities such as Ni. This was supported by increasing (N/m*) as listed in Table 2. The alternative reason may be related to the higher rate of donor-bound excitonic recombination due to Ni doping. Therefore, the number of absorbed photons will be increased, and consequently the intensity was increased. While the other extra of emissions between (438–525 nm) and (2.6–2.35 eV) are described by radiative transitions and also acceptor–donor recombination to oxygen antisites [90,91,92], the emissions due to host ZnO phosphors above 600 nm and also below 380 nm are not observed for the present samples, which indicated that the samples are free from defects [93, 94]. Anyhow, a green emission is commonly observed in ZnO prepared in oxygen-deficient environments resulting in vacancy of oxygen. They attributed it to donor Vo–acceptor VZn recombination. Recently, photoluminescence studies on sol–gel-derived ZnO: Gd and ZnO nanorods doped by Al have been investigated. They have shown multi-peaks of emission lines in blue, green and red regions (390–650 nm) as well the present case [95]. They also found a difference in the peak position and the nature of the PL spectra between these lines. They attributed these missions to crystallization conditions and intrinsic defects such as oxygen vacancies VO, zinc vacancies VZn, oxygen interstitials Oi, zinc interstitials Zni, oxygen antisites OZn and acceptor level of VZn located above VB [86,87,88,89,90, 95].

Fig. 10
figure 10

PL intensity versus wave length for pure and Ni-doped ZnO samples

Table 4 PL energy and wave number for pure and Ni-doped ZnO samples

3.4 RTFM measurements

Room temperature magnetization versus magnetic field (M–H) of the samples is shown in Fig. 11. It is apparent that the pure and 0.025 of Ni samples do not exhibit a clear ferromagnetic as the reported for ZnO diamagnetic behavior [95]. With increasing Ni above 0.025, a clear ferromagnetic behavior with evaluated magnetization is observed and gradually increased by Ni up to 0.20. The saturated magnetization Ms listed in Table 5 is increased from 0.026 (emu/g) for pure ZnO to 0.027, 0.044, 0.062 and 0.081 (emu/g) for Ni samples. Similar behavior is obtained for Mr, ∆M and MH slope, but Hc is reduced as listed in Table 5. This is due to the effective magnetic moment of Ni (μ = 2.83 μB), when Zn2+ is replaced by Ni2+ in either tetrahedral or octahedral coordination. This is also supported by antiferromagnetic behavior recorded for NiO synthesis at higher temperatures and superparamagnetism/spin-glass-like behavior at low temperatures. The magnetic moment μ and magnetic anisotropy factor γ are calculated by \(\mu (\mu_{B} ) = \frac{{WM_{s} }}{5585}\), \(\gamma = \frac{{H_{c} M_{s} }}{0.98}\), respectively (W is the atomic weight) [96, 97]. It is clear that μ is increased by Ni from 0.0004 to 0.0012 μB and γ from 0.171 to 0.265 (emu G/g), supporting RTFM for Ni-doped samples. However, it is reported that Ni-doped ZnO within the soluble limit exhibits room temperature weak ferromagnetism due to formation of bound magnetic polarons within the localized spins of the Ni ions through interaction with the charge carriers such as oxygen vacancies. This is of course resulting in a magnetic polarization of the surrounding local magnetic moments of ZnO by Ni [98,99,100]. Therefore, the observed weak ferromagnetism at RT seems to be the combined effect of the interaction of Ni2+ spin at the tetrahedral sites with charge carriers such as oxygen vacancies in forming bound magnetic polarons [10, 101].

Fig. 11
figure 11

Magnetization versus magnetic for pure and Ni-doped ZnO samples

Table 5 Magnetic parameters for pure and Ni-doped ZnO sample

4 Conclusion

Optical, photoluminescence and ferromagnetic properties of pure and Ni-doped ZnO are well investigated. Although the wurtzite structure is approved for all samples, the crystallite size, grain size and number of unit cells in ZnO particle are increased by Ni. The residual stress is compressive as Ni increases up to 0.10, but it is changed to tensile at Ni = 0.20. An absorption band centered at a wavelength of 552 nm is observed for all samples and is gradually shifted towards longer wavelengths (red shift) as Ni increases. Interestingly, two bandgaps could be obtained for all samples and their values are gradually decreased as Ni increases. Furthermore, most of the obtained optical constants are increased by Ni, whereas dissipation factor is reduced. Moreover, strong UV emission peaks recorded at about 390, 420 and 440 nm for all samples. Finally, the signature of a clear weak ferromagnetism with evaluated magnetic parameters could be recorded for Ni ≥ 0.05 doped samples. The present study approved that addition of Ni to ZnO not only showed an interesting feature, but it also has a positive impact on the properties of ZnO compound that makes it highly suitable for optoelectronic applications.