CN112082633A - Weight measuring method for stabilizing weight value under human body shaking condition - Google Patents
Weight measuring method for stabilizing weight value under human body shaking condition Download PDFInfo
- Publication number
- CN112082633A CN112082633A CN202010956242.3A CN202010956242A CN112082633A CN 112082633 A CN112082633 A CN 112082633A CN 202010956242 A CN202010956242 A CN 202010956242A CN 112082633 A CN112082633 A CN 112082633A
- Authority
- CN
- China
- Prior art keywords
- weight
- shaking
- cache region
- weight values
- values
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01G—WEIGHING
- G01G19/00—Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
- G01G19/44—Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups for weighing persons
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01G—WEIGHING
- G01G23/00—Auxiliary devices for weighing apparatus
- G01G23/18—Indicating devices, e.g. for remote indication; Recording devices; Scales, e.g. graduated
- G01G23/36—Indicating the weight by electrical means, e.g. using photoelectric cells
- G01G23/365—Indicating the weight by electrical means, e.g. using photoelectric cells involving comparison with a reference value
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)
Abstract
The invention provides a weight measuring method for stabilizing weight values under the condition of human body shaking, which comprises the steps of S1, collecting multiple weight values within a certain time range; s2, pre-storing the obtained weight values in a stable cache region and a shaking cache region after filtering, wherein the weight value number stored in the stable cache region is less than the weight value number stored in the shaking cache region; s3, calculating the difference degree of the plurality of weight values and judging whether the plurality of weight values are in accordance with the weight values in a reasonable range or not based on the difference degree; if yes, go to S4; if not, executing S5; s4, acquiring the weight value of the stable buffer area, and then executing S7; s5, judging whether the number of the weight values of the shaking buffer area meets the requirement; if yes, go to S7; if not, returning to execute S1; s6, acquiring the weight value of the shaking buffer area, and then executing S7; and S7, averaging the acquired weight data and outputting the weight data.
Description
Technical Field
The invention relates to a weight measuring method for stabilizing a weight value under the condition of human body shaking.
Background
In the existing weighing machine, the sensitivity of most sensors is relatively high, when the weighing machine is used, the output signal of the sensor is changed by slight shaking of a human body or other external factors (such as the stability of power supply voltage and the strength of an electromagnetic field), and finally, the displayed weight value reading fluctuates.
Although there are some weighing machines, there is also a function of preventing reading shaking, it is usually implemented by filtering the AD values, however, to obtain a stable weight value, it is necessary to process a plurality of AD values to obtain a filtered value and then calculate the weight, this way has a great relationship with the time and degree of human shaking, the longer the time or the larger the shaking degree, the more the AD values needed to obtain a filtered value, the larger the hysteresis of the software, without real-time, the higher the requirement for the ADC sampling rate of the chip.
Disclosure of Invention
In order to solve the technical problems in the prior art, the invention provides a weight measuring method for stabilizing a weight value under the condition of human body shaking, which comprises the following steps:
s1, collecting multiple weight values within a certain time range;
s2, pre-storing the obtained weight values in a stable cache region and a shaking cache region after filtering, wherein the weight value number stored in the stable cache region is less than the weight value number stored in the shaking cache region;
s3, calculating the difference degree of the plurality of weight values and judging whether the plurality of weight values are in accordance with the weight values in a reasonable range or not based on the difference degree; if yes, go to S4; if not, executing S5;
s4, acquiring the weight value of the stable buffer area, and then executing S7;
s5, judging whether the number of the weight values of the shaking buffer area meets the requirement; if yes, go to S7; if not, returning to execute S1;
s6, acquiring the weight value of the shaking buffer area, and then executing S7;
and S7, averaging the acquired weight data and outputting the weight data.
Further, a difference degree range is set according to the required precision, then the weight values of the stable cache area are subtracted from each other, and if all the obtained absolute values fall into the difference degree range, the weight values are the weight values in the reasonable range.
Has the advantages that:
according to the invention, the dependence on hardware is reduced from the software level by combining the relevant characteristics of the body weight scale, the real-time performance and the accuracy are higher, the implementation mode is simpler, and the cost is low.
Drawings
FIG. 1 is a flow chart of the method 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.
Referring to fig. 1, a weight measuring method for stabilizing a weight value under a human body shaking condition includes the following steps:
s1, collecting multiple weight values within a certain time range;
s2, pre-storing the obtained weight values in a stable cache region and a shaking cache region after filtering, wherein the weight value number stored in the stable cache region is less than the weight value number stored in the shaking cache region;
s3, calculating the difference degree of the plurality of weight values and judging whether the plurality of weight values are in accordance with the weight values in a reasonable range or not based on the difference degree; if yes, go to S4; if not, executing S5; in the step, a difference degree range is set according to the required precision, for example, the difference degree range is 0-0.1; and then, subtracting the weight values of the stable cache region from each other, wherein if all the obtained absolute values fall into the difference degree range, the obtained absolute values are the weight values in a reasonable range.
S4, acquiring the weight value of the stable buffer area, and then executing S7;
s5, judging whether the number of the weight values of the shaking buffer area meets the requirement; if yes, go to S7; if not, returning to execute S1; in this step, the average value of the data stored in the shake buffer is calculated, and the average value is output as the weight value, so that the number of the data in the shake buffer needs to be judged, and if the data are too small, the output weight value is not representative, so that the number of the weight values in the shake buffer needs to be judged first, so that the obtained average value can represent the weight value of the human body;
s6, acquiring the weight value of the shaking buffer area, and then executing S7;
and S7, averaging the acquired weight data and outputting the weight data.
According to the method and the device, stability judgment operation is carried out on the data acquired by the stable cache region, if the stability judgment condition is not met, an averaging algorithm is carried out according to the data of the shaking cache region, if the stability judgment condition is met, the averaging algorithm is carried out on the data of the stable cache region (the data quantity of the stable cache region is less than that of the shaking cache region), pre-stored data are acquired through a filtering algorithm, and the accuracy of the final weight is further guaranteed. The more data is obtained by the shaking cache area, the error of the final weight value is correspondingly reduced.
According to the invention, the dependence on hardware is reduced from the software level by combining the relevant characteristics of the body weight scale, the real-time performance and the accuracy are higher, the implementation mode is simpler, and the cost is low.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (2)
1. A weight measuring method for stabilizing a weight value under the condition of human body shaking comprises the following steps:
s1, collecting multiple weight values within a certain time range;
s2, pre-storing the obtained weight values in a stable cache region and a shaking cache region after filtering, wherein the weight value number stored in the stable cache region is less than the weight value number stored in the shaking cache region;
s3, calculating the difference degree of the plurality of weight values and judging whether the plurality of weight values are in accordance with the weight values in a reasonable range or not based on the difference degree; if yes, go to S4; if not, executing S5;
s4, acquiring the weight value of the stable buffer area, and then executing S7;
s5, judging whether the number of the weight values of the shaking buffer area meets the requirement; if yes, go to S7; if not, returning to execute S1;
s6, acquiring the weight value of the shaking buffer area, and then executing S7;
and S7, averaging the acquired weight data and outputting the weight data.
2. A method of weighing according to claim 1, wherein: and setting a difference degree range according to the required precision, and then carrying out subtraction on the weight values of the stable cache region in pairs to obtain an absolute value, wherein the absolute value is the weight value in a reasonable range if all the absolute values fall into the difference degree range.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010956242.3A CN112082633A (en) | 2020-09-11 | 2020-09-11 | Weight measuring method for stabilizing weight value under human body shaking condition |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010956242.3A CN112082633A (en) | 2020-09-11 | 2020-09-11 | Weight measuring method for stabilizing weight value under human body shaking condition |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112082633A true CN112082633A (en) | 2020-12-15 |
Family
ID=73737611
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010956242.3A Pending CN112082633A (en) | 2020-09-11 | 2020-09-11 | Weight measuring method for stabilizing weight value under human body shaking condition |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112082633A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112924007A (en) * | 2021-01-19 | 2021-06-08 | 重庆火后草科技有限公司 | Weight measurement method based on target sleep |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0016841A1 (en) * | 1978-07-10 | 1980-10-15 | Shimadzu Corporation | Electronic balance |
US4379495A (en) * | 1981-04-27 | 1983-04-12 | Hobart Corporation | Weighing scale with low susceptibility to vibration |
CN86100260A (en) * | 1985-03-18 | 1986-12-17 | 株式会社岛津制作所 | Electronic balance |
CN101105411A (en) * | 2007-08-10 | 2008-01-16 | 中国航天科技集团公司第四研究院第四十四研究所 | Adaptive Filtering Method for Vehicle Dynamic Axle Balance Weighing Signal |
CN101501462A (en) * | 2007-07-30 | 2009-08-05 | 株式会社岛津制作所 | Electronic balance |
CN102175296A (en) * | 2011-02-24 | 2011-09-07 | 山东大学 | Fast two-stage filter algorithm applied to high precision digital weighing sensor |
-
2020
- 2020-09-11 CN CN202010956242.3A patent/CN112082633A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0016841A1 (en) * | 1978-07-10 | 1980-10-15 | Shimadzu Corporation | Electronic balance |
US4379495A (en) * | 1981-04-27 | 1983-04-12 | Hobart Corporation | Weighing scale with low susceptibility to vibration |
CN86100260A (en) * | 1985-03-18 | 1986-12-17 | 株式会社岛津制作所 | Electronic balance |
CN101501462A (en) * | 2007-07-30 | 2009-08-05 | 株式会社岛津制作所 | Electronic balance |
CN101105411A (en) * | 2007-08-10 | 2008-01-16 | 中国航天科技集团公司第四研究院第四十四研究所 | Adaptive Filtering Method for Vehicle Dynamic Axle Balance Weighing Signal |
CN102175296A (en) * | 2011-02-24 | 2011-09-07 | 山东大学 | Fast two-stage filter algorithm applied to high precision digital weighing sensor |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112924007A (en) * | 2021-01-19 | 2021-06-08 | 重庆火后草科技有限公司 | Weight measurement method based on target sleep |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109556687B (en) | Weight measurement method, device, equipment and computer readable storage medium | |
CN109141594B (en) | Medicine metering method of intelligent medicine cabinet, intelligent medicine cabinet and storage medium | |
CN115932586A (en) | Method, device, equipment and medium for estimating state of charge of battery on line | |
CN117421610A (en) | Data anomaly analysis method for electric energy meter running state early warning | |
WO2021018160A1 (en) | Hysteresis compensation method for a weighing device | |
WO2020024872A1 (en) | Weighing-based goods quantity calculation method | |
CN111238624A (en) | Object weight measuring method, weighing device and readable storage medium | |
CN113701859A (en) | Weighing counting method, device, system, computer equipment and readable storage medium | |
CN111256802A (en) | Calibration method of weighing device and weighing device | |
CN110440893A (en) | Weight calibration method, device and weighing equipment | |
US10982971B2 (en) | Method and apparatus for detecting background noise of sensor | |
CN112082633A (en) | Weight measuring method for stabilizing weight value under human body shaking condition | |
KR102006029B1 (en) | Method and Apparatus for calculation azimuth | |
CN114343629A (en) | Method and related device for automatic tracking and correction of sensor signal drift | |
CN111879389B (en) | Weighing method, medium and apparatus | |
CN112731815A (en) | Method for improving analog quantity acquisition precision | |
CN117554679B (en) | Current monitoring method and device, electronic equipment and medium | |
CN115060306B (en) | Analog quantity calibration method and device and analog quantity acquisition equipment | |
CN102932686B (en) | Method for processing sensor data in remote controller | |
CN110186560B (en) | Ultraviolet numerical value correction method and system | |
KR101229571B1 (en) | Sensor callibration system and method | |
CN115395957A (en) | AD communication method, storage medium and device | |
US10024709B2 (en) | Method and system to quickly determine a weight | |
CN115683304A (en) | Weighing method, device and system and working machine | |
US20210263066A1 (en) | Method for offset calibration of a yaw rate sensor signal of a yaw rate sensor, system and computer program |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201215 |
|
RJ01 | Rejection of invention patent application after publication |