现代信息科技2024,Vol.8Issue(13):15-18,4.DOI:10.19850/j.cnki.2096-4706.2024.13.004
基于最小二乘法的电子计数秤设计及偏差处理
Design and Error Processing of the Electronic Counting Scale Based on Least Square Method
王宏 1胡可狄 1杨灶红 1牛宗霞 1信桂锁 1赵姗1
作者信息
- 1. 北京航天新立科技有限公司,北京 100039
- 折叠
摘要
Abstract
The production of electronic products requires a large variety of materials,and manual counting reduces the production efficiency.The electronic counting scale is designed to directly display the number by measuring the materials,and it is beneficial to improve the production efficiency.The electronic counting scale based on STM32 and HX711 module and parallel beam strain weighing sensor has problems such as sensor resolution limitations,measurement and conversion errors,and noise,which will cause measurement deviation.Aiming at the problems,this paper firstly filters the sampled binary value to improve the data stability,then uses the mean filter algorithm to further reduce noise and minimize the impact of noise.It uses the least square method to establish a linear model of the linear function to realize the conversion of sampled value and weight.Through experimental verification,the weight error is controlled within±1 g,and the number deviation is 1%,which can meet the needs of production.关键词
称重传感器/STM32/HX711模块/软件滤波/最小二乘法Key words
weighing sensor/STM32/HX711 module/software filtering/least square method分类
机械制造引用本文复制引用
王宏,胡可狄,杨灶红,牛宗霞,信桂锁,赵姗..基于最小二乘法的电子计数秤设计及偏差处理[J].现代信息科技,2024,8(13):15-18,4.