Weighing sensor cascade software compensation method and system
By using a cascaded software compensation method for weighing sensors, the problem that traditional analog circuit compensation methods cannot fully optimize sensor accuracy is solved, achieving comprehensive improvement in the accuracy and stability of weighing sensors.
Patent Information
- Application Number
- CN202511780658.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-03-17
AI Technical Summary
Traditional analog circuit compensation methods for weighing sensors cannot effectively compensate for key errors such as nonlinearity, hysteresis, and creep, resulting in insufficient accuracy and high cost, which cannot meet the needs of high-end application scenarios.
A cascaded software compensation method for weighing sensors is adopted. Through cascaded design, zero-point temperature compensation, sensitivity temperature compensation, nonlinear hysteresis compensation and creep compensation are performed sequentially. Software algorithms are used to achieve unified optimization of all core accuracy indicators of the weighing sensors.
This achieves a comprehensive improvement in the accuracy of the weighing sensor, significantly enhancing the stability and accuracy of the output signal, and avoiding the accuracy degradation issues caused by high hardware costs and aging analog circuits.
Smart Images

Figure CN121677897A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of weighing sensor compensation technology, and relates to a cascaded software compensation method and system for weighing sensors. Background Technology
[0002] In numerous fields such as industrial automation, logistics warehousing, and metrology, load cells are core components for achieving accurate weight measurement. Their measurement accuracy directly determines the operational efficiency and data reliability of the entire system. With the ever-increasing demands for measurement accuracy in modern industry, effectively improving the various accuracy indicators of load cells has become a key issue driving technological upgrades in related fields. Currently, traditional load cells generally employ analog circuit compensation schemes in their accuracy compensation stages. The core of this scheme only adjusts two types of indicators: zero-point temperature error and sensitivity temperature error. Specifically, by building specific analog circuit modules, the zero-point drift and sensitivity changes of the sensor under different temperature environments are corrected to mitigate the impact of temperature on weighing accuracy. However, this compensation method has significant limitations. For critical indicators crucial to load cell accuracy, such as nonlinear errors, hysteresis errors, and creep errors, traditional analog circuit compensation cannot achieve direct and effective compensation. In traditional technology systems, improving accuracy in areas such as nonlinearity, hysteresis, and creep often relies on hardware-level measures such as optimizing sensor material selection, improving manufacturing processes, and refining the design principle. For example, using metals with more stable elastic moduli can reduce creep effects; employing higher-precision machining equipment to control sensor dimensional tolerances can reduce nonlinear deviations; or optimizing the sensor's stress structure design can alleviate hysteresis. However, these hardware optimization methods not only face technical bottlenecks but also suffer from high costs and poor flexibility. They are difficult to tailor to the specific characteristic curves of different sensors, resulting in the adaptability and accuracy of compensation effects consistently failing to meet the demands of high-end applications. Further analysis reveals that the core performance indicators of a weighing sensor form an organic whole. Besides zero-point temperature error and sensitivity temperature error, nonlinearity error, hysteresis error, and creep error are also key factors determining its final quality and measurement accuracy. Defects in any of these indicators will directly lead to a decrease in the overall measurement accuracy of the sensor, affecting the accuracy of subsequent data applications. For example, in high-precision metrology scenarios, even if the zero-point temperature and sensitivity temperature are effectively compensated, excessive nonlinearity error will still cause significant deviations in the sensor's measurement results across different measurement ranges. In long-term load measurement scenarios, creep error will cause the sensor's output value to gradually drift over time, severely affecting the stability of the measurement data. Therefore, comprehensively and thoroughly improving all accuracy indicators of weighing sensors is an inevitable requirement to overcome current technological limitations and meet the high-precision measurement needs of the industrial sector. In summary, traditional analog circuit-based weighing sensor compensation methods suffer from problems such as limited compensation range, poor flexibility, insufficient accuracy, and high cost, and cannot achieve comprehensive optimization and compensation for all core performance indicators. Summary of the Invention
[0003] The purpose of this invention is to solve the technical problems of limited compensation range, poor flexibility and insufficient accuracy of traditional weighing sensor compensation methods based on analog circuits, and to provide a cascaded software compensation method and system for weighing sensors.
[0004] To achieve the above objectives, the present invention employs the following technical solution: The first aspect of this invention provides a cascaded software compensation method for weighing sensors, comprising the following steps: Acquire compensation parameters, weighing signals from the weighing sensor, and temperature signals; the compensation parameters include two-point linearization processing parameters for the weighing signal, two-point linearization processing parameters for the temperature, zero-point temperature compensation parameters, sensitivity temperature compensation parameters, nonlinear hysteresis compensation parameters, weight conversion parameters, and creep compensation parameters. Filter and denoise the repetitive signal and the temperature signal; Based on the two-point linearization processing parameters of the weighing signal, the filtered and denoised weighing signal is subjected to two-point linearization processing, and the two-point linearized weighing signal is output. Based on the two-point linearization processing parameters, the filtered and denoised temperature signal is subjected to two-point linearization processing, and the two-point linearized temperature signal is output. Using the linearized weighing signal and temperature signal of the two points, as well as the zero-point temperature compensation parameter, zero-point temperature compensation is performed on the weighing signal to obtain the zero-point temperature compensated weighing signal. Using the aforementioned sensitivity temperature compensation parameters, sensitivity temperature compensation is performed on the weighing signal after zero-point temperature compensation to obtain the sensitivity temperature-compensated weighing signal. Using the aforementioned sensitive temperature-compensated weighing signal and the aforementioned nonlinear hysteresis compensation parameters, nonlinear hysteresis compensation is performed to obtain a nonlinear hysteresis-compensated weighing signal. Using the nonlinear hysteresis-compensated weighing signal and the weight conversion parameters, a weight conversion is performed to obtain the output weight signal; Using the weight signal and the creep compensation parameters, creep compensation is performed, and the compensated weighing signal is output.
[0005] Furthermore, the denoising of the weighing signal and the temperature signal is performed using IIR, FIR, or Kalman filtering methods.
[0006] Furthermore, the expression for the weighing signal after sensitivity temperature compensation is:
[0007] In the formula, The weighing signal is linearized from two points. These are the zero-point temperature compensation parameters. For sensitivity temperature compensation parameters, The weighing signal is after sensitivity temperature compensation.
[0008] Furthermore, the expression for the weighing signal after nonlinear hysteresis compensation is as follows:
[0009] In the formula, The weighing signal is after nonlinear hysteresis compensation. This is the weighing signal after sensitivity temperature compensation. These are nonlinear hysteresis compensation parameters.
[0010] Furthermore, the weight conversion employs piecewise linear interpolation; the expression for the weight signal is:
[0011] Among them, subscript , Indicates the segment in which the piecewise linear interpolation occurs. Indicates the first The weighing signal after nonlinear hysteresis compensation. Indicates the first The weighing signal after nonlinear hysteresis compensation. Indicates the first The segment is expected to output a weight value. Indicates the first The segment is expected to output a weight value. This represents the current nonlinear hysteresis compensation output value. This indicates a weight signal.
[0012] Furthermore, the compensated weighing signal is described as follows:
[0013]
[0014]
[0015] in, For single-cycle creep variables, This is the weight signal output by the piecewise linear interpolation. The weight signal output from the previous piecewise linear interpolation. This is the cumulative creep amount. This is the compensated weighing signal.
[0016] A second aspect of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the cascaded software compensation method for the weighing sensor.
[0017] A third aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the cascaded software compensation method for weighing sensors.
[0018] A fourth aspect of the present invention provides a computer program product, the computer program product including computer instructions that instruct a computer to execute the cascaded software compensation method for the weighing sensor.
[0019] The fifth aspect of the present invention provides a cascaded software compensation system for weighing sensors, comprising: The data acquisition module acquires compensation parameters, weighing signals from the weighing sensor, and temperature signals. The compensation parameters include two-point linearization processing parameters for the weighing signal, two-point linearization processing parameters for the temperature, zero-point temperature compensation parameters, sensitivity temperature compensation parameters, nonlinear hysteresis compensation parameters, weight conversion parameters, and creep compensation parameters. The data preprocessing module filters and denoises the weighing signal and temperature signal; The two-point linearization processing module performs two-point linearization processing on the filtered and denoised weighing signal based on the two-point linearization processing parameters of the weighing signal, and outputs the two-point linearized weighing signal; and performs two-point linearization processing on the filtered and denoised temperature signal based on the two-point linearization processing parameters of the temperature signal, and outputs the two-point linearized temperature signal. The temperature compensation module uses the linearized weighing signal and the linearized temperature signal at the two points, along with the zero-point temperature compensation parameter, to perform zero-point temperature compensation on the weighing signal, resulting in a zero-point temperature-compensated weighing signal. It then uses the sensitivity temperature compensation parameter to perform sensitivity temperature compensation on the zero-point temperature-compensated weighing signal, resulting in a sensitivity temperature-compensated weighing signal. The nonlinear hysteresis compensation module uses the sensitive temperature-compensated weighing signal and the nonlinear hysteresis compensation parameters to perform nonlinear hysteresis compensation, thereby obtaining a nonlinear hysteresis-compensated weighing signal. The weight conversion module uses the nonlinear hysteresis compensated weighing signal and the weight conversion parameters to perform weight conversion and obtain the output weight signal. The creep compensation module uses the weight signal and the creep compensation parameters to perform creep compensation and outputs the compensated weighing signal.
[0020] Compared with the prior art, the present invention has the following beneficial effects: This invention discloses a cascaded software compensation method for weighing sensors. Unlike traditional analog circuits that can only compensate for zero-point temperature and sensitivity temperature errors, this method uses a cascaded compensation design to sequentially complete zero-point temperature compensation, sensitivity temperature compensation, nonlinear hysteresis compensation, and creep compensation. This achieves unified optimization of all core accuracy indicators of the weighing sensor, comprehensively meeting the stringent accuracy requirements of high-end industrial metrology scenarios. Each compensation stage adopts a cascaded design where "pre-stage compensation lays the foundation for subsequent stages." For example, two-point linearization is first used to eliminate basic signal deviations, then temperature compensation addresses environmental interference, and finally, nonlinear hysteresis and creep compensation corrects inherent sensor errors, forming a "preprocessing-basic compensation-deep optimization" accuracy improvement chain. This avoids error propagation from a single compensation stage, resulting in significantly improved stability and accuracy of the output signal compared to traditional methods. Traditional methods require building an analog compensation circuit composed of a resistor network and manual debugging for each sensor, leading to high hardware costs and low debugging efficiency. This method implements all compensation functions through software algorithms, requiring only basic signal acquisition circuits and general-purpose storage devices, reducing the use of hardware components, and avoiding the problem of accuracy degradation caused by the aging of resistor networks in analog circuits. Attached Figure Description
[0021] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a flowchart of the cascaded software compensation method for weighing sensors according to an embodiment of the present invention. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0024] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0025] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0026] The present invention will now be described in further detail with reference to the accompanying drawings: See Figure 1 This invention provides a cascaded software compensation method for weighing sensors, comprising the following steps: S1: Read the compensation parameters from the power-off data-preserving storage device. The compensation parameters include two-point linearization processing parameters of the weighing signal, two-point linearization processing parameters of the temperature, zero-point temperature compensation parameters, sensitivity temperature compensation parameters, nonlinear hysteresis compensation parameters, weight conversion parameters, and creep compensation parameters.
[0027] S2: Construct a weighing signal acquisition circuit to acquire the voltage signal output by the weighing sensor, and construct a weighing sensor temperature signal acquisition circuit to acquire the temperature signal from the weighing sensor. The constructed temperature signal acquisition circuit is used to acquire the analog electrical signal that reflects the temperature of the weighing sensor and convert it into a digital temperature signal that can be processed by the processor.
[0028] S3: Filter and denoise the weighing signal output from the weighing signal acquisition circuit constructed in step S2, and the temperature signal output from the temperature signal acquisition circuit. Specifically, the acquired weighing and temperature signals are filtered and denoised using IIR, FIR, or Kalman filtering methods to remove interference noise and provide noise-free signals for subsequent compensation.
[0029] S4: The weighing signal after filtering and denoising in step S3 is combined with the two-point linearization processing parameters of the weighing signal read in step S1 to perform two-point linearization processing on the weighing signal, and the two-point linearized weighing signal is output.
[0030] S5: The temperature signal after filtering and denoising in step S3 is combined with the two-point linearization processing parameters read in step S1 to perform two-point linearization processing on the temperature signal, and the two-point linearized temperature signal is output.
[0031] S6: Using the two-point linearized weighing signal output in step S4 and the two-point linearized temperature signal output in step S5, as well as the zero-point temperature compensation parameter read in step S1, zero-point temperature compensation is performed on the weighing signal to obtain the zero-point temperature compensated weighing signal.
[0032] S7: Using the zero-point temperature-compensated weighing signal output in step S5, the two-point linearized temperature signal output in step S5, and the sensitivity temperature compensation parameters read in step S1, perform sensitivity temperature compensation on the weighing signal to obtain the sensitivity temperature-compensated weighing signal.
[0033] Specifically, the temperature compensation process employs a subtraction compensation principle to eliminate the influence of temperature on the zero point, i.e., zero-point temperature compensation, and a division compensation principle to eliminate the influence of temperature on sensitivity, i.e., sensitivity temperature compensation. The compensation methods are as follows:
[0034] In the formula, W is the weighing signal after linearization at two points. This is the compensation amount for the zero point of the load cell as it changes with temperature (zero point temperature compensation parameter). This is the compensation amount for the change in the sensitivity of the load cell with temperature (sensitivity temperature compensation parameter). The weighing signal after sensitivity temperature compensation.
[0035] S8: Using the sensitivity-temperature compensated weighing signal output in step S7 and the nonlinear hysteresis compensation parameters read in step S1, nonlinear hysteresis compensation is performed to obtain the nonlinear hysteresis compensated weighing signal. Specifically, nonlinear hysteresis compensation processing refers to identifying the loading and unloading direction based on the weight loading and unloading characteristics, calculating the corresponding nonlinear hysteresis compensation amount for different ranges, and using the subtraction compensation principle to perform nonlinear hysteresis compensation, thereby reducing the nonlinear hysteresis error of the weighing sensor. The compensation method is as follows:
[0036] In the formula The weighing signal is after nonlinear hysteresis compensation. This is the weighing signal after sensitivity temperature compensation. This is the nonlinear hysteresis compensation quantity (nonlinear hysteresis compensation parameter).
[0037] S9: Using the nonlinear hysteresis compensated weighing signal output in step S8 and the weight conversion parameters read in step S1, perform weight conversion to obtain the output weight signal.
[0038] Specifically, the weighing signal after nonlinear hysteresis compensation is judged. Within the given measurement range, the sensor output weight value is calculated using a piecewise linear interpolation formula to further improve the sensor's linearity. The formula is as follows:
[0039] In the formula, the subscript The segment containing the piecewise linear interpolation is numerically equal to the number of segments in the piecewise linear interpolation, represented by points ( , ), ( , ) represent the two endpoints of the linear interpolation segment, or This indicates the weighing signal after nonlinear hysteresis compensation at the calibration point. or This indicates the expected output weight value at the calibration point. This represents the current nonlinear hysteresis compensation output value. This represents the weight value calculated using nonlinear interpolation.
[0040] S10: Perform creep compensation using the weighing signal output in step S9 and the creep compensation parameters read in step S1.
[0041] Specifically, at certain time intervals, the difference between two adjacent weight signals is calculated. If the difference is less than a certain threshold, the difference is included in the creep accumulation. The output weight is the piecewise linear interpolated output weight value minus the creep accumulation, thus achieving the purpose of creep compensation. The compensation formula is as follows:
[0042]
[0043]
[0044] In the formula, For single-cycle creep variables, Output the weight value for this piecewise linear interpolation. The weight value is output from the previous piecewise linear interpolation. This is the cumulative creep amount. The output weight value after creep compensation is the final weight value output by the sensor.
[0045] S11: Output the weighing signal after compensation in step S10 and the temperature signal after two-point linearization output in step S5.
[0046] In step S3 of this invention, the weight and temperature digital signals are filtered and denoised to remove noise interference from the external environment and the sensor itself, which helps to improve weighing accuracy and compensation accuracy. Simultaneously, signals free from noise interference from the external environment and the sensor itself are output to the next two steps, S4 and S5. Step S6 performs zero-point temperature compensation on the weighing signal to eliminate sensor zero-point changes caused by ambient temperature variations, and outputs a weighing signal whose zero point does not change with temperature to step S7. Step S7 also performs sensitivity temperature compensation on the weighing signal to eliminate sensor sensitivity changes caused by ambient temperature variations, and outputs a weighing signal to step S8 where both sensor zero point and sensitivity do not change with ambient temperature. Step S8 performs nonlinear hysteresis compensation on the weighing signal to eliminate nonlinear errors in the sensor during loading and unloading, and outputs a standard weighing signal to step S9 where both sensor zero point and sensitivity do not change with ambient temperature, and the sensor's loading nonlinear errors during loading and unloading are small. Step S9 uses the weighing signal output from step S8, which has no zero-point temperature error, no sensitivity temperature error, and no nonlinear hysteresis error, and combines it with the weight calibration conversion factor to perform weight conversion. The converted weight signal is used as the input for creep compensation in step S10. Step S10 uses the weight signal output from step S9, combined with creep compensation parameters, to perform creep compensation, and outputs a weighing signal that is independent of zero-point temperature error, sensitivity temperature error, nonlinear hysteresis error, and creep error.
[0047] This invention employs a step-by-step cascaded compensation method, ensuring that each compensation stage operates independently, thus improving compensation accuracy. The software-based cascaded weighing sensor signal compensation method provided by this invention solves the problem that current methods for compensating zero-point temperature errors and sensitivity temperature errors in weighing sensors primarily rely on analog circuits, and cannot directly compensate for accuracy indicators such as nonlinearity errors, hysteresis errors, and creep errors. This invention provides comprehensive compensation for temperature, nonlinearity, hysteresis, and creep, resulting in higher output weight accuracy for the weighing sensor. Simultaneously, it eliminates the need for traditional hardware compensation; even if external environmental conditions or the sensor's own hardware characteristics change, the accuracy indicators such as zero-point temperature error, sensitivity temperature error, nonlinearity error, hysteresis error, and creep error remain unaffected.
[0048] One embodiment of the present invention provides a cascaded software compensation system for weighing sensors, comprising: The data acquisition module acquires compensation parameters, weighing signals from the weighing sensor, and temperature signals. The compensation parameters include two-point linearization processing parameters for the weighing signal, two-point linearization processing parameters for the temperature, zero-point temperature compensation parameters, sensitivity temperature compensation parameters, nonlinear hysteresis compensation parameters, weight conversion parameters, and creep compensation parameters. The data preprocessing module filters and denoises the weighing signal and temperature signal; The two-point linearization processing module performs two-point linearization processing on the filtered and denoised weighing signal based on the two-point linearization processing parameters of the weighing signal, and outputs the two-point linearized weighing signal; and performs two-point linearization processing on the filtered and denoised temperature signal based on the two-point linearization processing parameters of the temperature signal, and outputs the two-point linearized temperature signal. The temperature compensation module uses the linearized weighing signal and the linearized temperature signal at the two points, along with the zero-point temperature compensation parameter, to perform zero-point temperature compensation on the weighing signal, resulting in a zero-point temperature-compensated weighing signal. It then uses the sensitivity temperature compensation parameter to perform sensitivity temperature compensation on the zero-point temperature-compensated weighing signal, resulting in a sensitivity temperature-compensated weighing signal. The nonlinear hysteresis compensation module uses the sensitive temperature-compensated weighing signal and the nonlinear hysteresis compensation parameters to perform nonlinear hysteresis compensation, thereby obtaining a nonlinear hysteresis-compensated weighing signal. The weight conversion module uses the nonlinear hysteresis compensated weighing signal and the weight conversion parameters to perform weight conversion and obtain the output weight signal. The creep compensation module uses the weight signal and the creep compensation parameters to perform creep compensation and outputs the compensated weighing signal.
[0049] One embodiment of the present invention provides a computer program product, the computer program product including computer instructions, the computer instructions instructing a computer to execute the weighing sensor cascade software compensation method.
[0050] In one embodiment of the present invention, an electronic device is provided, comprising a processor and a memory. The memory stores a computer program, which includes program instructions. The processor executes the program instructions stored in the computer storage medium. The processor may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing and control core of the terminal, suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions to achieve a corresponding method flow or corresponding function. The processor described in this embodiment of the present invention can be used for the operation of a cascaded software compensation method for weighing sensors.
[0051] In one embodiment of the present invention, a storage medium is also provided, specifically a computer-readable storage medium (Memory), which is a memory device in a terminal device for storing programs and data. It is understood that the computer-readable storage medium here can include both the built-in storage medium in the terminal device and extended storage media supported by the terminal device; it can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. The computer-readable storage medium provides storage space that stores the terminal's operating system. Furthermore, the storage space also stores one or more instructions suitable for loading and execution by a processor, which can be one or more computer programs (including program code). It should be noted that more specific examples (a non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0052] Computer-readable storage media also include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable storage medium can also be any readable medium other than a readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium can be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0053] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0054] One or more instructions stored in a computer-readable storage medium can be loaded and executed by a processor to implement the corresponding steps of the cascaded software compensation method for weighing sensors in the above embodiments.
[0055] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A load cell cascaded software compensation method, characterized in that, The method comprises the following steps: obtaining compensation parameters, a weighing signal of a weighing sensor and a temperature signal; the compensation parameters comprise two-point linearization processing parameters of the weighing signal, two-point linearization processing parameters of the temperature, zero temperature compensation parameters, sensitivity temperature compensation parameters, non-linear hysteresis compensation parameters, weight conversion parameters and creep compensation parameters; filtering and denoising the weighing signal and the temperature signal; performing two-point linearization processing on the filtered and denoised weighing signal based on the two-point linearization processing parameters of the weighing signal, and outputting a two-point linearized weighing signal; performing two-point linearization processing on the filtered and denoised temperature signal based on the two-point linearization processing parameters of the temperature, and outputting a two-point linearized temperature signal; performing zero temperature compensation on the weighing signal by using the two-point linearized weighing signal and the two-point linearized temperature signal and the zero temperature compensation parameters, to obtain a zero temperature compensated weighing signal; performing sensitivity temperature compensation on the zero temperature compensated weighing signal by using the sensitivity temperature compensation parameters, to obtain a sensitivity temperature compensated weighing signal; performing non-linear hysteresis compensation on the sensitivity temperature compensated weighing signal by using the non-linear hysteresis compensation parameters, to obtain a non-linear hysteresis compensated weighing signal; performing weight conversion on the non-linear hysteresis compensated weighing signal by using the weight conversion parameters, to obtain an output weight signal; performing creep compensation on the weight signal by using the creep compensation parameters, to output a compensated weighing signal.
2. The load cell cascading software compensation method of claim 1, wherein, The filtering and denoising of the weighing signal and the temperature signal comprises, but is not limited to, the methods of IIR, FIR or Kalman filtering.
3. The load cell cascading software compensation method of claim 1 wherein, The expression of the sensitivity temperature compensated weighing signal is: wherein is the weighing signal after two-point linearization, is a zero-point temperature compensation parameter, is a sensitivity temperature compensation parameter, is the weighing signal after sensitivity temperature compensation.
4. The load cell cascading software compensation method of claim 1 wherein, The expression of the non-linear hysteresis compensated weighing signal is: wherein is the weighing signal after non-linear hysteresis compensation, is the weighing signal after sensitivity temperature compensation, is the non-linear hysteresis compensation parameter.
5. The load cell cascading software compensation method of claim 1 wherein, The weight conversion adopts piecewise linear interpolation; the expression of the weight signal is: wherein subscript , denotes the segment of the piecewise linear interpolation, denotes the segment non-linearly lag compensated weighed signal, denotes the segment non-linearly lag compensated weighed signal, denotes the segment expected output weight value, denotes the segment expected output weight value, denotes the current non-linearly lag compensated output value, denotes the weight signal.
6. The load cell cascading software compensation method of claim 1 wherein, The compensated weighing signal is described as: wherein, is a single creep variable, is a weight signal output by the last piecewise linear interpolation, is a weight signal output by the last piecewise linear interpolation, is a creep accumulation variable, is a compensated weight signal.
7. An electronic device, comprising: The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the weighing sensor cascaded software compensation method according to any one of claims 1-6.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the weighing sensor cascaded software compensation method according to any one of claims 1-6.
9. A computer program product comprising computer instructions, characterized in that, The computer instructions instruct the computer to execute the weighing sensor cascaded software compensation method according to any one of claims 1-6.
10. A load cell cascaded software compensation system characterized by, The method comprises: a data acquisition module, which acquires compensation parameters, a weighing signal of a weighing sensor and a temperature signal; the compensation parameters comprise two-point linearization processing parameters of the weighing signal, two-point linearization processing parameters of the temperature, zero temperature compensation parameters, sensitivity temperature compensation parameters, non-linear hysteresis compensation parameters, weight conversion parameters and creep compensation parameters; a data preprocessing module, which filters and denoises the weighing signal and the temperature signal; A two-point linearization processing module performs two-point linearization processing on the filtered and denoised weighing signal based on two-point linearization processing parameters of the weighing signal, and outputs a two-point linearized weighing signal; and performs two-point linearization processing on the filtered and denoised temperature signal based on temperature two-point linearization processing parameters, and outputs a two-point linearized temperature signal; A temperature compensation module performs zero-point temperature compensation on the weighing signal based on the two-point linearized weighing signal, the two-point linearized temperature signal, and zero-point temperature compensation parameters, and obtains a zero-point temperature compensated weighing signal; A sensitivity temperature compensation module performs sensitivity temperature compensation on the zero-point temperature compensated weighing signal based on sensitivity temperature compensation parameters, and obtains a sensitivity temperature compensated weighing signal; A non-linear hysteresis compensation module performs non-linear hysteresis compensation on the sensitivity temperature compensated weighing signal based on non-linear hysteresis compensation parameters, and obtains a non-linear hysteresis compensated weighing signal; A weight conversion module performs weight conversion on the non-linear hysteresis compensated weighing signal based on weight conversion parameters, and obtains an output weight signal; A creep compensation module performs creep compensation on the weight signal based on creep compensation parameters, and outputs a compensated weighing signal.