1 Introduction

Ultraviolet (UV) photodetectors have wide features that are suitable to a variety of industrial applications including flame detection, water purification, money counting, ozone layer detection, missile warning systems and effects in modern life in healthcare setting [1, 2]. UV light can be used in the field of medical science including eczema facilitating eradicating germs, synthesizing vitamin and treatment of various diseases such as jaundice, cataracts and skin cancer [3, 4]. However, many hazards have occurred due to UV radiation such as jaundice, porphyria, lupus erythematosus and skin cancer [5, 6]. Heterojunction-based UV photodetectors show high rapid response and low dark current as compared to photoconductive detectors. Photoconductive detector is based on Photoconductive effect. In this detector, two ohmic contacts are made on the top of semiconductor material piece. Heterojunction detector is made of p–n junction diode. Various semiconductors metal oxide-based UV photodetectors such titanium dioxide, gallium nitride and tin oxide [7,8,9] have been reported in the literature, but the low responsivity and poor compatibility are still a problem for their practical applications. Many research groups are trying to explore the ZnO (high exciton binding energy 60 meV at room temperature RT)-based UV photodetectors because it has low cost, high chemical, thermal and photoelectric stability [10, 11].

ZnO belongs to the II–VI group semiconductor with wide bandgap (Eg = 3.37 eV) and it has many optoelectronic applications viz UV photodetectors, UV light-emitting diodes (LEDs), transparent conducting oxides and photodiode [12,13,14,15,16,17]. The bandgap of ZnO can be easily tuned by alloying Be, Mg, Ca and Cd elements [18, 19]. The bandgap of CdO (2.3 eV) is smaller as compared to ZnO (3.32 eV), so by Cd doping the bandgap of ZnO can be shifted from blue to red spectral range [20, 21] as the work function of CdO (3.4 eV) is less than ZnO (4.71 eV) [22, 23]. Usually, CdO shows intrinsically n-type semiconductor behaviour due to the native defects (oxygen vacancies and interstitials cadmium) [24]. In addition, the crystalline structure and lattice parameter of CdO are close to ZnO. Moreover, the doping of Cd with ZnO (controlling the native defects on doping of Cd with ZnO) is very useful for the fabrication of heterojunction and superlattice structures [25, 26].

Several investigations were carried out on ZnO-based heterojunctions for photodetection of UV and visible light. The heterojunction of n-ZnO/p-Si has many advantages, because of excellent quality (high exciton binding energy of ZnO and cheapness of Si substrate), cost-effectiveness, large wafer size, and most important the possibility of integrating oxide semiconductors which can be used in optoelectronic devices [20, 27]. Many researchers had worked on different types of heterojunctions viz. Kumar et al. [28] have worked n-type aluminium–boron-co-doped ZnO on p-type silicon (n-AZB/p-Si) heterojunction diode and reported the ideality factor and potential barrier (at the junction) values 1.63 and 0.40 eV, respectively. Al-Hardan et al. [29] have worked on Ag/ZnO/p-Si/Ag heterojunction with the ideality factor and potential barrier (at the ZnO/Si junction) 2.32 and 0.78 eV, respectively. Tataroglu et al. [22] have investigated photoconducting properties of Cd0.4Zn0.6O/p-Si photodiode in which the ideality factor and potential barrier values were reported 5.80 and 0.80 eV, respectively. It is expected that the Cd concentration in ZnO could be a better option for making heterojunction diodes, n-ZnO/p-Si [30,31,32].

There are very few reports published on Cd-doped ZnO thin films for photodetection applications using sol–gel technique. The sol–gel spin coating technique is easy for compositional modification, many variables to control film growth, composition fidelity, simple and inexpensive equipment, entropy of mixing, excellent control on stoichiometry and the ability to produce thin uniform films on large area substrates [25, 33, 34]. In this study, CdyZn1−yO (y = 0, 0.5, 1, 1.5 at%) thin films were deposited on p-Si and glass substrate by spin coating to analyse optical bandgap and morphological properties. Then, the electrical and photoelectrical properties of n-CdZnO/p-Si heterojunction were examined using I–V measurement, in dark and illumination conditions under ambient light and UV light (365 nm).

2 Materials and methods

The CdyZn1−yO thin films were deposited on p-Si (Intelligent Material Pvt. Ltd., Thickness ~ 200–500 μm and resistivity ~ 1–10 mΩ cm) and glass substrates prepared by the sol–gel method. Firstly, the precursor solution of ZnO 0.5 mol/l concentration was prepared by dissolving zinc acetate di-hydrate [Zn(CH3COO)2·2H2O] in 2-methoxy ethanol and MEA was then added to this solution as a stabilizer. To deposit CdyZn1−yO (y = 0, 0.5, 1, 1.5 at% thin films coded as CZ-1, CZ-2, CZ-3 and CZ-4, respectively), the appropriate amount of cadmium acetate-dihydrate was mixed in this solution. After that, the solution was stirred using a magnetic stirrer to get the transparent solution. The Si substrates were first cut into 1 × 1 cm2 pieces and cleaned by dipping in methanol, acetone and deionized water solution for 5 min in an ultrasonic cleaner. The glass substrates were also cleaned by the same process. The prepared solution (approx. 0.5 ml) was dropped on the substrate and rotated at 2500 rpm for 30 s using a spin coater. After the deposition, the films were dried at 250 ˚C for 10 min into furnace. This procedure was repeated ten times. After that, the thin films were annealed in air at 450 °C for 1 h. The contacts were prepared by evaporating Al metal on the back of Si wafers and top contacts (Al metal) were prepared on CdyZn1−yO thin films by the sputtering technique through a shadow mask.

The structural properties were studied using X-ray diffraction (XRD). The surface morphology of the films was investigated using a scanning electron microscopy (SEM). The optical transmittance spectra were collected using UV–Vis–IR spectrophotometer (Shimadzu, Japan). An ultraviolet LED with a wavelength of 365 nm and an intensity of 3.2 mW cm−2 was used as a UV light source. Electrical measurements were taken using electrometer (Keithley 4200 Semiconductor Characterization System). The experimental set-up for I–V measurements in dark and UV light is shown in Fig. 1.

Fig. 1
figure 1

The experimental set-up for the I–V measurements in dark and UV light (365 nm)

3 Results and discussion

3.1 Structural properties

The phase and crystallinity of undoped and cadmium-doped ZnO thin films were analysed by XRD pattern. The structural studies of pure and Cd-doped ZnO thin films (CZ-1, CZ-2, CZ-3, CZ-4) are shown in Fig. 2. The XRD diffraction peaks of all thin films were obtained along (100), (002), (101) and some less intense peaks were observed at (110) and (102). XRD pattern shows a strong dominated orientation at (002) plane of all thin films samples. This study reveals that all thin films sample having hexagonal wurtzite structure [19]. The lattice parameters ‘c’ and ‘a’ shown in Table 1 were calculated corresponding to (002) and (100) peaks [23]. The crystallite size of these films was calculated by using Debye–Scherrer’s formula [19] and is given in Table 1.

Fig. 2
figure 2

X-ray diffraction patterns of CdyZn1−yO (y = 0 (CZ-1), y = 0.5 (CZ-2), y = 1 (CZ-3), y = 1.5 (CZ-4) at%) thin films on p-Si substrate with JCPDS 36–1451 in range of 25–60°

Table 1 The structural and optical parameters of CdyZn1−yO thin films

3.2 Surface morphology

The surface morphology of undoped and Cd-doped ZnO (CZ-1, CZ-2, CZ-3, CZ-4) thin films is shown in Fig. 3a–h. At high magnification, all films have wrinkle-type network micrographs. The wrinkle formation has been attributed to either the lack of hydroxide in the initial sol precursor or sintering temperature of thin films [35, 36]. From these figures, at high magnification all films have round- and oval-shaped nanocrystallite grains. In addition, all the films offer porous network, which is useful to enhance photodetection properties and passes more sites to react photon and adhered well to the substrate without any cracks [19, 24, 37].

Fig. 3
figure 3

FE-SEM images of CdyZn1−yO (CZ-1, CZ-2, CZ-3, CZ-4) thin films on p-Si substrate with 10KX and 50KX magnificence

3.3 Optical properties

The optical properties were studied for undoped and Cd-doped ZnO (CZ-1, CZ-2, CZ-3, CZ-4) thin films deposited on glass substrates in place of Si substrate [22, 26]. The transmittance spectra of all films show that average transparency of the films was 85% in the visible region and very low in the ultraviolet region, and a sharp absorption edges in the ultraviolet region. The change in the absorption edge shows shift in the optical bandgap of samples. The decrease in average optical transmittance may be due to the thickness of the thin film and the Cd incorporation. [25, 34]. Singh et al. [23] in their work have also reported that the transmittance spectra of all thin films exhibit the average transparency 75% in the visible region. For the allowed direct transitions, optical bandgap of thin films was calculated from transmission spectra using Tauc’s plot method as shown in Fig. 4b [33]. It can be noticed that the bandgap decreases from 3.29 eV (undoped ZnO) to 3.26 eV (y = 1.5 at%) as Cd content increased as shown in Table 1. The decreased bandgap of Cd-doped ZnO was expected due to CdO having smaller bandgap than ZnO [26].

Fig. 4
figure 4

Optical parameters of CdyZn1−yO (CZ-1, CZ-2, CZ-3, CZ-4) thin films on the glass substrate with respect to air, a transmittance and b Tauc’s plot for bandgap calculation

3.4 Electrical properties and UV sensing measurement

Figure 5a, b shows the I–V characteristics of n-CdyZn1−yO/p-Si heterojunction diodes in dark and UV light (365 nm) with optical power density 3.2 mW/cm2. The diodes show heterojunctions nature which was confirmed by the nonlinear I–V characteristic. The schematic diagram of diode structure is also shown in inset of Fig. 5c. The maximum forward current (If) was observed in the CZ-3 heterojunction. The rectification ratio (the ratio of the forward If to current and reverse current Ir) of the CZ-3 heterojunction at ± 4 V was approximately 2.22 and 26.63 in dark and UV light (365 nm), respectively. The turn-on voltages of the CZ-3 heterojunction were determined by extrapolating the I–V curve to the intersection of the abscissa 0.940 V and 1.21 V for dark and UV light, respectively, as shown in Fig. 5c [21]. Bougrine et al. [38] reported that the electrical resistivity of the films initially decreases with the addition of dopant ion, reaches a minimum value and then increases with further increase in dopant content. The decrease in the resistivity may be due to the substitution of dopant ions at Zn2+ sites. With increasing the doping level, more dopant atoms occupy the zinc lattice sites, but after a certain level, the dopant atoms do not able to occupy more lattice sites and they have tendency to occupy interstitial sites where they form neutral defects and become ineffective as dopant impurities. So the electrical resistivity seems to be related to dopant concentration. The diode parameters such as reverse saturation current, ideality factor and barrier height were measured from I–V characteristic and are shown in Table 2 [39, 40]. In a similar study, Tataroglu et al. [22] have reported ideality factor and potential barrier values of Cd0.4Zn0.60O/p-Si heterojunction diode about 5.80 and 0.80 eV, respectively. Kumar et al. [28] have reported ideality factor and potential barrier values 1.63 and 0.40 eV, respectively, in case of n-type aluminium–boron-co-doped ZnO on p-type silicon (n-AZB/p-Si) heterojunction. The responsivity (R) was estimated from Eq. (1),

$$ R = \frac{{I_{{{\text{ph}}}} }}{{I_{{{\text{inc}}}} }} $$
(1)

where Iph is the photocurrent and Iinc is the incident UV light (365 nm) [41]. The device was illuminated with UV light (365 nm). The responsivity (R) of the prepared photodiode is shown in Table 2. The high responsivity was observed around 0.0126 A/W for CZ3 samples. The growth and decay of photoresponse for the photodiode have been obtained at bias of 4 V and are shown in Fig. 5d. The prepared photodiode exhibits highly repeatable photoresponse property, with a stable output. The illumination of UV light had been turned on and an exponential increase in response was obtained. The response was almost stable, with photocurrent saturation. This is due to the presence of surface states in the polycrystalline ZnO films, which is also supported by the diode characteristics. The rise time of the prepared photodiode was 11 s and decay time was 18 s as shown in Fig. 5d, which can be used in optical switching application. The oxygen-assisted mechanism is main factor affecting the detection.

$$ {\text{O}}_{2} \left( {\text{g}} \right) + {\text{ e}}^{ - } \to {\text{ O}}_{2}^{ - } \left( {{\text{ad}}} \right)\;\left( {\text{In dark}} \right) $$
(2)
$$ {\text{O}}_{2}^{ - } + {\text{ h}}^{ + } { } \to {\text{ O}}_{2} { }\left( {\text{g}} \right)\;\left( {\text{Under illumination}} \right) $$
(3)
Fig. 5
figure 5

I–V characteristics of the n-CdyZn1−yO/p-Si heterojunction (CZ-1, CZ-2, CZ-3, CZ-4): a dark, b UV light (365 nm), c under dark and UV light (365 nm) n-CdyZn1−yO/p-Si (y = 1 at%) heterojunction (CZ-3) and (d) growth and decay of the photoresponse of n-CdyZn1−yO/p-Si (y = 1 at%) heterojunction (CZ-3)

Table 2 The electrical and photodetection properties of CdyZn1−yO/p-Si heterojunctions

As the surface-to-volume ratio of nanostructured device is exceptionally high, they tend to absorb large number of oxygen atoms on surface defect states. The absorbed oxygen atoms become negatively charged by absorbing electrons from active material of the device, as shown in Eq. (2). In this way, photogenerated holes are captured in oxygen adsorbed on surface defect states, as shown in Eq. (3) and recombination of trapped holes and photogenerated electrons is delayed hence, response of the detector becomes slower [42]. The mechanism of UV light detection has been explained in our previous work [39]. This clearly shows that the cadmium as dopant material in ZnO can be an excellent material for optoelectronic devices [41, 43, 44].

4 Conclusion

n-CdyZn1−yO/p-Si (y = 0, 0.5, 1, 1.5 at%) heterojunctions were successfully fabricated using sol–gel spin coating method. All the thin films have wurtzite structure (002) without phase segregation after Cd doping. The wrinkle-type morphology composed with spherical grains was formed in heterojunctions. On increasing the concentration of Cd, the optical bandgap of ZnO thin films decreases. The highest electrical conductivity of heterojunction was observed in middle range (1 at%) of Cd atoms with good rectifying behaviour. Interestingly, the Cd contents on ZnO were found useful to enhance UV photodetection properties and the CdyZn1−yO (y = 1 at%) shows highest responsivity on exposure of UV light at bias 4 V. Moreover, the photodiode exhibits a sharp change in electrical conductivity after switching on UV source with fast response and recovery time. The results are encouraging because of good photoresponse behaviour of porous-shaped n-CdyZn1−yO/p-Si heterojunctions and can be used as an optical sensor in optoelectronic applications.