Electronic scale initialization control method, device and system and related equipment
By calculating and adjusting the target gravity coefficient of the electronic scale, the error problem of the electronic scale when weighing at different positions and ground heights is solved, and a more accurate weighing result is achieved.
Patent Information
- Application Number
- CN202411033625.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-12-13
AI Technical Summary
There are errors in weighing at different positions and at ground heights, resulting in inaccurate weighing results.
By obtaining the current position information and elevation value of the electronic scale, calculating the target gravity coefficient, and adjusting the gravity coefficient of the electronic scale to match the target gravity coefficient, performing weighing calibration to ensure accurate readings.
It effectively eliminates the error of the electronic scale when weighing at different positions and at ground heights, and improves the accuracy and reliability of weighing.
Smart Images

Figure CN119124332A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of electronic scales, and in particular, to an electronic scale initialization control method, device, system, equipment, computer-readable storage medium, and electronic scale. Background Art
[0002] At present, small-scale electronic scales such as milligram scales and coffee scales on the market sense the mass of an object through their own mass sensors, and convert the analog signal of the mass sensor into a digital signal through an analog-to-digital converter and send it to a microprocessor, which calculates the mass value of the object to be measured. Due to the different gravity coefficients in different parts of the world, the gravity coefficients affect electronic scales differently at different locations and heights above the ground, resulting in errors in the results obtained when weighing the same object. Therefore, eliminating the errors that exist when electronic scales are weighed at different locations and heights above the ground is a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide an electronic scale initialization control method, device, system, equipment, computer-readable storage medium and electronic scale to eliminate errors that occur when the same electronic scale weighs objects at different latitudes and heights above the ground.
[0004] In a first aspect, an embodiment of the present application provides an electronic scale initialization control method, comprising:
[0005] In response to the device being powered on, obtaining current position information of the electronic scale, and calculating a target gravity coefficient corresponding to the current position according to the position information and a corresponding elevation value;
[0006] The gravity coefficient of the electronic scale is adjusted to the target gravity coefficient.
[0007] In some possible implementations, the electronic scale initialization control method further includes:
[0008] Acquire a plurality of weighing objects of known weight, and weigh the weighing objects based on the target gravity coefficient to obtain weighing values;
[0009] The reading of the electronic scale is calibrated according to the weighed value and the actual weight value until the reading is equal to the actual weight value.
[0010] In some possible implementations, calculating the target gravity coefficient corresponding to the current location according to the location information and the corresponding elevation value includes:
[0011] The target gravity coefficient is calculated according to the following formula:
[0012] g(h)=g(0)[1-(2h / R)],
[0013]
[0014] Wherein, h represents the elevation value in the position information, g(h) represents the target gravity coefficient, g(0) represents the gravitational acceleration on the earth's surface, and R represents the radius of the earth. Indicates the latitude in the location information.
[0015] In some possible implementations, weighing the object based on the target gravity coefficient includes:
[0016] Receiving selected instructions for a plurality of weighing ranges, and determining a corresponding target range according to the selected instructions;
[0017] The object to be weighed is weighed based on the target measuring range and the target gravity coefficient.
[0018] In some possible implementations, calibrating the reading of the electronic scale according to the weighed value and the actual weight value includes:
[0019] Calculating the difference between the weighed value and the actual weight value to obtain the reading adjustment amount that needs to be adjusted;
[0020] The reading of the electronic scale is calibrated based on the reading adjustment amount.
[0021] In a second aspect, the embodiment of the present application further provides an electronic scale initialization control device, comprising:
[0022] A coefficient calculation module, for obtaining the current position information of the electronic scale in response to the device being powered on, and calculating the target gravity coefficient corresponding to the current position according to the position information and the corresponding elevation value;
[0023] The adjustment module is used to adjust the gravity coefficient of the electronic scale to the target gravity coefficient.
[0024] In a third aspect, an embodiment of the present application further provides an electronic scale initialization control system, wherein the electronic scale initialization control system includes the electronic scale initialization control device as described above.
[0025] In a fourth aspect, an embodiment of the present application further provides an electronic scale, including an electronic scale body, and the electronic scale initialization control system as described above, wherein the electronic scale initialization control system is arranged on the electronic scale body.
[0026] In a fifth aspect, an embodiment of the present application further provides an electronic scale initialization control device, comprising a memory and a processor, wherein the processor is used to execute instructions stored in the memory so that the control device executes the electronic scale initialization control method as described in any one of the above items.
[0027] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the electronic scale initialization control method as described in any one of the above items.
[0028] In response to the device being powered on, the embodiment of the present application obtains the current position information of the electronic scale, and calculates the target gravity coefficient corresponding to the current position according to the position information and the corresponding elevation value; and adjusts the gravity coefficient of the electronic scale to the target gravity coefficient. By obtaining the position information of the electronic scale and adjusting the gravity coefficient of the electronic scale according to the position information, the embodiment of the present application eliminates the weighing error that exists when the same electronic scale weighs items at different positions and heights above the ground. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 It is a flow chart of an embodiment of an electronic scale initialization control method provided in an embodiment of the present application;
[0031] Figure 2 It is a flow chart of another embodiment of the electronic scale initialization control method provided in the embodiment of the present application;
[0032] Figure 3 yes Figure 2 A detailed flow chart of step S210 in an embodiment;
[0033] Figure 4 yes Figure 2 A detailed flow chart of step S220 in an embodiment;
[0034] Figure 5 It is a schematic block diagram of an electronic scale initialization control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described in detail by way of implementation methods with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0036] It should be noted that: in the accompanying drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions; in the description of the present application, the terms "center", "longitudinal", "lateral", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the scope of protection of the present application; in the description of the present application, "first", "second", etc. are only used to distinguish each other, rather than to indicate their importance and order, etc.
[0037] In the description of this application, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a movable connection, or a detachable connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal communication of two components, etc. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0038] Reference Figure 1 This is a flow chart of an electronic scale initialization control method provided in an embodiment of the present application, the method comprising steps S110 to S120.
[0039] Step S110, in response to the device being powered on, obtaining the current position information of the electronic scale, and calculating the target gravity coefficient corresponding to the current position according to the position information and the corresponding elevation value;
[0040] Step S120: adjusting the gravity coefficient of the electronic scale to the target gravity coefficient.
[0041] In some possible implementations, since the gravity coefficient of an object varies with its position on the earth's surface and its height from the ground, when the electronic scale is powered on, the current position information is obtained through GPS positioning, and the position information includes latitude and elevation values, where the elevation value is the distance between the electronic scale and the earth's surface; the target gravity coefficient corresponding to the current position of the electronic scale is calculated based on the latitude and elevation values; and the calculated target gravity coefficient is used as the gravity coefficient when the electronic scale is weighed. The target gravity coefficient is calculated according to the following formula:
[0042] g(h)=g(0)[1-(2h / R)],
[0043]
[0044] Where h represents the elevation value in the location information, g(h) represents the target gravity coefficient, g(0) represents the gravitational acceleration on the earth's surface, and R represents the radius of the earth. Indicates the latitude in the location information.
[0045] like Figure 2 As shown, in some possible implementations, the electronic scale initialization control method provided in the embodiment of the present application further includes:
[0046] Step S210, obtaining a plurality of weighing objects of known weight, and weighing the weighing objects based on the target gravity coefficient to obtain weighing values;
[0047] Step S220: calibrate the reading of the electronic scale according to the weighed value and the actual weight value until the reading is equal to the actual weight value.
[0048] In this embodiment, the electronic scale sometimes needs to be calibrated in daily use, and the process of calibrating the electronic scale includes: obtaining a number of weighing objects of known weight, weighing the weighing objects based on the target gravity coefficient, and obtaining weighing values; calibrating the weighing values of the weighing objects and their actual weight values until the reading of the electronic scale is equal to the actual weight value. The weighing objects can be any items of known weight, such as powder bags of known weight.
[0049] like Figure 3 As shown, in one embodiment, step S210 includes:
[0050] Step S310, receiving a selection instruction of a plurality of weighing ranges, and determining a corresponding target range according to the selection instruction;
[0051] Step S320: weighing the object to be weighed based on the target measuring range and the target gravity coefficient.
[0052] In some possible implementations, in order to prevent the user from lacking the weighing object within the range of the electronic scale, the electronic scale can be set with multiple ranges so that the user can select a suitable range or a combination of multiple ranges according to the weight of the weighing object, thereby weighing the weighing object based on the selected target range combined with the target gravity coefficient.
[0053] For example, if the user currently holds 0.5g and 1g of powder, and the existing electronic scales generally have a range of 0-7.5g and 0.75-1.5g, the user can choose a 0.5g weight and adjust the range of the electronic scale to 0-7.5kg; or choose a 1g weight and adjust the range of the electronic scale to 0.75-1.5g; or choose 0.5g and 1g and adjust the range of the electronic scale to 0.75-1.5g. In addition, it is not ruled out that the electronic scale does not have a single range that meets the user's needs, and multiple ranges are required, and the weight is calculated in combination with an algorithm.
[0054] like Figure 4 As shown, in one embodiment, step S220 includes:
[0055] Step S410, calculating the difference between the weighed value and the actual weight value to obtain the reading adjustment amount that needs to be adjusted;
[0056] Step S420: calibrate the reading of the electronic scale based on the reading adjustment amount.
[0057] In some possible implementations, the process of calibrating the electronic scale includes: calculating the difference between the weighing value and the actual weight value to obtain the reading adjustment amount that the electronic scale needs to adjust; and then calibrating the reading of the electronic scale according to the reading adjustment amount. For example, if the weighing value of the electronic scale is 0.45kg, and the actual weight value of the weighed object is 0.5g, the difference is 0.05g, and the reading of the electronic scale needs to be adjusted to increase by 0.05g so that the weighing value of the electronic scale is equal to the actual value of the weighed object, and then the calibration is completed.
[0058] In response to the device being powered on, the embodiment of the present application obtains the current position information of the electronic scale, and calculates the target gravity coefficient corresponding to the current position based on the position information and the corresponding elevation value; adjusts the gravity coefficient of the electronic scale to the target gravity coefficient, thereby adjusting the gravity coefficient of the electronic scale according to the position, so as to achieve the effect of eliminating errors when the same electronic scale weighs objects at different positions and heights above the ground.
[0059] The embodiment of the present invention further provides an electronic scale initialization control device, which is used to execute any embodiment of the aforementioned electronic scale initialization control method. Figure 5 , Figure 5 It is a schematic block diagram of an electronic scale initialization control device provided by an embodiment of the present invention.
[0060] like Figure 5 As shown, the electronic scale initialization control device 100 includes a coefficient calculation module 110 and an adjustment module 120 .
[0061] The coefficient calculation module 110 is used to obtain the current position information of the electronic scale in response to the device being powered on, and calculate the target gravity coefficient corresponding to the current position according to the position information and the corresponding elevation value;
[0062] The adjustment module 120 is used to adjust the gravity coefficient of the electronic scale to the target gravity coefficient.
[0063] The embodiment of the present application further provides an electronic scale initialization control system, and the electronic scale initialization control system includes the electronic scale initialization control device in the above embodiment.
[0064] The embodiment of the present application further provides an electronic scale, including an electronic scale body, and the electronic scale initialization control system in the above embodiment, wherein the electronic scale initialization control system is arranged on the electronic scale body.
[0065] An embodiment of the present application also provides an electronic scale initialization control device, including a memory and a processor, wherein the processor is used to execute instructions stored in the memory so that the control device executes an electronic scale initialization control method of any possible implementation method in the above embodiments.
[0066] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor executes the electronic scale initialization control method of any possible implementation method in the above embodiments.
[0067] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0068] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. An electronic scale initialization control method, It is characterized in that include: In response to the device being powered on, obtaining current position information of the electronic scale, and calculating a target gravity coefficient corresponding to the current position according to the position information and a corresponding elevation value; The gravity coefficient of the electronic scale is adjusted to the target gravity coefficient.
2. The electronic scale initialization control method according to claim 1, It is characterized in that Also includes: Acquire a plurality of weighing objects of known weight, and weigh the weighing objects based on the target gravity coefficient to obtain weighing values; The reading of the electronic scale is calibrated according to the weighed value and the actual weight value until the reading is equal to the actual weight value.
3. The electronic scale initialization control method according to claim 1 or 2, It is characterized in that The target gravity coefficient is calculated according to the following formula: g(h)=g(0)[1-(2h / R)], Wherein, h represents the elevation value in the position information, g(h) represents the target gravity coefficient, g(0) represents the gravitational acceleration on the earth's surface, and R represents the radius of the earth. Indicates the latitude in the location information.
4. The electronic scale initialization control method according to claim 2, It is characterized in that The weighing the object based on the target gravity coefficient includes: Receiving selected instructions for a plurality of weighing ranges, and determining a corresponding target range according to the selected instructions; The object to be weighed is weighed based on the target measuring range and the target gravity coefficient.
5. The electronic scale initialization control method according to claim 2 or 4, It is characterized in that The step of calibrating the reading of the electronic scale according to the weighed value and the actual weight value comprises: Calculating the difference between the weighed value and the actual weight value to obtain the reading adjustment amount that needs to be adjusted; The reading of the electronic scale is calibrated based on the reading adjustment amount.
6. An electronic scale initialization control device, It is characterized in that include: A coefficient calculation module, for obtaining the current position information of the electronic scale in response to the device being powered on, and calculating the target gravity coefficient corresponding to the current position according to the position information and the corresponding elevation value; The adjustment module is used to adjust the gravity coefficient of the electronic scale to the target gravity coefficient.
7. An electronic scale initialization control system, It is characterized in that The electronic scale initialization control system includes the electronic scale initialization control device described in claim 6.
8. An electronic scale, It is characterized in that It comprises an electronic scale body, and the electronic scale initialization control system as claimed in claim 7, wherein the electronic scale initialization control system is arranged on the electronic scale body.
9. An electronic scale initialization control device, It is characterized in that The electronic scale initialization control device includes a memory, a processor, and an electronic scale initialization control program stored in the memory and executable on the processor. When the electronic scale initialization control program is executed by the processor, the steps of the electronic scale initialization control method as described in any one of claims 1 to 5 are implemented.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores an electronic scale initialization control program, and when the electronic scale initialization control program is executed by the processor, the steps of the electronic scale initialization control method according to any one of claims 1 to 5 are implemented.
