Introduction

For the purpose of resolving the energy crisis, preventing climate change, and lowering local air pollution, it is essential to develop energy storage devices with high specific power and environmental friendliness. With growing consumption and demand linked to industrial development, global energy production is largely dominated by fossil energy (coal, oil, gas). Additionally, the various components of today’s wireless technologies must be fueled by effective energy storage devices while having smaller dimensions because they are vital to our everyday lives and are becoming more energy-intensive. The most popular storage option is a battery, which has a significant energy capacity. Batteries use faradic storage techniques, which slow down their charges and discharges, make them unsuitable with high-power systems like quick data transmission. Also, they have a short lifespan.

The supercapacitor is one of the best electrochemical storage gadgets. For this reason, the limitations of batteries could be overcome through the use of micro-supercapacitors. Similar to their larger counterparts, they are used when high power peaks, good cycling stability, and high efficiency between charge and discharge are required. They can be utilized alone as a power source, in conjunction with microbatteries to extend their battery life, or in conjunction with ambient energy harvesters (photovoltaic cells, thermoelectric cells, vibrational energy harvesters, etc.) to provide energy sources and self-sufficient power. Supercapacitors can be divided into electrochemical double-layer capacitors, pseudocapacitors, and battery-like materials based on their electrochemical charge storage method. Many scientists have discovered in recent years that electrode materials have electrochemical characteristics akin to batteries.

We should be aware that CoFeS2 with a hexagonal phase is one of the components that are crucial for battery or supercapacitor applications. The relevance of these materials in several application areas has led to a major surge of interest in recent years. In fact, CoFeS2 has been the material preferred for the majority of applications, including solar cells [1,2,3], electrocatalysts [4,5,6,7], supercapacitors [8], photocatalysts [9], potassium-ion batteries [10], sodium-ion batteries [6, 11, 12], and lithium-ion batteries [13, 14]. In the majority of these works, CoFeS2 powder is produced using the hydrothermal approach [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]. However, in this study, we used a chemical method known as “spray pyrolysis” to create the CoFeS2 thin films. The obtained layers are analyzed using specialized methods including X-ray diffraction, SEM scanning electron microscopy, UV-Visible Spectrophotometry, and the four-point approach. The current study shows that FeCoS2 thin films have a wide range of possible uses in contemporary materials science and technology.

Experimental details

On glass substrates, a thin coating of cobalt-iron-sulfide (CoFeS2) was created by spraying an aqueous solution containing the following precursors: thiourea (SC(NH2)2) 4.10− 2 M, Cobalt(II) chloride (CoCl2.6H2O) 10− 2 M and Iron(III) chloride (FeCl3.6H2O) 10− 2 M as sulfur, cobalt and iron sources, respectively. The flow rates of the solution and nitrogen gas were maintained constant at 2 cm3.min− 1 and 5 l.min− 1, respectively. To create these films, the substrate temperature Ts was set to around 350 °C. Consequently, X-ray diffraction measurements of CoFeS2 films were produced by a copper-source diffractometer (Analytical X Pert PROMPD) with the wavelength\(\lambda =1.5418 \text{\AA }\). Next, the surface morphology of the layer was performed by a JEOL-JSM 5400 model scanning electron microscope (SEM). The optical properties of the deposited layers were assessed at normal incidence in the wavelength range of 250 to 1800 nm using a twin-beam UV-VIS-NIR spectrophotometer (Shimadzu). Finally, a Hall measurement device using the Vander Pauw method was used to detect electrical resistivity, Hall mobility, and carrier concentration at room temperature.

Results and discussion

Structural studies

Fig. 1
figure 1

X-ray difractogram of CoFeS2-sprayed thin film

The XRD spectrum for the CoFeS2 thin film is displayed in Fig. 1, indicating that it is polycrystalline structure. Several high-intensity peaks appear at 2θ = 30.95°, 35.12° and 46.32° corresponding to planes (100), (101), (102) and lower intensities at 66.05°, 71.93°, 74.87° and 78.78° corresponding to planes (201), (004), (202) and (104), respectively. In accordance with the JCPDS card N0:75–0607 [1, 8], all diffraction peaks can be accurately indexed as a pure hexagonal structure of CoFeS2 (Fig. 2).

Fig. 2
figure 2

The crystal structure of CoFeS2

Furthermore, the Debye-Scherrer equation [20] was utilized to determine the crystallite size D of CoFeS2 thin films:

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

Where θ is the Braggs angle of diffraction peaks,\(\varvec{K}=0.9\) and \(\varvec{\beta }\)is its FWHM. The estimated crystallite size is around 86 nm.

Finally, the following equation [21] is used to determine the microstrain (δ) and dislocation density (ξ), which are relevant structural properties of CoFeS2 sprayed thin film:

$$\delta =\frac{1}{{D}^{2}}$$
(2)
$$\xi =\frac{\beta }{4tg\theta }$$
(3)

The values of crystalline size, density of dislocation and the microstrain are given in Table 1.

Table 1 The values of crystalline size D, density of dislocation ξ and the microstrain δ

Morphological properties

Figure 3 shows a typical SEM image of sprayed CoFeS2 thin films. It can be seen in this image that the sample of CoFeS2 is continuous, fairly homogeneous and with little surface roughness. The average grain size is also visualized by SEM is around 80–90 nm.

Fig. 3
figure 3

SEM micrograph of CoFeS2 thin film

Additionally, EDX measurements were used to characterize the CoFeS2 thin film (Fig. 4). The principally observed peaks in the spectra are: Co, Fe and S peaks. The other materials are originated from the glass substrate. The atom concentrations for S, Fe, and Co were found to be 47.69%, 25.62%, and 26.79%, respectively, in the quantitative analysis of the major peaks. This clearly confirms that we obtain CoFeS2 in a thin layer. These results are in perfect agreement with X-ray diffraction (XRD) results.

Fig. 4
figure 4

EDX measurements of CoFeS2 thin film

Optical studies

Fig. 5
figure 5

The spectral transmittance (T) and reflectance (R) of CoFeS2 thin film

The transmittance (T) and the reflectance (R) spectra for the wavelength, which ranged from 250 to 1800 nm, are showed in Fig. 5. In the transparent zone, the transmittance values ranged from 30 to 50%. Additionally, the sample has reflectance levels between 20 and 30% between the wavelengths of 700 and 1800 nm.

Using the transmittance (T) and reflectance (R) values, the absorption coefficient of CoFeS2 films was determined using the following formula [20]:

$$\varvec{\alpha }=\frac{1}{\varvec{d}}\varvec{*}\varvec{L}\varvec{n}\left[\frac{{(1-\varvec{R})}^{2}}{{\varvec{T}}^{2}}\right]$$
(4)

where d is the thickness of this layer, R and T are the reflection and transmission coefficient, respectively. Figure 6 illustrates the effects of the absorption coefficient on photon energy for the CoFeS2 thin film. In the visible and near-IR spectral regions, the sample shows comparatively large absorption coefficients, exceeding 106 cm− 1. So the spectral dependency of the absorption coefficient may significantly impair the solar energy conversion efficiency, even if such a high value of absorption coefficient may be advantageous for the production of high absorptive layers of solar cells [3, 7].

Fig. 6
figure 6

Absorption spectra of sprayed CoFeS2 thin film

As shown in Fig. 7, the linear nature of the \({\left(\varvec{\alpha }\varvec{h}\varvec{\nu }\right)}^{2}\) plots in the mean absorption range, along the photon energy (\(\varvec{h}\varvec{\nu }\)) axis, indicates that the electronic transitions are direct. The following relationship [20] was used to determine the optical band gap Eg values based on the intersection of this linear sections slope:

$${\left(\varvec{\alpha }\varvec{h}\varvec{\nu }\right)}^{2}=\varvec{A} (\varvec{h}\varvec{\nu }-{\varvec{E}}_{\varvec{g}})$$
(5)

Where A is the semiconductor’s constant property. The band gap Eg of the films equals to 2.49 eV. The measured value of Eg, as opposed to CdS buffer layer with a direct optical band gap of 2.4 eV [22], indicates that CoFeS2 thin layer could be utilized as an efficient buffer layer material for thin film solar cells.

Fig. 7
figure 7

Plots of (αhυ)2 versus the photon energy of Cobalt-iron sulfide layer

Hall effect studies

Table 2 The hall effect measurements of Cobalt-iron sulfide thin film

When applying the Hall effect to a semiconductor carrying a current and a magnetic field perpendicular to this current, an electric field appears perpendicular to the direction of transport and to the magnetic field. Measuring the potential difference (Hall voltage) corresponding to this electric field makes it possible to determine the concentration of charge carriers as well as their nature (electrons or holes). By combining this measurement with that of resistivity, we can also determine their mobility. Table 2 presents the results of the Hall effect measurements, which were performed at room temperature in a Van der Pauw four-point arrangement. In our study, we found that CoFeS2 thin film exhibit p-type conductivity. In addition, we noted a low resistivity value equal to 1.32 Ω.cm. It demonstrates the system’s potential for solar application.

Conclusions

In this work, we prepared CoFeS2 thin films by spray pyrolysis and examined the physical properties of these thin layers. We discovered that the thin film has a hexagonal structure. The optical studies show that the FeCoS2 thin film is opaque, and the gap energy is equal to 2.49 eV. Based on the Hall effect measurements, p-type conductivity in the CoFeS2 thin film was found. Also, we noticed a low resistance value. Our conclusions were based on these data, which suggested that the CoFeS2 thin layer would be a strong contender in the photovoltaic field. It is obvious that further research on this topic has to be done in the future.