Electronic level bubble correction method and device and computer readable medium
By controlling the tilt state of the electronic level bubble and photoelectric signal processing, an empirical formula is established to correct the bubble position calculation model, which solves the complexity and high cost problems of opening the cover for correction in the prior art, and realizes the coverless body Simple, reliable and low-cost calibration method.
Patent Information
- Application Number
- CN202310779337.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2024-12-31
AI Technical Summary
The existing electronic level bubble correction method requires the opening of the cover of the instrument and equipment to observe the position of the bubble. The operation is complex and costly, and there is a lack of a method of calibration without the cover.
By controlling the tilt state of the electron level bubble, obtaining photoelectric signals at different tilt positions, establishing empirical formulas to correct the bubble position calculation model, and using weighted average processing and confidence inspection, the accurate calculation and correction of the bubble position is achieved.
The electronic level bubble can be corrected by itself without opening the cover of the equipment, simplifying operation, reducing costs, and improving maintenance efficiency and accuracy.
Smart Images

Figure CN119223323A_ABST
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the field of precision measuring instruments, and in particular to a correction method, device and computer-readable medium for an electronic level bubble. Background Art
[0002] Many precision measuring instruments need to be in a preset horizontal state to work properly, such as an electronic balance (weighing instrument) based on the gravity method. When the balance is tilted, the weighing error will increase. The more the balance is tilted, the greater the error. A level bubble (level bubble) is usually used to assist in determining whether the instrument is level. The level bubble includes a sealed shell, which is filled with liquid and the liquid is not full, leaving a bubble. The shell is provided with a transparent window, through which the position of the bubble can be observed. When the balance is tilted, the position of the bubble will shift to the higher side.
[0003] The electronic level is composed of a physical level, several photoelectric devices (light-emitting devices and receiving devices), a signal processing unit, a computing unit, a control unit, etc. The light-emitting devices and receiving devices are installed around the physical level. The light emitted by the light-emitting device shines on the bubble, which will produce reflection and refraction, and then be received by the receiving device. If the position of the bubble changes, the light path from the light-emitting device to the receiving device will also change, thereby changing the received photoelectric signal. The computing unit can calculate the position of the bubble in the level from the photoelectric signal according to a certain calculation model. According to this position, it can be determined whether the bubble is located in the center position and the degree of deviation from the center position, so that the degree of inclination of the device equipped with the electronic level can be known. As the use time increases, the electronic level will produce some drift, so it is necessary to debug and calibrate the electronic level.
[0004] One way to recalibrate the electronic level is to move the bubble to the center reference position, and let the electronic level system record the photoelectric signal when the bubble is at the center reference position, which is used for model parameter adjustment to restore the accuracy of the electronic level to the best state. However, if there is no special window for the electronic level in some instruments and equipment, it is necessary to open the cover of the instrument and equipment to see the exact position of the physical bubble and complete the adjustment maintenance task. The operation of opening the cover of the instrument and equipment usually requires professional maintenance personnel to perform, and even needs to be returned to the original manufacturer. The process is cumbersome and costly.
[0005] Therefore, there is a need for a method for adjusting the electronic level bubble without opening the cover of an instrument equipped with the electronic level bubble and observing the bubble position of the physical level bubble through a window. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a method, device and computer-readable medium for calibrating an electronic level bubble which are simple to operate and low-cost.
[0007] To solve the above technical problems, the present invention provides a correction method for an electronic level bubble, wherein the electronic level bubble has a shell, and a side wall of the shell has liquid and bubbles in it, and the side wall of the shell has at least two target positions, and the at least two target positions include a first target position and a second target position, comprising: controlling the tilt state of the electronic level bubble to make the electronic level bubble in a first state, at which time the first target position is higher than the second target position, and the bubble contacts the side wall; in the first state, obtaining a first photoelectric signal of the electronic level bubble, the first photoelectric signal corresponding to the first bubble position of the bubble; controlling the tilt state of the electronic level bubble to make the electronic level bubble in a second state, at which time the second target position is higher than the first target position, and the bubble contacts the side wall; in the second state, obtaining a second photoelectric signal of the electronic level bubble, the second photoelectric signal corresponding to the second bubble position of the bubble; obtaining a third photoelectric signal of the electronic level bubble in a third state, the third photoelectric signal corresponding to the third bubble position of the bubble; and correcting the bubble position calculation model of the electronic level bubble according to the first photoelectric signal, the second photoelectric signal and the third photoelectric signal.
[0008] In one embodiment of the present application, the step of correcting the bubble position calculation model of the electronic level bubble according to the first photoelectric signal, the second photoelectric signal and the third photoelectric signal includes: establishing a first empirical formula for the difference between the third photoelectric signal and the first photoelectric signal and the third bubble position, the first empirical formula having a first parameter; establishing a second empirical formula for the difference between the third photoelectric signal and the second photoelectric signal and the third bubble position, the second empirical formula having a second parameter; and obtaining the first parameter and the second parameter through numerical calculation.
[0009] In one embodiment of the present application, the electronic level has m light-emitting devices and n receiving devices, wherein m and n are positive integers greater than or equal to 2, and the first parameter includes a first x parameter and a first y parameter. The first empirical formula is expressed by the following formula:
[0010]
[0011] Wherein, i=1:m, represents the 1st to mth light-emitting devices in the electronic bubble; j=1:n, represents the 1st to nth receiving devices in the electronic bubble; Uij represents that when the bubble is at the third bubble position, the jth receiving device receives the third photoelectric signal of the ith light-emitting device; Uaij represents that when the bubble is at the first bubble position, the jth receiving device receives the first photoelectric signal of the ith light-emitting device; x3 a represents the x coordinate of the third bubble position in the Cartesian coordinate system calculated using Uaij as a reference, y3 a represents the y coordinate of the third bubble position in the Cartesian coordinate system calculated using Uaij as a reference; Kxaij represents the first x parameter; Kyaij represents the first y parameter.
[0012] In one embodiment of the present application, the electronic level has m light-emitting devices and n receiving devices, wherein m and n are positive integers greater than or equal to 2, and the second parameter includes a second x parameter and a second y parameter, and the second empirical formula is expressed by the following formula:
[0013]
[0014] Wherein, i=1:m, represents the 1st to mth light-emitting devices in the electronic bubble; j=1:n, represents the 1st to nth receiving devices in the electronic bubble; Uij represents that when the bubble is at the third bubble position, the jth receiving device receives the third photoelectric signal of the i-th light-emitting device; Ubij represents that when the bubble is at the second bubble position, the jth receiving device receives the second photoelectric signal of the i-th light-emitting device; x3 b Indicates the x coordinate of the third bubble position in the Cartesian coordinate system calculated using Ubij as a reference, y3 b It represents the y coordinate of the third bubble position in the Cartesian coordinate system calculated using Ubij as a reference; Kxbij represents the second x parameter; Kybij represents the second y parameter.
[0015] In one embodiment of the present application, it also includes: a ,y3 a ) and (x3 b ,y3 b ) are weighted averaged to obtain the coordinates (x3, y3) used to characterize the position of the third bubble.
[0016] In one embodiment of the present application, it further includes: performing weighted average processing on the first photoelectric signal and the second photoelectric signal to obtain the photoelectric signal Udij when the bubble is located at the center position, and calculating the third bubble position using the following formula:
[0017]
[0018] Wherein, i=1:m, represents the 1st to mth light-emitting devices in the electronic level bubble; j=1:n, represents the 1st to nth receiving devices in the electronic level bubble; Uij represents that when the bubble is at the third bubble position, the jth receiving device receives the third photoelectric signal of the i-th light-emitting device; x3 d represents the x coordinate of the third bubble position in the Cartesian coordinate system calculated using Udij as a reference, y3 d represents the y coordinate of the third bubble position in the Cartesian coordinate system calculated using Udij as a reference; Kxdij represents the third x parameter; Kydij represents the third y parameter.
[0019] In one embodiment of the present application, the at least two target positions are evenly distributed around the side wall.
[0020] In an embodiment of the present application, the first target position and the second target position are symmetrically arranged.
[0021] In one embodiment of the present application, the method further includes: using the corrected bubble position calculation model to calculate the current position of the bubble.
[0022] In one embodiment of the present application, it also includes: adjusting the inclination state of the electronic level bubble so that the bubble position displayed on the display reaches the center position; at this time, obtaining a fourth photoelectric signal of the electronic level bubble, the fourth photoelectric signal corresponding to the center bubble position of the bubble located at the center of the electronic level bubble; calculating the third bubble position based on the third photoelectric signal and the fourth photoelectric signal.
[0023] In one embodiment of the present application, the step of calculating the third bubble position according to the third photoelectric signal and the fourth photoelectric signal includes: calculating using the following formula:
[0024]
[0025] Wherein, i=1:m, represents the 1st to mth light-emitting devices in the electronic level bubble; j=1:n, represents the 1st to nth receiving devices in the electronic level bubble; Uij represents that when the bubble is at the third bubble position, the jth receiving device receives the third photoelectric signal of the ith light-emitting device; Uoij represents that when the bubble is at the center bubble position, the jth receiving device receives the fourth photoelectric signal of the ith light-emitting device; x3 o represents the x coordinate of the third bubble position in the Cartesian coordinate system, y3 orepresents the y coordinate of the third bubble position in the Cartesian coordinate system; Kxoij represents the fourth x parameter, and Kyoij represents the fourth y parameter.
[0026] In one embodiment of the present application, a credibility check of the model parameters is also included, including: obtaining credibility by checking whether redundant data are contradictory to each other, and determining whether to partially correct, fully correct, or not correct the model parameters of the bubble position calculation model based on the credibility, wherein the redundant data includes photoelectric signals that do not need to participate in the calculation of the first parameter and the second parameter.
[0027] In one embodiment of the present application, a credibility check of the model parameters is also performed, including: obtaining credibility by checking whether redundant data are contradictory to each other, and judging partially, fully or not correcting the model parameters of the bubble position calculation model according to the credibility, wherein the redundant data includes photoelectric signals that do not need to participate in the calculation of the third x parameter and the third y parameter.
[0028] In one embodiment of the present application, a credibility check of the model parameters is also performed, including: obtaining credibility by checking whether redundant data are contradictory to each other, and judging partially, fully or not correcting the model parameters of the bubble position calculation model according to the credibility, wherein the redundant data includes photoelectric signals that do not need to participate in the calculation of the fourth x parameter and the fourth y parameter.
[0029] In order to solve the above-mentioned technical problems, the present application also proposes a correction device for an electronic level bubble, wherein the electronic level bubble has a shell, the shell has a side wall, the side wall has liquid and bubbles, the side wall of the shell has at least two target positions, the at least two target positions include a first target position and a second target position, and comprises: a memory for storing instructions executable by a processor; a controller for controlling the tilt state of the electronic level bubble; and a processor for executing the instructions to implement the correction method as described above.
[0030] In one embodiment of the present application, a tilt sensor is further included to detect the tilt degree of the electronic level bubble and feed back the tilt degree to the controller to instruct the controller to control the tilt state of the electronic level bubble.
[0031] In one embodiment of the present application, the tilt sensor includes a MEMS accelerometer.
[0032] In an embodiment of the present application, the electronic level bubble is disposed on an electronic device, and the controller is configured to control the tilt state of the electronic level bubble by controlling the tilt state of the electronic device.
[0033] In order to solve the above technical problem, the present application also proposes a computer-readable medium storing a computer program code, and the computer program code implements the above correction method when executed by a processor.
[0034] By adopting the calibration method of the present application, the electronic level bubble inside the instrument can be calibrated at any time without opening the cover of the equipment, so that the equipment user can perform maintenance and adjustment by himself, or it can also be used for the calibration of the electronic level bubble during the production process of the instrument. This method has the advantages of simplicity, reliability and low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings are included to provide a further understanding of the present application, and they are included and constitute a part of the present application. The accompanying drawings illustrate embodiments of the present application and together with the present specification serve to explain the principles of the present invention. In the accompanying drawings:
[0036] Figure 1A It is a schematic diagram of the three-dimensional structure of an electronic level bubble;
[0037] Figure 1B yes Figure 1A A schematic side view of an electronic level bubble is shown;
[0038] Figure 2 is an exemplary flow chart of a calibration method according to an embodiment of the present application;
[0039] Figure 3A and Figure 3B is a schematic diagram of an electronic level bubble in a first state in a calibration method according to an embodiment of the present application;
[0040] Figure 4A and Figure 4B is a schematic diagram of an electronic level bubble in a second state in a calibration method according to an embodiment of the present application;
[0041] Figure 5A and Figure 5B is a schematic diagram of an electronic level bubble in a third state in a calibration method according to an embodiment of the present application;
[0042] Figure 6 It is a schematic block diagram of a correction device for an electronic level bubble according to an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0044] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0045] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values of the parts and steps set forth in these embodiments do not limit the scope of the present application. At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to those of ordinary skill in the relevant field may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be considered as a part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so that once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.
[0046] In the description of the present application, it should be understood that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, perpendicular, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present application and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the device or element referred to must have a specific direction or be constructed and operated in a specific direction, and therefore cannot be understood as limiting the scope of protection of the present application; the directional words "inside and outside" refer to the inside and outside relative to the contours of each component itself.
[0047] For ease of description, spatially relative terms such as "above", "above", "on the upper surface of", "above", etc. may be used here to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" can include both "above" and "below". The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used here are interpreted accordingly.
[0048] In addition, it should be noted that the use of words such as "first" and "second" to define components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above words have no special meaning and cannot be understood as limiting the scope of protection of this application. In addition, although the terms used in this application are selected from well-known and commonly used terms, some terms mentioned in the specification of this application may be selected by the applicant at his or her discretion, and their detailed meanings are explained in the relevant parts of the description of this article. In addition, it is required to understand this application not only by the actual terms used, but also by the meaning implied by each term.
[0049] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously. At the same time, other operations may be added to these processes, or one or more operations may be removed from these processes.
[0050] The correction method and correction device of the electronic level bubble of the present application are applicable to any electronic level bubble including a light-emitting device and a receiving device, and the electronic level bubble uses a photoelectric signal and a calculation model to calculate the bubble position. The present application does not limit the electronic device on which the electronic level bubble is installed. It should be noted that the photoelectric signal involved in the present application refers to a type of signal that can be converted from an optical signal to an electrical signal. The present application does not limit the specific signal of the optical signal, including but not limited to infrared light, visible light, laser, etc. Taking infrared light as an example, the light-emitting device is a device that emits infrared light, and the receiving device is a device that can receive infrared light and convert the received optical signal into an electrical signal. Figure 1A It is a schematic diagram of the three-dimensional structure of an electronic level bubble. Figure 1B yes Figure 1A The side view of the electronic level bubble shown in FIG. Figure 1A and Figure 1B Only part of the structure of the electronic level bubble 100 is shown, not all of it. Figure 1A and Figure 1B As shown, the electronic level bubble 100 is cylindrical in shape as a whole and has a certain height h. Figure 1B From the perspective shown, the height h is less than its diameter. The electronic level bubble 100 has a shell 110, and the shell 110 has a top 111, a bottom 112 and a side wall 113. Some liquid is filled in the internal space 120 of the shell 110 to form a bubble 130. In other words, the internal space 120 is filled with liquid and bubble 130. The shell 110 and the liquid and bubble 130 therein constitute a physical level bubble. It can be understood that the shell 110 is a sealed shell.
[0051] like Figure 1A As shown, two light emitting devices D1, D2 and two receiving devices Q1, Q2 are equally spaced on the circumference above the top 111 to detect the position of the bubble. When in use, the light emitted by the light emitting devices D1, D2 is reflected and / or refracted by the bubble 130 and reflected by the bottom 112, and the reflected and refracted light is received by the receiving devices Q1, Q2 and converted into electrical signals, which are processed and used to calculate the position of the bubble 130.
[0052] like Figure 1A As shown, a marking circle 140 is also provided on the top 111 to assist in determining whether the bubble 130 deviates from the center and the degree of deviation. In some cases, when the bubble 130 contacts the marking circle 140, the control unit of the electronic level 100 will issue an alarm to remind the user that the degree of deviation of the bubble 130 has reached a level that requires attention.
[0053] Figure 1A and Figure 1B It is merely an example of an electronic level bubble that can be applied to the correction method of the electronic level bubble of the present application, and is not intended to limit the specific structure, number of photoelectric devices, etc. of the electronic level bubble.
[0054] refer to Figure 1A As shown, the side wall 113 has at least two target positions 113a and 113b, one of which is referred to as the first target position 113a and the other as the second target position 113b. Figure 1A and Figure 1BIn the embodiment shown, the side wall 113 has a circular outline, and the first target position 113a and the second target position 113b are symmetrically distributed on the circumference of the side wall 113, and the angle between the first target position 113a and the second target position 113b is 180 degrees. In other embodiments, the angle between the first target position 113a and the second target position 113b can also be 45 degrees, 90 degrees, 135 degrees, etc., and this application does not limit this. Figure 1A The first target position 113a and the second target position 113b are taken as examples for description.
[0055] In some embodiments, when there are more than two target locations, the multiple target locations are evenly distributed on the circumference of the sidewall 113 .
[0056] When the profile of the side wall 113 is not circular, for example, a rectangle, the multiple target positions can be located on different sides of the rectangle. For example, when symmetrically distributed, the first target position and the second target position are respectively set on two opposite sides.
[0057] Figure 2 is an exemplary flow chart of a calibration method according to an embodiment of the present application. Figure 2 As shown, the correction method of this embodiment includes the following steps:
[0058] Step S210: controlling the tilt state of the electronic level bubble to make the electronic level bubble in a first state, at which the first target position is higher than the second target position and the bubble contacts the side wall;
[0059] Step S220: in a first state, obtaining a first photoelectric signal of the electronic level bubble, the first photoelectric signal corresponding to a first bubble position of the bubble;
[0060] Step S230: controlling the tilt state of the electronic level bubble to make the electronic level bubble in a second state, at which the second target position is higher than the first target position and the bubble contacts the side wall;
[0061] Step S240: in the second state, obtaining a second photoelectric signal of the electronic level bubble, the second photoelectric signal corresponding to a second bubble position of the bubble;
[0062] Step S250: acquiring a third photoelectric signal when the electronic level bubble is in a third state, the third photoelectric signal corresponding to a third bubble position of the bubble; and
[0063] Step S260: Correcting the bubble position calculation model of the electronic level bubble according to the first photoelectric signal, the second photoelectric signal and the third photoelectric signal.
[0064] The following combination FIG. 3A to FIG. 5B The above steps S210 to S260 are described.
[0065] Figure 3A and Figure 3B is a schematic diagram of an electronic level bubble in a first state in a calibration method according to an embodiment of the present application. Figure 3A The 3D schematic diagram of the electronic level bubble 310 is shown. In this embodiment, the electronic level bubble 310 has four light-emitting devices D1, D2, D3, D4 and four receiving devices Q1, Q2, Q3, Q4, and the eight devices are evenly distributed on the circumference of the shell. This application is described by taking this as an example, and is not intended to limit the number, setting position, etc. of the light-emitting devices and the receiving devices.
[0066] In some embodiments, the electronic level bubble 310 includes at least one light emitting device and at least three receiving devices.
[0067] In some embodiments, the electronic level bubble 310 includes at least three light emitting devices and at least one receiving device.
[0068] In some embodiments, the electronic level bubble 310 includes at least two light emitting devices and at least two receiving devices.
[0069] Figure 3B A side view of the electronic level bubble 310 is shown, in combination with Figure 3A and Figure 3B As shown, the side wall 331 has a first target position 331 a and a second target position 331 b , which are symmetrically arranged.
[0070] In step S210, the tilt state of the electronic level bubble 310 is actively controlled. Figure 3A and Figure 3B In the orientation shown, the left side of the electronic level bubble 310 is higher than the right side, that is, the first target position 331a of the electronic level bubble 310 is higher than the second target position 331b in the vertical direction. It can be understood that the left and right here are only relative.
[0071] The present application does not limit how to control the tilt state of the electronic level bubble 310. In some embodiments, the electronic level bubble 310 is set in an electronic device, and the electronic device can be manually moved to control the tilt state of the electronic level bubble 310. A control unit can also be set, for example, a control unit including a motor and a height-adjustable support foot, etc., to raise the left side of the electronic device and / or lower the right side of the electronic device to make the electronic level bubble 310 in a certain position. Figure 3BThe first state Pa shown. It should be noted that when the tilt state of the electronic level bubble 310 is changed, its spatial position remains roughly unchanged, that is, its projection position on the horizontal plane remains roughly unchanged, but the projection area may change. However, the present application does not exclude that the spatial position of the electronic level bubble 310 also changes during the tilting process, so that its projection position changes significantly. However, such changes do not affect the implementation of the correction method of the present application.
[0072] After a lot of observations, experiments and studies, the inventors of the present application have found that when the accuracy of the photoelectric system of the electronic level bubble is no longer reliable, if the bubble position of the physical level bubble is not directly observed, it is impossible or difficult to determine the position of the physical bubble in the center, so it is impossible to directly use the center reference position for adjustment. The inventors of the present application have also observed that when the electronic level bubble is tilted to a certain degree, the bubble will hit the side wall of the shell, and if it continues to tilt, the bubble will still hit the side wall, the shape of the bubble will hardly change, and the photoelectric signal will almost be the same. Therefore, in step S210, the first target position 331a is higher than the second target position 331b to the extent that the bubble 320 can touch the inner wall of the side wall 331. When the position of the bubble no longer changes, the photoelectric signal remains unchanged, so it can also be known that the bubble has touched the side wall by detecting the photoelectric signal.
[0073] like Figure 3B As shown, in some embodiments, a tilt sensor 350 is used to detect the tilt of the electronic level bubble 310. Assuming that the tangent tanα of the angle α between the upper surface of the electronic level bubble 310 and the horizontal line is used as a measure of the tilt, when tanα reaches 3 / 1000, the bubble 320 contacts the inner side of the side wall at the first target position 331a. This tilt is very small and cannot be recognized by the naked eye. Using a high-precision tilt sensor 350 can determine that the electronic level bubble 310 is already in the desired first state Pa.
[0074] Since the high-precision tilt sensor 350 is relatively expensive, and when tanα reaches 50 / 1000 to 200 / 1000, it is relatively easy for the naked eye to observe that the left side of the electronic device is higher than the right side, and at this time, it is possible to determine that the electronic level bubble 310 is in the first state Pa without adding an additional tilt sensor 350. At the same time, in this case, if a low-precision tilt sensor 350 is used, the tilt degree can also be detected, so that it can be confirmed that the bubble 320 is in contact with the inner side of the side wall at the first target position 331a, and at this time the electronic level bubble 310 is also in the required first state Pa. The low-precision tilt sensor 350 has the advantage of low cost.
[0075] In some embodiments, tilt sensor 350 includes a MEMS accelerometer.
[0076] According to the above-mentioned embodiments, the first state Pa can represent a placement state of the electronic vial, which is not limited to a single spatial position but can be a number of spatial positions.
[0077] like Figure 3B As shown, in other embodiments, a display 340 is electrically connected to the electronic level bubble 310 through a processor 360, and the display 340 is also electrically connected to the tilt sensor 350 through the processor 360, and the bubble position can be converted according to the tilt angle, so as to be displayed on the display 340, such as a bubble image 341. According to these embodiments, in step S210, a first state indication mark 342 can also be set on the display 340. When the bubble image 341 is located in the first state indication mark 342, it indicates that the electronic level bubble 310 is in the first state Pa. Figure 3B , the first state indication mark 342 is a contour line that can accommodate the bubble image 341. Obviously, the first state indication mark 342 is close to the side wall contour 343, or is in contact with the side wall contour 343. The present application does not limit the shape and size of the contour line.
[0078] In step S220, the number of first photoelectric signals obtained is related to the number of light-emitting devices and receiving devices. Assume that the electronic level bubble 310 has m light-emitting devices and n receiving devices, where m and n are both positive integers greater than or equal to 2. The step of obtaining the first photoelectric signal includes: recording the signal of each receiving device when each light-emitting device is lit, and obtaining m*n photoelectric signals of the number of light-emitting devices m multiplied by the number of receiving devices n after each light-emitting device is lit once.
[0079] Assume that the first photoelectric signal acquired in step S220 is Uaij, wherein i=1:m, j=1:n, and Uaij indicates that the j-th receiving device receives the first photoelectric signal of the ith light-emitting device, and there are m*n of them in total.
[0080] Step S230 is similar to step S210, except that the electronic level bubble 310 is placed in a second state Pb different from the first state Pa. At this time, the second target position 331b is higher than the first target position 331a in the vertical direction, and the bubble 320 contacts the side wall. Obviously, the contact position between the bubble 320 and the side wall 331 at this time is different from the contact position in step S210. The second state Pb can also represent a placement state of the electronic level bubble, which is not limited to a single spatial position, but can be a number of spatial positions.
[0081] Figure 4A and Figure 4B FIG. 1 is a schematic diagram of an electronic level in a second state in a calibration method according to an embodiment of the present application. Figure 4A and Figure 4B As shown, in this embodiment, the electronic level bubble 310 is in an inclined state with the left side lower than the right side, and the second target position 331b is higher than the first target position 331a.
[0082] like Figure 4B As shown, in the embodiment with a display 340, a second state indication mark 344 may also be displayed on the display 340. When the bubble image 341 is located within the second state indication mark 344, it indicates that the electronic level bubble 310 is in the second state Pb. Figure 4B The second state indication mark 344 is a contour line that can accommodate the bubble image 341. Obviously, the second state indication mark 344 is close to the side wall contour 343, or is in contact with the side wall contour 343.
[0083] The first state indicator mark 342 and the second state indicator mark 344 can be displayed on the display 340 only when needed, and not displayed when not needed. For example, when executing step S210, the first state indicator mark 342 is displayed; when executing step S230, the second state indicator mark 344 is displayed.
[0084] In step S240, the step of obtaining the second photoelectric signal is similar to step S220. Assume that the second photoelectric signal obtained in step S240 is Ubij, where i=1:m, j=1:n, and Ubij indicates that the jth receiving device receives the second photoelectric signal of the ith light emitting device, and there are m*n of them in total.
[0085] In step S250, the electronic level bubble 310 is placed in a third state P3, which is an arbitrary tilt state, and the arbitrary tilt state includes the first state Pa and the second state Pb. Similarly, the third state P3 can also represent a placement state of the electronic level bubble, which is not limited to a unique spatial position, but can be a number of spatial positions. The present application obtains the first photoelectric signal and the second photoelectric signal through steps S210 to S240, and can use the first photoelectric signal and the second photoelectric signal to calculate an arbitrary bubble position, and in the process, calibrate the bubble position calculation model.
[0086] Figure 5A and Figure 5B FIG. 1 is a schematic diagram of an electronic level in a third state in a calibration method according to an embodiment of the present application. Figure 5A and Figure 5B As shown, in the third state P3, the bubble is almost in the center of the shell, but it does not limit the third state P3 to the center. Figure 5BAs shown, in some embodiments, at this time, the third state indication mark 345 is displayed on the display 340, and when the bubble image 341 is located within the third state indication mark 345, it indicates that the electronic level bubble 310 is in the third state P3. Figure 5B The third state indication mark 345 is located in the middle of the level bubble and does not contact the side wall contour 343.
[0087] In some embodiments, in step S250, the electronic level bubble 310 is restored to its initial position, that is, the initial position before step S210. The initial position represents the actual position of the electronic level bubble 310 in actual use. After the first photoelectric signal and the second photoelectric signal are obtained respectively through steps S210 to S240, the electronic level bubble 310 is restored to the initial position, and then the third photoelectric signal is obtained when it is in the third state P3.
[0088] In some embodiments, step S250 may be performed before step S210.
[0089] In some embodiments, step S250 may be performed after steps S210 and S220 and before steps S230 and S240.
[0090] Assume that the third photoelectric signal acquired in step S250 is Uij, wherein i=1:m, j=1:n, and Uij indicates that the j-th receiving device receives the third photoelectric signal of the i-th light-emitting device, and there are m*n of them in total.
[0091] In some embodiments, step S260 further includes the following steps:
[0092] Step S261: Establish the difference between the third photoelectric signal and the first photoelectric signal (Uij-Uaij) and the third bubble position (x3 a ,y3 a ), the first empirical formula having first parameters (Kxaij, Kyaij);
[0093] Step S272: Establish the difference between the third photoelectric signal and the second photoelectric signal (Uij-Ubij) and the third bubble position (x3 b ,y3 b ), the second empirical formula having second parameters (Kxbij, Kybij); and
[0094] Step S273: Obtain the first parameter (Kxaij, Kyaij) and the second parameter (Kxbij, Kybij) by numerical calculation.
[0095] It should be noted that the bubble position calculation model of the electronic level bubble 310 can be set based on experience, and this application does not impose any limitation on this.
[0096] The position of the bubble 320 can be expressed in the form of x-coordinates and y-coordinates in a Cartesian coordinate system, or in the form of polar diameter R and polar angle Theta in a polar coordinate system. This application uses a Cartesian coordinate system to express the position of the bubble 320. Based on the formulas given in the following specific embodiments, the corresponding formulas in polar coordinates can be derived, which will not be expanded here.
[0097] In some embodiments, the bubble position calculation model is a linear model. For example, the first empirical formula is expressed as follows:
[0098]
[0099] Wherein, i=1:m, represents the 1st to mth light-emitting devices in the electronic level bubble; j=1:n, represents the 1st to nth receiving devices in the electronic level bubble; Uij represents that when the bubble 320 is at the third bubble position, the jth receiving device receives the third photoelectric signal of the i-th light-emitting device; Uaij represents that when the bubble 320 is at the first bubble position Pa, the jth receiving device receives the first photoelectric signal of the i-th light-emitting device; x3 a represents the x coordinate of the third bubble position in the Cartesian coordinate system calculated using Uaij as a reference, y3 a represents the y coordinate of the third bubble position in the Cartesian coordinate system calculated using Uaij as a reference; Kxaij represents the first x parameter; Kyaij represents the first y parameter.
[0100] The first empirical formula (1) is a set of linear equations of two variables. As a mathematical model, its input is Uij, Uaij, and its output is (x3 a ,y3 a ). The meaning of Kxaij is that when the bubble position shifts 1 mm in the x direction, Uaij changes by 1 / Kxaij volts. The meaning of Kyaij is that when the bubble position shifts 1 mm in the y direction, Uaij changes by 1 / Kyaij volts. The first parameter (Kxaij, Kyaij) can be obtained through experiments and numerical calculation methods, such as the least squares method.
[0101] Accordingly, the second empirical formula under the linear model is:
[0102]
[0103] Wherein, i=1:m, represents the 1st to mth light-emitting devices in the electronic level bubble; j=1:n, represents the 1st to nth receiving devices in the electronic level bubble; Uij represents that when the bubble 320 is in the third bubble position, the jth receiving device receives the third photoelectric signal of the i-th light-emitting device; Ubij represents that when the bubble 320 is in the second bubble position, the jth receiving device receives the second photoelectric signal of the i-th light-emitting device; x3 b Indicates the x coordinate of the third bubble position in the Cartesian coordinate system calculated using Ubij as a reference, y3 b represents the y coordinate of the third bubble position in the Cartesian coordinate system calculated using Ubij as a reference; Kxbij represents the second x parameter; Kybij represents the second y parameter. Similar to the first empirical formula (1), the second parameter (Kxbij, Kybij) can be obtained according to the second empirical formula (2) by a numerical calculation method, such as the least squares method. In some embodiments, after step S260, it also includes:
[0104] Step S270: Calculate the current position of the bubble using the corrected bubble position calculation model. That is, when the electronic level is in any third state, the coordinates of the third bubble position (x3 a ,y3 a ) and (x3 b ,y3 b ).
[0105] According to the above steps, the first empirical formula and the second empirical formula with updated parameters can be obtained, thereby updating the bubble position calculation model in the electronic level bubble 310, and when a new photoelectric signal is obtained later, the accurate current position of the bubble can be obtained.
[0106] In other embodiments, the target positions include, for example, 3, each spaced 120 degrees apart. Based on such target positions, the calculation model is slightly more complex than the model of the above 2 target positions, but has better accuracy. In other embodiments, the target positions include, for example, 4, each spaced 90 degrees apart, with higher accuracy, and the modeling process may also be more complex.
[0107] In some embodiments, after obtaining (x3 a ,y3 a ) and (x3 b ,y3 b ), the correction method of the present application further comprises: a ,y3 a ) and (x3 b ,y3 b ) is weighted averaged to obtain the coordinates (x3, y3) used to represent the position of the third bubble.a ,y3 a ) and (x3 calculated by formula (2) b ,y3 b ) may be different. By weighted averaging, the error can be further eliminated to obtain more accurate coordinates (x3, y3).
[0108] In some embodiments, the correction method of the present application further includes: performing weighted average processing on the first photoelectric signal and the second photoelectric signal to obtain the photoelectric signal Udij when the bubble is located at the center position, and using the following formula (3) to calculate the third bubble position:
[0109]
[0110] Among them, i, j, m, n, and Uij have the same meanings as in formula (1) and formula (2). d represents the x coordinate of the third bubble position in the Cartesian coordinate system calculated using Udij as a reference, y3 d represents the y coordinate of the third bubble position in the Cartesian coordinate system calculated using Udij as a reference; Kxdij represents the third x parameter; Kydij represents the third y parameter. Similar to the first and second parameters, the third parameter (Kxdij, Kydij) can be obtained by numerical calculation, and the third bubble position (x3 d ,y3 d ).
[0111] The present application does not limit how to perform weighted averaging on the first photoelectric signal and the second photoelectric signal. For example, the first photoelectric signal and the second photoelectric signal may be assigned the same or different weight coefficients, and then summed. The sum of the weight coefficients may be 1.
[0112] Furthermore, in an embodiment including a display, the calibration method of the present application further includes the following steps:
[0113] Step S610: adjusting the position of the electronic level bubble so that the bubble position displayed on the display reaches the center position;
[0114] Step S620: At this time, a fourth photoelectric signal of the electronic level bubble is obtained, and the fourth photoelectric signal corresponds to the central bubble position of the bubble located at the center of the electronic level bubble;
[0115] Step S630: Calculate the third bubble position according to the third photoelectric signal and the fourth photoelectric signal.
[0116] In step S610, the bubble position can be adjusted to (0,0) by adjusting the horizontal state of the electronic device for setting the electronic level bubble, and the fourth photoelectric signal Uoij at this time is recorded as the photoelectric signal of the bubble at the center reference position. Then, the third bubble position (x3 o ,y3 o ). For example, the third bubble position (x3) is calculated using the following formula (4): o ,y3 o ):
[0117]
[0118] Wherein, i=1:m, represents the 1st to mth light-emitting devices in the electronic level bubble; j=1:n, represents the 1st to nth receiving devices in the electronic level bubble; Uij represents that when the bubble 320 is at the third bubble position, the jth receiving device receives the third photoelectric signal of the i-th light-emitting device; Uoij represents that when the bubble 320 is at the center bubble position, the jth receiving device receives the fourth photoelectric signal of the i-th light-emitting device; x3 o Indicates the x coordinate of the third bubble position in the Cartesian coordinate system, y3 o represents the y coordinate of the third bubble position in the Cartesian coordinate system; Kxoij represents the fourth x parameter, and Kyoij represents the fourth y parameter. Similar to the first parameter, the second parameter, and the third parameter, the fourth parameter (Kxoij, Kyoij) can be obtained by numerical calculation method.
[0119] The third bubble position (x3) calculated in steps S610 to S630 o ,y3 o ), can make the electronic level bubble have higher accuracy in the whole range and better long-term stability.
[0120] In practical applications, different requirements for accuracy, different acceptable levels of operational complexity, and in consideration of the preferences of technicians, different solutions can be adopted based on the ideas of the various embodiments described above to adjust and correct the electronic level bubble to remove the influence of drift on the accuracy of the electronic level bubble, update the calculation model parameters of the electronic level bubble, and obtain a bubble position with better accuracy. The model can also be nonlinear, which is related to the actual accuracy requirements, the experience and preferences of the technicians, etc.
[0121] Further, Figure 3A to Figure 5BIn the embodiment shown, m=3, n=3, then according to the correction method of the present application, 9 first photoelectric signals Uaij, 9 second photoelectric signals Ubij and 9 third photoelectric signals Uij can be obtained. These signals have some redundant data for solving the above formula (1) or (2). Therefore, the correction method of the present application also includes: performing a credibility check on the model parameters, including: obtaining the credibility by checking whether the redundant data are contradictory, and judging whether to partially correct, fully correct or not correct the model parameters of the bubble position calculation model according to the credibility, wherein the redundant data includes the photoelectric signals that do not need to participate in the calculation of the first parameter and the second parameter. Among them, partial correction refers to using the newly obtained model parameters together with the old parameters in the original model to perform weighted averaging to obtain new model parameters. Similarly, for the embodiment using formula (3) to calculate the third bubble position, the redundant data includes the photoelectric signals that do not need to participate in the calculation of the third x parameter and the third y parameter. For the embodiment using formula (4) to calculate the third bubble position, the redundant data includes the photoelectric signals that do not need to participate in the calculation of the fourth x parameter and the fourth y parameter.
[0122] By adopting the calibration method of the present application, the electronic level bubble inside the instrument can be calibrated at any time without opening the cover of the equipment (top cover or side cover, etc.), so that the equipment user can perform maintenance and adjustment by himself, or it can also be used for the calibration of the electronic level bubble during the production process of the instrument. This method has the advantages of simplicity, reliability and low cost.
[0123] Figure 6 600 is a schematic block diagram of a calibration device for an electronic level bubble according to an embodiment of the present application. The calibration device 600 comprises: a memory 601 for storing instructions executable by a processor 602; a controller 603 for controlling the tilt state of an electronic level bubble 604; and a processor 602 for executing instructions to implement the calibration method described above.
[0124] Combination Figure 3B , Figure 4B , Figure 5B , wherein a processor 360 is shown, the processor 360 may be Figure 6 The processor 602 is used to receive photoelectric signals from the electronic level bubble 310 or the electronic level bubble 604, and receive electrical signals from the tilt sensor, and process these photoelectric signals and electrical signals to calculate the bubble position, and send the bubble position to the display 340 for display.
[0125] refer to Figure 6, the correction device 600 may also include an internal communication bus 606 and a communication port 605. The memory 601 may be a program storage unit and a data storage unit in various forms, such as a hard disk, a read-only memory (ROM) and a random access memory (RAM), which can store various data files used for computer processing and / or communication, as well as possible program instructions executed by the processor 602. The internal communication bus 606 can realize data communication between the components of the correction device 600. The processor 602 can make judgments and issue prompts. In some embodiments, the processor 602 may be composed of one or more processors. The communication port 605 can realize data communication between the correction device 600 and the outside. In some embodiments, the correction device 600 can send and receive information and data from the network through the communication port 605. The result of the processing by the processor 602 is transmitted to the user device through the communication port 605 and displayed on the user interface. The user interface here is, for example Figure 3B Display 340 in.
[0126] For example, the above-mentioned correction method can be implemented as a computer program, stored in a hard disk, and loaded into the processor 602 for execution to implement the correction method of the present application.
[0127] In some embodiments, the calibration device 600 further includes a tilt sensor for detecting the tilt of the electronic level bubble and feeding back the tilt to the controller 603 to instruct the controller 603 to control the tilt state of the electronic level bubble.
[0128] In some embodiments, the electronic level bubble 604 is provided on an electronic device, and the controller 603 controls the tilt state of the electronic level bubble 604 by controlling the tilt state of the electronic device. For example, the adjustable foot of the electronic device is adjusted to make the bubble position on the display 340 reach a desired position.
[0129] In some embodiments, the tilt sensor includes a MEMS accelerometer. The present application uses a low-precision MEMS accelerometer, which is significantly different from an electronic level in terms of accuracy, measurement range, volume, and cost. The accuracy (resolution) of a level with an air bubble is extremely high, for example, a resolution of 0.01 / 1000, but the measurement range is very small, for example, ±3 / 1000. The tilt sensor made of a MEMS accelerometer has a low accuracy (resolution), for example, a resolution of 1 / 1000, but a large measurement range, for example, ±600 / 1000. The tilt sensor made of a MEMS accelerometer is very small in size and very low in cost.
[0130] Obviously, when high precision is required, the tilt sensor made of MEMS accelerometer cannot replace the bubble in the bubble. The tilt sensor made of MEMS accelerometer cannot confirm and ensure whether the bubble in the bubble is in the center. However, the tilt sensor made of MEMS accelerometer can confirm and ensure whether the bubble is higher on the left and lower on the right, and has sufficient inclination to ensure that the bubble is on the left. Therefore, the present application cooperates with the bubble in the bubble and the MEMS accelerometer to complement each other.
[0131] The present invention also includes a computer-readable medium storing a computer program code, which, when executed by a processor, implements the electronic level calibration method described above.
[0132] When the correction method of the electronic level is implemented as a computer program, it can also be stored in a computer-readable storage medium as a product. For example, a computer-readable storage medium may include, but is not limited to, a magnetic storage device (e.g., a hard disk, a floppy disk, a magnetic strip), an optical disk (e.g., a compact disk (CD), a digital versatile disk (DVD)), a smart card, and a flash memory device (e.g., an electrically erasable programmable read-only memory (EPROM), a card, a stick, a key drive). In addition, the various storage media described herein can represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media (and / or storage media) that can store, contain and / or carry code and / or instructions and / or data.
[0133] It should be understood that the embodiments described above are only illustrative. The embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For hardware implementation, the processor may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, and / or other electronic units designed to perform the functions described herein, or a combination thereof.
[0134] Some aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". The processor may be one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or combinations thereof. In addition, various aspects of the present application may be expressed as computer products located in one or more computer-readable media, which include computer-readable program codes. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, tapes ...), optical disks (e.g., compact disks CDs, digital versatile disks DVDs ...), smart cards, and flash memory devices (e.g., cards, sticks, key drives ...).
[0135] A computer-readable medium may include a propagated data signal containing computer program code, such as in baseband or as part of a carrier wave. The propagated signal may have a variety of manifestations, including electromagnetic, optical, etc., or a suitable combination. A computer-readable medium may be any computer-readable medium other than a computer-readable storage medium, which may be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit a program for use. The program code on the computer-readable medium may be propagated via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above mediums.
[0136] The basic concepts have been described above. Obviously, for those skilled in the art, the above invention disclosure is only used as an example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.
[0137] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0138] Similarly, it should be noted that in order to simplify the description of the disclosure of this application and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of this application are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0139] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
Claims
1. A method for calibrating an electronic level bubble, wherein the electronic level bubble has a shell, a side wall of the shell has liquid and bubbles in it, the side wall of the shell has at least two target positions, the at least two target positions include a first target position and a second target position, characterized in that: include: Controlling the tilt state of the electronic level bubble so that the electronic level bubble is in a first state, at which the first target position is higher than the second target position and the bubble contacts the side wall; In the first state, a first photoelectric signal of the electronic level bubble is acquired, wherein the first photoelectric signal corresponds to a first bubble position of the bubble; controlling the tilt state of the electronic level bubble to make the electronic level bubble in a second state, at which the second target position is higher than the first target position and the bubble contacts the side wall; In the second state, a second photoelectric signal of the electronic level bubble is acquired, wherein the second photoelectric signal corresponds to a second bubble position of the bubble; acquiring a third photoelectric signal when the electronic level bubble is in a third state, the third photoelectric signal corresponding to a third bubble position of the bubble; and The bubble position calculation model of the electronic level bubble is corrected according to the first photoelectric signal, the second photoelectric signal and the third photoelectric signal.
2. The calibration method according to claim 1, characterized in that: The step of correcting the bubble position calculation model of the electronic level bubble according to the first photoelectric signal, the second photoelectric signal and the third photoelectric signal comprises: Establishing a first empirical formula for the difference between the third photoelectric signal and the first photoelectric signal and the third bubble position, wherein the first empirical formula has a first parameter; establishing a second empirical formula relating the difference between the third photoelectric signal and the second photoelectric signal to the third bubble position, wherein the second empirical formula has a second parameter; and The first parameter and the second parameter are obtained by numerical calculation.
3. The calibration method according to claim 2, characterized in that: The electronic level has m light emitting devices and n receiving devices, wherein m and n are positive integers greater than or equal to 2, and the first parameter includes a first x parameter and a first y parameter. The first empirical formula is expressed by the following formula: Wherein, i=1:m, represents the 1st to mth light-emitting devices in the electronic bubble; j=1:n, represents the 1st to nth receiving devices in the electronic bubble; Uij represents that when the bubble is at the third bubble position, the jth receiving device receives the third photoelectric signal of the ith light-emitting device; Uaij represents that when the bubble is at the first bubble position, the jth receiving device receives the first photoelectric signal of the ith light-emitting device; x3 a represents the x coordinate of the third bubble position in the Cartesian coordinate system calculated using Uaij as a reference, y3 a represents the y coordinate of the third bubble position in the Cartesian coordinate system calculated using Uaij as a reference; Kxaij represents the first x parameter; Kyaij represents the first y parameter.
4. The calibration method according to claim 3, characterized in that: The electronic level has m light emitting devices and n receiving devices, wherein m and n are positive integers greater than or equal to 2, and the second parameter includes a second x parameter and a second y parameter. The second empirical formula is expressed by the following formula: Wherein, i=1:m, represents the 1st to mth light-emitting devices in the electronic bubble; j=1:n, represents the 1st to nth receiving devices in the electronic bubble; Uij represents that when the bubble is at the third bubble position, the jth receiving device receives the third photoelectric signal of the i-th light-emitting device; Ubij represents that when the bubble is at the second bubble position, the jth receiving device receives the second photoelectric signal of the i-th light-emitting device; x3 b Indicates the x coordinate of the third bubble position in the Cartesian coordinate system calculated using Ubij as a reference, y3 b It represents the y coordinate of the third bubble position in the Cartesian coordinate system calculated using Ubij as a reference; Kxbij represents the second x parameter; Kybij represents the second y parameter.
5. The calibration method according to claim 4, characterized in that: Also includes: Yes (x3 a ,y3 a ) and (x3 b ,y3 b ) are weighted averaged to obtain the coordinates (x3, y3) used to characterize the position of the third bubble.
6. The calibration method according to claim 1, wherein: Also includes: The first photoelectric signal and the second photoelectric signal are weighted averaged to obtain the photoelectric signal Udij when the bubble is located at the center position, and the third bubble position is calculated using the following formula: Wherein, i=1:m, represents the 1st to mth light-emitting devices in the electronic level bubble; j=1:n, represents the 1st to nth receiving devices in the electronic level bubble; Uij represents that when the bubble is at the third bubble position, the jth receiving device receives the third photoelectric signal of the i-th light-emitting device; x3 d represents the x coordinate of the third bubble position in the Cartesian coordinate system calculated using Udij as a reference, y3 d represents the y coordinate of the third bubble position in the Cartesian coordinate system calculated using Udij as a reference; Kxdij represents the third x parameter; Kydij represents the third y parameter.
7. The calibration method according to any one of claims 1 to 6, characterized in that: The at least two target positions are evenly distributed around the side wall.
8. The calibration method according to any one of claims 1 to 7, characterized in that: The first target position and the second target position are symmetrically arranged.
9. The calibration method according to any one of claims 1 to 8, characterized in that: Also includes: The corrected bubble position calculation model is used to calculate the current position of the bubble.
10. The calibration method according to any one of claims 1 to 9, characterized in that: Also includes: Adjusting the tilt of the electronic level bubble so that the bubble position displayed on the display reaches the center position; At this time, a fourth photoelectric signal of the electronic level bubble is acquired, wherein the fourth photoelectric signal corresponds to the central bubble position of the bubble being located at the center of the electronic level bubble; The third bubble position is calculated according to the third photoelectric signal and the fourth photoelectric signal.
11. The calibration method according to claim 10, characterized in that: The step of calculating the third bubble position according to the third photoelectric signal and the fourth photoelectric signal comprises: calculating using the following formula: Wherein, i=1:m, represents the 1st to mth light-emitting devices in the electronic level bubble; j=1:n, represents the 1st to nth receiving devices in the electronic level bubble; Uij represents that when the bubble is at the third bubble position, the jth receiving device receives the third photoelectric signal of the ith light-emitting device; Uoij represents that when the bubble is at the center bubble position, the jth receiving device receives the fourth photoelectric signal of the ith light-emitting device; x3 o represents the x coordinate of the third bubble position in the Cartesian coordinate system, y3 o represents the y coordinate of the third bubble position in the Cartesian coordinate system; Kxoij represents the fourth x parameter, and Kyoij represents the fourth y parameter.
12. The calibration method according to claim 4, characterized in that: It also includes a credibility check of the model parameters, including: obtaining credibility by checking whether redundant data are contradictory to each other, and judging whether to partially correct, fully correct or not correct the model parameters of the bubble position calculation model according to the credibility, wherein the redundant data includes photoelectric signals that do not need to participate in the calculation of the first parameter and the second parameter.
13. The calibration method according to claim 6, characterized in that: The method also includes performing a credibility check on the model parameters, including: obtaining credibility by checking whether redundant data are contradictory to each other, and judging whether to partially correct, fully correct, or not correct the model parameters of the bubble position calculation model according to the credibility, wherein the redundant data includes a photoelectric signal that does not need to participate in the calculation of the third x parameter and the third y parameter.
14. The calibration method according to claim 11, characterized in that: The method also includes performing a credibility check on the model parameters, including: obtaining credibility by checking whether redundant data are contradictory to each other, and judging whether to partially correct, fully correct, or not correct the model parameters of the bubble position calculation model according to the credibility, wherein the redundant data includes a photoelectric signal that does not need to participate in the calculation of the fourth x parameter and the fourth y parameter.
15. A correction device for an electronic level bubble, the electronic level bubble comprising a shell, the shell comprising a side wall, the side wall comprising liquid and bubbles, the side wall of the shell comprising at least two target positions, the at least two target positions comprising a first target position and a second target position, characterized in that: include: a memory for storing instructions executable by a processor; A controller, used to control the tilt state of the electronic level bubble; A processor, configured to execute the instructions to implement the correction method according to any one of claims 1 to 14.
16. The calibration device according to claim 15, characterized in that: It also includes a tilt sensor for detecting the tilt degree of the electronic level bubble and feeding back the tilt degree to the controller to instruct the controller to control the tilt state of the electronic level bubble.
17. The calibration device according to claim 16, characterized in that The tilt sensor includes a MEMS accelerometer.
18. The calibration device according to any one of claims 15 to 17, characterized in that: The electronic level bubble is disposed on an electronic device, and the controller is configured to control the tilt state of the electronic level bubble by controlling the tilt state of the electronic device.
19. A computer-readable medium storing computer program code, wherein the computer program code, when executed by a processor, implements the correction method according to any one of claims 1 to 14.
