| With the wide spread of modern batch-production and automatic production line, in the field of industrial and agricultural production, the traditional static weighing instrument become increasingly unable to meet the growing demand for industrial and agricultural production. A real-time electronic scales with the ability to weighting and sorting has taken more and more attention. In relevant development of electronic scale, compared with foreign products, products developed in China is relatively with simple function, low speed, limited accuracy and frequent breakdowns. As an important part of the automatic assembly line, weighting accuracy and sorting rate of the dynamic electronic scale will directly affect the productivity and product quality on the assembly line. Therefore, the development of a high precision, multi-interval option, high-speed, stable and reliable dynamic electronic scale will match the urgent need of domestic marked.In the basic of embedded technology, after the investigation of domestic and overseas research status of dynamic electronic scale, the paper designed a real-time weighting and sorting system based on STM32. Firstly, basic on the research of the principle of dynamic sorting scale, the system adopted the mechanical structure composed by belt and pneumatic rod. Then the paper proposed an overall arrangement of hardware and software for the dynamic sorting scale. Given full consideration to the stability and robustness of the system, the paper developed a hardware platform combined with the sensor module controlled by STM32, Man- machine interaction module by Dwin screen, storage module, drive module, input and output modules and other peripheral module. Also, each module of the system is carefully analyzed with software design, and finally the entire control system is completed.At last, the paper researched the processing accuracy of dynamic weighing data. The algorithm of four basic data filter as moving filtering, median filtering, low-pass filtering and Kalman filtering is dwelled respectively. According to the analysis and verification of the experimental data, an adaptive algorithm is proposed to meet the accuracy requirements of weighing system. |