| According to the actual situation of repeated low precision and time-consuming manual inspection existing in the parameters detectionprocessing of stepped shaft,this paper presents a method for automatic measurement of stepped shaft based on linear array CCD.After the detailed analysis of the technical requirements of the measurement device,the overall composition,working principle and the overall design scheme of the control system are given.After analyzing the measuring principle of the measuring device,including the length,diameter,beating and cylindricity,the dual control system based on CPU224 XP and STM32 is designed.The hardware and software design of the motion control system and the data acquisition and processing system are emphasized.The workpiece motion control system is based on CPU224 XP and EM235 module to control the motor drive chip YK2404 MA and solenoid valve.It is to communicate with the host computer by I/O port communication,to complete the movement control of the workpiece measurement process.The data acquisition and processing system is based on STM32 as the main control unit also includes a length measurement control unit,control unit,measuring the diameter of beating(diameter jump,jump end)measurement and control unit,data storage and printing unit.Finally,the main parameters(diameter,length,beat)are analyzed in detail,and the accuracy of the measurement system is verified by experiments.The real test results show that the automatic detection device can realize the length measurement repeatability accuracy ≤±10μm,diameter measurement repeatability ≤±10μm,runout measuring accuracy ≤30μm,the main performance indexes of Cylindricity Measuring accuracy ≤±15μm,which meets the technical requirements of the automatic measurement of the ladder shaft. |