1 Introduction

Soldering is one of the very important metallurgical method for joining various metal parts in electronic packaging and assemblies due to their excellent electrical interlinking property and mechanical support. Different electronic components are assembled with a lead-frame or directly (flip-chip technology) to a circuit board by this technique [1]. Soldering is a simple and effective procedure with several environmental and health disadvantages, which cannot be neglected. Because of the requirement of a lead-free alloy to solder, this research has become essential. Among all other properties, the melting point is one of the most important ones. The ideal melting point of the material to qualify for as soldering alloy cannot be too high to generate any thermal issues or not be too low to become nonfunctional.

The electronic industry’s prevailing choice has been a binary system of Sn–Pb solder alloys due to their low melting temperature. (m.p 183 °C), good wettability, and mechanical properties [1, 2]. The Eutectic alloy, e.g. 40Pb–60Sn, is the most widely used solder in industries. The replacement of lead alloy with a lead-free alloy of the same melting temperature is complicated and has becomes a significant concern [3]. Given all of these benefits, toxicity of heavy metal like Pb has in recent times limited its use. According to the US Environmental Protection Agency [4], Pb and Pb containing compounds are hazardous chemicals in the top 17 list of chemicals and also a life threating to humans and the environment [5, 6]. In the current scenario, the lead-free alloy for solder application can help in tackling the upcoming challenges related to the environment. To design a new solder alloy with the desired range of various characteristics like melting point, mechanical strength, microstructure, wettability, solderability, reliability, and cost must be investigated [7]. That electronic packaging method makes soldiers exposed directly to corrosion in air, moisture, and oceanic environments. Hence the reliability and life of electronic devices are impaired by the corrosion resistance of new solder alloys.

Researchers developed many binary lead-free solder alloys, including Sn–Zn, Sn–In, Sn–Bi, Sn–Sb, Sn–Ag, and Sn–Cu. It has also been predicted that the ternary metal alloy can provide an excellent opportunity to get a lead-free alloy.

Among tin-based lead-free solder alloys, Sn–Zn’s family has advantages such as low reflowing temperature (198.5 °C) and high wettability among lead-free tin-based solder alloys. Since zinc is placed at a lower position in the electrochemical series, it is chemically active, which cause problems in the solder joint by forming zinc oxide/hydroxides. This makes solder is vulnerable to corrosion. The addition of silver could give the solder better corrosion resistance (Sn–9Zn–xAg). On the other hand, Sn–Bi eutectic solder alloy has a lower reflowing temperature (138 °C) than Pb–Sn solder alloys (183 °C). The handling of lead and its recovery has certain restrictions. It is found from the literature that after recycling, Pb emits a higher amount of α particle than pure lead, which causes a reduction in electronic circuit efficiency [8]. As an alternative to Pb–Sn solder alloys, the eutectic Sn–Cu alloy finds wide application due to lower cost. Although considered a good solder alternate to conventional solder, the effects on mechanical and corrosive resistance of various microstructural scales can be found in the literature, mainly concerned with adding a third element to the alloy [9]. A study on Sn–Cu solder alloys shows precipitation of Cu6Sn5 intermetallic phases in road form in Sn matrix, which causes strain along the grain boundaries resulting in a reduction in corrosion resistance eutectic reaction produces the Cu6Sn5 faceted intermetallic phases in rod form embedded in a continuous Sn rich matrix, causing strain between these phases along the grain boundaries. [9, 10]. The study has also shown that increasing copper content from 0.8 to 6.7 per cent leads to an increase in corrosion resistance [11]. The corrosion products formed on solder alloys samples exposed to NaCl media are challenging to understand with an aerated acidic NaCl solution. A complex layer of tin oxide, SnO2, Sn3O(OH)2Cl2 are observed in the corrosion product2 [12, 13].

The alloying process is an efficient way to obtain the refined microstructure of solders; Sn–0.7Cu alloy, for instance, it has been found that the refined microstructure was achieved after alloying with Ni, Ag, and Al, and there was an increase in the oxidation resistance [14, 15]. The addition of In will enhance the mechanical properties and wettability of Sn–0.7Cu [16].

Indium (In) is a valuable component for solving the high melting point and low wettability of solder alloy on Cu substrate [17, 18]. The main advantages of the addition of indium have a significant effect on the corrosion resistance corrosion of solder alloy Sn–0.7Cu. The addition of In the solder alloys of Sn–0.7Cu–xIn helps in improving corrosion resistance by forming a better passivation film during polarisation in 3.5 wt% NaCl protecting the surface against further corrosion [19,20,21,22]. Other researchers report many advantages to add indium in lead-free solder alloys. Decreases the melting temperature and increases the melting range, solder corrosion rate. It also improves the solder hardness, wettability of lead-free solder is improved [23]. Indium is responsible for lowering the thickness ratio of IMC Cu3Sn/Cu6Sn5 is lowered, and Improved solder alloy corrosion resistance and shear strength [24, 25].

In this article, an attempt has been made to synthesize Cu–Sn–In alloys with different compositions of indium in this alloy, keeping the composition of the Cu and Sn constant by vacuum induction technique. Then the composition and morphology of the alloys were investigated by metallographic methods. Then the corrosion measurements were carried out to see the effect of indium on the corrosion resistance of the alloys by potentiodynamic polarization (PD) test and wet loss method. Subsequently, the samples were subjected to SEM and XRD analysis to analyze the composition of the corrosion product. The corrosion mechanism was then predicted by combining the potentiodynamic polarization test and Electrochemical Impedance Spectroscopy (EIS).

2 Experimental procedure

2.1 Synthesis of Sn–0.7Cu–xIn solders alloys

Sn–0.7Cu–xIn (x = 0, 1, 2, 3 in wt% ) ternary alloys ware prepared by melting of pure Cu, In and Sn (purity > 99.9%).The constituents were weighed, kept in an alumina crucible (5 cm length and 2 cm diameter), and put in a vacuum induction furnace.

After that furnace was sealed and purged from the furnace chamber for 15 min with pure nitrogen gas for removed oxygen and other unwanted gas, the temperature of the furnace was increased by 4 °C/min up to 450 °C with 30 min of soaking time under the vacuum (10−4 torr). The molten alloys were then cooled down to 250 °C and subjected to furnace cooling, and further cooled for 24 h at room temperature. This alloy sample was again re-melted at the same temperature and vacuum conditions. The whole procedure of re-melting followed by furnace cooling and resting of alloy was repeated three times for the homogenization of metals. The solidified alloy sample was cleaned with acetone and subjected to a flat belt grinder to remove excess materials or imperfections present on the surface. The alloy sample was again polished using P 800 Electro coated silicon carbide waterproof paper from grade range 400–1200 and cloth polishing to smoothness the sample’s surface. Scanning electron microscopy (SEM) was used to analyze corroded samples’ microstructure and surface morphology, and compositional analysis was performed using energy dispersive spectrometry (EDS) and X-ray diffraction (XRD).

2.2 Potentiodynamic polarization and EIS tests

Lead-free solder alloys’ working surface (10 mm dia.)was mechanically ground with SiC paper from 100 to 1600 grid mirrors polished with the help of 0.3 μm Al2O3 powder paste. The sample is ultrasonically cleaned in acetone and distilled water before further characterization. Corrosion testing was conducted at room temperature in an air-saturated aqueous solution of 3.5 wt% NaCl solution prepared by dissolving 35 g of analytical grade Sodium chloride powder in deionized water from a 1-L solution.

The potentiodynamic polarization test was performed by the CorrTest Instruments Corp., Ltd. (Wuhan, China). The Potentiodynamic polarization scanning was performed in a 3.5 wt% NaCl solution with the laboratory atmosphere at room temperature (27 ± 5 °C).

This rectangular polarization cell had Pt wire as a counter electrode, Ag/AgCl as a KCl saturated reference electrode and an exposed solder alloys area (1 cm2) that acted as an electrode practice. Before the Potentiodynamic polarization evaluation of Sn–0.7Cu–xIn solder alloys, open circuit potential (OCP) measurement was done for 30 min at 1Hz frequency to ensure that the specimen’s working surface to be stable.

EIS then analyzes the resistance to corrosion at OCP over a frequency range from 0.01 Hz to 100 kHz. Potentiodynamic polarization analysis was taken after electrochemical impedance spectrograph (EIS) with potential range was scanned form −500 mV (vs. OCP) to 500 mV (vs. OCP) vs. VAg/AgCl at 1 mV/s. The obtained data from potentiodynamic polarization and EIS tests were analyzed with CView (CS studio, version 5.2) and ZView (CS studio, version 5.2) software to obtain the corrosion rate and corrosion resistance, respectively (Fig. 1).

Fig. 1
figure 1

Schematic diagram of a rectangular polarization cell

2.3 Characterizations

The specimen surface before the corrosion tests ware observed using an optical microscope (OM, Leica Z6 APO) and also investigate their corroded and non-corroded surface microstructure morphology, a chemical composition by (SEM, ZEISS MA15/18, UK) equipped with energy dispersive spectroscopy (EDS) was used. Phase analysis was done using XRD (Rigaku MiniFlex, Japan) equipped with a hybrid pixel array detector with rotating Cu–Kα. XRD analysis has taken scanning angle (2θ) from 20° to 90° with a scanning speed of 5°/min with accelerating voltage of 40 KV and current 15 amperes. The XRD peak was analyzed by using X-part Highscore plus software to find different types of phases.

3 Results and discussion

3.1 Microstructure characterization

The SEM microstructure and EDS analysis of lead-free solder alloys Sn–0.7Cu–xIn (x=0, 0.1, 0.2, and 0.3 wt%) are shown in Fig. 2. it showed two different contrast, one the dark region, which seems to be precipitation during solidification of Cu6Sn5 (IMC) and light phase of β-Sn phase matrix (2.d). Nucleation of binary Sn–0.7Cu liquid alloy takes place at approximately 227 °C (eutectic temperature). Liquid Sn–0.7Cu transfers to β-Sn and Cu6Sn5 (L→Cu6Sn5/Cu3Sn + β-Sn), consistent with Sn–0.7Cu binary phase diagram. The main principal additives of the Sn–0.7Cu solidified alloys are Cu6Sn5 and β-Sn. At eutectic temperature (227 °C), the dissolution of the Cu6Sn5 is triggered, and the Cu6Sn5 eutectic is grown through β-Sn diffusion. A small volume of Cu2In phase precipitated seen in Sn–0.7Cu–xIn solder alloy due to indium’s addition from 1 to 3 wt% in the Sn–0.7Cu solder alloy. The uniform microstructure of Sn–Cu–In solder alloys has been obtained with the addition of the Indium element, and β-Sn grains have significantly been refined. The microstructure of refined solder alloys contributed to a more uniform phase distribution, which benefited the superior mechanical properties [26].

Fig. 2
figure 2

Optical microstructures solder alloys a Sn–0.7Cu, b Sn–0.7Cu–1In, c Sn–0.7Cu–2In, and d Sn–0.7Cu–3In

The experiment was carried out with XRD, and corresponding results are shown in Fig. 3. One can see that Sn–0.7Cn, Sn–0.7Cn–1In, Sn–0.7Cn–2In, and Sn–0.7Cn–3In consist of the pattern of β-Sn, Sn3cu, Sn6Cu5, and Cu2In, while a pattern of variation of Indium in Sn–0.7Cu includes some Cu2In peaks with 2 theta scale between 43° and 45°.

Fig. 3
figure 3

XRD pattern of Sn–0.7Cu–xIn solder alloys

3.2 Potentiodynamic polarization behavior

Sn–0.7Cu–xIn solder alloys potential current density curve produced by Potential polarization studies done in 3.5 wt% aerated NaCl solution in Fig. 4 Apparently, and all the alloys studied exhibit the same polarisation behaviour for variation of Indium from 0 to 3 wt% in Sn–0.7Cu–xIn solder alloys. The region of AB in the curve shows the cathodic reaction. During the potentiodynamic polarization experiment, the solution is directly reacted with the laboratory atmosphere, the initial reduction of oxygen in the neutral and aqueous solution.

$${\text{2H}}_{{2}} {\text{O}}\, + \,{\text{O}}_{{2}} \, + \,{\text{4e}}^{ - } \to {\text{4OH}}^{ - }_{{({\text{aq}})}}$$
(1)
Fig. 4
figure 4

Potentiodynamic polarization curves of Sn–0.7Cu–xIn solder alloys in 3.5 wt% NaCl solution

The cathodic reaction was responding to metallic corrosion. It is carried by the oxygen reaction and/or hydrogen reaction. The hydrogen bubble produces at the working (cathode) electrode by reduction of water molecules and removal of hydrogen ions, which many researchers have reported [27,28,29].

$${\text{2H}}^{ + }_{{({\text{aq}})}} \, + \,{\text{2e}}^{ - } \to {\text{H}}_{{{2}({\text{g}})}}$$
(2)
$${\text{2H}}_{{2}} {\text{O}}\, + \,{\text{2e}}^{ - } \to {\text{H}}_{{{2}({\text{g}})}} \, + \,{\text{2OH}}^{ - }_{{({\text{aq}})}}$$
(3)

An anodic reaction in the potentiodynamic polarization tests also occurs in particular regions, named BC, CD, DE and EF, as shown in a curve.

In the anodic region, current increases with increasing voltage (BC), which shows corrosion product formation. It has been demonstrated that the initial period formation of Sn(OH)2 takes place by reaction 4. After the appearance of the corrosion product. It covers the whole surface, which restricts current flow by increasing the resistance. As the thickness of the oxide layer, it results in no change of current density. Also, from Fig. 4 CD region plateau area, there is no change in current density and is stable at a value of about – 4 A/cm2. This behaviour is called the passivation of an oxide layer. The current density increases dramatically from point B to point C, and corrosion product formation during the experiment has been tracked. It’s far typically interpreted that the passivation film formation starts with the precipitation of Sn (OH)2 at the surface. Such corrosion products cover the alloys’ surface and protect the substratum alloys against further corrosion; thus, a plateau area (CD) occurs in curves where the current density maintains a relatively stable value of about – 4 A/cm2. This stage illustrates the passivation behaviour and subsequent successful dissolution of Sn, as shown in Equation 4.

$${\text{Sn}}\, + \,{\text{2OH}}^{ - } \to {\text{Sn}}\left( {{\text{OH}}} \right)_{{2}} \, + \,{\text{2e}}^{ - }$$
(4)

A sharp increase in current density is again located when the potential reaches point D, signalling the passivation film’s breakdown, usually due to the oxygen evolution reaction in Eq. 4 and the absorption of Cl by corrosion products. Tin monoxide (SnO) has been considered as semiconductor oxide and may weaken the corrosion resistance. Hence it is detrimental to the passivation film’s stability. These results in a sharp peak corresponding to active Sn dissolution induced by Cl ions with the formation of SnCl3 and SnCl62− soluble complexes, resulting in the initial pitting, which inevitably breaks the passivation layer consistency. The tin oxide was formed found to be thermodynamically stable. Therefore so tin hydroxides can quickly dehydrate to form SnO2 and SnO.

$${\text{Sn}}\, + \,{\text{2OH}}^{ - } \to {\text{SnO}}\, + \,{\text{H}}_{{2}} {\text{O}}$$
(5)
$${\text{2Sn}}\, + \,{\text{O}}_{{2}} \, + \,{\text{6H}}_{{2}} {\text{O}} \to {\text{2Sn}}\left( {{\text{OH}}} \right)_{{2}} \, + \,{\text{2e}}^{ - }$$
(6)
$${\text{Sn}}\left( {{\text{OH}}} \right)_{{2}} \, + \,{\text{2OH}}^{ - } \to {\text{Sn}}\left( {{\text{OH}}} \right)_{{4}} \, + \,{\text{2e}}^{ - }$$
(7)
$${\text{2Sn}}^{{{2} + }} \, + \,{\text{6H}}_{{2}} {\text{O}}\, + \,{\text{O}}_{{2}} \to {\text{2Sn}}\left( {{\text{OH}}} \right)_{{4}} \, + \,{\text{4H}}^{ + }$$
(8)
$${\text{Sn}}\left( {{\text{OH}}} \right)_{{4}} \to {\text{SnO}}\, + \,{\text{H}}_{{2}} {\text{O}}$$
(9)
$${\text{3Sn}}\, + \,{\text{4OH}}^{ - } \, + \,{\text{2Cl}}^{ - } \to {\text{Sn}}_{{3}} {\text{O}}\left( {{\text{OH}}} \right)_{{2}} {\text{Cl}}_{{2}} \, + \,{\text{H}}_{{2}} {\text{O}}\, + \,{\text{6e}}^{ - }$$
(10)

Table 1 summarizes the relevant Tafel fitting findings of the polarization test. Due to the lack of a well-defined investigation anodic, the corrosion current density (Icorr) was determined by extrapolating the cathodic Tafel area. The corrosion potential (Ecorr) favourably shifted to a more negative value from − 770.16 to − 731.27 mV, increasing the weight percentage of indium from 1 to 3 wt%. The potential corrosion increases with the increases in the indium content of the alloys. A nobler Ecorr value means that the alloys are thermodynamically resistant to corrosion. Therefore, it is simple to find that adding one weight percentage of In will effectively increase the alloy’s corrosion resistance from the thermodynamic aspect. It is also observed that corrosion current density (Icorr) value for Sn–0.7Cu solder alloy decreases significantly with the addition of In, especially for Sn–0.7Cu–3In alloys. In general, Icorr is a crucial parameter for evaluating the corrosion rate and the kinetics of corrosion reactions at Ecorr.

Table 1 Polarization parameters for Sn–0.7Cu–xIn alloys in 0.5 M NaCl solution

As shown in Table 1, the adding of Indium in Sn–0.7Cu alloy decreases Icorr value and an improved protective layer of a passivation film on the surface of a sample by the inclusion of indium. This result may be attributed to the Indium involvement in passivation behaviour, as submitted by Tao-Chil Chang et al. It could be concluded that the additional small quantity of Indium in Sn–0.7Cu alloys may increase the corrosion resistance. The addition of more indium could possible give the better corrosion resistance of the above alloys.

3.3 EIS analysis

EIS has been used to analyze the corrosion resistance of lead-free solder alloys at OCP. Nyquist plots (complex impedance) and Bode plots for Sn–0.7Cu–xIn (x = 0, 1, 2, 3) are illustrated in Fig. 5a and b. Impedance plots are shown for the different compositions with the variation of indium in solder alloys. It is seen that the Nyquist plots consist of a single depressed semicircle, while the Bode plots indicate a constant presence within the impedance spectra. Current distribution patterns were calculated using EIS. If phase angles are greater than 45° in the phase angle vs. logf plots, the current distribution is uniform in the given frequency region. Therefore an effective corrosion rate can be measured from the potential polarization curve. All indium containing Sn–0.7Cu alloys have a straight line at the low-frequency region, whereas Sn–0.7Cu alloy has a semicircular arc when superimposing with two axes angle of about 45°. It shows that the corrosion kinetics process shifts from charge transfer control in Sn–0.7Cu alloy to diffusion control in indium based alloys known as Warburg impedance. Its means addition of Indium in Sn–0.7Cu alloys changes the corrosion mechanism of alloys. Bode plots are shown in Fig. 4b; most phase angle curves are lower than 90°, which means an ideal capacitance deviation concerning the electrochemical interface is present. In the high-frequency region, the arc radius for Sn–0.7Cu–3In is high compared to the lower composition of indium alloys, which means that Sn–0.7Cu–3In has been the best corrosion-resistant alloy in this study. Two other equivalent electrical circuits (EEC) models are used to fit EIS data to Sn–0.7Cu and Indium containing Sn–0.7Cu alloys based on the above interpretation.

Fig. 5
figure 5

a Nyquist and b Bode plots of solder alloys in 0.5 M NaCl solution

Figure 6 shows, A simple equivalent circuit (EC) is reliable to be a Randle cell circuit Rs is the resistance o the solution, CPE1 and R1 were related to the capacitance and resistance of the porous product layer of corrosion; CPE2 and R2 were related to the capacitance and resistance of the electrical double layer between the alloys interface and the product of corrosion and W related to the Warburg impedance respectively.

Fig. 6
figure 6

Electrical circuit models. a For Sn–0.7Cu alloy; b For Sn–0.7Cu alloys with Indium addition

The fitting parameter comes out from EIS data ware well-fitting in EEC modal is summarized in Table 2. The results obtained after fitting are evaluated with a standard deviation (χ2) at a magnitude of about 10−4. So we may assume that the proposed EEC models are adequate for quantitative evaluation of the electrochemical interface’s behaviour.

Table 2 Fitting parameters of EEC for Sn–0.7Cu–xIn alloys in 0.5 M NaCl solution

It should be noted that almost all of the alloys in this experiment contain the same resistance solution (Rs) using the same concentration solution in this experiment. The R1 value of such indium based alloys is often higher than that of the Sn–0.7Cu alloy R1 reflects corrosion resistance of a porous surface layer of corrosion, as described above, and it can be concluded that the introduction of indium will lead to a more protective surface layer of corrosion. To quantitatively evaluate the total corrosion resistance to corrosion of the solder alloys introduce by Rt = Rw + R1 + R2 [30, 31]. Throughout this study, the total resistance of alloys extended due to the Warburg impedance in this experiment; solution resistance Rs is not considered because it is almost constant due to the same solution. Therefore total Resistance of Sn–0.7Cu–xIn (x = 0, 1, 2, 3) is 0.2236, 4.9145, 10.1635 and 22.4202 respectively. It is seen that R1 increases with the increase in Indium content Indium in alloys. Therefore then Sn–0.7Cu–3In has the highest Rt value. It can be inferred from the observation that the indium addition in the Sn–0.7Cu alloy will improve the corrosion resistance in this experiment.

3.4 Characterization of corrosion products

Surface topography of solder alloys was done by SEM and composition analysis by EDS and XRD. IT was done before and after the electrochemical corrosion in 0.5M NaCl. Generally, the morphology of alloys’ surface changes forms smooth to porous due to the formation of branched crystallites, networked branches, platelet-like and sponge-like structures. EDS and XRD analysis have recognized such compounds as mainly tin oxide and other corrosion products. The addition of indium from 1 to 3 wt% in binary Sn–0.7Cu solders in Fig. 7 shows that all the solder alloys surface after corrosion was covered by a sponge platelet-like structure of different sizes. It has been observed that sponge-like structures are denser in the Sn–0.7Cu–3In sample than the Sn–0.7Cu solder alloys. There is not much difference in quantity and morphology of corrosion product Sn–0.7Cu and Sn–0.7Cu–1In. It is expected that the properties of corrosion products on the surface alloys should be denser, more refined, and continuous. Because it improves corrosion resistance by effectively protecting corrosion of alloys, it is evident from the EIS results that RP values for the porous product layer are higher, which is very valid for the denser porous product layer. Therefore, the denser product layer on the solder alloys is very much helpful for the better corrosion resistance of the Sn–Cu–In alloys.

Fig. 7
figure 7

Corrosion mechanism of solder alloys

The EDX analysis of corrosion products of alloys is shown in Fig. 8 for all alloys taken for these investigations. There is a quite significant quantity of O, Na, Cl, Cu, and Sn present on the surface of the alloys after corrosion, while the Indium weight percentage is significantly less. The atomic percentage of Sn, H, Cl, and O in the corrosion products is more likely to consist of Sn3O(OH)2Cl2 on alloys’ surface as a dominant product, mostly combined with small quantities of oxide compounds.

Fig. 8
figure 8

Surface morphology of alloys after corrosion in 3.5 wt% NaCl. a Sn–0.7Cu; b Sn–0.7Cu–1In; c Sn–0.7Cu–2In; d Sn–0.7Cu–3In

The XRD analysis was further carried out to confirm the phase composition of the corrosion products. Chloride can be explained by the presence of by-products of corrosion like chloride can be explained by the presence of by-products of corrosion like Sn3O(OH)2Cl2 [32] and Sn4(OH)6Cl2 [33] on the surface of alloys, and shown in Fig. 9.

Fig. 9
figure 9

EDX patterns of corrosion products. a Sn–0.7Cu; b Sn–0.7Cu–In; c Sn–0.7Cu–2In; d Sn–0.7Cu–3In

First, during the corrosion process, the surface layer decomposition and then pitting corrosion generally take place [34, 35]. Different kinds of models have been suggested to explain the corrosion mechanism in which aggressive anions such as OH and Cl play a significant role. It has been observed that faceted IMC of Cu6Sn5/Cu3Sn and non-faceted β-Sn phase [36] are present in these lead-free solder alloys. Cu6Sn5/Cu3Sn particles are electrochemically nobler than tin. Therefore, a galvanic cell may be formed between the Sn-rich phase and IMC Cu6Sn5/Cu3Sn, accelerating Sn–0.7Cu–xIn alloy’s anodic corrosion.

Furthermore, the microstructural arrangement sets different cathode/anode area ratios. This is closely linked to the morphology and uniform distribution, as well as to the network interconnectivity level in the (noble) stage of the cathode (dendritic) cellular arrays [37]. For example, an integrated, interconnected network of IMC Cu6Sn5 formed in Sn–0.7Cu solder alloy [38] changes the cathode-anode ratio significantly with corrosion action. This increases the cathode area formed by Cu6Sn5 IMC, whereas the Sn-rich matrix is corroded intensely and more rapidly. The IMC of Cu6Sn5/Cu3Sn thickness ratio decreases due to the addition of Indium particle in binary Sn–0.7Cu solder alloy, improving corrosion resistance [39].

The cathodic reaction results in the formation of OH ions. Sn dissolution starts with an anodic reaction which results in the formation of Sn(OH)2. Generally, Snn+ has a valance state of n = 2 and n = 4, and it undergoes in scale form of Sn2+ or Sn4+ by giving e2− or e4−. The diffusion of Sn2+ atoms along the grain boundary results in the formation of a vacancy in the fat matrix. The reaction between these ions results in the formation of uniform Sn(OH)2 and Sn(OH)4 films, and the dehydration reaction of Sn(OH)2 leads to the formation of SnO at the surface. The diffusion of Sn from the SnO layer at the surface results in the formation of vacancies in the oxide layer. The dissolution of the oxide layer starts with the transfer of Sn ions from the SnO layer to the electrolyte, which results in the formation of Sn(OH)2 in the electrolyte. This results in localized thinning of the film. The diffusion of Sn ions from the oxide layer causes the generation of vacancies in SnO film more quickly at the scale matrix interface, resulting in a breakdown of the passive SnO layer. Cl anion attacks on the Sn matrix result in pits forming at the surface, as shown in Fig. 7 and 10.

Fig. 10
figure 10

XRD patterns of corrosion products. a Sn–0.7Cu; b Sn–0.7Cu–1In; c Sn–0.7Cu–2In; d Sn–0.7Cu–3In

Corrosion by-products for 3% In in Sn–0.7Cu–xIn contains highest Cl atomic % (20.28%) compared to non doped In in its solder (atomic % of Cl is 5.36%). It could be due to the porous nature of the oxide layer, which is formed at the surface which can absorb Cl—while in the case of non-doped solder alloy, the oxide layer is broken, which leads to higher Cl—concentration at the oxide metal interface, not at the oxide surface. Since EDS analysis was done at the surface of the oxide layer, the concentration difference was observed. Similar behaviour was also observed by " Paper reference & quote [40, 41].

The crystallite size can be calculated on the corrected diffraction profile using full width at half maximum intensity (FWHM).

Crystalline size = \(\frac{\mathrm{K\lambda }}{\mathrm{\beta Sample}*\mathrm{cos\phi }}\)

K = Scherrer constant, λ = Wave length of radiation, β = width of the diffraction peak.

The full-width angle indicates the above width of the diffraction point at half the peaks of the XRD pattern.

This study found that the average crystallite size of all corrosion products increases with increasing indium in binary lead-free Sn–0.7Cu solder alloys and decrease lattice strain [42].

Thus, increasing the indium content leads to the microstructure parameters being increased (average crystal size) [43]  (Tables 3 and 4).

Table 3 Crystallite size of lead-free Sn–0.7Cu–xIn solder alloys
Table 4 Lattice strain of lead-free Sn–0.7Cu–xIn solder alloys

4 Conclusions

The electrochemical behaviour of Sn–0.7Cu–xIn lead-free solder alloys in a natural 3.5 wt% NaCl was studied by potentiodynamic polarization tests and EIS measurements. The impact of Indium content on corrosion properties of Sn–0.7Cu–xIn solder alloys was investigated, and the following conclusions were drawn from these studies.

  1. 1.

    An increase of indium content from 1 to 3 weight percentage leads to a significant improvement in corrosion resistance of Sn–0.7Cu solder alloys, resulting in a higher range of pseudo passivation and lower current density pseudo passivation.

  2. 2.

    The addition of Indium to Sn–Cu binary solder alloys β-Sn grains have significantly. The resulting microstructure of fine solder alloys has now a more uniform distribution of various phases, which is responsible for improving corrosion resistance.

  3. 3.

    The addition of Indium in Sn–0.7Cu solder alloys modifies the morphology of corrosion products on alloys’ surface and change the corrosion kinetics from the charge transfer to the diffusion control process.

  4. 4.

    The corrosion products on the surface of all solder alloys studied after potentiodynamic polarisation consists of tin oxide chloride hydroxide Sn3O(OH)2Cl2 and Sn4(OH)6Cl2. Most corrosion products have plate-like shapes and were loosely distributed on the surface with different orientations.

  5. 5.

    Increase the indium content lead to increase crystallite size and decrease lattice strain.