CN117073819A - Electronic scale control method, device and storage medium - Google Patents

Electronic scale control method, device and storage medium Download PDF

Info

Publication number
CN117073819A
CN117073819A CN202310928483.0A CN202310928483A CN117073819A CN 117073819 A CN117073819 A CN 117073819A CN 202310928483 A CN202310928483 A CN 202310928483A CN 117073819 A CN117073819 A CN 117073819A
Authority
CN
China
Prior art keywords
reference voltage
weight
target object
electronic scale
acquiring
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
CN202310928483.0A
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.)
Tscale Electronics Mfg Kunshan co ltd
Original Assignee
Tscale Electronics Mfg Kunshan 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 Tscale Electronics Mfg Kunshan co ltd filed Critical Tscale Electronics Mfg Kunshan co ltd
Priority to CN202310928483.0A priority Critical patent/CN117073819A/en
Publication of CN117073819A publication Critical patent/CN117073819A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G23/00Auxiliary devices for weighing apparatus
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G21/00Details of weighing apparatus

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Fluid Pressure (AREA)

Abstract

The application discloses a control method, a device and a storage medium of an electronic scale, and relates to the technical field of electronic scales, wherein the method comprises the following steps: acquiring a first weight of a target object placed on the electronic scale in real time through a first reference voltage; if the variation of the first weight in the first time period is lower than a first threshold value, acquiring a second weight of the target object through a second reference voltage, wherein the second reference voltage is larger than the first reference voltage; if the second weight remains stable for a second period of time, switching the reference voltage from the second reference voltage back to the first reference voltage and maintaining the measurement of the weight of the target object by the first reference voltage. In the weight measurement process, the measurement accuracy is improved through low pressure measurement and then high pressure, so that the problem of higher power consumption in the prior art is solved, and the effect of reducing the power consumption while guaranteeing the measurement accuracy is achieved.

Description

Electronic scale control method, device and storage medium
Technical Field
The application relates to a control method and device for an electronic scale and a storage medium, and belongs to the technical field of electronic scales.
Background
Electronic scales are one of the most commonly used tools for measuring the weight of objects at present, and are commonly applied to various industries such as retail industry, daily home furnishing and the like at present.
The gravity sensor is one of the most important components in the electronic scale, and the weight of an object is measured by providing reference voltage for the gravity sensor. However, in the existing scheme, in order to ensure the detection precision of the electronic scale, the electronic scale needs to be kept in a standby state all the time, so that the power consumption of the electronic scale in the existing scheme is higher.
Disclosure of Invention
The application aims to provide a control method, a control device and a storage medium for an electronic scale, which are used for solving the problems in the prior art.
In order to achieve the above purpose, the present application provides the following technical solutions:
according to a first aspect, an embodiment of the present application provides a method for controlling an electronic scale, including:
acquiring a first weight of a target object placed on the electronic scale in real time through a first reference voltage;
if the variation of the first weight in the first time period is lower than a first threshold value, acquiring a second weight of the target object through a second reference voltage, wherein the second reference voltage is larger than the first reference voltage;
if the second weight remains stable for a second period of time, switching the reference voltage from the second reference voltage back to the first reference voltage and maintaining the measurement of the weight of the target object by the first reference voltage.
Optionally, the method further comprises:
if the variation of the first weight in the first time period is lower than the first threshold value, acquiring a third weight of the target object through a third reference voltage; the first reference voltage < the third reference voltage < the second reference voltage;
and if the variation of the third weight in the third time period is lower than a second threshold value, executing the step of acquiring the second weight of the target object through a second reference voltage, wherein the second threshold value is smaller than the first threshold value.
Optionally, the method further comprises:
switching from the second reference voltage to the third reference voltage, if the second weight remains stable for the second period of time, maintaining measuring the second weight of the target object by the third reference voltage;
and if the second weight is kept stable for a period of time exceeding a third period of time, switching from the third reference voltage to the first reference voltage, and executing the step of maintaining the measurement of the weight of the target object through the first reference voltage.
Optionally, the acquiring, in real time, the first weight of the target object placed on the electronic scale by the first reference voltage includes:
when the electronic scale detects the target object, acquiring the first weight through the first reference voltage;
and if the first weight exceeds a third threshold value, continuing to acquire the weight of the target object through the first reference voltage.
Optionally, the method further comprises:
and if the first weight does not exceed the third threshold value, executing the step of acquiring a second weight of the target object through a second reference voltage if the variation of the first weight in the first time period is lower than the first threshold value.
Optionally, the method further comprises:
and if the target object is detected to be removed, weighing measurement is carried out through the first reference voltage.
Optionally, the gravity sensor in the electronic scale is a 350ohm sensor.
In a second aspect, there is provided an electronic scale control device comprising a memory having at least one program instruction stored therein and a processor for implementing the method according to the first aspect by loading and executing the at least one program instruction.
In a third aspect, there is provided a computer storage medium having stored therein at least one program instruction that is loaded and executed by a processor to implement the method of the first aspect.
Acquiring a first weight of a target object placed on the electronic scale in real time through a first reference voltage; if the variation of the first weight in the first time period is lower than a first threshold value, acquiring a second weight of the target object through a second reference voltage, wherein the second reference voltage is larger than the first reference voltage; if the second weight remains stable for a second period of time, switching the reference voltage from the second reference voltage back to the first reference voltage and maintaining the measurement of the weight of the target object by the first reference voltage. In the weight measurement process, the measurement accuracy is improved through low pressure measurement and then high pressure, so that the problem of higher power consumption in the prior art is solved, and the effect of reducing the power consumption while guaranteeing the measurement accuracy is achieved.
The foregoing description is only an overview of the present application, and is intended to provide a better understanding of the present application, as it is embodied in the following description, with reference to the preferred embodiments of the present application and the accompanying drawings.
Drawings
FIG. 1 is a flowchart of one possible method of controlling an electronic scale according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a possible operation principle of an electronic scale according to an embodiment of the present application;
fig. 3 is a flowchart of another possible method of controlling an electronic scale according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the application are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the description of the present application, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present application, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art.
In addition, the technical features of the different embodiments of the present application described below may be combined with each other as long as they do not collide with each other.
Referring to fig. 1, a possible method flowchart of a method for controlling an electronic scale according to an embodiment of the present application is shown in fig. 1, where the method includes:
step 101, acquiring a first weight of a target object placed on an electronic scale in real time through a first reference voltage;
when the electronic scale is in a standby state, the electronic scale works through the first reference voltage, and when the electronic scale detects the target object, the method comprises the following steps:
first, acquiring the first weight through the first reference voltage;
and secondly, if the first weight exceeds a third threshold value, continuing to acquire the weight of the target object through the first reference voltage.
The first reference voltage is usually low voltage, and because of the low response of the mass measurement accuracy in the low voltage state, when the detected first weight exceeds the third threshold, that is, a large mass object, the weight of the target object can be continuously acquired through the first reference voltage in order to reduce the power consumption.
Referring to fig. 2, one possible operating principle of an electronic scale is shown. In connection with figure 2 of the drawings,p (W) =i×v, and therefore, the present application can achieve an effect of reducing power consumption by using low voltage.
Third, if the first weight does not exceed the third threshold, step 102 is performed.
When the first weight does not exceed the third threshold, it indicates that the object currently required to be measured is a small-mass object, so in order to improve the measurement accuracy, step 102 may be performed after the first mass is obtained through the first reference voltage detection.
The gravity sensor in the electronic scale is a 350ohm sensor.
102, if the variation of the first weight in the first time period is lower than a first threshold, acquiring a second weight of the target object through a second reference voltage, wherein the second reference voltage is larger than the first reference voltage;
if the detected variation of the first weight in the first time period is lower than the first threshold, the weight is basically stable, and in order to improve the measurement accuracy, the measurement can be continued by improving the reference voltage, namely by the second reference voltage, so as to obtain the second weight of the target object. Wherein the second reference voltage is greater than the first reference voltage. And the second weight is measured with a higher accuracy than the first weight, since the measurement is performed with a higher voltage.
It is noted that, as is clear from the above discussion, the time for which the weight is operated by the first reference voltage is longer than the time for which the weight is operated by the first reference voltage when the lighter article is measured. The actual working time depends on the measured variation of the first weight, i.e. the reference voltage is switched to the second reference voltage when the condition of step 102 is satisfied according to the actual measurement situation.
The variation in the present application refers to the difference between the maximum and minimum values measured over the corresponding time period.
Step 103, if the second weight remains stable for a second period of time, switching the reference voltage from the second reference voltage back to the first reference voltage, and maintaining the measurement of the weight of the target object by the first reference voltage.
If the measured second weight is stable in the second time period, it is indicated that the weight of the target object is accurately measured, and in order to reduce the power consumption, the reference voltage may be switched from the second reference voltage back to the first reference voltage, so that the weight of the target object is maintained to be measured by the first reference voltage.
When the electronic scale detects that the target object is removed, in order to reduce power consumption, weight measurement can still be performed through the first reference voltage.
In addition, when the measured second weight is kept stable for more than the third time, it is indicated that the mass of the target object has been accurately measured, and in this case, in order to reduce the power consumption, the reference voltage is reduced to the first reference voltage, and the maintenance measurement is performed by the first reference voltage, which is not described herein.
In summary, a first weight of a target object placed on the electronic scale is obtained in real time through a first reference voltage; if the variation of the first weight in the first time period is lower than a first threshold value, acquiring a second weight of the target object through a second reference voltage, wherein the second reference voltage is larger than the first reference voltage; if the second weight remains stable for a second period of time, switching the reference voltage from the second reference voltage back to the first reference voltage and maintaining the measurement of the weight of the target object by the first reference voltage. In the weight measurement process, the measurement accuracy is improved through low pressure measurement and then high pressure, so that the problem of higher power consumption in the prior art is solved, and the effect of reducing the power consumption while guaranteeing the measurement accuracy is achieved.
Referring to fig. 3, a flowchart of a possible method of controlling an electronic scale according to another embodiment of the present application is shown, and as shown in fig. 3, the method includes:
step 301, acquiring a first weight of a target object placed on an electronic scale in real time through a first reference voltage;
this step is similar to step 101 and will not be described again.
Step 302, if the variation of the first weight in the first period is lower than a first threshold, obtaining a third weight of the target object through a third reference voltage; the first reference voltage < the third reference voltage < the second reference voltage;
when the amount of change in the first weight is below the first threshold value, it is indicated that the accuracy of measuring the weight by the first reference voltage has been reached, at which time in order to increase the accuracy of weight measurement, the reference voltage may be increased from the first reference voltage to a third reference voltage, and the third weight of the target object may be measured continuously by the third reference voltage.
Step 303, if the variation of the third weight in the third time period is lower than a second threshold, obtaining a second weight of the target object through a second reference voltage, wherein the second threshold is smaller than the first threshold;
if the variation of the third mass in the third period of time is lower than the second threshold, the second threshold is smaller than the first threshold, that is, the accuracy of the measured mass reaches the accuracy that can be measured by the third reference voltage, at this time, in order to further improve the measurement accuracy, the reference voltage may be increased from the third reference voltage to the second reference voltage, and the mass of the target object may be obtained by the second reference voltage.
Step 304 of switching from the second reference voltage to the third reference voltage, if the second weight remains stable for the second period of time, and maintaining the measurement of the second weight of the target object by the third reference voltage;
when the second weight is kept stable for the second period, the measurement accuracy of the weight is explained to be reached, at which time the reference voltage can be lowered from the second reference voltage to the third reference voltage in order to reduce the power consumption, and the weight of the measurement target object can be maintained by the third reference voltage.
Step 305, if the second weight remains stable for longer than a third period of time, switching from the third reference voltage to the first reference voltage, and maintaining the measurement of the weight of the target object through the first reference voltage.
When the maintenance time of the second weight maintained by the third reference voltage exceeds the third period of time, at which point it is explained that the mass of the target object has reached the maximum accuracy, at which point, in order to further reduce the power consumption, the third reference voltage may be reduced to the first reference voltage, and the weight of the measurement target object may be maintained by the first reference voltage.
As described above, when it is detected that the target object is removed, measurement is still performed by the first reference voltage.
In one possible embodiment, for the weight, the first weight is measured by low pressure; when the variation of the first weight is smaller than a first threshold value, continuing to measure through medium pressure and obtaining a third quality; when the variation of the third mass is smaller than a second threshold value, continuing to measure the second mass through high pressure; maintaining the measurement by the medium voltage while the second mass remains stable; and switching to low pressure measurement when the steady-state time of the measured quality reaches a time threshold. I.e. the reference voltage for the whole measurement process varies as: low pressure, medium pressure, high pressure, medium pressure, low pressure. The maintenance period of each reference voltage is determined according to the change of specific weight.
In another possible embodiment, the detection process is similar as above for a lighter-weight object, i.e. the change in the reference voltage of the measurement process is also: low pressure, medium pressure, high pressure, medium pressure, low pressure. In contrast, for a lighter object, the accuracy of the mass change is higher, so that the duration of the low-voltage operation is lower than that of the heavy object, and the maintenance time period of each reference voltage is determined according to the change of the specific weight, which is not limited in this embodiment.
In the above embodiment, assuming that the low voltage is 1V, the medium voltage is 2V, and the high voltage is 4V, when the low voltage operation time period is 70%, the medium voltage operation time period is 20%, and the high voltage operation time period is 10%, the power consumption of the electronic scale in this embodiment is:
if the scheme in the prior art is adopted, the consumed power consumption is as follows:
from the above, the scheme of the application can reduce the power consumption by about 62.5%.
In summary, a first weight of a target object placed on the electronic scale is obtained in real time through a first reference voltage; if the variation of the first weight in the first time period is lower than a first threshold value, acquiring a second weight of the target object through a second reference voltage, wherein the second reference voltage is larger than the first reference voltage; if the second weight remains stable for a second period of time, switching the reference voltage from the second reference voltage back to the first reference voltage and maintaining the measurement of the weight of the target object by the first reference voltage. In the weight measurement process, the measurement accuracy is improved through low pressure measurement and then high pressure, so that the problem of higher power consumption in the prior art is solved, and the effect of reducing the power consumption while guaranteeing the measurement accuracy is achieved.
The application also provides an electronic scale control device, which comprises a memory and a processor, wherein at least one program instruction is stored in the memory, and the processor is used for realizing the method by loading and executing the at least one program instruction.
The present application also provides a computer storage medium having stored therein at least one program instruction that is loaded and executed by a processor to implement a method as described above.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (9)

1. A method for controlling an electronic scale, the method comprising:
acquiring a first weight of a target object placed on the electronic scale in real time through a first reference voltage;
if the variation of the first weight in the first time period is lower than a first threshold value, acquiring a second weight of the target object through a second reference voltage, wherein the second reference voltage is larger than the first reference voltage;
if the second weight remains stable for a second period of time, switching the reference voltage from the second reference voltage back to the first reference voltage and maintaining the measurement of the weight of the target object by the first reference voltage.
2. The method according to claim 1, wherein the method further comprises:
if the variation of the first weight in the first time period is lower than the first threshold value, acquiring a third weight of the target object through a third reference voltage; the first reference voltage < the third reference voltage < the second reference voltage;
and if the variation of the third weight in the third time period is lower than a second threshold value, executing the step of acquiring the second weight of the target object through a second reference voltage, wherein the second threshold value is smaller than the first threshold value.
3. The method according to claim 2, wherein the method further comprises:
switching from the second reference voltage to the third reference voltage, if the second weight remains stable for the second period of time, maintaining measuring the second weight of the target object by the third reference voltage;
and if the second weight is kept stable for a period of time exceeding a third period of time, switching from the third reference voltage to the first reference voltage, and executing the step of maintaining the measurement of the weight of the target object through the first reference voltage.
4. The method of claim 1, wherein the acquiring, in real time, the first weight of the target object placed on the electronic scale with the first reference voltage comprises:
when the electronic scale detects the target object, acquiring the first weight through the first reference voltage;
and if the first weight exceeds a third threshold value, continuing to acquire the weight of the target object through the first reference voltage.
5. The method according to claim 4, wherein the method further comprises:
and if the first weight does not exceed the third threshold value, executing the step of acquiring a second weight of the target object through a second reference voltage if the variation of the first weight in the first time period is lower than the first threshold value.
6. The method according to claim 1, wherein the method further comprises:
and if the target object is detected to be removed, weighing measurement is carried out through the first reference voltage.
7. The method of any one of claims 1 to 6, wherein the gravity sensor in the electronic scale is a 350ohm sensor.
8. An electronic scale control device, characterized in that the device comprises a memory and a processor, wherein at least one program instruction is stored in the memory, and the processor is adapted to implement the method according to any one of claims 1 to 7 by loading and executing the at least one program instruction.
9. A computer storage medium having stored therein at least one program instruction that is loaded and executed by a processor to implement the method of any of claims 1 to 7.
CN202310928483.0A 2023-07-26 2023-07-26 Electronic scale control method, device and storage medium Pending CN117073819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310928483.0A CN117073819A (en) 2023-07-26 2023-07-26 Electronic scale control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310928483.0A CN117073819A (en) 2023-07-26 2023-07-26 Electronic scale control method, device and storage medium

Publications (1)

Publication Number Publication Date
CN117073819A true CN117073819A (en) 2023-11-17

Family

ID=88714320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310928483.0A Pending CN117073819A (en) 2023-07-26 2023-07-26 Electronic scale control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN117073819A (en)

Similar Documents

Publication Publication Date Title
WO2020024873A1 (en) Weighing-based goods quantity calculation method
CN107192738B (en) Method and device for detecting material of distribution transformer winding
CN108414936B (en) Method and device for calibrating state of charge of energy storage system
CN102854471B (en) Battery meter metering method and measuring apparatus
KR20170058165A (en) System and method for estimating state of health for battery
EP2535729A1 (en) Battery charge determination
CN102680897A (en) Battery capacity management method and device
KR20120123346A (en) Device for measuring state of charge of secondary battery and method for measuring state of charge of secondary battery
KR20080102129A (en) Battery service life judging device and battery service life judging method
CN102645571A (en) Detection circuit and electronic terminal
CN102478636A (en) Electric quantity detection method and device for battery
CN110618386B (en) Battery electric quantity proportion detection method, equipment and computer readable storage medium
CN108061863A (en) Method and device for detecting battery, computer readable storage medium and battery management system
CN108051752B (en) Battery electric quantity acquisition method
CN105334463A (en) Battery and electric quantity detection method and system thereof
CN103119458B (en) Charge acceptance limit determination device and charge acceptance limit determination method
CN109061521A (en) Battery group state-of-charge calculation method and system
US20210215763A1 (en) Method for improving accuracy of capacity measurement
CN101900793B (en) Battery discharge residual time estimating method
CN105785269A (en) Battery electricity level metering system and method
CN107918101A (en) State of charge indicating means and instruction system
CN117073819A (en) Electronic scale control method, device and storage medium
CN110261792A (en) DC power supply detection method, device, test terminal and readable storage medium storing program for executing
CN109613442A (en) Internal resistance of cell Dynamic calculation method and battery management system
CN103135064A (en) Online testing method of electric quantity of lithium iron phosphate battery

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