1 Introduction

In recent scenario, surface modified materials play an important role in engineering applications such as aircraft, aerospace and automobile. The surfaces of the required workpiece materials have been modified using different surface modification methods in order to enhance surface properties such as wear, corrosion and mechanical properties etc. [1]. Surface modification processes are classified into the two methods; one is modification by deposition or coating of material and another one is development of new alloy by casting and powder metallurgy. In present year, modified surface using deposition or coating widely applied in the diverse fields of application. Various surface modification methods such as physical vapour deposition (PVD), chemical vapour deposition (CVD), plasma spraying and high velocity oxy fuel (HVOF) are adopted to enhance the surface properties [2]. These techniques widely applied in the several industries due to its accuracy. Though, it needs special equipment to control the coating characteristics in order to enhance the properties. To overcome this problem the electrical discharge deposition is the capable technique to improve the surface properties of the workpiece. Electrical discharge machining (EDM) is the well acknowledged non traditional machining process used to machining the hard material with high precision and accuracy. EDM is not only used for machining purpose but also for depositing the uniform coating layer on the surface with required wear resistance material [3]. This innovative method is called as electrical discharge deposition (EDD). In this process, the electrode material is deposited over the surface by passing continues electric spark between the electrode and workpiece. During this process, the electrode materials is melted and deposited on the surface as a coating layer within a minute [4]. Several investigations have been studied on the different workpiece material and electrode material but optimization of such modification method is very limited. Arun et al. [5] developed the uniform coating on the base substrate using electrical discharge coating with Ni/W powder metallurgy semi sintered electrode. It was studied that the migration of electrode materials towards workpiece material and tribological behaviour of coated material. It is revealed that the rate of migration increased at electrode prepared with low pressure. Tyagi et al. [6] have implemented electrical discharge treatment to modify the surface of stainless steel using tungsten disulfide (WS2) and copper (Cu) powder mixed electrode. In this experiment, the electrodes have been prepared in the different proportion. RSM is proposed to design the experiments and three parameters such as powder composition, duty factor and discharge current have selected as the input variables and the responses were rate of deposition and micro hardness. It was found that the deposition rate and micro hardness increases with increasing the addition of tungsten disulfide. Gill and Kumar [7] improved the micro hardness of the electro discharge alloyed die steel coated with Cu–Ni–Cr powder metallurgy electrode. Experiment was carried out under different parametric condition such as current, pulse duration and compaction load. It was found that the alloyed surface using powder metallurgy was improved by 96.3% when compare with base material. Energy dispersive spectroscope analysis is carried out on the alloyed surface to confirm the presence of migrated electrode material. Tijo et al. [8] investigated the surface modification of AISI 1020 steel using electrical discharge coating with powder compact electrode. Electrodes were prepared using TiC (60%) and Cu (40%) powders in different compaction load. The influence of current and pulse on time on the material deposition and surface roughness of the coated surface was evaluated. It was observed that the rate of deposition and hardness increases with increase in current and pulse on time. From studied literature, EDM parameters were optimized using taguchi technique but optimization of EDD parameters is still limited. In this research, magnesium alloy is selected as the workpiece material and tungsten carbide and nickel powder are selected as the electrode materials for fabricating electrode through powder metallurgy technique. Effect of compaction load, current and pulse on time on the DR and EWR are studied. Central composite design of response surface methodology is introduced to plan experiments and optimize the parameters on the responses.

2 Experimentation

2.1 Materials and methods

Magnesium alloys are light weight structural material extensively utilised in the several application such as automobile and aerospace. In this work, ZE41A magnesium alloy is selected as the base material and its chemical composition is shown in Table 1. Tungsten carbide and nickel are selected as the electrode material. The selected electrode powders are mixed in the combination of WC70 Ni30 (wt%) using mortar and pestle for 3 h. Then the mixed powders are pressed in hydraulic press using punch and die system for 10 min with three different loads. The diameter of the punch and die system is 10 mm. Then the compacted solid is removed slowly from the die. The compacted cylindrical electrode for EDC is shown in Fig. 1.

Table 1 Chemical composition of ZE41A magnesium alloy
Fig. 1
figure 1

Compacted cylindrical electrode used for EDD

Electrical discharge coating experiments is carried out using 5530 EDM E-series machine as shown in Fig. 2 and EDM oil used as the dielectric fluid. Design tool used in this study is central composite design of response surface methodology. Three parameters and three levels are selected to carry out the experiments and tabulated in Table 2. Before conducting experiments, the workpiece has been machined in the square size (20 mm ×20 mm) using surface grinder to make smooth surface finish and it is polished well with 1500 grit abrasive emery sheet. Hardness of the ZE41A magnesium alloy is 68 HB. The experiment is conducted as per the design developed through RSM tool and each experiment takes fixed time interval of 10 min. The workpiece and electrode has been weighed using SF400D weighing machine with accuracy of 0.001 g. The weight of the electrode and workpiece are recorded before and after experiments for calculating the DR and EWR.

Fig. 2
figure 2

EDM machine used in this study

Table 2 Factors and their levels used in this study

3 Response surface methodology

Response surface methodology is the collection of mathematical technique applied for analyzing and modeling the problem. In which mathematical models has been developed for responses. The main objective of the RSM tool is to minimize the number of experiments and determine optimal parameter during the EDD process. Process parameters have been evaluated by the empirical model developed by RSM and second order polynomial equation is given in Eq. 1.

$$Z_{u} = a_{o} + \sum\limits_{i = 1}^{k} {a_{i} } x_{i} + \sum\limits_{i = 1}^{k} {a_{ii} } x^{2}_{i} + \sum\limits_{j > 1}^{k} {a_{ij} } x_{i} x_{j}$$
(1)

Zu output characteristics such as DR and EWR, ai linear effect of xi, aii quadratic effect of xi, bij interaction effect between the xi and xj.

The second term of the polynomial equation represents the linear effect, third term for quadratic effect and fourth term for interaction effect. Compaction load, current and pulse on time are selected as the parameters and the output characteristics are DR and EWR. Experiments were conducted as per the design and results were recorded in Table 3. The experiments were completed by MINITAB 17.0 statistical software.

Table 3 Experimental values recorded as per design matrix

3.1 Mathematical modeling of DR and EWR

Characteristics such as DR and EWR and the parameters such as compaction load (CL), current (I) and pulse on time (Ton) have been applied in the modeling. The empirical models are developed to determine the effect of parameters on DR and EWR is given Eqs. 2 and 3 respectively.

$$\begin{aligned} {\text{DR}} & \, = \,2.12061\, + \,0.01969\,{\text{CL}}\, + \,0.22349\,{\text{I}}\, + \,0.00510\,{\text{Ton}}\, - \,0.00004\,{\text{CL}}\,*\,{\text{CL}}\, - \,0.01623\,{\text{I}}\,*\,{\text{I}} \\ & \quad + 0.00005\,{\text{Ton}}\,*\,{\text{Ton}}\, + \,0.00083\,{\text{CL}}\,*\,{\text{I}} - 0.00007{\text{CL}}\,*\,{\text{Ton}}\, + \,0.00079\,{\text{I}}\,*\,{\text{Ton}} \\ {\text{R}}^{2} & \, = \, \, 95.06 \\ \end{aligned}$$
(2)
$$\begin{aligned} {\text{EWR}} & \, = \,3.57296\, - \,0.05133\,{\text{CL}}\, + \,0.15250\,{\text{I}}\, + \,0.02247\,{\text{Ton}}\, + \,0.00014\,{\text{CL}}\,*\,{\text{CL}} \\ & \quad - 0.05523\,{\text{I}}\,*\,{\text{I}} - 0.00019\,{\text{Ton}}\,*\,{\text{Ton}}\, + \,0.00042\,{\text{CL}}\,*\,{\text{I}} + 0.00002\,{\text{CL}}\,*\,{\text{Ton}}\, + 0.00290\,{\text{I}}\,*\,{\text{Ton}} \\ {\text{R}}^{2} & = \, 98.10 \\ \end{aligned}$$
(3)

The analysis of variance (ANOVA) test and F test have been performed to confirm the goodness of fit for the empirical model. F ratio value is calculated by the mean sum of square of source and experimental error. In which the lack of fit for calculated F value is compared with the standard F ratio value to determine the adequacy of empirical models developed for responses. Lack of fit suggested that the empirical model is statistically significant for analysis of DR and EWR. The R2 value for DR and EWR are 95.06 and 98.10 respectively, which means that the regression model gives the great justification for the characteristics. In the ANOVA table, if the P value is less than the 0.05 (P = 0.05, or 95% confidence) the developed model is statistically significant. The ANOVA table for the quadratic model for DR and EWR are given in Tables 4 and 5. The standard F distribution percentage point for confidence level limits for 95% and 99% are 4.06 and 7.87 respectively [9]. From the ANOVA tables, the F point for lack fit is 3.68 and 3.25 respectively which is smaller than the standard F value, thus the developed models are adequate. The normal probability plots drawn for DR and EWR are Figs. 3 and 4 respectively to study the distribution of the residuals. From the plot it is observed that the residuals are falling on a straight line, which means that the errors are normally distributed and the regression model is fairly adequate. In the ANOVA tables, the P values of linear, quadratic and interaction is less than the 0.05. Thus effect on DR and EWR are significant.

Table 4 ANOVA test result for deposition rate
Table 5 ANOVA test results for electrode wear rate
Fig. 3
figure 3

Normal probability plot for DR

Fig. 4
figure 4

Normal probability plot for EWR

4 Result and discussion

4.1 Effect of parameters on DR and EWR

Figures 5 and 6 depict the mean effect plot for DR and EWR respectively, in which the values of DR and EWR are low at the initial condition of current (2 A) and pulse on time (50 µs), but higher at low compaction load (150 MPa). At low compaction, the mechanical bonding between the powder particles is very low. Therefore during EDD process, high quantity of powder particles disintegrated from the electrode and deposited over the surface of the workpiece. Similarly, deposition rate is high in the surface deposited with electrode prepared at low compaction load as stated by Walia [10]. Conversely, electrodes prepared with high compaction load the bonding of the particles in the electrode are very high. Hence the electrode material with minimum quantity was deposited on the workpiece. Scanning electron microscope (SEM) microstructure of the deposited surface was observed in the different experimental conditions as shown in Fig. 7a–c. Figure 7a shows the SEM image for pores indentified in the surface deposited in the parameter of 150 MPa, 4 A and 90 µs. Similarly, Fig. 7b illustrates the craters at 175 MPa, 3 A and 70 µs and globules was observed in the parametric condition of 200 MPa, 2 A and 50 µs as depicted in Fig. 7c The minimum and maximum coating layer thickness achieved in the deposited surface are 78 µm and 119 µm respectively. Surface roughness (6.89 µm) of the deposited surface was high at 150 MPa, 4 A and 90 µs, because several numbers of pores formed in the condition. Minimum Surface roughness (4.35 µm) was achieved at 200 MPa, 2 A and 50 µs, because uniform distribution formed with small sized globules. An electrode materials presented on the surface is confirmed by EDS peak plot and is shown in Fig. 8. This workpiece was deposited in the parametric condition of compaction load (150 MPa), current (4 A) and pulse on time (90 µs). Similarly, when current increases the DR and EWR increases due its strength of spark density. At lower current setting insufficient electric spark is produced, hence erosion of electrode materials is poor. But high current increased the DR and EWR because of higher spark intensity. Similarly, it was concluded that the when current increases EWR increases [11]. Hence large amount of electrode particle eroded and deposited on the workpiece and increased the roughness of the deposited surface due to formation of bigger and deep craters. As pulse on time increase, the DR and EWR increase. At high pulse on time, the diameter of the plasma channel is very large, therefore the produced plasma channel crumbles the large amount materials from the electrode and deposited on the surface, which is confirmed by the Elaiyarasan et al. [12]. At low pulse on time, the migration of the electrode material is very low because of low discharge energy, which is not sufficient to melt and vaporize the electrode materials and it was resulted that the small quantity of electrode material transferred on the surface [13]. Hence, DR and EWR decreased. In this condition, uniform deposition was formed with better surface roughness.

Fig. 5
figure 5

Mean effect plot for DR

Fig. 6
figure 6

Mean effect plot for EWR

Fig. 7
figure 7

SEM image of coating deposited a 150 MPa, 4 A and 90 µs, b 175 MPa, 3 A and 70 µs and c 200 MPa, 2 A and 50 µs

Fig. 8
figure 8

SEM and EDS plot for WC/Ni composite deposited surface at 150 MPa, 4 A and 90 µs

5 Micro hardness

Micro hardness (MH) is the important characteristic of the deposited surface, which is carried out on the deposited surface using Vicker hardness tester. Three values were taken in the each samples and average was consider as the micro hardness values. The maximum hardness value was achieved at surface deposited with low compaction load, high current and pulse on time. Figure 9 shows the microstructure of the deposited surface with micro hardness values, which was taken in the different region. The average micro hardness value of the deposited surface was 772 HV. As said above, at low compaction the micro hardness value is high because of the bulk and lump deposition. Hence, while hardness tests, the hard deposited materials resists the indentation. Hence MH is high at low compaction load. Conversely, at high compaction load the MH value is minimum due its large diameter of the indentation. Therefore the MH decreases with increase in compaction load.

Fig. 9
figure 9

Microstructure of the deposited surface with micro hardness values

6 Optimization of parameters on DR and EWR

In the recent year, various optimization techniques have been introduced in the various manufacturing industries to optimize the machining parameters. But by using some technique, cannot be optimized the parameters with multiple responses in a same time [14, 15]. However, response surface methodology is very essential tool to optimize the parameters with multi response. The main approach of the optimization is to convert the response into desirability function di. The optimized values for each parameters can be determined by the increasing the composite desirability. In this research, the output characteristics are selected to maximize the desirability.

$$0\, < \,{\text{d}}_{\text{i}} \, < \, \, 1$$
(4)

In this investigation, process parameters used in the electrical discharge deposition is optimized. In this research, main aim of the optimization is to maximize the values of DR and EWR. During the optimization, maximum and minimum of experimental values are considered to optimize the parameters and target values also are fixed. The maximum DR of 0.283 g/min and EWR of 0.5961 were achieved in the parameter conditions such as compaction load of 151 MPa, current of 4 A and pulse on time of 89 µs as shown in Fig. 10. Table 6 shows the validation test results for DR and EWR and desirability for DR and EWR are 0.929 and 0.938 respectively and composite desirability of optimization is 0.933 which is close to 1. Hence all parameters are within the working limit.

Fig. 10
figure 10

Optimization plot for DR and EWR

Table 6 Validation test results for DR and EWR

7 Conclusion

The present research studied the optimization of process parameters in electrical discharge deposition of ZE41A magnesium alloy using response surface methodology. Different process parameter such as compaction load, current and pulse on time were selected to deposit the electrode materials on the workpiece surface.

DR and EWR increases with increase in current and pulse on time at low compaction load. This is due to the higher spark density which increases the local temperature in the coating zone. Hence large quantity of material dislodged from the electrode and deposited on the workpiece. Conversely, it decreases with increase in compaction load. This may be due to higher bonding strength. When electrode prepare with high compaction load the electrode became fully bonded solid. Even supplied high pulse energy the erosion rate of electrode is less. Thus DR and EWR decreased in high compaction load.

Mathematical models were developed for the EDD characteristics such as deposition rate and EWR to study the effect parameters. In which the compaction load, current and pulse on time are the most significant parameters in this study. The parameters were optimized on DR and EWR using response surface optimizer. The optimized parameters were compaction load of 150 MPa, current of 4A and pulse on time of 90 µs.