1 Introduction

The Co–Fe alloys are the alloys of the two ferromagnetic metals. Due to their excellent magnetic properties [1], they are widely used in fields connected with electronic and magnetic devices [2]. They are also catalysts [3]. One of the standard methods of Co–Fe alloys synthesis is electrodeposition [4]. This well-investigated method is a low-cost and simple one. It allows the production of the Co–Fe alloy in anodic alumina oxide templates [6,7,8] and silicon wafers [9] as well. Co–Fe alloys are also characterized by good resistance to corrosion [10].

The one-step method connects the advantages of the electrodeposition process with the control of the structure shapes. It is caused by the presence of a crystal modifier that promotes specific directions of growth. This component is also called a capping agent. Variously shaped structures of metals and alloys can be obtained during a single electrodeposition process. Unfortunately, the structure's size cannot be easily controlled. It requires investigation of suitable parameters depending on a desirable range of their size. However, they are usually on a micro-scale. For example, to produce cones, NH4Cl [11] or CaCl2•2H2O [12] can be added as the crystal modifier. The specific process conditions have to be applied. Co–Fe alloy cones could be used as the catalyst in a water-splitting reaction. The fabrication of conical, sharp-ended structures could also ensure superhydrophobic properties of layers [13]. To call the surface superhydrophobic one, the water contact angle has to be larger than 150°. This ability allows applying these materials in many fields, e.g. corrosion resistance [14] or antibacterial materials [15].

The use of an external magnetic field during the electrodeposition process allows the properties of the obtained coatings to be modified. This is due to the influence of the magnetic field on mass transport, reaction kinetics or the metal deposition process. This phenomenon is known as the magnetohydrodynamic effect (MHD) [16].

The Lorentz force is the force responsible for the transport of charged molecules. It can be defined as (Eq. 1):

$$\vec{F} = q\left( {\vec{E} + \vec{v} \times \vec{B}} \right),$$
(1)

where q is a charge on the particle, and v is its velocity, E is connected with the electric field strength vector, and B is the magnetic field flux density vector [17]. This force influences the transport of the electrolyte at the electrode surface. This reduces the thickness of the Nernst layer.

In terms of magnetic properties, metals are divided into para-, dia- and ferromagnetic. Depending on the properties of the ions of these metals, the magnetic field may have a different effect on the obtained coatings. Cobalt and iron are ferromagnetic metals, which alloys are widely applied in magnetic devices and microelectromechanical systems called MEMS [18]. The application of a magnetic field and its direction strongly influence the electrodeposition process [19]. It is connected with the mentioned before MHD effect. The parallel-to electrode magnetic field causes obtaining denser and more homogenous coating than one deposited without applied magnetic field. The electrodeposition rates increase with the magnetic flux density. In the case of the perpendicular-to-electrode magnetic field, there is no significant influence on these rates. It is expected due to negligible Lorentz force. The coatings are more diverse as well. Moreover, the magnetic field perpendicular to applied current density causes decreasing in coatings thickness due to the enhancing of hydrogen evolution [20]. There are several works describing the electrodeposition of Co–Fe coatings in the magnetic field [21,22,23]. In regard to the magnetic properties of these metals, there is a tendency to electrodeposit in areas with a high magnetic field gradient [22]. Due to described MHD effect, the change of pH near the electrode surface is also less extend in the superimposed magnetic field than without it [23]. However, no influence of the flux density and orientation of the applied magnetic field on the chemical composition of Co–Fe alloys was observed [21].

In this work, the Co–Fe alloy cones were successfully synthesized using the one-step method from an electrolyte containing NH4Cl as a crystal modifier. The attempt to use NaCl as the capping agent was made. There is no previous research in the literature connected with obtaining this alloy using the one-step method. The influence of the capping agent, electrolyte temperature and deposition time was checked using Scanning Electron Microscope (SEM) photos. Due to the ferromagnetic properties of cobalt and iron, the magnetic field with different intensities and directions was applied during electrodeposition as well. It ensured obtaining layers characterized by different shape of structures and alloy compositions. Samples were analyzed using Scanning Electron Microscope (SEM), Energy Dispersive Spectroscopy (EDS), X-Ray Photoelectron Spectroscopy (XPS) and X-Ray Diffraction (XRD) methods.

2 Materials and methods

Conical Co–Fe alloy deposits were electrodeposited onto Cu foil from the three different electrolytes containing CoSO4, FeSO4, NaSO4, H3BO3, and NH4Cl as a crystal modifier. Their compositions are shown in Table 1.

Table 1 Chemical composition of used electrolytes [19]

As a based electrolyte, the B one was used due to the equal concentration of CoSO4 and FeSO4. In all cases, the bath pH value was adjusted to 3 with H2SO4. The copper substrate was polished by immersion into a mixture of acids: H3PO4, CH3COOH, and HNO3 (volume ratio 1:1:1) at 70 °C for 10 s. Its surface was 2.8 cm2. The top view of this surface is shown in Fig. 1.

Fig. 1
figure 1

Top-view of the Cu substrate after chemical polishing (magnification: × 500)

The electrodeposition process was carried out galvanostatically in a two-electrodes cell with Pt foil as an anode and Cu foil as a cathode. The value of applied current density was 20 mA/cm2. All used reagents were characterized by analytical purity (POCH). Deionized water was used for preparing the solutions. The influence of the electrodeposition time, the amount of crystal modifier, and electrolyte temperature on the morphology of the structures was determined. The sufficient electrodeposition parameters were compared in the case of using different electrolytes. Then, the superimposed magnetic field was applied using the electromagnet LakeShore (Model 642). The intensity value was 500 mT. The influence of the applied magnetic field direction on quality, morphology, and composition of alloy was also determined. In this case, the effect of the composition of the used electrolyte was checked as well.

To check the quality of samples, photos were taken using SEM JEOL—6000 Plus (Tokyo, Japan). The composition of coatings was determined using EDS analysis. The phase composition of alloy was investigated using WD XRF analysis Rigaku Primini (Tokyo, Japan) with palladium source of radiation. The XPS analyses were carried out in a PHI VersaProbeII Scanning XPS system (Chigasaki, Japan) using monochromatic Al Kα (1486.6 eV) X-rays focused to a 100 µm spot and scanned over the area of 400 µm × 400 µm. The photoelectron take-off angle was 45°, and the pass energy in the analyzer was set to 117.50 eV (0.5 eV step) for survey scans and 46.95 eV (0.1 eV step) to obtain high-energy resolution spectra for the C 1 s, O 1 s, N 1 s and Re 4f regions. A dual-beam charge compensation with 7 eV Ar+ ions and 1 eV electrons were used to maintain a constant sample surface potential regardless of the sample conductivity. All XPS spectra were charge referenced to the unfunctionalized, saturated carbon (C–C) C 1 s peak at 285.0 eV. The operating pressure in the analytical chamber was less than 3 × 10–7 mbar. Deconvolution of spectra was carried out using PHI MultiPak software (v.9.9.0.8). Spectrum background was subtracted using the Shirley method.

3 Results and discussion

3.1 Electrodeposition of Co–Fe alloy cones

In the field of Co–Fe alloy cones electrodeposition by one-step method with crystal modifier, there were no previous works in this field. It was required to find the most appropriate conditions of the process. Firstly, the influence of crystal modifier amount on the conical shape of structures was investigated. The addition of ammonium chloride to electrolyte B was 40 g/l and 100 g/l, respectively. The electrochemical deposition process was carried out at 60 °C, and the value of current density was 20 mA/cm2. The results are shown in Fig. 2.

Fig. 2
figure 2

Co–Fe cones synthesized from the electrolyte containing: a 40 g/l and b 100 g/l NH4Cl (magnification: ×10k)

It can be noticed that structures are sharp-ended in both cases—however, lower addition of crystal modifier allows obtaining uniform cones. There are several irregularities for a greater amount of NH4Cl. These structures are also shorter. Usually, there is no information about the amount of used crystal modifier in the literature, especially in the case of Co–Fe alloys. However, these two values were chosen based on a literature review connected with the electrodeposition of different metals conical structures [24, 25] and own performed research.

Because Co–Fe alloys can be deposited at room temperature [19], the influence of this parameter was also determined. SEM photos of structures obtained at different temperatures are shown in Fig. 3.

Fig. 3
figure 3

Co–Fe conical structures fabricated at a room temperature and b 60 °C Electrodeposition conditions: electrolyte B, 20 mA/cm2, 10 min and 40 g/l NH4Cl (magnification: ×10k)

Obtained results show that room temperature is too low for the synthesis of conical structures. There are noticeable, small nanocones, but their subsequent growth caused large, round structures. Higher temperature allows obtaining sharp-ended alloy cones. This value was chosen based on previous observations. Electrolyte, which contains an addition of NH4Cl, is not stable at a lower temperature. This was also confirmed by [24]. It corroborated that the optimal temperature ranges from 60 to 70 °C. Its further increasing caused decomposition of the solution.

Finally, the influence of electrodeposition time on the quality of structures was checked. Based on the results described above, 40 g/l NH4Cl and 60 °C were applied as electrodeposition conditions. The electrolyte B was used. SEM photos of layers are shown in Fig. 4.

Fig. 4
figure 4

Time of electrodeposition: a 5 min, b 8 min, c 10 min, d 16 min and e 20 min (magnification: ×10k)

It can be noticed that with an increase in time, there is an increase in the size of cones. However, the prolongation of deposition time causes appearing of round structures. It was also confirmed by [24]. Moreover, other applied parameters strongly influenced it. In [24] this time was about tens of seconds. As it was mentioned before, there is no work connected with the synthesis of Co–Fe alloy structures by this method. The critical time of electrodeposition in the case of these alloy cones is 10 min. These structures also show the best quality connected with sharp tips and uniform height.

To confirm obtaining Co–Fe alloy cones, the EDS analysis was performed. The results of the mapping analysis are shown in Fig. 5.

Fig. 5
figure 5

Mapping analysis of Co–Fe cones: a top view of the surface and distribution of: b Co, c Fe and d O. Electrodeposition conditions: i  = 20 mA/cm2, T = 60 °C, t = 10 min and 40 g/l NH4Cl

Obtained results show that there is a uniform distribution of Co and Fe. The presence of chloride connected with the composition of electrolyte was also checked. The chemical composition is as follows: 48.68% at. Co, 46.41% at. Fe, 4.91% at. O and 0% at. Cl. It can be noticed that there is no present of Cl from the electrolyte. The amount of Co and Fe is almost equal. It is related to the electrolyte composition.

The attempt to add NaCl instead of NH4Cl was made. Sodium chloride was added to the electrolyte B. The samples were electrodeposited at room temperature and 60 °C. The results are shown in Fig. 6.

Fig. 6
figure 6

Co–Fe conical structures fabricated from the electrolyte containing NaCl at a room temperature and b) 60 °C. Electrodeposition conditions: 20 mA/cm2, 10 min and 40 g/l NH4Cl (magnification: ×10k)

As it can be noticed, the change of the used crystal modifier allows the synthesis of the covering of the sample surface with the conical structures at higher temperatures. They are characterized by heterogeneous height. The electrodeposition at room temperature was performed due to the stability of the solution in a wide range of temperatures. These results highlight the significant importance of the electrodeposition parameters—the addition of chloride ions which are the crystal modifiers is enough to synthesis cones. The EDS analysis shows that the chemical composition of these coatings is similar. They are following: 41.09% at. Fe, 53% at. Co, 0.76% at. Cl, 5.15% at. O (for the sample obtained at room temperature) and 40.33% at. Fe, 54.33% at. Co, 0.01% at. Cl, 5.33% at. O (for the one synthesized at 60 °C).

The influence of the electrolyte composition on the cones morphology was analyzed based on SEM photos. The results are shown in Fig. 7.

Fig. 7
figure 7

Co–Fe conical structures fabricated from the electrolyte a A, b B and c C. Electrodeposition conditions: 20 mA/cm2, 10 min, 60 °C, and 40 g/l NH4Cl (magnification: ×10k)

As it can be noticed, the round-ended structures are electrodeposited only from the electrolyte A. However, in the case of a higher concentration of FeSO4 (electrolyte C), the structures are characterized by sharp tips and similar size. There is a significant difference in the sample surface compositions. EDS results are the following: 24.86% at. Fe, 69.15% at. Co, 0.13% at. Cl, 5.86% at. O (electrolyte A) and 53.65% at. Fe, 39.23% at. Co, 0% at. Cl, 7.12% at. O (electrolyte C). These results are connected with the values of the CoSO4 and FeSO4 concentrations in the solutions. Generally, the sharpest-ended and the most uniform cones can be synthesized from electrolyte C. Based on the SEM photos, the height of the cones was determined for each coating by measurement the height of 100 cones randomly distributed on the surface. Each cone was measured for 3 times and then the average value was calculated. The results are shown in Fig. 8.

Fig. 8
figure 8

Average height of cones synthesized from electrolyte A, B and C determined based on SEM photos

As it can be noticed, the results of the estimation are in agreement with size of the structures shown in Fig. 7. However, these values are approximate due to the dense distribution of structures what prevents accurate measurements from the bottom of the single cone.

Due to the quality of the layer, the following electrodeposition conditions were chosen for application of magnetic field: current density i = 20 mA/cm2, temperature T = 60 °C, time t = 10 min and the addition of NH4Cl: 40 g/l.

3.2 Electrodeposition with applied magnetic field

With regard to the ferromagnetic character of Co and Fe, the superimposed magnetic field was applied during electrodeposition. The changes in alloys morphology and composition could be expected. The influence of magnetic field direction (parallel and perpendicular) and intensity (250 mT and 500 mT) on the samples produced from the different electrolytes was investigated. SEM photos are shown in Fig. 9.

Fig. 9
figure 9

Coating obtained at 500 mT in (a, c, e) perpendicular and (b, d, f) parallel magnetic field (magnification: ×10k) from the electrolyte: A (a, b), B (c, d), and C (e, f)

The influence of the magnetic field on the morphology of coatings is noticeable. However, the conical structures cannot be synthesized from all used electrolytes in all cases. For structures electrodeposited from the electrolyte A, cones obtained in a parallel magnetic field are smaller but sharp-ended. The perpendicular magnetic field increases the uniformity of their size. For solutions B, round-ended structures are produced in the parallel magnetic field. They are also smaller but more homogenous than those synthesized under the perpendicular magnetic field. There is no significant difference between the surface of the samples electrodeposited from the electrolyte C. In both cases, small, uniform cones with sharp tips grow.

EDS analysis was performed to check the dependency between applied magnetic field and the chemical compositions of obtained alloys. The results are shown in Table 2.

Table 2 Chemical composition of obtained alloys

It can be noticed that or both directions of the magnetic field, Co–Fe alloys are obtained from all the electrolytes. Application of magnetic field does not change the relation between the concentration of Co and Fe in the electrolytes and their amount in the coating. There is a noticeable difference in the amount between Co and Fe in relation to their addition to the solution. The chloride appears only for the sample obtained from electrolyte C in a perpendicular magnetic field. In this case, there is also a high content of oxygen. Besides this sample, the detected amount of Cl is below the device detection level and can be omitted. The presence of Cu is connected with the used substrate. However, the electrodeposition of any of Co or Fe is not clearly promoted by any of the magnetic field directions.

The sample surfaces synthesized from the electrolyte B were analyzed using XPS as well. The spectra are shown in Fig. 10.

Fig. 10
figure 10

XPS spectra of sample synthesized a without and b with the perpendicular magnetic field (500 mT)

Unfortunately, the Al lamp used in this analysis does not allow to recognize lines from Fe ions. The multiplet splitting structure characteristic for first-row transition metal species containing unpaired electrons is shown in both cases. The Co 2p3/2 spectra are similar as well. Based on [26,27,28], it was determined that there are three states of cobalt on the sample surfaces. The first peak centred at 778.1 eV is connected with metallic Co. The lines at 780 and 781 eV and 782–778 eV point out that Co is in two oxidation states: Co3+ and Co2+ oxidation states and can be connected with the presence of Co3O4 and CoO. The relative concentrations of cobalt species present in analyzed samples are shown in Table 3.

Table 3 Relative concentrations of cobalt species present in analyzed samples

These results confirm that on the sample surfaces, there are cobalt oxides. Their presence is essential in the case of the sample application as catalysts. These oxides are responsible for the electrocatalytic properties of samples. Both surfaces are a mixture of metallic cobalt and its different oxide states.

To check if there is any change in the crystal system of the alloy, the XRD analysis was performed. The sample electrodeposited from electrolyte B was chosen. The results are shown in Fig. 11.

Fig. 11
figure 11

XRD analysis of obtained coatings with the marked mass of the coatings and crystalline size

In the presence of a magnetic field, two new peaks appear. They are combined with Co–Fe alloy. However, other peaks can be identified as Cu (the substrate) or Co–Fe ones. They cannot be distinguished due to the small mass of coatings. The peaks from Cu substrate appear due to the thinness of coatings.

4 Conclusions

Performed experiments and obtained results confirm that the synthesis of conical Co–Fe alloy structures by one-step method is possible. However, there is a dependency between the added amount of NH4Cl and the morphology of obtained structures. Its greater addition causes the formation of many irregularities. Additionally, solution heating is required. The electrolyte is not stable at a temperature below 60 °C. The duration of the process is limited to 10 min. Its prolongation changes the shape for round one. The change of the crystal modifier for NaCl allows the successful synthesis of the cones but still at higher temperatures. Application of the different electrolytes causes an increase in the quality of the cone in the case of electrolyte C.

Due to the magnetic properties of Co and Fe, the expected strong influence of the applied magnetic field on coating morphology appears. The influence of the magnetic field on the morphology of coatings is noticeable. However, the conical structures cannot be synthesized from all used electrolytes in all cases. There are no significant differences between the structures produced from electrolyte C. Moreover, there is a noticeable relationship between the amount of Co and Fe on the sample surfaces and their addition to the solution. But the electrodeposition of any of Co or Fe is not clearly promoted by any of the magnetic field directions. The presence of cobalt oxides is confirmed by XPS analysis. They are related to the electrocatalytic properties of structures in water-splitting reactions and can be connected with future studies on the application as catalysts. Moreover XRD analysis confirms the synthesis of Co–Fe alloys. Two new peaks appear in the case of the applied magnetic field. Due to the thinness of the coatings, it is impossible to distinguish if they are connected with the copper substrate or the alloy. The conical shape of the obtained structures can enhance the superhydrophobic properties of the samples. However, this issue needs to be confirmed by further experiments.