Developing a smart and low cost device for machining vibration analysis