CN109556687B - Weight measurement method, device, equipment and computer readable storage medium - Google Patents

Weight measurement method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109556687B
CN109556687B CN201811567324.8A CN201811567324A CN109556687B CN 109556687 B CN109556687 B CN 109556687B CN 201811567324 A CN201811567324 A CN 201811567324A CN 109556687 B CN109556687 B CN 109556687B
Authority
CN
China
Prior art keywords
weight
value
weight change
change value
weight measurement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811567324.8A
Other languages
Chinese (zh)
Other versions
CN109556687A (en
Inventor
范腾龙
叶生晅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Curtain Craftsmanship Technology Hangzhou Co ltd
Original Assignee
Curtain Craftsmanship Technology Hangzhou Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Curtain Craftsmanship Technology Hangzhou Co ltd filed Critical Curtain Craftsmanship Technology Hangzhou Co ltd
Priority to CN201811567324.8A priority Critical patent/CN109556687B/en
Publication of CN109556687A publication Critical patent/CN109556687A/en
Application granted granted Critical
Publication of CN109556687B publication Critical patent/CN109556687B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G3/00Weighing apparatus characterised by the use of elastically-deformable members, e.g. spring balances
    • G01G3/12Weighing apparatus characterised by the use of elastically-deformable members, e.g. spring balances wherein the weighing element is in the form of a solid body stressed by pressure or tension during weighing
    • G01G3/14Weighing apparatus characterised by the use of elastically-deformable members, e.g. spring balances wherein the weighing element is in the form of a solid body stressed by pressure or tension during weighing measuring variations of electrical resistance

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Indication And Recording Devices For Special Purposes And Tariff Metering Devices (AREA)

Abstract

The invention discloses a weight measurement method, a weight measurement device, weight measurement equipment and a computer readable storage medium, and relates to the technical field of metering instruments, wherein the method comprises the following steps: detecting a weight signal output by the weighing sensor according to a preset detection period; determining a weight change value and a weight change direction in response to detecting that a weight signal output by the weighing sensor changes; judging whether the weight change value is larger than a preset weight threshold value or not; when the weight change value is judged to be larger than the weight threshold value, calculating the current weight measurement value according to the weight change value, the weight change direction and the last weight measurement value; and when the weight change value is judged to be less than or equal to the weight threshold value, determining the last weight measurement value as the current weight measurement value. By adopting the technical scheme, the accuracy of weight measurement can be improved, and the hardware cost is reduced.

Description

Weight measurement method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the technical field of measuring instruments, and in particular, to a weight measuring method, device, apparatus, and computer-readable storage medium.
Background
The weighing sensor is a device for converting a mass signal into a measurable electric signal and outputting the measurable electric signal, and plays an important role in application occasions such as engineering measurement, experimental measurement and the like. At present, the commonly used weighing sensor is mainly a strain gauge weighing sensor. However, the weight measured by the load cell is subject to drift due to external factors such as temperature, humidity, strain gauge fatigue deformation, etc. If measurements are taken over long periods of time without calibration, the weight deviation of the output can reach a considerable degree. In the prior art, temperature sensors such as thermistors are mainly adopted to compensate measured values.
The inventor finds that the prior art at least has the following technical problems in the process of implementing the invention:
the existing temperature sensor compensation method only considers the temperature factor, but does not consider the influence of other factors on the measured value, particularly the long-term drift caused by the fatigue deformation of the strain gauge, so that the accuracy of the measured result obtained by the temperature sensor compensation method is not high. In addition, the additional compensation sensor is used, so that the difficulty of the manufacturing process is increased, and the hardware cost is increased.
Disclosure of Invention
Accordingly, there is a need for a weight measuring method, device, apparatus and computer readable storage medium, which can improve the accuracy of weight measurement and reduce the hardware cost.
In one aspect, the present invention provides a method of weight measurement, comprising:
detecting a weight signal output by the weighing sensor according to a preset detection period;
determining a weight change value and a weight change direction in response to detecting that a weight signal output by the weighing sensor changes;
judging whether the weight change value is larger than a preset weight threshold value or not;
when the weight change value is judged to be larger than the weight threshold value, calculating the current weight measurement value according to the weight change value, the weight change direction and the last weight measurement value;
and when the weight change value is judged to be less than or equal to the weight threshold value, determining the last weight measurement value as the current weight measurement value.
In an optional implementation manner, the determining whether the weight change value is greater than a preset weight threshold includes:
determining a weight change value with the smallest absolute value of the difference between the weight change value corresponding to the weight signal change of the previous N times and the weight change value of the current time as a closest weight change value;
updating the current weight change value to the closest weight change value;
judging whether the updated weight change value is larger than a preset weight threshold value or not;
then, when it is determined that the weight change value is greater than the weight threshold, calculating the current weight measurement value according to the weight change value, the weight change direction, and the previous weight measurement value, including:
when the updated weight change value is judged to be larger than the weight threshold value, calculating the current weight measurement value according to the updated weight change value, the weight change direction and the last weight measurement value;
when it is determined that the weight change value is less than or equal to the weight threshold, determining the last weight measurement value as the current weight measurement value includes:
and when the updated weight change value is judged to be less than or equal to the weight threshold value, determining the last weight measurement value as the current weight measurement value.
In an optional embodiment, the method further comprises:
and responding to the detected power failure signal output by the power failure detection circuit, and storing the weight measured value calculated last time.
In an optional embodiment, the method further comprises:
detecting a weight signal output by the weighing sensor after power failure starting, and determining absolute weight;
determining whether to update the stored weight measurement to the absolute weight based on a difference between the measured absolute weight and a weight measurement stored in response to the power down signal.
In an optional embodiment, the detection period is in a range of 0.1 to 1 second.
In an alternative embodiment, the weight threshold is between 0.1% and 1% of the maximum range of the load cell.
In yet another aspect, the present invention also provides a weight measuring device, comprising:
the detection module is used for detecting a weight signal output by the weighing sensor according to a preset detection period;
the weight change determining module is used for determining a weight change value and a weight change direction in response to the fact that the weight signal output by the weighing sensor is changed;
the threshold value judging module is used for judging whether the weight change value is larger than a preset weight threshold value or not;
the first judging module is used for calculating the current weight measurement value according to the weight change value, the weight change direction and the last weight measurement value when the weight change value is judged to be larger than the weight threshold value;
and the second determination module is used for determining the last weight measurement value as the current weight measurement value when the weight change value is determined to be less than or equal to the weight threshold value.
In an optional implementation manner, the threshold determination module includes:
a difference value comparing unit configured to determine a weight change value having a smallest absolute value of a difference value between the weight change value and the current weight change value among the weight change values corresponding to the previously stored weight signal change for the previous N times as a closest weight change value;
an updating unit configured to update the current weight change value to the closest weight change value;
the judging unit is used for judging whether the updated weight change value is larger than a preset weight threshold value or not;
the first determination module comprises:
a calculating unit, configured to calculate a current weight measurement value according to the updated weight change value, the weight change direction, and a previous weight measurement value when it is determined that the updated weight change value is greater than the weight threshold value;
the second determination module includes:
and the determining unit is used for determining the last weight measurement value as the current weight measurement value when the updated weight change value is judged to be less than or equal to the weight threshold value.
In yet another aspect, the present invention also provides a weight measuring apparatus, comprising: a load cell, a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, when executing the computer program, implementing a weight measurement method as in any of the embodiments described above.
In yet another aspect, the present invention further provides a computer-readable storage medium, which is characterized by comprising a stored computer program, and the computer program controls a device coupled to the computer-readable storage medium to implement the weight measurement method according to any of the above embodiments.
Compared with the prior art, the invention has the following outstanding beneficial effects: compared with the method for directly reading absolute weight, the method for measuring the weight, the device, the equipment and the computer readable storage medium provided by the invention have the advantages that the change of the weight signal is detected according to the detection period, so that the drift of slow change is conveniently preliminarily filtered by setting the length of the detection period; the weight change value of the weighing sensor and the preset weight threshold are judged to judge whether the weight change is the loading or unloading action of the measured object or the weight drift generated by the influence of external factors on the system. When the weight change value is judged to be larger than the weight threshold value, the weight change is considered to be caused by the loading or unloading action of the measured object, and the current weight measurement value is calculated according to the weight change value, the weight change direction and the last weight measurement value. When the weight change value is determined to be less than or equal to the weight threshold, the weight change is deemed to be caused by weight drift, and the last weight measurement is maintained, thereby enabling further filtering of weight drift. By adopting the technical scheme provided by the invention, the drift caused by the weighing result due to environmental factors, fatigue deformation and other factors can be filtered, and the accuracy of weight measurement is effectively improved; in addition, because an additional temperature sensor is not needed, the invention can realize the filtration of the weight drift under the condition of not changing hardware, thereby saving the cost and the upgrading cost of the hardware.
Drawings
FIG. 1 is a schematic view of a weight measuring device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method of weight measurement in one embodiment of the present invention;
fig. 3 is a schematic structural view of a weight measuring apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Please refer to fig. 1, which is a schematic structural diagram of a weight measuring device according to an embodiment of the present invention. The weight measuring device 1 provided by the present embodiment includes a detecting module 10, a weight change determining module 20, a threshold value determining module 30, a first determining module 40, and a second determining module 50.
The detection module 10 is configured to detect a weight signal output by the load cell according to a preset detection period. The weight change determination module 20 is configured to determine a weight change value and a weight change direction in response to detecting a change in the weight signal output by the load cell. The threshold value judging module 30 is configured to judge whether the weight change value is greater than a preset weight threshold value; the first determination module 40 is configured to calculate the current weight measurement value according to the weight change value, the weight change direction, and the last weight measurement value when it is determined that the weight change value is greater than the weight threshold value; the second determination module 50 is configured to determine the last weight measurement value as the present weight measurement value when it is determined that the weight change value is less than or equal to the weight threshold value.
In this embodiment, the load cell is a strain gauge load cell that detects weight by a strain gauge, and when weight is pressed against it, a certain bending occurs, which in turn causes a change in voltage to measure the weight. In other embodiments, other types of load cells, such as photoelectric, hydraulic, electromagnetic, capacitive, pole-deformation, vibratory, gyroscopic, and resistance-strain cells, may also be used.
Note that the direction of weight change includes weight increase and weight decrease. The weight change value, which may also be referred to as differential weight, is the relative weight difference. The drift of the weight change value is smaller with respect to the absolute weight. The detection period is an empirical value, and the longer the detection period is, the larger the error of the measurement result is; the shorter the detection period, the better the filtering of noise and the higher the processor requirements.
Further, the detection period ranges from 0.1 to 1 second. Preferably, the detection period is 0.2 seconds. The inventor observes through a large number of experiments that the weight measured before and after 0.2 second is considered to be unchanged compared with the slow weight drift, so that in practical application, the error of the weight change value of unloading and loading of the articles detected according to the detection period of 0.1-1 second, particularly the detection period of 0.2 second is very small, and the accuracy of weight measurement is favorably improved.
In order to realize a detection period of 0.2 second, the sampling rate of the embodiment is 40Hz, the storage depth is 8 sampling points, and the data noise can be further reduced by acquiring 8 sampling points each time to perform average filtering. It should be noted that the above sampling rate and storage depth are only exemplary, and the present invention is not limited thereto.
The preset weight threshold is an empirical value. Further, the weight threshold is 0.1% -1% of the maximum measuring range of the weighing sensor. Preferably, the weight threshold is 1% of the maximum range of the load cell. If the maximum measuring range of the weighing sensor is 5 kg, the weight threshold value is 5-50 g. Assuming that the weight threshold is 20 g, if the weight change value is 30 g and the weight change direction is weight increase, and the weight change value is greater than the weight threshold, the current weight measurement value is equal to the sum of the weight change value and the last weight measurement value.
For example, assuming the last measurement is the unloading of the last item, and the last weight measurement is 0 g, the weight measurement of this time is (30+0) g. Assuming that the last measurement is the loading condition of the articles, if the last weight measurement is 100 g, the weight measurement of this time is (30+100) g.
Compared with the method for directly reading the absolute weight, the method for detecting the weight signal change based on the detection period is convenient for preliminarily filtering the slowly changing drift by setting the length of the detection period; the weight change value of the weighing sensor and the preset weight threshold are judged to judge whether the weight change is the loading or unloading action of the measured object or the weight drift generated by the influence of external factors on the system. When the weight change value is judged to be larger than the weight threshold value, the weight change is considered to be caused by the loading or unloading action of the measured object, and the current weight measurement value is calculated according to the weight change value, the weight change direction and the last weight measurement value. When the weight change value is determined to be less than or equal to the weight threshold, the weight change is deemed to be caused by weight drift, and the last weight measurement is maintained, thereby enabling further filtering of weight drift.
In the embodiment, the drift caused by the weighing result is filtered by factors such as environmental factors and fatigue deformation, so that the accuracy of weight measurement is effectively improved; in addition, because an additional temperature sensor is not needed, the embodiment can realize the filtration of the weight drift under the condition of not changing hardware, thereby saving the manufacturing cost and the upgrading cost of the hardware.
Since the weight variation value measured each time has a certain error (less than 5g), when the articles are taken up and put down, the accumulation of errors still causes a large deviation of the weight measurement value, especially when the weight variation values of the loading and unloading are inconsistent, and even causes the system to drift by tens of grams after the articles are taken up and put down for dozens of times. In this regard, the present embodiment further defines that the threshold value determining module 30 includes a difference comparing unit 301, an updating unit 302 and a determining unit 303.
The difference comparing unit 301 is configured to determine, as a closest weight change value, a weight change value with a smallest absolute value of a difference between the weight change value corresponding to the previous N times of weight signal changes and the current weight change value, which is stored in advance. The updating unit 302 is configured to update the current weight change value to the closest weight change value. The judging unit 303 is configured to judge whether the updated weight change value is greater than a preset weight threshold.
The first determination module 40 includes a calculation unit 401 for calculating the current weight measurement value according to the updated weight change value, the weight change direction, and the last weight measurement value when it is determined that the updated weight change value is greater than the weight threshold value;
the second determination module 50 includes a determination unit 501 configured to determine the last weight measurement value as the present weight measurement value when it is determined that the updated weight change value is less than or equal to the weight threshold value.
N is a natural number greater than 1. In the present embodiment, N is equal to 10. The weight change value of this time is 30 g, and the weight change values of the previous 10 times are respectively as follows: 24 g, 33 g, 34 g, 39 g, 31 g, 26 g, 28 g, 40 g, 42 g, 18 g, wherein the weight change value with the smallest absolute value of the difference value from 30 g is 31 g, 31 g is determined as the closest weight change value, and the current weight change value is updated to 31 g. In other embodiments, N may be set according to the actual circumstances, such as the type and number of the articles.
The weight change value closest to the current weight change value is taken out from the previous weight change values for N times to update the current weight change value, and the weight change value with smaller drift is preferentially used, so that the influence caused by inconsistent weight change values of loading and unloading of articles is favorably eliminated.
Further, the weight detecting apparatus further includes a power-down saving module 60, which is configured to save the weight measurement value calculated last time in response to detecting a power-down signal output by the power-down detecting circuit.
The weight measurement value calculated at the last time is stored before power failure, the weighing work of the batch of articles is facilitated, particularly the counting of warehouse commodities is facilitated, if the articles on the weighing equipment are not changed after the power failure restart, the weight measurement value before the power failure can be continuously used for weighing, the labor is effectively saved, and the efficiency is improved.
Further, the weight detecting apparatus further includes an absolute weight determining module 70 and an update determining module 80.
The absolute weight determining module 70 is configured to detect a weight signal output by the load cell after power-down start, and determine an absolute weight. Update determination module 80 is configured to determine whether to update the stored weight measurement to an absolute weight based on a difference Q between the measured absolute weight and the weight measurement stored in response to the power down signal.
Wherein the absolute weight is an absolute total weight detected by the load cell. After the power failure is started, whether the stored weight measured value is updated or not is determined according to the difference value of the stored weight measured value and the actually measured absolute weight, and the influence caused by the change of the articles after the power failure can be avoided to a certain extent.
Further, the update determination module 80 includes a difference value judgment unit 801, a holding unit 802, and an update unit 803. The difference value determining unit 801 is configured to determine whether the difference value Q is smaller than a preset difference value threshold. The holding unit 802 is configured to hold the saved weight measurement value when it is determined that the difference Q is smaller than a preset difference threshold. The updating unit 803 is configured to update the saved weight measurement value to the absolute weight when it is determined that the difference Q is greater than or equal to the difference threshold.
If the difference Q is greater than or equal to the difference threshold, the article is considered to have changed, and the stored weight measurement is updated by the absolute weight; if the difference Q is less than the difference threshold, then the item is deemed to have not changed, the difference being caused by weight drift, thereby further improving the accuracy of the weight measurement by maintaining the stored weight measurement to filter weight drift.
Please refer to fig. 2, which is a flowchart illustrating a weight measuring method according to an embodiment of the present invention. The weight measurement method is performed by a weight measurement device 1, which includes:
s100, detecting a weight signal output by a weighing sensor according to a preset detection period;
step S110, responding to the detected change of the weight signal output by the weighing sensor, and determining a weight change value and a weight change direction;
step S120, judging whether the weight change value is larger than a preset weight threshold value;
step S130, when the weight change value is judged to be larger than the weight threshold value, calculating the weight measurement value of the current time according to the weight change value, the weight change direction and the weight measurement value of the last time;
and step S140, when the weight change value is judged to be less than or equal to the weight threshold value, determining the last weight measurement value as the current weight measurement value.
In the embodiment, the drift caused by the weighing result is filtered by factors such as environmental factors and fatigue deformation, so that the accuracy of weight measurement is effectively improved; in addition, because an additional temperature sensor is not needed, the embodiment can realize the filtration of the weight drift under the condition of not changing hardware, thereby saving the manufacturing cost and the upgrading cost of the hardware.
Further, step S120 includes:
step S1201, determining the weight change value with the smallest absolute value of the difference value between the weight change value corresponding to the weight signal change for the previous N times and the weight change value for the current time, which is stored in advance, as the closest weight change value;
step S1202, updating the current weight change value to the closest weight change value;
step S1203, judging whether the updated weight change value is larger than a preset weight threshold value;
step S130 includes:
step S1301, when it is determined that the updated weight change value is greater than the weight threshold, calculating the current weight measurement value according to the updated weight change value, the weight change direction, and the last weight measurement value;
the step S140 includes:
and step S1401, when it is determined that the updated weight change value is less than or equal to the weight threshold, determining the last weight measurement value as the current weight measurement value.
Optionally, the weight detecting method further includes:
and S150, responding to the detected power failure signal output by the power failure detection circuit, and storing the weight measured value calculated last time.
Further, the weight detection method further comprises the following steps:
step S160, detecting a weight signal output by the weighing sensor after power failure starting so as to determine the actually measured absolute weight;
step S170, determining whether to update the stored weight measurement value to the measured absolute weight according to a difference between the measured absolute weight and a weight measurement value stored in response to the power-down signal.
Further, the detection period ranges from 0.1 to 1 second. Preferably, the detection period is 0.2 seconds. The inventor observes through a large number of experiments that the weight measured before and after 0.2 second is considered to be unchanged compared with the slow weight drift, so that in practical application, the error of the weight change value of unloading and loading of the articles detected according to the detection period of 0.1-1 second, particularly the detection period of 0.2 second is very small, and the accuracy of weight measurement is favorably improved.
In order to realize a detection period of 0.2 second, the sampling rate of the embodiment is 40Hz, the storage depth is 8 sampling points, and the data noise can be further reduced by acquiring 8 sampling points each time to perform average filtering. It should be noted that the above sampling rate and storage depth are only exemplary, and the present invention is not limited thereto.
The preset weight threshold is an empirical value. Further, the weight threshold is 0.1% -1% of the maximum measuring range of the weighing sensor. Preferably, the weight threshold is 1% of the maximum range of the load cell. If the maximum measuring range of the weighing sensor is 5 kg, the weight threshold value is 5-50 g. Assuming that the weight threshold is 20 g, if the weight change value is 30 g and the weight change direction is weight increase, and the weight change value is greater than the weight threshold, the current weight measurement value is equal to the sum of the weight change value and the last weight measurement value.
The present invention correspondingly provides a preferred embodiment of a weight measuring device, please refer to fig. 3, which is a schematic structural diagram of a weight measuring device according to an embodiment of the present invention. The weight measuring device comprises a processor 301, a load cell 302, a memory 303 and a computer program 304 stored in the memory and configured to be executed by the processor, the processor 301 implementing the weight measuring method according to any of the embodiments as described above when executing the computer program 304. Alternatively, the processor 301 executes the computer program 304 to realize the functions of the modules in the embodiments of the system, such as the detection module 10, the weight change determination module 20, the threshold determination module 30, the first determination module 40, and the second determination module 50.
Illustratively, the computer program may be partitioned into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing certain functions that are used to describe the execution of the computer program in the weight measuring device. For example, the computer program may be divided into a detection module 10 for detecting the weight signal output by the load cell according to a preset detection period. And the weight change determining module 20 is used for responding to the detected change of the weight signal output by the weighing sensor and determining a weight change value and a weight change direction. A threshold value judging module 30, configured to judge whether the weight change value is greater than a preset weight threshold value; a first determining module 40, configured to calculate a current weight measurement value according to the weight change value, the weight change direction, and a last weight measurement value when it is determined that the weight change value is greater than the weight threshold value; and a second determining module 50, configured to determine the last weight measurement value as the current weight measurement value when it is determined that the weight variation value is smaller than or equal to the weight threshold value.
The weight measuring device may be an electronic scale, a digital weighing cell, or the like for weight measurement. Those skilled in the art will appreciate that the schematic diagram is merely an example of a weight measuring device and does not constitute a limitation of a weight measuring device and may include more or fewer components than shown, or some components in combination, or different components, for example, in some embodiments, the weight measuring device may also include power down protection circuitry, input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that is the control center for the weight measuring device and connects the various parts of the overall weight measuring device using various interfaces and wires.
The memory may be used to store the computer programs and/or modules, and the processor may implement the various functions of the weight measuring device by running or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein the weight measuring apparatus integrated module, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer-readable storage medium. Based on such understanding, all or part of the flow in the method according to the above embodiment may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer-readable storage medium, and when the computer program runs, the apparatus in which the computer-readable storage medium is located is controlled to implement the weight measurement method according to any of the above embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A method of weight measurement, comprising:
detecting a weight signal output by the weighing sensor according to a preset detection period;
determining a weight change value and a weight change direction in response to detecting that a weight signal output by the weighing sensor changes;
judging whether the weight change value is larger than a preset weight threshold value or not;
when the weight change value is judged to be larger than the weight threshold value, calculating the current weight measurement value according to the weight change value, the weight change direction and the last weight measurement value;
when the weight change value is judged to be less than or equal to the weight threshold value, determining the last weight measurement value as the current weight measurement value;
the judging whether the weight change value is greater than a preset weight threshold value includes:
determining a weight change value with the smallest absolute value of the difference between the weight change value corresponding to the weight signal change of the previous N times and the weight change value of the current time as a closest weight change value;
updating the current weight change value to the closest weight change value;
judging whether the updated weight change value is larger than a preset weight threshold value or not;
then, when it is determined that the weight change value is greater than the weight threshold, calculating the current weight measurement value according to the weight change value, the weight change direction, and the previous weight measurement value, including:
when the updated weight change value is judged to be larger than the weight threshold value, calculating the current weight measurement value according to the updated weight change value, the weight change direction and the last weight measurement value;
when it is determined that the weight change value is less than or equal to the weight threshold, determining the last weight measurement value as the current weight measurement value includes:
and when the updated weight change value is judged to be less than or equal to the weight threshold value, determining the last weight measurement value as the current weight measurement value.
2. The weight measurement method according to claim 1, further comprising:
and responding to the detected power failure signal output by the power failure detection circuit, and storing the weight measured value calculated last time.
3. The weight measurement method according to claim 2, further comprising:
detecting a weight signal output by the weighing sensor after power failure starting, and determining absolute weight;
determining whether to update the stored weight measurement to the absolute weight based on a difference between the measured absolute weight and a weight measurement stored in response to the power down signal.
4. The weight measuring method according to claim 1, wherein the detection period is in a range of 0.1 to 1 second.
5. The weight measurement method of claim 1, wherein the weight threshold is 0.1% to 1% of the maximum range of the load cell.
6. A weight measuring device, comprising:
the detection module is used for detecting a weight signal output by the weighing sensor according to a preset detection period;
the weight change determining module is used for determining a weight change value and a weight change direction in response to the fact that the weight signal output by the weighing sensor is changed;
the threshold value judging module is used for judging whether the weight change value is larger than a preset weight threshold value or not;
the first judging module is used for calculating the current weight measurement value according to the weight change value, the weight change direction and the last weight measurement value when the weight change value is judged to be larger than the weight threshold value;
a second determination module configured to determine, when it is determined that the weight change value is less than or equal to the weight threshold, a last weight measurement value as a present weight measurement value;
the threshold judging module comprises:
a difference value comparing unit configured to determine a weight change value having a smallest absolute value of a difference value between the weight change value and the current weight change value among the weight change values corresponding to the previously stored weight signal change for the previous N times as a closest weight change value;
an updating unit configured to update the current weight change value to the closest weight change value;
the judging unit is used for judging whether the updated weight change value is larger than a preset weight threshold value or not;
the first determination module comprises:
a calculating unit, configured to calculate a current weight measurement value according to the updated weight change value, the weight change direction, and a previous weight measurement value when it is determined that the updated weight change value is greater than the weight threshold value;
the second determination module includes:
and the determining unit is used for determining the last weight measurement value as the current weight measurement value when the updated weight change value is judged to be less than or equal to the weight threshold value.
7. A weight measurement device, comprising: load cell, processor, memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the weight measurement method according to any of claims 1-5 when executing the computer program.
8. A computer-readable storage medium comprising a stored computer program that when executed controls a device to which the computer-readable storage medium is coupled to implement the weight measurement method of any of claims 1-5.
CN201811567324.8A 2018-12-20 2018-12-20 Weight measurement method, device, equipment and computer readable storage medium Active CN109556687B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811567324.8A CN109556687B (en) 2018-12-20 2018-12-20 Weight measurement method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811567324.8A CN109556687B (en) 2018-12-20 2018-12-20 Weight measurement method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109556687A CN109556687A (en) 2019-04-02
CN109556687B true CN109556687B (en) 2021-07-23

Family

ID=65870754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811567324.8A Active CN109556687B (en) 2018-12-20 2018-12-20 Weight measurement method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109556687B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110031077A (en) * 2019-05-14 2019-07-19 深圳市绿春翔农业科技有限公司 It is a kind of intelligently to cross title method and its system
CN110440893A (en) * 2019-08-07 2019-11-12 中山乐心电子有限公司 Weight-calibration method, apparatus and weighing-appliance
CN111109947A (en) * 2019-11-28 2020-05-08 上海追月科技有限公司 Goods shelf, goods identification method and electronic equipment
CN111780846B (en) * 2020-07-06 2021-11-26 Oppo(重庆)智能科技有限公司 Object weighing method, mobile terminal and computer readable storage medium
CN113093632A (en) * 2021-05-06 2021-07-09 无锡灵鸽机械科技股份有限公司 Novel weightless balance control system
CN113701859B (en) * 2021-08-26 2023-12-12 深圳诺博医疗科技有限公司 Weighing counting method, device, system, computer equipment and readable storage medium
CN113654722A (en) * 2021-09-15 2021-11-16 深圳诺博医疗科技有限公司 Batch calibration method and system of pressure sensors and weighing cabinet

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105527009B (en) * 2014-09-29 2019-02-26 徐工集团工程机械股份有限公司 A kind of weighing system and its method with self-calibration function
CN107560706A (en) * 2017-07-13 2018-01-09 铜陵凯特尔科技有限责任公司 A kind of intelligent weighing method based on environmental factor calibration
CN108225516A (en) * 2017-12-29 2018-06-29 北京三快在线科技有限公司 Article weighing method, device and electronic equipment
CN108489589A (en) * 2018-03-15 2018-09-04 天津光电丰泰科技有限公司 A kind of drift correction method based on weighing sensor
CN108801407A (en) * 2018-08-02 2018-11-13 梅特勒-托利多(常州)测量技术有限公司 Weighing device, weighing method, weighing sensor and storage medium

Also Published As

Publication number Publication date
CN109556687A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN109556687B (en) Weight measurement method, device, equipment and computer readable storage medium
CN109060899B (en) Method, device and equipment for compensating measurement result of electrochemical sensor
US20170052074A1 (en) Pressure detecting apparatus, method of controlling the pressure detecting apparatus, and program
CN111452713B (en) Goods weighing method, device, equipment and storage medium
CN111797293A (en) Data adjusting method and device, terminal equipment and storage medium
EP3812715A2 (en) Method for adjusting parameters of a device having a weighing sensor
CN111238624A (en) Object weight measuring method, weighing device and readable storage medium
CN113126815B (en) Key response control method and device, terminal equipment and storage medium
WO2022120563A1 (en) Temperature prediction method and apparatus, and storage medium
US20180274942A1 (en) Method and apparatus for detecting background noise of sensor
CN105466460A (en) Circuit temperature drift compensation system and method of biosensor
US11866145B2 (en) Device and method for self-correcting a sensed physical parameter, drone or unmanned aerial vehicle
CN113570168B (en) Material level correction method and device and electronic equipment
CN107990929B (en) Method and device for controlling filter time constant, computer device and storage medium
CN112082633A (en) Weight measuring method for stabilizing weight value under human body shaking condition
CN114624780A (en) Steering wheel hands-off detection method, device and medium
CN115062273B (en) Photoelectric sensor precision control method and system for industrial internet
JP2021135513A (en) Information processor, information processing method, and program
US20220276079A1 (en) Method for diagnosing a sensor system in a part-specific manner
KR20230002981A (en) Method of process control and monitoring in dynamic plasma conditions by plasma spectrum
TW201702967A (en) Electricity plan assistance system, electricity plan assistance device, electricity plan assistance method, and electricity plan assistance program
US8243037B2 (en) System and a method for processing a signal from an electric device
CN112465668B (en) Setting method and device for positive pressure pneumatic ash conveying time and terminal equipment
CN103196528A (en) Electronic hoist scale period compensation type weighing method
US11988545B2 (en) Method for proposing installation environment and metering device therefor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant