Abstract:Aiming at the chatter problem that occurs during the machining of CNC machine tools affects the machining accuracy of the workpiece,a method based on the embedded sensor device to compensate the chatter error of the CNC machine tool in real-time was proposed.First,a CAN bus workshop machine tool working status information collection network was build,and the PIC18F series microprocessor was used as an intelligent terminal.The TCP/IP protocol was transplanted,and realized the acceleration data collection of each axis of the machine tool.Then,the data was packaged and uploaded to the host computer through the wireless network module. The host computer server system displayed relevant information through data screening,analysis and unpacking.Finally,the flutter compensation value of the CNC machine tool was calculated through the acceleration sensor information and the flutter error compensation model.The experimental results show that the embedded system has a good improvement and reliability on the machining accuracy of CNC machine tools,and improves the machining efficiency of the workshop machine tools effectively.