1 Introduction

Usually, throughout the machining process, 3 diverse vibrations can arise owing to the absence of rigidity of solitary or numerous essentials of the system composed by the tool holder, machine tool, workpiece and cutting tool material. These vibrations are well known as free vibrations, forced vibrations and self-excited vibrations. Free vibrations take place as soon as the mechanical system is displaced from its equilibrium and is permitted to vibrate without restraint. Forced vibrations emerge owing to outside excitations. Every tooth on the milling cutter enters and exits the workpiece is identified as the primary cause of forced vibrations in the milling process. However, both free and forced vibrations can be avoided or reduced once the source of the vibration is identified [1].

Nevertheless, regenerative chatter i.e., self-excited vibrations take out energy from the interaction between the workpiece and cutting tool throughout the machining operation. This trend is a consequence of an uneven interaction stuck between the structural deflections and machining forces as well [2]. The cutting forces generated as soon as the cutting tool and workpiece come into contact generate noteworthy structural deflections [3]. These structural deflections vary the chip thickness that, in turn, unorthodoxies the cutting forces [4]. Regenerative chatter can result in extreme cutting forces, tool wear, tool letdown, and scrap part due to objectionable surface roughness, therefore severely decrease productivity in operation and part quality [5]. Vibrations emerge under the excitation applied via material deformation throughout the machining of a workpiece. These regenerative vibrations (chatter) will influence the outcome of machining operation, in specific, the surface finish and tool life can be decreased. In a machining operation, chatter is an unsteady active occurrence which causes overcut and rapid tool wear, etc. [6]. In regular CNC milling operation, cutting parameters are generally selected agreeing to toolmaker’s handbooks, and the cutting parameters carefully chosen are typically conservative to evade machining letdown. Even though cutting parameters are optimized offline by an optimization procedure, they cannot be attuned throughout the cutting operation, as the cutting process is adjustable due to vibrations, tool wear, temperature, and any other disturbances [7]. To safeguard the quality of machined parts, and to decrease the machining expenses and increase the machining productivity, it is required to optimize and regulate the machining operation in real-time. Consequently, cutting parameters need to be attuned in situ condition to fulfill optimal machining measures [8].

Fundamentally, the well-timed finding of cutting tool associated problems that would typically be part of the obligation of the machinist presents a perceptible challenge. For this purpose, excessive research work has been commenced into effective tool condition monitoring systems [9]. Till date, it is proper to relate that the problems of data acquisition, signal analysis, and decision making together with system installation and operating expenses means that, very few such methodologies have established their way into marketable applications [10]. Tong et al. [11] developed an intelligent manufacturing method by adopting a multisensor fusion technology for real-time data acquisition and processing.

In general, CNC processes are ratified with the direct control of a computer frequently deprived of being uninterruptedly controlled by an operator. A review of the AC system is presented in [12]. Three types of ANC’s namely identified [13], first one is Adaptive control with constraint (ACC), the second one is Geometry adaptive control (GAC) and the third one is Adaptive control with optimization (ACO). The adaptive controller industrialized in the present study fit into the third classification in which the cutting parameters are calculated and controlled in imperative to optimize a definite index of cutting performance, such as decrease of vibration, amassed of efficiency, enhancement of surface finish, and control of the tool flank wear. Adaptive controllers (AC) are devices that adjust cutting parameters to accomplish a certain level of performance. In the case of milling operation, the control panels on which AC acts are the rotational speed of the spindle and the feed rate. Adaptive controllers (AC) are the devices that regulate the process parameters to achieve a certain performance. In the present work, an adaptive control optimization (ACO) system is planned to optimize milling process parameters based on vibration parameter values. Consequently, tool wear and vibrations parameter outcome can be predicted. In the proposed AC system, feed rate and spindle speed are attuned in real-time in order to sustain vibration parameters values under threshold irrespective of variants in milling conditions. The determination is to propose an innovative methodology to enrich the adaptive controller by comprising a consistent adaptive model relating to machining conditions. Present adaptive controller permits steady cuts free from both forced and self-excited vibrations, at reduced tool deflection and tool wear, while maintaining efficiency and sustaining the constraints associated with spindle power and cutting forces.

Firstly, the introduction was presented with appropriate references. Then the proposed adaptive controller configuration was made followed by the validation and experimentation. The next step is the development of Strategy for an In-House Adaptive Controller. Finally, results were presented and discussed in detail.

2 Configuration of the proposed adaptive controller

To develop the adaptive controller, it requires interfacing between the vibration sensor and SC06 CNC machine controller driver. An in house adaptive controller is developed which is used to govern the NC machine controller (SC06) based on the vibration feedback received from the Kistler accelerometer. The configuration of the proposed design of the adaptive controller is presented in Fig. 1. The validation of the proposed controller for CNC end milling operation is carried out in-situ condition. Outcome of all the mentioned steps is an expected consequence of adaptive controller implementation. All the stages explained with full details in Sect. 4.1.

Fig. 1
figure 1

Configuration of the proposed adaptive controller

The details of this adaptive controller will be enlightened in the next section. The part programmer develops an offline optimized set of speed, feed and depth of cut parameters for a particular machining operation (in this study, milling) and feeds the program into the GUI Interface. This interface networks with machining controller, translates the CNC commands into servo drive commands sequentially, and is executed chronologically.

3 Experiment design and equipment details

The investigational test set up in Fig. 2, comprising of a 3 axis CNC Milling machine possesses high-speed spindle, 3.5 KW spindle, rated at 18,000 RPM. Kistler 8793 accelerometer mounted on a spindle housing to enable vibration monitoring and a PC-based CNC controller SC06 to interface with the accelerometer.

Fig. 2
figure 2

Experimental setup

As part of the present investigation, Al7075 specimen used as workpiece materials in form of plate with dimensions of 150 mm x 100 mm x 15 mm and a solid carbide end mill cutters possess Ø12 mm is used as cutting tool. For experimental trails, three cutting parameters in three levels are considered. Hence, according to the Taguchi method L9 orthogonal array is employed for the investigation.

Table 1 offers the cutting parameter levels and factors used for the investigation. Table 2 provides the mechanical properties of work piece material Al7075 alloy. Solid carbide end cutters of Ø12 mm diameter are used as a cutting tool material. The cutting tools for the cutting tests are DIN 338 standard mill cutter of Ø12 mm is selected. Throughout the experimentation, dry machining condition is maintained. Cutting forces are continuously measured with Kistler force dynamometer at machining combinations by keeping the constant depth of the hole as 8 mm. Work pieces are made to introduce certain wellspring of variation in cutting conditions like gaps (in this particular study). So cut plan is also designed in such a way that cutter comes in contact with workpiece for some time and does not cut some does not interact with the work piece in gaps.

Table 1 Factors and levels used in the experimentation
Table 2 Mechanical properties and chemical composition of workpiece material Al7075 alloy

4 Development of strategy for an in-house adaptive controller

In house developed adaptive controller package by using MATLAB, which runs on standard G/M codes—this has been exported using GUIDE and MCR to enable adaptive control algorithm to run in real-time as per adaptive control logic. The strategy adopted in the proposed adaptive controller is shown in Fig. 3. To collect the vibration data, a Kistler 8793 accelerometer is mounted on the spindle head as shown in Fig. 2. This model of accelerometer has an optimum sensitivity of almost 10 mv/G in altogether with three axes. Vibration data is conditioned through a vibration filter and then received to PC through a special driver.

Fig. 3
figure 3

Adaptive controller strategy implemented on CNC machine

The part program is prepared with optimized machining parameters and cutting is initiated. Initially, there is no feedback data available from vibration devices. Therefore, the ACC controller relays the CNC program command to SC06 driver. This driver, in turn, activates the SC06 controller to execute the machining command. Vibration data is collected from K-shear accelerometer, with the help of windows driver advanced programming interfaces (APIs). Once machining starts the ACC controller uses PC microprocessor to compute the corrected machining parameters (speed, feed and doc) according to vibration parameter values acquired in the form of feedback. The aforementioned ACC controller is programmed in C, C#, C +  + and MATLAB. This controller gets raw vibration signal from conditioning devices, calibrates it to values of acceleration unit based on Kistler data specification sheet. At present, the actual vibration data is fed into the proposed hybrid transformation, which is a combination of HHT and FFT [14]. The output from this stage is used in the decision of whether the individual machining parameters can be increased or decreased. Some threshold limits are also applied to decision-based on the result in accordance with ISO 10,186–3 standard [15]. Cheddadi et al. [16] demonstrated the design of an intelligent IoT enabled energy monitoring system and effectively implemented at photovoltaic stations.

4.1 In-situ implementation of an adaptive controller

This section presents the various stages in the design and implementation of the adaptive controller based on vibration feedback. Major stages of the controller design and implementation are pictorially represented in Fig. 4.

Fig. 4
figure 4

a Phase 1 adaptive controller _process setup b Phase 2 adaptive controller _data acquisition c Phase 3 adaptive controller _implementation

Figure 4a gives input phase of adaptive controller for specific machining application. In addition to milling, this controller logic can be applicable to drilling, turning and boring as well. But the results of this manuscript is limited to milling operation only. Figure 4b presents the data acquisition phase whereas as Fig. 4c represents the signal conditioning followed by actual implementation of adaptive controller strategy for milling. The part program is offline optimized by the part programmer, further relayed to ACC Controller on PC. The design of adaptive controller comprises of nine major stages as shown in Fig. 4. The first stage gives the option to make the selection regarding machining operation. Optimized machining parameters are fed to the SC06 controller in the second stage and required part program is generated to initiate the cutting process. Details of the process condition are entered into the controller in the third stage. The fourth stage gives the scope for selecting the required milling cutter from the tool’s database associated with the adaptive controller whereas the fifth stage allows us to choose the desired cutting plan. Stage 6 is the process data stage, where all the boundary conditions must be furnished. Stage 7 is a data acquisition module where the user is allowed to customize sample size data set, number of samples and average count etc.

In stage 8, signal analysis is carried out for acquired vibration data. This stage consists of threshold parameters (machine and vibration safety) in FFT and hybrid Transformation or coupled FFT and HHT is represented as RRT. Final stage 9 gives the implementation phase of in house developed adaptive controller along with the part program in real-time.

4.2 Cut planning

The actual cutting tool interactions with the work piece during the materials and slots are illustrated in Fig. 5. Initially for analysis, a separate phase of the controller is also designed which takes inputs from CNC program, cut plan and present cutting parameters (rotational speed of the spindle, feed rate and depth of cut) to group vibration samples into cutting and non-cutting vibration data.

Fig. 5
figure 5

Cutting plan under the in-house adaptive controller

4.3 Modeling of proposed hybrid transformation (RRT)

According to the proposed Hybrid Transformation or coupled FFT and HHT, the acquired intrinsic mode functions (IMFs) from empirical mode decomposition (EMD) are converted into frequency spectrum by using Fast Fourier transformation (FFT).

For a vibration signal \({\text{x}}\left( {\text{t}} \right)\) in the time domain, its frequency spectrum is defined as,

$$x(t) = \sum\limits_{{k = 0}}^{\infty } {C_{k} \cdot e^{{j2\pi kF_{0} t}} }$$
(1)

where, \({\text{F}}_{0} = { }\frac{1}{\text{T}}\) is the fundamental frequency.

\({\text{C}}_{\text{k}}\) is the \({\text{k}}{\text{th}}\) Fourier series coefficient or \({\text{kth}}\) harmonic coefficient.

\({\text{~e}}^{j2\pi kF_{0} t} {\text{ = }}\cos (2\pi kF_{0} t) + j\sin (2\pi kF_{0} t)\) , is a complex sinusoid.

And,

$${\text{C}}_{\text{k}} {\text{ = }}\frac{1}{T}\left[ {\int_{ - \infty }^{\infty } {x(t) \cdot e^{ - j2\pi kF_{0} t} \text{dt} } } \right]$$
(2)

Substituting Eq. 2 in Eq. 1, the complete frequency spectrum of \({\text{x}}\left( {\text{t}} \right)\) can be represented as:

$$X(F) = \frac{1}{T}\sum\limits_{ - \infty }^{\infty } {\left[ {\int_{ - \infty }^{\infty } {x(t)e^{ - j2\pi kF_{0} t} \text{dt} } } \right]} \cdot e^{j2\pi kF_{0} t}$$
(3)

This Eq. (3) has been numerically computed using MATLAB for a discretized vibration signal and spectrum of cutting and non-cutting regions are shown in Fig. 6 (Cutting) and Fig. 6 (Non-Cutting). Also, instead of converting the whole vibration signal directly into the frequency spectrum, Empirical mode decomposition (EMD) of the time domain signal is done as described in [17], to obtain Intrinsic Mode Functions (IMFs). An IMF is defined by below two characteristics:

  1. (a)

    Is an oscillatory function where the number of extreme and the number of zero-crossing must be either equal or differ by at most one, and,

  2. (b)

    At any point, the mean value of envelope defined by local maxima and that of envelope defined by local minima is zero.

Fig. 6
figure 6

Vibration signal analysis with FFT

The point of all local extreme of the vibration signal is identified, two cubic splines are generated, one for local maxima and one for local minima. The mean of these two splines is given by \({\text{m}}_{1}\). For the first proto-IMF \({\text{ h}}_{1}\), the mean \({\text{m}}_{1}\) is subtracted from \({\text{x}}\left( {\text{t}} \right)\),

$${\text{h}}_{1} \left( {\text{t}} \right) = {\text{ x}}\left( {\text{t}} \right) - {\text{m}}_{1}$$
(4)

The obtained \({\text{h}}_{1}\) is tested, if it is an IMF based on conditions (a) and (b), Else, it's mean \({\text{m}}_{11}\) and corresponding \({\text{h}}_{11}\) is generated.

$${\text{h}}_{11} \left( {\text{t}} \right) = {\text{h}}_{1} \left( {\text{t}} \right) - {\text{m}}_{11}$$
$${\text{h}}_{1{\text{n}}} \left( {\text{t}} \right) = {\text{h}}_{\text{n} - 1} \left( {\text{t}} \right) - {\text{m}}_{1{\text{n}}}$$

This process is followed until a satisfactory \({\text{h}}_{1{\text{n}}} \left( {\text{t}} \right)\) is found to give \({\text{I}}_{1} \left( {\text{t}} \right)\), the first IMF.

$${\text{I}}_{1} \left( {\text{t}} \right) = {\text{ h}}_{1{\text{n}}} \left( {\text{t}} \right)$$
(5)

This process is continued until all IMFs are obtained from the vibration signal. Now instantaneous frequencies of the above IMFs are obtained through Hilbert transform:

$$H(I_{n} (t)) = \frac{1}{\pi }PV\int_{ - \infty }^{\infty } {\frac{I_{n} (\tau )}{t - (\tau )}} d\tau \frac{\delta y}{\delta x}$$
(6)

The obtained analytical signal can be defined as follow:

$$a_{I_{n} } = x(t) + jy(t) = r(t)e^{j\theta (t)}$$
(7)

where, \({\text{I}}_{\text{n}} \left( {\text{t}} \right)\) represents \({\text{n}}^{\text{th}}\) IMF.

$${\text{r}}\left( {\text{t}} \right) = { }\sqrt {{\text{x}}^{2} + {\text{y}}^{2} }$$
(8)

and

$${\uptheta}({\text{t}}) = {\tan^{- 1}} \frac{{\text{y}}}{{\text{x}}}$$
(9)

Instantaneous frequency can be directly obtained by

$$f_{i} = \frac{d\theta }{dt}$$
(10)

Equations (59) are numerically computed using MATLAB. The sample results are presented in Figs.68 with proper discussion. Still, characteristic differences are not observed. As already discussed, present study uses Hybrid Transformation or coupled FFT and HHT is represented as RRT, in which the obtained IMFs from Eqs. (4) and (5) is transformed into the frequency domain using Fourier series, as,

$$X_{{I_{n} }} (F) = \frac{1}{T}\sum\limits_{ - \infty }^{\infty } {\left[ {\int_{ - \infty }^{\infty } {I_{n} (t)e} ^{ - j2\pi kF_{0} t} \text{dt} } \right]} \cdot e^{j2\pi kF_{0} t}$$
(11)
Fig. 7
figure 7

Vibration signal analysis with Hilbert Transform

Fig. 8
figure 8

Empirical mode decomposition of the vibration signal i.e., IMFs for both cutting (without air gap) and non-cutting (air gap)

where \({\text{I}}_{\text{n}} \left( {\text{t}} \right)\) represents \({\text{n}}^{\text{th}}\) IMF.

Then \({\text{X}}_{\text{I}_{\text{n}} } \left( {\text{F}} \right)\) spectrum is subjected to a filter \({\text{R}}\left( {\text{F}} \right)\), which is as defined as follow,

$${\text{R}}\left( {\text{F}} \right) = { }\left\{ {\begin{array}{*{20}c} {F \forall F > {\text{f}}_{\text{n}} } \\ { 0 \forall F \le {\text{f}}_{\text{n}} } \\ \end{array} } \right.$$
(12)

where \({\text{f}}_{\text{n}}\) is a natural frequency of the CNC machining system used for the experiment.

In the present study, specific to the procured machine and signal conditioning system, \({\text{f}}_{\text{n}} = 5{\text{ Hz}}\) is found to be most useful. The RRT spectrums for all IMFs, viz., \({\text{R}}\left[ {\text{X}_{\text{I}_{1} } \left( {\text{F}} \right)} \right],{\text{ R}}\left[ {{\text{X}}_{\text{I}_{2} } \left( {\text{F}} \right)} \right],{ } \ldots .{\text{ R}}\left[ {\text{X}_{\text{I}_{\text{n}} } \left( {\text{F}} \right)} \right]\) are generated numerically and it is found that \({\text{R}}\left[ {\text{X}_{\text{I}_{6} } \left( {\text{F}} \right)} \right]\) is the most useful spectrum [18], the results are illustrated in Fig. 9 in Sect. 5.

Fig. 9
figure 9

Signals analysis with the proposed hybrid transformation (RRT)

5 Results and discussions

Several experiments were conducted with a different set of workpieces and tool material combinations. The grouped data obtained from the controller is analyzed with various techniques to distinguish between cutting (without air gap) and non-cutting (air gap) time. Initially, FFT analysis is carried out to find out the maximum frequency and maximum amplitude but they found to be continuously varying and no characteristic inferences could be drawn.

Figure 6 gives the acceleration amplitude in the frequency domain. This is also the case with Hilbert spectral plots shown in Fig. 7. In Fig. 7, no inference is observed with regard to tool and work piece interaction and no frequency density with respect to time can also be found in any region irrespective of cutting.

After numerous experiments, the present study tried to use Hilbert-Huang transformation [19], for non-stationary and non-linear vibration. Figure 8 gives the empirical mode decomposition of the vibration signal i.e., IMFs for both cutting (without air gap) and no- cutting (air gap).

As shown in Fig. 8, it is identified that on empirical mode decomposition of the acquired data signal, the IMFs of the order greater than 4 [20], i.e., IMFs 5, 6, 7 showed some characteristic variation with respect to the tool vibrations when it is actually involved in cutting and during air gap. In the present study, IMF 6 is found to be the most useful component for differentiating whether the tool is actually cutting or not. In simpler terms [21], the IMF6 is found to be possessing higher harmonics in case of cutting and lower harmonics in case of air gap operation (i.e., non-cutting region) as shown in Fig. 8. But these harmonics could not be quantified with HHT.

To overcome this, a hybrid transformation is proposed which is a combination of HHT and FFT. This hybrid transformation is termed as RRT. According to the proposed transformation (RRT), the acquired intrinsic mode functions (IMFs) from empirical mode decomposition (EMD) are converted into a frequency spectrum by Fast Fourier transformation [22]. Later, obtained spectral values are passed through a threshold filter that cuts of frequencies having amplitude < 0.5 mm/sec2 and only the frequencies of interest are analyzed and they are presented in Fig. 9.

RRT analysis plots shown in Fig. 9 represent the 2 cases. Figure 9a indicates the cutting condition and Fig. 9b represents the air gap condition. It is identified that when cutting process is carried out the peaks of the RRT plot are typically in the range of 1–5 Hz and while passing through the air gap the peaks of the plot shifted to higher frequencies i.e., 7–10 Hz. To confirm the same fact, the new 3,162 datasets RRT plots for IMF6 and IMF7 are generated. The peak values in each plot are calculated, their frequency of occurrence. Table 3 gives the RRT Peak frequencies for while cutting whereas Table 4 presents the RRT Peak frequencies for non-cutting i.e. when the air gap is present.

Table 3 RRT Peak frequencies for cutting (without air gap)
Table 4 RRT Peak frequencies for non-cutting (with air gap)

These results are implemented and validated on the core of the adaptive controller in Fig. 1 in real-time. Based on the RRT result, the adaptive controller identifies the cutting tool and workpiece interactions. Once identified, there are a set of feed rate/rotational speed steps that can be defined, for which the ACO will make a decision whether to step up or step down the machining parameters. If any vibration sample’s RRT peak results in 9 Hz, then adaptive controller checks if the feed rate can be optimized or not. For example, if the present table feed rate is 120 mm/min and the predefined steps allow a feed rate up-gradation to 240 mm/sec, subsequently in-house adaptive controller overrides the part program feed rate. This enables to decrease the production time and thereby cost.

6 Conclusions

An in-house adaptive controller has been designed based on vibration data. To facilitate the data acquisition in real-time, integration is established between programmable PC-based CNC controller Interface SC06 with a vibration signals transducer Kistler 8793 K-Shear Tri-Axial accelerometer through MATLAB program routine to work under the designed controller. In the present study, a hybrid novel approach proposed which is a combination of HHT and FFT and implemented successfully in real-time for end milling operation. It is also found that proposed RRT transformation is more effective for identifying the variations in tool-workpiece interactions such as air gaps while cutting.

This adaptive controller controls the milling process parameters in real-time and maintains vibration under a preset safety threshold value by means of driver interfacing for adaptation of machining parameters. Applicability of the method for the adaptive alteration of milling parameters is demonstrated and tested on a 3-axis CNC milling machine with experimental trails [23]. Results of the end milling experiments with adaptive controller strategy display that the established in house controller has great sturdiness and steadiness.

The complexity of the transforms integration may be reduced with advanced software even at the acquisition of the signal as part of the future study.