| With the rapid development of information technology,information intellectualization,equipment intellectualization and Internet of Things technology play a very important role in this process.It also provides great convenience for people’s daily life and working environment.This topic comes from Intelligent Farming Equipment and the technology of Internet of Things of a Shenzhen Science and Technology Co.,Ltd.and puts forward the research and development project of Intelligent Pig Farming Test and Measurement System.This project analyzes the shortage of information technology in the current breeding equipment,using manual management,backward breeding technology,using workers to hold pigs to weigh on the weighing machine,classifying pigs with human eyes and it is very inefficient and prone to make mistakes.The software side of the project adopts server,database and client development technology,thus forming a data collection and analysis platform.The main research results of this thesis are divided into three parts:Firstly,according to the system requirements,this thesis designs and implements the RFID module,the weight weighing module,the main control module and the switch gate control module in the device-side classification and screening equipment;uses MODBUS protocol to communicate data through RS485 line,and transfers these data to the host computer client for information processing.Second,in order to improve the accuracy of dynamic weighing algorithm,a high-precision dynamic weighing algorithm for pig’s dynamic weight data is studied and implemented.In this thesis,through studying the weight information law of the experimental pigs on the weighing platform,it is found that the dynamic weighing data generally have larger noise interference and weight information fluctuates on the real data.It is necessary to remove the noise part when calculating the weight andcalculate the real weight data.So we find the method of Kalman filtering to smooth the data and calculates the average value of the filtered data.A Lagrange interpolation algorithm with weights is proposed.After solving the function model,the median value of the real data is obtained.Finally,the error value between the weight result of this algorithm and that of other weighing algorithms is compared.The error of the algorithm is within the allowable range,also proves that the algorithm of this thesis has high precision.Third,in view of the communication between host computers and devices,a software design method using plug-in architecture is proposed.The PC management system software is designed and implemented.The system realizes configuration management,test pig information management,test pig data statistics,system management and other modules. |