During the production process of the components of precision machines, a stable quality is the key consideration of the vendors. During the production process of metal parts, a thermal expansion error of the spindle will occur due to long time operations, which causes machining errors during the production process. The chatter phenomenon that occurs during the production of components causes knife marks on the processing surface. Thus, chatter is also a major factor that affects the stability of quality. The occurrence of chatter phenomenon not only affects the quality of metal components, it also causes severe wear of the blade surface and shortens the life of the knife tool, and makes the cutting quality more difficult to control. Therefore, this paper uses the lathe machine to simulate the production process in the factory, to collect signals of the thermal expansion error of the spindle phenomenon and the coexistence of chatter, for timely compensation of the thermal expansion error and the development of the chatter suppression system, while spending extra efforts to implement real-time dynamic detection with the Lorenz chaotic system and applying spindle speed selection to control the chatter phenomenon, thus enhancing the processing quality and lengthening the longevity of the knife tool. As for the compensation of temperature, the system applies multi-regression analysis to detect the front and rear bearings of the spindle and room temperature and to compensate the error of the spindle in real time. The system takes real-time control of the chatter phenomenon and compensation of long-time thermal expansion error as its core architecture, while the secondary architecture combines the Internet of Things with Skymars to enable the machine to stabilize communication and to combine with heterogeneous machines such as robotic arm, milling machine, and grinding machine. It is a framework with horizontal development and establishes a database to record the critical value of the occurrence of chatter and implement two-time quality detection, achieving management of the production line, improvement of quality, and cloud information storage.