1 Introduction

In recent studies, nanometer scale materials much interest because it exhibits new or enhanced size dependent properties compared with the larger size particles of the same material [1]. Nano semiconductor materials exhibit host of mechanical, electrical, and optical properties, which are superior to those of the individual components [2, 3]. CdS is the direct band gap II–VI semiconductor material having a bandgap 2.42 eV at room temperature. Transition metal (Mn, Ni, Cu etc.) doped CdS has drawn considerable attention as it affects the optical and luminescence properties. As recently II–VI semiconductor materials have much attention for room temperature ferromagnetism [4]. The RTFM in CdS has great development in the fabrication of magneto-optical and spintronics devices [58]. Deposition techniques such as sputtering [9], pulsed laser deposition [10], spray pyrolysis [11] and chemical bath deposition technique [12] have already been employed to prepare thin films. CdS and Ni doped CdS thin films were obtained through chemical bath deposition technique. Chemical bath deposition technique is simple, low cost and effective method for preparation of nano sized thin films [13]. In this study, we investigate the structural, optical and magnetic properties of undoped and Ni doped CdS thinfilms.

2 Experimental

The deposition of CdS thinfilms were carried out on sonicated cleaned glass substrate. For CBD, the composition of the bath was maintained with 7.5 ml of 0.2 M CdCl2·2H2O, 10 ml of 0.1 M NH4Cl, 7.5 ml of 0.5 M CS(NH2)2, 25 ml of 2 M NH4OH and 10 ml of 0.6 mM EDTA. For preparing of Ni doped films of various compositions, ratio of 0.2 M NiCl2·5H2O and CdCl2·2H2O is varied as per requirement. Deposition was carried out at the constant bath temperature of 80 °C. All the experiments were maintained for 60 min. The deposited films were dried in air and subsequently annealed at the temperature of 300 °C for an hour. All the films were dark yellow in in color. The proposed overall mechanism for the deposition of CdS is

$${\text{CdCl}}_{ 2} + \left( {{\text{NH}}_{ 2} } \right)_{ 2} {\text{CS + 2OH}}^{ - }\longrightarrow {\text{CdS + H}}_{ 2} {\text{CN}}_{ 2} {\text{ + 2Cl}}^{ - } {\text{ + 2H}}_{ 2} {\text{O}}$$

The structural properties the film were studied by X-ray diffractometer system (X’PERT Pro PANalytical, Netherlands) with CuKα radiation (λ = 0.1540 nm) by varying the diffraction angle 2θ with a step width of 0.02º. Surface morphological studies were carried out by scanning electron microscope (JEOL model JSM-6701F, Japan) and AFM–(Nano surf Easy scan 2) AGILENT–N9410A–5500 measurements in contact mode. Optical transmittance was measured by Perkin Elements Lambda 35 UV–Vis spectrometer. Magnetic properties of the films were studied with Vibrating Sample Magnetometer (VSM, Model; PAR 4500). The structural, optical and magnetic characterizations of Cd1−XNiXS were done the range of methods.

3 Results and discussions

The structural studies using XRD patterns obtained for undoped and Ni doped CdS nano thin films confirms that they exhibit cubic structure as per the standard JCPDS card no. 89-0440. The 2θ values of the diffraction peaks are observed at 26.46°, 43.89° and 51.97° respectively which corresponds to reflections from (111), (220) and (311) planes for undoped and Ni doped CdS thinfilms. With increasing Ni concentration, the peak (111) slightly shift to lower angle which indicates the increased lattice parameter in Cd1−XNiXS (X = 0.06 and 0.08) thinfilms. It may assign by the presence of dopant (Ni) contents (or) it was aroused due to the lattice contraction in nano structure Fig. 1.

Fig. 1
figure 1

X-ray diffraction pattern of Cd1−XNiXS thinfilms obtained at various Ni concentrations

The hexagonal phase based peaks (100) and (101) were identified in Ni doped CdS films. This indicates that Ni doping stabilizes hexagonal phase in CdS. But some extra Nickel Sulfide based peaks appeared in Ni doped CdS films which were indicated by astricks (*). This Ni2S lattice has affected the crystalline nature of CdS film. The shift in prominent peak towards lower angles is shown in Fig. 2 with increasing x. The average crystallite sizes are calculated using Debyes Scherrer formula

$$D = \frac{k\lambda }{\beta Cos\theta }$$

Where λ is the wavelength of X-rays, θ is the Bragg diffraction angle, β is the FWHM of the XRD peak corresponding to the Bragg diffraction angle 2θ and D is the crystallite size. The strain (ε) was calculated using the relation.

$$\varepsilon = \frac{\beta cos\theta }{4}$$

Figure 3 shows the variation of crystallite size (D) and strain (ε) values of undoped and Ni doped CdS thinfilms with respect to Ni concentration. The crystallite size gradually increased from 11 to 40 nm with the increased Ni concentration. The strain gradually decreased with increase of Ni content up to X = 0.06 M and then suddenly decreased with increased Ni content for X = 0.08 and 0.1 M. It is clear from the figure that the strain values decreased due to the increased crystallite sizes [14]. Summary of the structural results are presented in Table 1.

Fig. 2
figure 2

X-ray diffraction pattern of Cd1−XNiXS thinfilms obtained at various Ni concentrations

Fig. 3
figure 3

The Crystallite size and strain values for Cd1−xNixS thinfilms (x = 0 to 0.1 M)

Table 1 A summary of lattice constant, crystallite size, strain and bandgap values for varying Ni content

Figure 4a, b shows the atomic microscopy images of Ni doped CdS thinfilms at x = 0.06 and 0.08 M. The smaller grains are agglomerate together to form larger grains at x = 0.06 M Ni concentrations. For Ni concentration at x = 0.08 M, the size of each grains differs from each other which indicating irregular growth rate of the grains. Grain sizes of the films are increased with increased Ni concentration and also increased the surface roughness of the films.

Fig. 4
figure 4

Two-dimensional and Three-dimensional AFM images for Cd1−XNiXS thinfilms obtained at various Ni concentrations a X = 0.06 b X = 0.08 M

Scanning Electron Microscopy (SEM) pictures of pure CdS and Ni doped CdS films are shown in Fig. 5. From Fig. 5a, there is no well-defined grain boundary with uneven shaped grains were observed. The small sized particles but agglomerated spherical like particles were observed in the Fig. 5b SEM images. The increased grain sized particles is revealed from the micrographs. Ni doped Cd1−XNiXS (X = 0.08) films formed with homogeneity than the other undoped and Ni doped films. The bigger sizes of micro ranged particles are observed from Fig. 5c SEM picture. It may be due to agglomeration of nano particles and surface roughness increased with increased Ni concentrations. Figure 5d represents the Energy Dispersive Analysis X-ray spectra obtained Ni doped Cd1−XNiXS (X = 0.04) films for composition analysis. The observed peak of Cd, Ni and S confirms the presence of Ni doped CdS thin films.

Fig. 5
figure 5

SEM images for Cd1−XNiXS thinfilms obtained at various Ni concentrations a X = 0 b X = 0.04, c X = 0.08 and d EDAX for X = 0.04 M

The optical transmission spectra of the thin films were studied in the wavelength range of 400–1100 nm. The optical absorption coefficient (α) and bandgap (Eg) are related by [15]

$$\alpha {\text{h}}\nu = {\text{A}}\left( {{\text{h}}\nu {-}{\text{E}}_{\text{g}} } \right)^{\text{n}}$$

Where A is a constant and Eg is the bandgap of the materials and exponent n depends upon the type of transition. For direct transition n = 1/2, indirect transition n = 2. X = 0.02 Ni doped CdS and pure CdS films have very closed bandgap values because X = 0.02 have not any structural changes in the CdS structure but decrement in the band gap for increasing the dopant concentration is the cause of incorporation of Ni2+ ions into the host which have 3d interaction with the valence electrons (sp) of CdS. The values of the extinction coefficient (k) of CdS thinfilms decreased with Ni concentration (Figs. 6, 7, 8 and 9 respectively). Similarly refractive index (n) of CdS thinfilms increases with Ni concentration. This is because as the Ni concentration increased with increased absorption coefficient.

Fig. 6
figure 6

Bandgap for Cd1−XNiXS thinfilms obtained at various Ni concentrations a X = 0 b X = 0.04 c X = 0.06 d X = 0.08 and e X = 0.1 M

Fig. 7
figure 7

Extinction coefficient for Cd1−XNiXS thinfilms obtained at various Ni concentrations a X = 0 b X = 0.04 c X = 0.06 d X = 0.08 and e X = 0.1 M

Fig. 8
figure 8

Refractive index for Cd1−XNiXS thinfilms obtained at various Ni concentrations a X = 0 b X = 0.04 c X = 0.06 d X = 0.08 and e X = 0.1 M

Fig. 9
figure 9

Real Part of Dielectric constant for Cd1-XNiXS thinfilms obtained at various Ni concentrations a X = 0 b X = 0.04 c X = 0.06 d X = 0.08 and e X = 0.1 M

However, change in refractive index due to change in Ni accounts with the crystallite sizes and internal strain with the films [16, 17]. The increase of refractive index with film thickness (t) shown in Figs. 10 and 11 respectively may be recognized as the increase of crystallite size with the decreases in microstrain.

Fig. 10
figure 10

Imaginary Part of Dielectric constant for Cd1−XNiXS thinfilms obtained at various Ni concentrations a X = 0 b X = 0.04 c X = 0.06 d X = 0.08 and e X = 0.1 M

Fig. 11
figure 11

Refractive index for Cd1−XNiXS thinfilms obtained at various Ni concentrations a X = 0 b X = 0.04 c X = 0.06 d X = 0.08 and e X = 0.1 M

The Photoluminescence (PL) spectra of the undoped and Ni doped CdS nanoparticles are shown in the Fig. 12. PL spectra consist many emission peaks indicates particle size distribution in the films. The PL spectrum of Cd1−XNiXS (X = 0, 0.06 and 0.08 M) thinfilms shows sharp emission peak at 490 nm with two right side shoulders at 545 and 595 nm. Here emission at 490 nm is the band edge emission due to the recombination of the exciton in the delocalized states of the films and it determines crystalline nature of nanoparticles [18, 19]. The peak at 545 nm is usually attributed to trap state emission arise from surface state defects. Commonly CdS films consists of Cd vacancies or S vacancies, interstitial of S and surface adsorption of Cd or S atoms.

Fig. 12
figure 12

Photoluminescence spectra of Cd1−XNiXS thinfilms obtained for a X = 0.0, b X = 0.06, c X = 0.08 M

Figure 13, shows the variation of magnetization as a function of magnetic field for Ni doped CdS films. The saturation magnetization (Ms) strongly depends on the dopant concentration of the films. The increase in Ms was probably caused by increase in electrons which induced more efficient ferromagnetic couplings between doped Ni2+ ions [20]. The free carrier concentrations are induced in Ni doped CdS films by the substitution of guest ions (Ni) into the host lattice (CdS) will lead to room temperature ferromagnetism in the thinfilms [21]. The magnetic properties were tabulated in Table 2. The Cd1−XNiXS (X = 0.4) films shows less coercive value than Cd1−XNiXS (X = 0.8) films because of low concentrations of Ni content which dominated the sp-d electrons exchange interactions between sp electrons of CdS and d electrons of Ni2+ [22, 23]. The results are consistent with those of Ni doped CdS thin films prepared by chemical spray pyrolysis by Rmili et al. [24] and they have reported that superior thin films of Ni doped CdS with 4 % Ni can be grown by chemical spray method. The room temperature ferromagnetism has been reported for nanoparticles of CdS doped with Sanjeev Kumar et al. [25] for 3 % Ni doping and 3 % Ni, Cu co-doping. These studies revealed that chemical methods are suitable to produce DMS materials with ferromagnetic properties.

Fig. 13
figure 13

VSM images for Cd1−XNiXS thinfilms obtained at various Ni concentrations a X = 0.06 b X = 0.08 and c X = 0.1 M

Table 2 Magnetic saturation, retention and coercivity values for Ni doped CdS thin films

4 Conclusion

Undoped and Ni doped CdS thin films were deposited onto non conducting glass substrate using chemical bath deposition technique. The lattice structure of CdS films increased and also which starts to changes from cubic to hexagonal phase with the increased Ni concentrations. AFM images show the agglomeration of smaller to bigger grains by increasing Ni dopant in CdS thin films. The bandgap vales decreased from 2.62 to 2.28 eV by increased Ni content in the CdS structure. Simirally the magnetization is incresed by induced ferromagnetic couplings between doped Ni2+ ions.