1 Introduction

Transparent conducting films have a wide range of applications in optoelectronic devices. Low resistivity, high transmittance in the visible range, and high stability against heat are the important and highly desired properties of transparent conducting films [1]. Most of the transparent conducting oxides such as indium tin oxide (ITO), fluorine-doped Tin Oxide (FTO), etc., have high cost, low stability to H2 plasma, and toxicity. On the other hand, zinc oxide (ZnO) is a low-cost and comparatively stable material with high transmission [2,3,4]. ZnO is a wide direct bandgap semiconductor which finds application in thin film transistors [5], light emitting diodes [6], solar cells [7, 8], sensors [9], photodetectors [10], and in photocatalysis [11]. Most of the optoelectronic applications require high carrier mobility and consequently, doping of ZnO becomes essential. ZnO thin films are prepared by various deposition techniques such as sputtering [12], chemical vapor deposition (CVD) [13], pulsed laser deposition (PLD) [14], molecular beam epitaxy (MBE) [15], spray pyrolysis [16], sol–gel process [17,18,19], etc. Compared to other methods, sol–gel process is a simple, low-cost, and effective method to produce high-quality thin films. In addition, it is easy to control the composition and to fabricate large-area thin films. Although sol–gel process is an easier technique for fabricating thin films, there are certain critical factors influencing the physical, optical and electronic properties of ZnO thin films. These factors include pre-annealing temperature, post-annealing temperature and film thickness. Since ZnO is intrinsically n-type semiconductor, one of the major challenges in the development of ZnO-based optoelectronic devices is to get an efficient p-type ZnO [18]. Recently researchers have been working on p-type ZnO by doping with different elements (N, N–Al, Li, As, Na, P and K) using various techniques [19,20,21,22,23,24]. Because of nitrogen’s low ionization energy, ionic radius comparable with oxygen, ease of handling, low toxicity, and source-abundance, it can be considered as the most promising dopant [25, 26]. Although solution processing has been established as an effective and simple technique for ZnO thin film fabrication, the very same attractive features need to be maintained while we fabricate p-doped ZnO thin films by solution processing. Precursor solvent is reported to play an important role in defining the opto-electrical properties of spin-coated transparent conducting ZnO:Ga thin films [27]. Similarly, the molar ratio of the precursor is also important. It is important to understand the behavior of the doped film in the nano-thin film regime (less than 50 nm). However, detailed studies on the optoelectronic properties of ZnO nano-thin film prepared by solution processing with special emphasis on the effect of solvents and electrical doping are scarce in literature. In the present work, we have attempted to dope ZnO with nitrogen through a solution processing technique and to study the optical and electrical properties of the doped films, keeping the molar ratio of the precursor material, zinc acetate dihydrate (Zn(CH3COO)2.2H2O) constant. Thickness of the film is another critical factor and most of the previous reports deal with thicker ZnO films as given in the electronic supplementary material while we report on the p-type doping effect on a nano-thin film of ZnO, which is having a thickness of 40 nm.

2 Experimental

In this work, we prepared both doped and undoped ZnO by sol–gel process and thin films were deposited by spin-coating. Two different 0.5 molar solutions of undoped ZnO were prepared using 2-methoxyethanol and isopropyl alcohol as solvents. In both cases, zinc acetate and monoethanolamine were used as the solute and stabilizing agent, respectively. The solutions were named as ZnO-1 (2-methoxyethanol), ZnO-2 (isopropyl alcohol). ZnO-1 was stirred for 12 h at 60 °C. ZnO-2 was stirred for 2 h at 60 °C and aged at room temperature for 24 h. The solutions were spin-coated on ultrasonically cleaned and subsequently UV-ozone-treated ITO-coated glass substrates at 1500 rpm and the films were annealed at 170 °C for 1 h in air.

N-doped ZnO (NZO) nano-thin films were prepared by adding ammonium acetate as the dopant precursor to ZnO-1. The solution was stirred for 2 h at 60 °C and aged at room temperature for 72 h. The solution was spin coated at 1500 rpm on ultrasonically cleaned and subsequently UV-ozone-treated FTO-coated glass substrates. The samples were annealed at 250 °C for 10 min and the process was repeated for 8 times to get the required thickness. The thin films were post-heated at 500 °C for 1.5 h in the N2 atmosphere. In all the three samples, the molar ratio of Zn(CH3COO)2.2H2O) is kept constant at 0.5.

Optical properties of the doped and undoped ZnO thin films were studied by using PerkinElmer UV/VIS/NIR Spectrometer, Lambda 950. Surface morphology of the thin films were investigated by Bruker AFM. Bruker Stylus Profilometer was used for the thickness measurements. X-ray diffraction (XRD) patterns were recorded by XPert-PRO Scan Diffractometer with Cu Kα (λ = 1.5406 Å) radiation from 20° to 60° scanning range. Hall effect measurements were done using physical property measurement system (PPMS) from Quantum Design, in a van der Pauw configuration with 1 × 1 cm2 sample size. Fourier transform infrared (FTIR) spectra of doped and undoped thin films were measured by IR Prestige-21 Fourier Transform Infrared Spectrophotometer, Shimadzu.

3 Results and discussion

All our measurements have been done at RT. Temperature might not appreciably affect the p-type conductivity because the film is annealed at 500 °C during the film preparation stage. The process conditions have been optimized for a good quality film and we do understand that any variation in the process conditions may have a profound influence on the conductivity of doped ZnO films as previously reported [15, 28, 29].

3.1 Optical properties

Figure 1 shows the UV–visible transmission spectra of ZnO thin films. ZnO films yielded transmittance above 85%. From the transmittance spectra, it is clear that the UV absorption edge was red shifted upon nitrogen doping. The interference fringes in the transmission spectra are indicative of the high surface quality and homogeneity of the films [30].

Fig. 1
figure 1

UV-visible transmission spectra of doped and undoped ZnO thin films

The values of the energy bandgap of both doped and undoped ZnO were measured from the Tauc’s plot by employing the relation,

$$\alpha h\nu = A\left( {h\nu - E_{\text{g}} } \right)^{n} ,$$
(1)

where α is an absorption coefficient, A is the proportionality constant, is the incident energy, and Eg is the bandgap of the material [31]. Since ZnO is a direct bandgap semiconductor [32], value of n is given by 1/2. Figure 2 shows the Tauc’s plot of doped and undoped ZnO. The optical bandgap of ZnO-1, ZnO-2, and NZO are summarized in Table 1. The results suggest that the optical bandgap of NZO shows slightly lower value than that of the pure ZnO. The value of energy bandgap of ZnO-2 is smaller than that of ZnO-1. The difference in the bandgap of ZnO thin films in different solvents is due to the dependence of microstructure and morphology of the film on the solvent, which would change the interatomic interactions and thereby the optical properties of the thin films [33].

Fig. 2
figure 2

Tauc’s plot for a ZnO-1, b ZnO-2, c NZO thin films

Table 1 Values of optical energy bandgap and Urbach energy of ZnO-1, ZnO-2 and NZO thin films

The relation between absorption coefficient and photon energy near band edge is given by the Urbach relation [34],

$$\alpha = \alpha_{0} \exp \, \left( {h\nu /E_{\text{u}} } \right),$$
(2)

where α0 is a constant and Eu is the width of the localized states or Urbach energy. The Urbach energy of the ZnO thin films can be measured from the slope of the graph plotted between ln(α) and . Figure 3 shows the plot of ln(α) vs. . The values of Urbach energy of doped and undoped ZnO thin films are given in Table 1. We found that Urbach energy decreases upon doping and that of ZnO-2 is smaller than ZnO-1. This implies that more defect levels are introduced when we use 2-methoxyethanol as solvent. The decrease in the Urbach energy in NZO indicates the decrease in the defect states of thin films.

Fig. 3
figure 3

Urbach plot of ZnO-1, ZnO-2, and NZO thin films

3.2 Morphological and structural properties

AFM images of doped and undoped ZnO thin films obtained by tapping mode are shown in Fig. 4. AFM study reveals that nitrogen doping increases the average grain size and enhances the surface roughness of the thin films. The properties of the ZnO thin film surface, i.e., the surface roughness, grain size, and RMS values are strongly affected by the choice of solvents used for the preparation of ZnO thin films [32, 35]. From the AFM images, it is evident that for ZnO-2, the RMS values are greater than that of ZnO-1. High-quality thin films have been obtained for ZnO-1 and hence we decided to use only ZnO-1 for p-type doping studies. The RMS values of NZO are greater than that of ZnO-1. The RMS values of ZnO-1, ZnO-2, and NZO are given in the Table 2. The grain size of ZnO-2 looks larger probably due to the agglomeration. The thickness of the doped and undoped ZnO thin films was measured by stylus profilometer. The thickness values are 60 nm, 100 nm, and 40 nm for ZnO-1, ZnO-2, and NZO, respectively. The difference in thickness of ZnO-1 and ZnO-2 is due to the difference in the solubility of the precursor materials in the solvents, since molar ratio is fixed in all the cases. To get an appreciable thickness, the spin-coating process was repeated 8 times. It is understood that these process variations might have added to the RMS surface roughness of these films.

Fig. 4
figure 4

AFM images of ZnO thin films. a ZnO-1, b ZnO-2, c NZO

Table 2 Values of RMS surface roughness and crystallite size of ZnO-1, ZnO-2, and NZO

The crystal structure analysis of these thin films was done by using XRD. The XRD patterns of ZnO thin films are shown in Fig. 5. For undoped ZnO-1, (002) and (110) peaks were obtained and for ZnO-2, (002), (101), and (110) peaks were observed. For NZO, (100), (002), (101), (102), and (110) peaks were observed. The results are summarized in the Table 3. All the XRD peaks were identified with the standard card JCPDS 36-1451 in the recorded range of 2θ. It is concluded that the thin films are crystallized in hexagonal wurtzite structure and there was no preferential growth orientation [36].

Fig. 5
figure 5

XRD pattern of ZnO-1, ZnO-2, and NZO

Table 3 The structure parameters obtained from XRD studies on ZnO-1, ZnO-2, and NZO

The crystallite size D was calculated using Scherrer’s relation given in Eq. (3),

$$D = \frac{K\lambda }{\beta \cos \theta },$$
(3)

where K is a constant, λ is the X-ray wavelength and β is the full width at half maximum (FWHM) [37]. The results suggest that there is a shift in the (002) and (110) planes of ZnO-1 and NZO due to the difference in the ionic radii of O and N. Ionic radii of N is greater than that of O [38]. N substituting O will produce a strain in the crystal and causes shift in XRD peaks to higher or lower angles [38]. The XRD patterns show that both the undoped ZnO thin films prepared with the solvents, 2-methoxyethanol, and isopropyl alcohol exhibit the highest intensity XRD peak on the (002) plane located at 33.4°. However, NZO thin film exhibits the highest intensity XRD peak on the (101) plane located at 36.632°. Therefore, the crystallite size along the plane (002) was calculated for ZnO-1 and ZnO-2 and that of NZO was calculated along (101) plane [31]. The crystallite size of the films is summarized in Table 2. The results show that the crystallite size and thickness of ZnO-1 is smaller than that of ZnO-2 which could be due to the higher viscosity of isopropyl alcohol compared with 2-methoxyethanol. This indicates that 2-methoxyethanol is a better solvent and its fast drying characteristics of ZnO precursor layers, leads to more compact assembly of smaller crystals with less pinholes on annealing. The results are in agreement with findings from the AFM studies. Preferential crystallite orientation can be determined from texture coefficient (TC) and it is given by [39],

$${\text{TC}} = \frac{{\frac{{I\left( {hkl} \right)}}{{I_{0} \left( {hkl} \right)}}}}{{\frac{1}{N}\varSigma_{n} \frac{{I\left( {hkl} \right)}}{{I_{0} \left( {hkl} \right)}}}},$$
(4)

where I(hkl) is the measured intensity of the peak, I0(hkl) is the relative intensity of the plane from JCPDS data, and N is the number of reflections. TC of ZnO-1, ZnO-2,, and NZO were calculated. Highest value of TC was obtained for (002) plane in ZnO-1 and ZnO-2. This means that more number of crystallites are oriented along (002) plane. But for NZO, highest value of TC was obtained for (110) plane. TC of (002) plane of NZO film was less than that of the (002) plane of ZnO-1. When doped with nitrogen, the preferential crystallite orientation changes and the crystallites are randomly oriented. This increases the surface roughness of the film. The values of I/II and TC of all the planes ZnO-1, ZnO-2, and NZO are summarized in Table 3.

3.3 Electrical properties

The electrical and electronic properties of the thin films were studied by two probe measurement and Hall effect. We calculated the conductivity from two probe measurement and carrier concentration from Hall effect method. The values of conductivity, carrier concentration, carrier type, and mobility of doped and undoped ZnO thin films are listed in Table 4. Inherent n-type conductivity of ZnO-1 and ZnO-2 is due to the native point defects in the ZnO thin films [18]. The interstitial H-atoms form bonds with O and Zn and these act as a shallow donor level and contribute to the n-type conductivity [18]. In NZO, N is substituted for O and this acts as deep acceptor level and contributes to the p-type conductivity [18]. The conductivity of ZnO-1, ZnO-2, and NZO was measured by two probe method by using ITO contacts and that of NZO was found to be one order less. Low conductivity of NZO is due to the high injection barrier for holes when ITO contact is used. Hence Pt contacts were deposited over ITO using PT-1 platinum paste (Dyesol) and we found that the conductivity has increased from 4.67 × 10−7 S/cm (ITO contact) to 7.35 × 10−6 S/cm (ITO/Pt contact). Basically, ZnO is a n-type semiconductor and when doped with N, it passivates all the donor levels and this increases the hole concentration [40]. This is the reason why carrier concentration of NZO (holes) appears to be less than that of ZnO-1 and ZnO-2 (electrons). However, the increased mobility and the change of sign of the majority carrier give evidence to the p-type doping.

Table 4 Values of carrier concentration, conductivity, mobility, and carrier type of doped and undoped ZnO thin films

3.4 FTIR analysis

To understand the presence of molecular species in the doped and undoped samples and to find the effect of doping on the vibrational modes of undoped ZnO, FTIR measurements were done from 400 to 4000/cm at room temperature. FTIR spectra of doped and undoped samples are shown in Fig. 6. Absorption peaks observed below 1000/cm correspond to interatomic vibrations of metal oxides [17]. The absorption bands between 480 and 580/cm are due to Zn–O stretching mode [38]. The peak observed near 900/cm corresponds to the hydrogen substituted at the oxygen site bound to the lattice Zn site (i.e., Zn–H) [41]. The oxygen replaced by hydrogen may act as a shallow donor level and contributes to the n-type conductivity of undoped ZnO. The absorption bands near 1330/cm, 1400/cm, and 1570/cm were observed for doped and undoped samples and correspond to symmetric and asymmetric stretching vibrations of C=O group [42]. Small variations in the IR peak positions in the region 1000–1500/cm are due to the effect of solvent and N doping. The peak at 2930/cm was observed only for NZO, indicating the presence of N in the NZO [43]. The absorption peak near 3400/cm is due to the O–H stretching mode [44] and it becomes more symmetrical with nitrogen doping.

Fig. 6
figure 6

FTIR spectra of doped and undoped ZnO thin films

4 Conclusions

We have fabricated doped and undoped ZnO thin films by a relatively facile process through sol–gel technology. P-type doping was done which improved the surface morphology of the film and resulted in a reduction in the value of bandgap. P-doped ZnO was in the nano-thin film form with thickness 40 nm. The thin films were crystalline with crystallite sizes, 15.6 nm, 21.8 nm, and 27.6 nm for ZnO-1, ZnO-2, and NZO, respectively. Mobility values of 0.05 cm2/Vs, 0.08 cm2/Vs, and 0.23 cm2/Vs were obtained for ZnO-1, ZnO-2, and NZO, respectively. The inherent n-type behavior of ZnO-1 and ZnO-2 is due to the H substituted at the O site and that is proved by FTIR measurements. As a p–n junction of ZnO is a pre-requisite for several optoelectronic applications, the results are relevant for flexible and transparent electronics, based on solution-processed ZnO.