1 Introduction

Chalcogenide materials such as cadmium sulfide (CdS) have great scientific interest due to its low resistivity, high transmittivity, good chemical stability and large band gap of 2.42 eV at room temperature [1, 2]. CdS thin film have played very interesting role for their photovoltaic applications like photo conducting cells, light emitting diodes and non-linear integrated optical devices [3, 4]. As a window layer, thin films of CdS have been largely used in the application of CdS/CdTe, CdS/CuInSe2,CdS/Cu2S and p-BaSi2/n-CdS high efficiency solar cells [5,6,7,8,9,10]. Since the deposition technique has great influence on the property of the CdS thin films, various deposition techniques like Chemical Bath Deposition (CBD) [11], Electrodeposition [12], Spray pyrolysis [13], Chemical Vapor Deposition (CVD) [14], Physical Vapor Deposition (PVD) [15], Sol–gel [16], Molecular Beam Epitaxy (MBE) [17], Electron beam evaporation [18], Pulsed direct current magnetron sputtering [19], close-spaced sublimation [20] and spin coating [21] etc. were also investigated. Among these techniques, the spin coating is a popular method for its simplicity, low cost and good reproducibility [21] and that’s why spin coating method was chosen for the deposition of CdS thin film in this research.

Numerous experimental works were found to investigate the structural and optical properties of thin films of CdS [22], but very few works were found those investigated the relation between thickness with structural and optical properties of CdS [23], given the fact that for solar cell applications, the thickness of the film is very imperative factor, which influences the junction performance [24]. Under this background we present a detailed investigation by looking into the influence of thickness on the various structural and morphological and optical parameters to find the correlation between the thickness and CdS film quality. It appears that the thickness alone can be tuning tool for the application specific properties of spin-coated CdS thin films.

2 Materials and methods

CdS precursor solution were prepared from CdS powder (99.9999%), Ethylendiamine, and 1,2 Ethanedithiol. All those chemicals were purchased from Sigma Aldrich and were used without further purification. Ethylendiamine and 1,2 Ethanedithiol were blended at a volume proportion of 9:1 as the solvent and 0.5 wt% CdS powder was mixed with the solvent. After including 1–2 drops of TX-100 surfactant within the CdS solution the concoction was stirred on a magnetic stirrer for 15 h at a temperature of 50 °C that gave a completely dissolved and optically transparent CdS precursor solution. Single layer of CdS film was deposited onto duly cleaned (piranha solution, acetone, isopropyl alcohol and deionized water) and dried soda lime glass (SLG) substrates (1′′ × 1′′) from the prepared CdS precursor solution by spin coating. CdS films of 300, 200 and 100 nm were obtained by coating the precursor solution at spinning speeds of 1600, 1800 and 2000 rpm respectively for 45 s. Residual solvents were removed from the as-deposited spin coated CdS films by heating at 90 °C for 12 min in an oven (Carbolite: RWF 12/13). CdS films were annealed at 300 °C in a vacuum chamber for 5 min that synthesized yellowish colored CdS films.

3 Results and discussion

The focus of this article is the thickness dependency of CdS thin-film properties because the film thickness is considered as an important factor that governs various thin films properties. The thickness of the CdS films was carefully estimated by BRUKER DekTak XTL thickness profilometer. The crystal and structural properties were studied by XRD utilizing the Cu-Kα radiation, while surface morphology was analyzed by the SEM (ZEISS EVO 18). Optical properties were investigated using a UV–VIS spectrophotometer (PG Instruments: T60) in the wavelength ranges of 360–1100 nm.

3.1 XRD analysis of thickness-dependent crystalline properties of CdS thin films

The XRD is considered as a nondestructive technique for studying the crystallographic and structural properties of materials. The XRD spectra of three CdS films having thickness 100, 200 and 300 nm have been shown in Fig. 1a. The spectra were obtained by scanning 2θ in the range of 20°–70°. Three diffraction peaks at 2θ value of 13.20°, 15° and 25° corresponding to (002), (002) and (100) planes of CdS film were found, which were matched very well with CdS (JPDCS Card No. 020563) and (JCPDS Card No. 41–1049) and agreement with the previous reports [25,26,27,28,29]. CdS films were found polycrystalline dominated by the (002) plane with hexagonal phase. Similar crystallinity can also be found in other reports [25, 30]. The peak intensity was found to increase with the increase of films thickness, which may be due to the growth of material [31]. When the thickness of CdS films changes Cd and S atoms alter their position in the unit cell inducing reorientation and recrystallization of CdS films that in turn changes the XRD diffraction peak intensity [32].

Fig. 1
figure 1

a The XRD spectra and b structural parameters variation with different thicknesses of CdS thin films and annealed at 300 °C for 5 min

The influence of thickness of CdS films on the crystallite size (D), dislocation density (δ), lattice strain (ε) and number of crystallites per unit area (N) were also studied and have been shown in Table 1. The crystallite size (D) in the CdS film has been estimated utilizing the Scherrer equation [33, 34].

$$ {\text{D}} = \frac{0.94\lambda }{{\beta cos\theta }} $$
(1)

where, β is the FWHM in radians, λ is the wavelength of the X-ray utilized in nm and θ is the Corresponding Bragg angle.

Table.1 Structural parameters

From the table 1 and Fig. 1b, it can be seen that the crystallite size of the film increased from ~ 10 to ~ 15 nm while the FWHM decreased with film thickness, which confirms the improvement in the level of crystallinity of CdS thin films with thickness. This is attributed to the fact that the grains have the space to develop to their extreme in thicker films [35, 36].

The dislocation density, δ of the CdS film was computed using the Eq. (2), which defines the length of dislocation lines per unit volume of crystal of the films [37, 38].

$$ \delta = \frac{1}{{D^{2} }} $$
(2)

As can be seen from the Fig. 1b and Table 1, with the film thickness the dislocation density of the film decreased from 1.04 × 1016 to 0.08 × 1016 lines/m2 indicating that the increase in thickness reduced degree of defect level of CdS films [37]. The obtained dislocation densities were much lower than previously reported CdS films of similar thicknesses synthesized using a conventional chemical route and deposited using sputtering, chemical-bath (CBD), and close spaced vapour transport (CSVT) techniques [39]. This reduction of dislocation density again supports the better crystallization through the use of our novel chemical route for synthesis. The number of crystallites per unit area (N) that indicates the density of the CdS film was calculated using Eq. (3) [40, 41] and was found to be in the range of ~ 1.12 × 1017 to ~ 2.49 × 1017. The obtained value was higher than the other reported values for the case of chemical bath and electro deposition.

$$ {\text{N}} = \frac{t}{{D^{3} }} $$
(3)

Another quality factor for crystals is the lattice strain ε. The average value of the ε was found using the Eq. (4) [37] for various peaks of the CdS films.

$$ {\upvarepsilon } = \frac{{\upbeta }}{{4\tan {\uptheta }}} $$
(4)

where, β is the full width at half maximum (FWHM in radians) of the peak. The value of ε was found to decrease from ~ 5.36 × 10–4 to ~ 4.21 × 10–4 with film thickness indicative of reduced degree of irregularity and improved crystallinity level [42]. From these structural investigations it is possible to conclude that the CdS films having good crystallinity and structural parameters can be synthesized using a simple spin-coating technique and the crystallinity of the spin-coated CdS film can be tuned by the film thickness.

3.2 Surface morphology investigation of CdS thin films using SEM

SEM was utilized to study the surface feature and the crystal growth of CdS films. Figure 2 presents the SEM micrographs of the top view of CdS thin films of various thicknesses. CdS thin films were found to be well covered on the substrate and free from microscopic defects such as pinholes, crack or peeling. All films have homogeneous, smooth and consistent surface with spherical crystallites. This observed symmetry might be attributable to enormous surface energy of these crystallites and appear great attachment to the film surface because of the effect of TX-100 surfactant, which has been already reported [43, 44]. Cauliflowers like globules appeared in the thicker CdS film surface, which matched well with the previous report [45]. Another important parameter, the coalescences play a principle part in CdS films when the thickness is increased. Coalescences are believed to be created due to add atoms (Cd and S). These atoms interchange their position when re-crystallization of grains happens that encouraged the reorientation of the overall microstructure [46, 47]. The CdS thin film compactness increases and roughness decreases with increases in film thickness, which indicates crystallinity improvement of the films with thickness as was seen from the XRD analysis [47].

Fig. 2
figure 2

The SEM micrograph of CdS thin films with various thicknesses a 100 nm, b 200 nm and c 300 nm

3.3 Investigation on the thickness dependent optical properties of CdS thin films

The optical properties were mainly studied by looking at the UV–VIS transmission properties of the films. Figure 3 shows the transmittance (T%) and reflectance (R%) spectra in the wavelength range 360–1100 nm of spin coated CdS films annealed at 300 °C for 5 min. It appeared that all CdS films were highly transparent in the visible area. Average optical transmittance and reflectance were found (%T) > 65% and (%R) < 20% in the near-infrared solar spectrum, which is important for good crystallinity of the CdS films [48]. However, the transmittance of CdS film was rapidly decreased in the transparent area (λ ≥ 550 nm) with increasing reflectance. It is important to mention here that high transmittance is one of the vital properties for window materials in the visible area [49]. As was expected, for all the CdS films the transmittance (T%) decreases and Reflectance (R%) increases with increasing film thickness. However, higher films thickness provides a thick and compact film surface having improved crystallinity [50].

Fig. 3
figure 3

The transmittance and reflectance spectra of CdS films

The absorption coefficient (α) was computed utilizing the Eq. (5) [51].

$$ {\upalpha } = \frac{{\ln \left( \frac{100}{T} \right)}}{d} $$
(5)

The absorption coefficients of CdS films at different photon energies with varying thickness are shown inset in Fig. 4. From absorption coefficients spectra, we examined that the thicker films appeared lower α value at high energy area than the thinner films. This result may be owing to increasing crystallites size with film thickness and these larger crystallite sizes provide greater unfilled inter-granular volume so the absorption coefficient per unit thickness is diminished [52].

Fig. 4
figure 4

The absorbance (A) and absorption coefficient (α) spectra of CdS thin films

3.3.1 Band gap and Urbach energy of CdS thin films with various thicknesses

Using the Tauc relationship the computed optical band gap has been shown in Fig. 5 and has been tabulated in Table 2. The direct band gap of CdS thin films was obtained by extrapolating the straight line of (αhν)2 versus (hν) plot to α = 0, as illustrated in Fig. 5. Thus, the originated band gap (Eg) was determined to be 2.1–2.42 eV with increasing thickness.

Fig. 5
figure 5

The plot of (αhν)2 with hυ for CdS thin films with various thicknesses and annealed at 300 °C for 5 min

Table 2 Band gap and crystal size variation with different thicknesses of CdS thin films

As shown in Table 2, although the crystallite size increases with increase in film thickness, it is interesting to note that the optical band gap also increases with film thickness. Usually the band gap decreases with the thickness, but band gap shows dependency on the deposition technique and process [52]. There are many reports on increase of band gap with thickness [54,55,56] and pH [57, 58], particularly for chemical deposition technique like dip-coating and spray-pyrolysis. Increase in band gap with thickness is believed to be due to the improvement of crystallinity [58].

The width of the extension of localized deformity states in the band gap is known as Urbach energy Eu, and this defect states bolt within the energized electrons, which break off their direct transition to the conduction band and enlarge the forbidden gap [59]. This Urbach energy (EU) is additionally related to the structural disorder within the films [60]. Eu was calculated from the absorption spectra using the following equation [61] and was shown in Fig. 6a.

$$ {\upalpha }\; = \;{\upalpha }_{0} {\text{exp}}\frac{{{\text{hv}}}}{{{\text{Eu}}}} $$
(6)
$$ \ln \;\alpha \; = \;\ln \;\alpha_{0} \; + \;\frac{{{\text{hv}}}}{{{\text{Eu}}}} $$
(7)
Fig.6
figure 6

The a Urbach energy, Eu and b variation of Eg and Eu curves of CdS thin films with various thicknesses

However, the Urbach energy is computed by plotting ln(α) with hν as appeared within the complementary of the slope of the obtained straight lines is utilized to find out the Urbach energy, EU. Figure 6b shows the change of Eg and Eu with thicknesses of CdS film, where it can be found that with the increasing thickness of CdS film change in Eg was opposite to that of Eu. This relationship ensures the enhancement of crystalline properties of the CdS films [62, 63] that was responsible for the obtained XRD peak intensity [57]. Again, it was in agreement of our XRD investigation on CdS films.

3.3.2 Refractive index and extinction coefficient of CdS thin films

The refractive index, n and extinction coefficient, k of CdS film are very important parameters when we are discussing the application of CdS films as window/buffer layer. The influence of film thickness on n and k needs to be understood in details as these parameters are strongly associated with the electronic polarization of particles for the optical materials [64].

The reflectance R (= 1 − absorbance − transmittance) [65] of a film having a complex refractive index of n*(= n + ik) is given by [66]

$$ {\text{R}} = \frac{{({\text{n}}^{*} - 1)^{2} }}{{({\text{n}}^{*} + 1)^{2} }} = \frac{{({\text{n}} - 1)^{2} + {\text{k}}^{2} }}{{({\text{n}} + 1)^{2} + {\text{k}}^{2} }} $$
(8)

The absorption coefficient α was calculated using Beer Lambert’s formula [67] and the extinction coefficient of the CdS film from the following equation [34].

$$ {\text{k}} = \frac{{{{\alpha \lambda }}}}{{4{\uppi }}} $$
(9)

The refractive index n was found by solving Eq. (8)

$$ {\text{n = }}\frac{{{\text{(1 + R) + [(1 + R)}}^{2} - (1 - {\text{R}})^{2} - (1 - {\text{k}}^{2} )]^{1/2} }}{{(1 - {\text{R}})}} $$
(10)

Figure7a shows the extinction coefficient k calculated using Eq. (9) and plotted with photon energy. Extinction coefficient was found to increases with the photon energy. In the NIR region the value of k decreases with increase in film thicknesses. The maximum and minimum values of k (~ 0.2 and ~ 0.07 respectively) very similar to earlier report [68]. Additional absorption of light happens at the grain boundaries in the polycrystalline films, when values of k become non-zero for photon energies smaller than the basic absorption edge [69]. However, the extinction coefficients decreased with CdS film thickness indicative of superior optical properties of CdS layers to be applied as a window/buffer layer in thin film solar cells.

Fig.7
figure 7

The a extinction coefficient and b refractive index against photon energy of spin coated

Applying Eq. (10) the refractive index was computed and plotted with photon's energy, which is shown in Fig. 7b. From the Fig. 7a, b quick increase of refractive index with photon energy and an oscillatory behavior in the visible spectrum are evident. In the higher photon energy, a slight decrease of refractive index was seen with the thickness, which may be due to the progressive inner reflection or trapping of energy inside the grain boundaries. The average refractive index was found about ~ 2.5, which is good agreement with the earlier report [69].

3.3.3 Complex dielectric constant of CdS thin films with different thicknesses

The complex dielectric constant of the films, whose real portion (εr) is strongly related with the refractive index and the imaginary part (εi) is associated with the absorption of light of material, was also investigated. The real part of the dielectric constant is found using the Eq. (11) [38]

$$ {\upvarepsilon }_{{\text{r}}} = {\text{n}}^{2} - {\text{k}}^{2} $$
(11)

Figure 8a demonstrates the relation between εr against the photon's energy. It can be found that the εr increased with photon's energy [69]. An oscillatory behavior of εr in the visible range similar like refractive index between the value of ~ 5 < εr <  ~ 8 was also observed.

Fig.8
figure 8

The complex dielectric constant with hυ of CdS films a real part and b imaginary part

The imaginary portions of the dielectric constant are computed using the following equation [38]

$$ {\upvarepsilon }_{{\text{i}}} = 2{\text{nk}} $$
(12)

Figure 8b also illustrates the connection between εi and hυ, which clearly shows that εi increases rapidly with hυ [3] and slightly decreases with film thickness. It has been shown the same behavior of k and in the visible area the value of the imaginary part of the dielectric constant is approximately constant between ~ 0.30 and ~ 0.80.

4 Conclusions

Superior quality thin films of cadmium sulfide (CdS) having thickness 100 ~ 300 nm were successfully synthesized through the use thiol-amine co-solvent along with TX-100 surfactant and deposited on to soda lime glass (SLG) substrates by easy and inexpensive spin coating method. The structural, morphological and optical properties of CdS thin films were found to reliant strongly on film thickness. These results imply that only thickness variation might be an important tool for obtaining application specific various properties of CdS thin-films.