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 PDF

Info

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
Application number
CN202010956242.3A
Other languages
Chinese (zh)
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.)
Shenzhen Sonka Electronic Medical Co ltd
Original Assignee
Shenzhen Sonka Electronic Medical 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 Shenzhen Sonka Electronic Medical Co ltd filed Critical Shenzhen Sonka Electronic Medical Co ltd
Priority to CN202010956242.3A priority Critical patent/CN112082633A/en
Publication of CN112082633A publication Critical patent/CN112082633A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G19/00Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
    • G01G19/44Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups for weighing persons
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G23/00Auxiliary devices for weighing apparatus
    • G01G23/18Indicating devices, e.g. for remote indication; Recording devices; Scales, e.g. graduated
    • G01G23/36Indicating the weight by electrical means, e.g. using photoelectric cells
    • G01G23/365Indicating the weight by electrical means, e.g. using photoelectric cells involving comparison with a reference value

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

Weight measuring method for stabilizing weight value under human body shaking condition
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.
CN202010956242.3A 2020-09-11 2020-09-11 Weight measuring method for stabilizing weight value under human body shaking condition Pending CN112082633A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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 中国航天科技集团公司第四研究院第四十四研究所 Self-adaptive filtering method of dynamic axle weighing signal of vehicle
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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 中国航天科技集团公司第四研究院第四十四研究所 Self-adaptive filtering method of dynamic axle weighing signal of vehicle
CN102175296A (en) * 2011-02-24 2011-09-07 山东大学 Fast two-stage filter algorithm applied to high precision digital weighing sensor

Cited By (1)

* Cited by examiner, † Cited by third party
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
WO2020024872A1 (en) Weighing-based goods quantity calculation method
CN113701859B (en) Weighing counting method, device, system, computer equipment and readable storage medium
WO2021018160A1 (en) Hysteresis compensation method for a weighing device
CN111256802A (en) Calibration method of weighing device and weighing device
CN109141594B (en) Medicine metering method of intelligent medicine cabinet, intelligent medicine cabinet and storage medium
CN111238624A (en) Object weight measuring method, weighing device and readable storage medium
CN112082633A (en) Weight measuring method for stabilizing weight value under human body shaking condition
US20180274942A1 (en) Method and apparatus for detecting background noise of sensor
KR102006029B1 (en) Method and Apparatus for calculation azimuth
CN111879389B (en) Weighing method, medium and apparatus
CN112731815A (en) Method for improving analog quantity acquisition precision
CN117421610A (en) Data anomaly analysis method for electric energy meter running state early warning
CN109725188B (en) Current measuring method and device
CN102932686B (en) Method for processing sensor data in remote controller
CN114487484B (en) Acceleration sensor self-calibration method, device, equipment and storage medium
CN114343629A (en) Method and related device for automatically tracking and correcting sensor signal drift
CN115060306A (en) Analog quantity calibration method and device and analog quantity acquisition equipment
US10024709B2 (en) Method and system to quickly determine a weight
US11333678B2 (en) Method for offset calibration of a yaw rate sensor signal of a yaw rate sensor, system and computer program
CN110568134A (en) Moisture meter sensor and working method
CN116337006B (en) Height difference measurement stability improving method and device based on corrugated pipe
CN114659706B (en) Vacuum degree detection method, device, electronic equipment, storage medium and system
CN115932711B (en) Data processing method, device and medium for metering reliability of electric energy meter
CN112720447B (en) Zero moment point jitter processing method and device, robot and storage medium

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