Introduction

ZnO is a semiconductor with unique chemical and physical properties, large exciton binding energy (60meV), and broad band gap Eg (3.2 eV)1. Because of these characteristics, ZnO is a viable option for a number of uses, such as photocatalysis, optoelectronics, and sensors2. Doping, on the other hand, can greatly improve its intrinsic features by adding foreign atoms to the ZnO lattice, changing its optical, magnetic, and electrical characteristics3,4,5,6. Doping ZnO with transition magnetic elements like Ni, Co, Mn, and Fe has garnered significant attention due to its potential to induce room-temperature ferromagnetism (RTFM), a highly sought-after characteristic for spintronic devices7,8,9,10,11.

On the other hand, on the nanoscale, the magnetic properties of materials often differ markedly from those in their bulk form8,9. Among these nanoscale materials, nanorods (NRs) have attracted considerable interest in the field of magnetism due to their distinct characteristics and potential applications12,13,14,15,16. Their high surface area-to-volume ratio can significantly enhance magnetic properties. Additionally, their NRs -like shape induces shape anisotropy, resulting in unique magnetic behaviors that are not observed in the other spherical nanoparticles6,12,15,17,18,19,20,21,22,23,24. This anisotropy can be leveraged to customize magnetic properties for specific applications20,23,25,26. Several studies have been reported on the origin of RTFM in pure and doped ZnO nanorods. For instance, the FM features of undoped ZnO NRs, synthesized by chemical method under vacuum conditions, have attributed to both oxygen vacancies (Ov) and the large surface area (SA) of the NRs27. Modification of ZnO by doping or composite of another oxide has been widely used, for example, to achieve enhanced SA and Ov, reduce particle size (PZ), increase the number of active surface sites, reduce electron-hole recombination, and increase charge transfer processes, which may lead to tunable Eg and RTFM28,29.

Co-ions are known to be one of the effective magnetic dopants that are frequently used for doping of various TMs oxides such as ZnO since the ionic radius of divalent Co2+ (0.065 nm) is smaller than that of Zn2+ (0.074 nm), which illustrates the feasibility of Co-ions substitution in ZnO. Cobalt oxide is generally recognized as a p-type semiconductor with several stable cubic phases, such as CoO, Co2O3, and Co3O4. It exhibits a broad range of direct bandgaps between 1.48 eV and 2.19 eV30,31. Therefore, it is possible to modify the properties of ZnO NRs through Co2+ion incorporation. For example, the doping of ZnO with Co showed an improvement in the RTFM, whereas a further increase was associated with the quenching of RTFM32. Additionally, the Eg could gradually decrease with increasing Co concentration because of the sp-d exchange interactions between the free electrons of cations and the localized d-electrons of Co33,34. Although Co-ions are known as FM, their contribution to the development of RTFM in ZnO is still unclear. For more identification, the Co-doped ZnO NRs synthesized by co-precipitation showed RTFM, which have been assigned to be purely intrinsic25. In addition, an impurity phase has been found in the highly Co-doped ZnO nanorods, which caused a reduction of their magnetization of the fabricated NRs25. In addition, the studies on the magnetic properties of Zn₁₋ₓLₐₓO NRs fabricated by chemical route have reported RTFM, which is caused by the formation of defects6.

Previous studies have examined the structure and properties of Zn1-xGdxO nanorods across different doping levels (x)35. All samples exhibited a hexagonal wurtzite structure with well-defined nanorod morphology. In addition, a systematic evolution of RTFM of ZnO NRs with increasing x was observed. On the other hand, Zn1− xCoxO NPs show anomalous anisotropic broadening for x > 0.05, which is due to a reduction in the particle size and strain contribution36. In addition, the presence of grouped Co²⁺ ions reveal the presence of clusters of high-spin Co²⁺ with antiferromagnetically coupled spins, which is responsible for the strain. On the other hand, effects of Ce doping (1–5%) on the ZnO NRs have been reported37. A hexagonal structure and NR nature could be confirmed for all NRs. The band gap was decreased gradually against Ce from 3.192 to 3.177 eV. The photoluminescence confirms the presence of intrinsic defects like Zn and Ov. A very weak ferromagnetic ordering was observed in all the NRs at RT. These findings recommend the NRs for the optoelectronic and spintronic devices.

Although several studies have investigated the magnetic properties magnetic properties of undoped and doped ZnO nanorods, the origin of RTFM in ZnO NRs still needs further investigation. Furthermore, based on the studies appearing in the literature, the growth conditions of NRs preparation can affect the dimensions as well as SA of the NRs and consequently control their magnetic properties14,28,29. Among the growth techniques used for the synthesizing of ZnO NRs is the electrochemical deposition, which is considered a low-cost technique and capable of producing uniform nanorods with a large SA28,30,31. Based on the above literature, while there have been many studies on Co-doped ZnO systems, researchers still face several challenges in this field. For example, it’s difficult to precisely control how cobalt atoms distribute within the material during growth, and how the nanorod shape affects magnetic stability at room temperature. There’s also much to investigate how changing the material’s optical properties relates to its magnetic behavior. Our work tackles these questions by using optimized electrochemical method that produces highly uniform cobalt-doped nanorods, allowing us to systematically study how their structure affects their properties.

The objectives of this study are to fabricate ZnO NRs through the electrochemical deposition method. This research aims to thoroughly explore and discuss the structural, morphological, optical, and magnetic properties of the NRs, with particular emphasis on how cobalt doping and the nanoscale dimensions of the samples influence these characteristics. These comprehensive investigations will contribute to a deeper understanding of the properties and potential applications of ZnO NRs. Our results provide new clarity to the field by showing exactly how the growth conditions can prevent unwanted secondary phases and ensure proper cobalt incorporation into the crystal structure. We found specific relationships between how much cobalt is added and changes in both the material’s bandgap and its magnetic properties at room temperature. These findings are particularly valuable for developing future applications in areas like spin-based electronics that need materials to perform reliably in demanding conditions.

Experimental procedures

Zn1−xCoxO NRs were fabricated by electrochemical deposition technique using Autolab PGSTAT101 controlled with NOVA electrochemical software. The synthesizing of Zn1−xCoxO NRs, with x = 0.00, 0.025, 0.05 and 0.30, was carried out in cell containing three electrodes; working electrode (ITO substrates), a reference electrode (Ag/AgCl in saturated KCl) and a counter electrode (platinum wire). Prior to the preparation experiments the glass cell and ITO substrates were cleaned by washing them several times in ultrasonic cleaner using isopropanol and deionized water. For fabrication the undoped samples the zinc nitrate hydrate (Zn(NO3)26H2O,) and hexamethylenetetramine (HMT) were used as the starting materials. However, for synthesizing of the doped samples (the Zn1−xCoxO NRs) the zinc nitrate hydrate (Zn(NO3)26H2O,), cobalt nitrate hexahydrate (Co(NO₃)₂·6 H₂O) and hexamethylenetetramine (HMT) were used as the starting materials.

These precursors were dissolved in 200 ml deionized water and then the solution was inserted in the three-electrode cell which is connected to PGSTAT101 controller using the potentiostatic mode. In this mode a potential of −1 V recorded by the Nova software, was applied to the cell. During the growth process the solution in the cell was stirred continuously using magnetic stirrer. The solution temperature was maintained at 80\(\:^\circ\:\)C and all samples were grown at time of an hour. After the growth period concluded, the fabricated undoped and doped ZnO nanorods were removed from the growth cell, washed with distilled water, and then air-dried at room temperature. The samples with x = 0.00, 0.025, 0.05 and 0.30 given the symbols S0, S1, S2, S3, respectively. The structure, morphology and elemental composition of Zn1−xCoxO NRs were examined using X-ray diffractometer (Model-1710), a FEI Quanta 250 SEM and energy dispersive X-ray (EDX), respectively. The optical measurements of the Zn1−xCoxO NRs were recorded by double beam spectrophotometer (model). DC magnetization measurements are performed using a SQUID magnetometer (Quantum Design MPMS 3) with an applied field up to 20 kOe, high sensitivity of 10−8 emu, a magnetic field of 7 Tesla, and a temperature range between 2 and 400 K. Additionally, magnetization as a function of temperature (10–300 K) is measured in both field cooling (FC) and zero-field cooling (ZFC) conditions at a field of 100 Oe. Specifically, the samples are first cooled to 10 K without the field; then the field is applied, and data are collected as the temperature increases to 300 K (ZFC). Subsequently, the samples are cooled again, and FC magnetization is measured in the presence of the field. To isolate the intrinsic magnetic behavior of the NRs, both paramagnetic and diamagnetic contributions are subtracted from the M-H curves.

Results and discussion

Morphology and structural properties

Figure 1 shows the measured SEM images taken for Zn1−xCoxO NRs. The surface of ITO substrates is fully covered with hexagonal nanorod-like structures corresponding to the typical structure of ZnO crystal. It is observed that the great influence of the addition of Co ions on the host material (ZnO) is such that the shape and dimensions of the NRs are affected. Figure 2 shows the nanorod diameter against the Co content. The solid curve in the figure represents a non-physical guide for the eye only, connecting discrete data points. No continuous functional relationship is implied. As seen in Fig. 2; Table 1 the diameter of the NRs is increased from 347 to 1730 nm by increasing Co content because the rate of growth along the transvers axis is higher than that of longitudinal one. And this could be explained in terms of the diffusion of Zn2+ and Co2+ ions and generation of OH ions during the growth process. The Zn2+ and OH ions are produced during the electrochemical deposition process according to the reactions:

$$\:Zn{\left(N{O}_{3}\right)}_{2}\to\:\:{Zn}^{2+}+2N{O}_{3}^{-}$$
$$\:N{O}_{3}^{-}+{H}_{2}O+2{e}^{-}\to\:N{O}_{2}^{-}+2O{H}^{-}$$
$$\:{Zn}^{2+}+2O{H}^{-}\to\:Zn({OH)}_{2}$$
$$\:Zn({OH)}_{2}\:\:\:\underrightarrow{80^\circ\:}ZnO+{H}_{2}O$$
(1)

When the production rate of OH ions is much faster than the diffusion rate of Zn2+39, the growth of NRs will take place mostly along the longitudinal axis. On the other hand, the growth could occur in both the longitudinal and transversal axes, when the rates of the OH generation and Zn2+ diffusion are in the same order. The diffusion process of Zn2+ ions could be enhanced compared to the OH ions generation when Co2+ and Zn2+ ions exist during the growth process. In this case the growth is more likely along the transvers axis and thus NRs with larger diameter will be produced which depends on the Co content. Furthermore, increasing the diameter leads to the NRs overlapping, and this happens because of the lack of free space in which the rods can grow. In this case parts of the NRs are destroyed as clearly seen for the S3 which showed some defects on the surface of the NRs. In conclusion, based on these results, the doping of ZnO by Co ions could control the diameter and in turn the thickness of the NRs, which might be useful for tuning ZnO properties.

The structure of ZnO NRs produced on ITO substrates is shown in Fig. 3. Many sharp diffraction peaks are observed, which confirm the production of the NRs in ZnO. The identified XRD peaks of fabricated ZnO NRs (PDF number: 01-079-0207) correspond to the hexagonal crystal structure with lattice parameters of a = 3.2568 Ǻ, b = 3.2568 Ǻ, and c = 5.2125 Ǻ. Interestingly, the position of the XRD pattern did not show a significant shift in the peak position towards lower 2θ values with increasing Co content, which means that the lattice parameters a and c do not vary with increasing Co concentration. In addition, there are no observed peaks matching any phases associated with the Co except for the peaks labeled (*) that correspond to the ITO substrates. The (002) diffraction peak is the highest intense peak, indicating the great growth along the (002) plane. This result disagrees with those reported33 where the most intense peak is (101) and reduced by Co addition. Furthermore, as seen in the inset in Fig. 3 the center of the (002) peak is shifted towards lower diffraction angles as well as its intensity is decreased against Co. This indicates the well substitution of Zn2+ sites by Co2+. The XRD results are consistent with the observations seen in the SEM images as discussed above.

Fig. 1
figure 1

The SEM images of Zn1-xCoxO NRs at different concentrations of Co. The inset SEM images show magnified nanorods.

Fig. 2
figure 2

The nanorod diameter against the Co content. The solid curve represents a non-physical guide for the eye only, connecting discrete data points.

Fig. 3
figure 3

The XRD pattern of Zn1-xCoxO NRs at different concentrations of Co. The inset shows the peak (002) on a small scale referring to the change of peak position and intensity with the Co content.

The XRD was further analyzed to determine the texture coefficient \(\:{R}_{hkl}\:\)calculated by40:

$$\:{\:\:\varvec{R}}_{\varvec{h}\varvec{k}\varvec{l}}=\frac{{\varvec{I}}_{\varvec{h}\varvec{k}\varvec{l}}/{\varvec{I}}_{\varvec{o}\left(\varvec{h}\varvec{k}\varvec{l}\right)}}{1/\varvec{N}\left[\sum\:_{\varvec{N}}{\varvec{I}}_{\varvec{h}\varvec{k}\varvec{l}}/{\varvec{I}}_{\varvec{o}\left(\varvec{h}\varvec{k}\varvec{l}\right)}\right]}$$
(2)

where\(\:\:\:{I}_{hkl}\) is the recorded XRD intensity of a particular peak has a plane (\(\:hkl)\), \(\:{I}_{o\left(hkl\right)}\) is XRD intensity taken from the reported PDF data. N is the measured peaks. According to the \(\:{R}_{hkl}\:\) values (see Fig. 4; Table 1), the growth direction of the Zn1−xCoxO NRs is found to be along the 002 plane of c-axis. In addition, the decrease of \(\:{R}_{hkl}\:\) against Co is due decreasing the (002) peak intensity. The average crystallite size calculated by Scherrer relation (\(\:\:D=\frac{0.9\lambda\:}{B{cos}\theta\:}\))41 using the three diffraction peaks [(010), (002), (011)] is shown in Fig. 5; Table 2. The Scherer model does not consider the contribution of internal strain, as it fits the peak shape exclusively using a Gaussian function. Figure 5 reveals a clear decrease in crystallite size with increasing cobalt content, dropping from approximately 25.1 nm for the undoped sample (x=0.00) to 25.48 nm at the highest doping level (x = 0.30). This trend suggests that cobalt incorporation effectively suppresses grain growth during material synthesis, likely through a combination of factors: (i) Co segregation creating a solute drag effect that reduces boundary mobility (consistent with Cahn’s model of impurity drag, Acta Metall. 196242,, and (ii) the nanocrystalline nature of our material where the high density of boundaries amplifies this drag effect (Novikov, Mater. Lett. 201343,. Our XRD characterization shows no evidence of secondary phases that could provide Zener pinning, supporting that the stabilization mechanism is primarily kinetic (drag) rather than thermodynamic (pinning), similar to effects reported by Gottstein & Shvindlerman (Grain Boundary Migration in Metals, 2010) for nanoscale systems44. Additionally, the addition of Co may result in defects such interstitial cobalt or Ov, which further disturb the crystalline structure and hinder development. To balance growth-inhibiting variables and achieving a minimum achievable crystallite size, the observed plateau at increasing Co concentrations points to a saturation limit for Co substitution within the ZnO lattice.

Additional the Williamson-Hall (W-H) analysis was applied on the samples to determine the crystallite size and strain effects45:

$$\:\beta\:\text{cos}\theta\:=\frac{k\lambda\:}{\varvec{D}}+4\epsilon\:\text{sin}\theta\:$$
(3)

Where \(\:\beta\:\:\)is the FWHM of the XRD diffraction peaks, D is the crystallite size, \(\:\epsilon\:\) is the strain. k = 0.9 and \(\:\lambda\:\) is the wavelength of the X-ray radiation. The plot of Eq. 3 is shown in Fig. 6 and the obtained values of crystallite size and strain determined from the intercept and slope of straight lines in Fig. 6, respectively are summarized in Table 2. The good results is obtained for the sample 3, which gave a good fit (R² = 0.87) showing well-formed nanocrystals about 30 nm in size with very little internal strain. The data of the other samples (S0 and S1) did not show good linear fit.

The EDX spectra of Zn1−xCoxO NRs, shown in Fig. 7, confirms the presence of host elements Zn and O as well as the dopant Co with different weight and atomic percentages in the fabricated NRs. It is noticed that the prepared Co-doped ZnO NRs are pure and free from impurities, which favor the doping of Co into the ZnO lattice. Although compositional of EDX analysis is inconsistent with the starting compositions, the wt% of Co increases, whereas the wt% of Zn decreases. It was further found that the wt % and at % of O increase with increasing Co level which indicates that the Ov defects reduced with the increment of the Co, which may affect the structural properties. However, the values of wt% are listed in Table 1.

Fig. 4
figure 4

The texture coefficient versus the Co content of the Zn1−xCoxO NRs. The solid curve represents a non-physical guide for the eye only, connecting discrete data points.

Fig. 5
figure 5

The crystallite size versus the Co content of the Zn1−xCoxO NRs. The solid curve represents a non-physical guide for the eye only, connecting discrete data points.

Fig. 6
figure 6

The relation between \(\:\beta\:{cos}\theta\:\) and \(\:4{sin}\theta\:\:\)[Williamson-Hall plot] of Zn1-xCoxO NRs.

Fig. 7
figure 7figure 7

The EDX spectra of Zn1-xCoxO NRs.

Table 1 Diameter, texture coefficient (R), and weight% (Wt %) of the Zn1−xCoxO nrs.
Table 2 Crystallite size values determined by scherrer and Williamson-Hall method for the Zn1−xCoxO nrs.

Optical properties

The optical absorbance (A) and absorption coefficient (\(\:\alpha\:\)) of Zn1-xCoxO NRs samples are shown in Fig. 8. The values of \(\:\alpha\:\) are determined using: \(\:\alpha\:=\frac{2.302}{d}\text{A},\:\) where d is the layer thickness. It is seen that both A and \(\:\alpha\:\) are increased as one go toward the short UV wavelength (λ). This behavior is attributed to the e-h pair formation when the hν is in the order of the Eg. They are also increased against Co content, which could be attributed to increasing the size of the NRs as observed in the SEM images. The band gap of Zn1-xCoxO NRs samples was obtained using the linear plot between \(\:{\left(\alpha\:h\nu\:\right)}^{2}\) and hν, shown in Fig. 9 using the Tauc formula for the direct transition36,37. This plot behavior indicated that all NRs samples have only one fundamental absorption edge, one Eg value.

Figure 10 plots the bandgap energy (Eg) of the nanorods as a function of Co concentration. It is seen that \(\:{\text{E}}_{\text{g}}\) is 3.32\(\:\pm\:0.04\) eV for undoped ZnO NRs, but it reduced to 3.24\(\:\pm\:0.04\) eV for the doped sample S3. The Eg of the doped and undoped ZnO NRs are comparable with those reported in the literature46,47. Reducing the Eg of ZnO NRs by Co can be attributed to increasing the diameter of the NRs. In addition, Co incorporation into the ZnO lattice introduces additional energy states within the band gap. This mechanism can cause band tailing, where the edges of the conduction and valence bands extend into the Eg region, thus reducing the Eg. The observed tuning of the band gap (Eg) with the incorporation of Co ions suggests a mutual interaction between the doped Co ions and the band structure of the ZnO nanorods host lattice. The observed reduction in the Eg with increasing Co content may be related to the expected structural phase of ZnCoO that has a lower optical Eg. Hence, the depletion potential in the Co-doped ZnO was foreseen to have a band structure with lower Eg compared with the as-synthesized ZnO NRs. Moreover, the reduction in the bandgap may be attributed to the sp-d exchange interactions between the band electrons in ZnO and the localized d-electrons of the Co2+ ions48. Such interaction influences the electronic structure of ZnO. These interactions can modify the band edge positions, leading to Eg narrowing. Thus, our electrochemical synthesis achieves precise bandgap tuning in Zn1−xCoxO nanorods, reducing Eg from 3.32 eV (undoped) to 3.24 eV (x = 0.30). This 0.08 eV shift, though smaller than the 0.34 eV reduction reported by Basith et al. for microwave-synthesized nanoparticles (from 3.22 eV to 2.88 eV at x = 0.20), demonstrates superior linearity and stoichiometric control. The difference arises from our lower doping range (\(\:\le\:\:\)0.30 wt% vs. 0–2 wt%) and distinct defect chemistry. This controlled bandgap narrowing, coupled with hexagonal NRs morphology, better suits wavelength-specific optoelectronic devices like UV photodetector46,47,49,50.

Fig. 8
figure 8

The optical absorbance and absorption coefficient of Zn1−xCoxO NRs at different concentrations of Co.

Fig. 9
figure 9

The Tauc plots of Zn1-xCoxO NRs at different concentrations of Co.

Fig. 10
figure 10

The band gap of Zn1−xCoxO NRs against the Co content. The solid curve represents a non-physical guide for the eye only, connecting discrete data points.

Magnetic properties

Figure 11 demonstrates the measured magnetization as a function of the applied magnetic field (M-H curves) at temperatures (T) of 300 and 10 K, respectively. At 300 K, the behavior of So and S1 is diamagnetic with magnetizations at 20,000 Oe of 0.016 and 0.011 emu/g, respectively. With more increase of Co up to 0.05%, the behavior became weekly ferromagnetic of 0.016 emu/g in the low field region (0-2000 Oe), and diamagnetic of 0.055 emu/g in the high field region (2000–20000 Oe). This result agrees with those reported for ZnO NRs of 36 nm diameter, which reveal the double behaviors of ferromagnetic and diamagnetic8,38,39. This behavior may be related to the interfacial defects in the NRs which were beneficial for various types of magnetization. The observed dependence of magnetic behavior on the field demonstrated that the defect states between ZnO and CoO interfaces would be in a metastable state, where the spatial distribution strongly depends on the strength of the field51.

Interestingly, the S3 exhibits unusually strong ferromagnetic behavior of 0.14 emu/g and a considerable hysteresis loop. However, with decreasing temperature to 10 K, all NRs samples show paramagnetic behaviors In addition, the M-H curve deviates slightly from its Linearity in the low field region below 2000 Oe. Further, such deviation was increased with increasing the Co content, which may be due to increasing the growth of the magnetic anisotropy plane in the ZnO NRs host lattice52,53. The strong paramagnetic behavior of small hysteresis area shown for S3 at 10 K is, of course, good evidence for residual ferromagnetic domains generated with decreasing the temperature and increasing Co. However, it has been reported that decreasing the Ov to a critical value can degrade the ferromagnetic ordering, leading to a reduction in ferromagnetism54,55,56. It is expected the super-exchange paramagnetic centers of S3 were substituting for the ferromagnetic exchange through F-centers as the temperature dropped to 10 K.

Fig. 11
figure 11

The magnetization dependence of the magnetic field of Zn1-xCoxO NRs at different concentrations of Co. (Top): raw data measured at 10 K and (bottom): raw data measured at 300 K.

The measured magnetization curves indicate the co-existence of two components: paramagnetic and ferromagnetic at 10 K and diamagnetic and ferromagnetic at 300 K. The paramagnetic and diamagnteic contributions (i.e. the linear part) at high magnetic field values were subtracted to extract the ferromagnetic properties. The residual portion of the ferromagnetic is then plotted in Fig. 12. It is seen that all NR samples reveal the hysteresis loop at both considered temperatures. The loop is dependent on the chosen Co and temperature, since it increases with increasing the Co content. However, the magnetic parameters, including the saturated and remnant magnetizations Ms and Mr and the coercive field Hc, are listed in Table 3. The values of Ms and Mr are slightly increased by reducing the T from 300 to 10 K and also by increasing the Co content as well. Interestingly, the sample S2 showed the highest value for Hc of 128.36 and 332.81 Oe compared to the other NR, indicating that S2 is a hard type of material. Although the S3 is the soft NRs sample among the others (with Hc = 16–27 Oe), it exhibits strong ferromagnetism with Ms (= 0.14 and 0.18 emu/g) and high Mr (0.022 and 0.035 emu/g) at 10 K and 300 K, respectively. Although the behavior of Ms against Co doping agrees with that reported elsewhere, the current values of Ms are higher than those reported in9,25,40, which highlights the present investigation. While Basith et al. report weak RTFM (Ms = \(\:2.2\times\:10^{-3}\) emu/g at 2 wt%), our nanorods exhibit significantly stronger ferromagnetism (Mₛ = 0.14 emu/g at 0.30 wt%). This enhancement stems from shape anisotropy of NRs promoting spin alignment and optimized oxygen mediation (evidenced by rising O content with Co doping). Notably, our coercivity range (16-332.81Oe) spans both soft (memory) and hard (sensor) magnetic regimes, a feature absent in their nanoparticle system. The combination of higher Ms and tunable Hc positions our NRs as superior candidates for spin-based devices.

On the other hand, variations in magnetic moment µ (µB) = (WMs/5585), squareness Sq = (Mr/Ms), and magnetic anisotropy γ = (HcMs/0.98)38,57,58 are summarized in Table 3. It is evident that the S3 NRs exhibit higher values for Sq and µ as well as obtained for the Ms, whereas the value of γ is the bigger for the S2. These findings indicted that Sq and µ are controlled by Ms, whereas γ is controlled by Hc. Furthermore, Sq is less than 0.50 for all NRs, indicating magneto-static interaction for all NRs59,60. Therefore, S3 is of particular interest here for the design of ZnO spintronic devices.

Fig. 12
figure 12

The magnetization dependence of the magnetic field of Zn1-xCoxO NRs (Top): corrected data measured at 300 K and (bottom): corrected data measured at 10 K.

Table 3 The corrected magnetic parameters of Zn1-xCoxO NRs at different concentrations of Co.

The FC and ZFC curves shown in Fig. 13 show that there is no obvious bifurcation with blocking temperature in the whole temperature range of 10–300 K, suggesting that there are no ferromagnetic nanoclusters. In addition, the magnetization increases with the content of cobalt which reveals that the Curie temperature (TC) is higher than 300 K and supporting the co-existing of monetization behavior with pragmatic behavior at low temperature and diamagnetic behavior at high temperate. However, this result shows bifurcation in the ZFC/FC curves increases with increasing Co content, as indicating that the level of nonmagnetic nano-grains increases with the Co content with weak antiferromagnetic contribution.

The magnetic properties of pure ZnO nanorods might be due to the formation of Ov8,61. However, the origin of the ferromagnetization for Co doped ZnO NRs could be attributed to the following reasons: The interaction between the Co ions and the host ZnO lattice which is usually linked to the origin of magnetization in the doped samples. In addition, Co doping ZnO allows the Co²⁺ ions to take the place of Zn²⁺ ions in the ZnO lattice. The unpaired d electrons in the Co²⁺ ions can engage in exchange interactions with one another. Depending on the exchange interaction’s nature and the distance between the Co ions, these interactions can result in either antiferromagnetic or ferromagnetic ordering. In certain instances, charge carriers (electrons or holes) can facilitate magnetic interactions between Co ions, a phenomenon known as carrier-mediated ferromagnetism. These carriers can amplify the interaction between localized magnetic moments on the Co ions, resulting in long-range magnetic ordering.

Co exhibited an interesting feature that opened the way to controlling the RTFM through either tuning the interfacial defect states or inducing a localized spin of doped transition metal ions. It is believed that a tendency to form the Zn-O-Co ferromagnetic cluster is strongly related to the size and distribution of the Ov defect states, where the double-exchange interaction governs the behavior RTFM62. The RTFM for S3 even at RT was ascribed to the combined effect of the interaction of localized spin around the incorporated Co-ions at the tetrahedral sites with accumulated charge carriers of ZnO to form bound magnetic polarons63. Anyhow, the coexistence of different magnetic behaviors in Co-doped ZnO has been reported64. They found that Ov plays an important mediation role in Co-Co ferromagnetic coupling rather than a Co ferromagnetic moment and induced ferromagnetic domains at higher Co level. It has been also reported that the presence of grouped Co2+ ions, revealing the presence of clusters of high spin Co2+ with antiferromagnetically coupled spins, besides the ferromagnetic36. Thus, the schematic in Fig. 14 demonstrates the evolution of magnetic behavior in Co-doped ZnO across doping levels and temperatures. In undoped ZnO, oxygen vacancies (Ov) introduce localized paramagnetic spins (↑), though bulk diamagnetism dominates. At low Co doping (0.025–0.05%), bound magnetic polaron (BMP) form via electron hopping between Co²⁺ ions through Ov, creating isolated ferromagnetic (FM) clusters amid diamagnetic regions. For high Co (0.30%), dense Co²⁺ clusters and Ov channels drive long-range FM, evidenced by enhanced magnetization and hysteresis. At 10 K, thermal energy suppression randomizes spins (↑↓), leading to paramagnetism.

Fig. 13
figure 13

The magnetization dependance of temperature of Zn1-xCoxO NRs at different concentrations of Co.

Fig. 14
figure 14

A schematic diagram demonstrating the magnetization at 300 K and 10 K of Zn1-xCoxO NRs at different concentrations of Co.

Conclusion

The structural, optical, and magnetic properties of Zn1-xCoxO nanorods (NRs) fabricated by electrochemical deposition have been investigated. All NR samples were grown along the (002) plane and have a hexagonal structure. The doping of ZnO with Co up to 0.30 wt% could decrease the crystallite size and the texture coefficient of ZnO NRs, whereas the NRs diameter was increased. Interestingly, the Co doping could induce more Ov through the lattice of ZnO NRs. The Eg was found to be 3.32 eV for the ZnO NRs and then reduced to 2.24 eV at the highest level of Co content. At 300 K, the magnetic behavior of both of So and S1 is diamagnetic, weakly ferromagnetic, and diamagnetic for S2, and strong ferromagnetic for S3. But all NRs samples show paramagnetic behaviors with higher magnetization at 20 kOe as the temperature decreases to 10 K. In addition, the S2 showed the highest value for coercive field as compared to the other NRs, indicating hard type material. The S3 exhibited strong ferromagnetism with the highest values of Ms. For S0, the magnetizations of Fc and ZFC curves are typically the same over the full temperature range. Such behavior could be only obtained at 200 K, 265 and 300 K for the other NRs, respectively. The magnetizations at 300 K are gradually increased with increasing the Co content. These findings suggest the Zn1-xCoxO NRs could be valuable for both optoelectronic and spintronic devices. The ability to control both optical and magnetic properties through simple electrochemical growth is especially promising. It has been shown that by carefully tuning the electrochemical process, nanorods with specific combinations of optical and magnetic behavior can be produced- something that could be really valuable for developing new types of devices that need to work in challenging environments like space or nuclear facilities. There’s still more to explore, particularly in how these materials perform under actual radiation exposure, but these results open some exciting possibilities for future research and applications.