Compensation method and device for mechanical zero offset of linear displacement sensor, electronic equipment and storage medium
By testing the actual zero position and standard zero position of the line displacement sensor, and calculating and winding the compensation coil, the problem of mechanical zero position offset of the line displacement sensor is solved, and the production efficiency and product quality are improved.
Patent Information
- Application Number
- CN202510278537.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-10
- Publication Date
- 2025-05-13
AI Technical Summary
During the production process of line displacement sensors, mechanical zero position deviation causes products to be unqualified, and the existing solutions are inefficient and cannot guarantee compensation.
By testing the line displacement sensor based on the displacement platform, the displacement between the actual zero position and the standard zero position of the line pack assembly is determined, the number of turns of the compensation coil is calculated, and the target compensation coil is wound to compensate for the mechanical zero position offset.
It realizes efficient compensation for mechanical zero-position offset of linear displacement sensors, improves production efficiency, reduces costs, and ensures product quality.
Smart Images

Figure CN119984021A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of linear displacement sensors, and in particular to a method, device, electronic device and storage medium for compensating a mechanical zero offset of a linear displacement sensor. Background Art
[0002] During the production process of a linear displacement sensor, if it is found that the mechanical zero position of a wire package assembly is offset and fails to meet the requirements, the solution is to remove the wire package assembly and then rewind the wire. However, this offset elimination method has low production efficiency and cannot guarantee whether the mechanical zero position of the rewound wire package assembly is qualified. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for compensating the mechanical zero offset of a linear displacement sensor, so as to realize compensation for the mechanical zero offset of the linear displacement sensor. At the same time, the present application has the advantages of a simple calculation process, no need to disassemble the wire package assembly and rewind the wire, which can improve production efficiency and reduce costs.
[0004] In a first aspect, the present invention provides a method for compensating a mechanical zero offset of a linear displacement sensor, the method comprising:
[0005] The linear displacement sensor is tested based on a displacement platform to obtain an actual zero position of a coil assembly of the linear displacement sensor, wherein the actual zero position of the coil assembly is a position where an actual voltage value of the first secondary coil is equal to an actual voltage value of the second secondary coil, and the secondary coil of the coil assembly includes the first secondary coil and the second secondary coil;
[0006] Based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly, determining the displacement of the actual zero position relative to the standard zero position;
[0007] Determining the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil and the proportional factor;
[0008] A target compensation coil is wound based on the number of turns of the compensation coil to compensate for the mechanical zero position of the winding assembly.
[0009] The method of the first aspect of the present application can test the linear displacement sensor based on the displacement platform to obtain the actual zero position of the wire package assembly, and then determine the displacement of the actual zero position relative to the standard zero position based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly, and then determine the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor, so as to wind the target compensation coil based on the number of turns of the compensation coil to compensate for the mechanical zero position of the wire package assembly. Compared with the prior art, the present application has the advantages of simple calculation process, no need to disassemble the wire package assembly and rewind the wire, and can improve production efficiency and reduce costs.
[0010] In an optional embodiment, the method further comprises:
[0011] Calculating a total voltage value of the secondary coil based on an actual voltage value of the first secondary coil and an actual voltage value of the second secondary coil;
[0012] The voltage of each coil turn of the secondary coil is calculated based on the total voltage value of the secondary coil and the total number of coil turns of the secondary coil.
[0013] This optional implementation can calculate the total voltage value of the secondary coil based on the actual voltage value of the first secondary coil and the actual voltage value of the second secondary coil, and further can calculate the voltage of each turn of the secondary coil based on the total voltage value of the secondary coil and the total number of turns of the secondary coil.
[0014] In an optional implementation, determining the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor comprises:
[0015] Determining the offset direction of the actual zero position based on the displacement of the actual zero position relative to the standard zero position;
[0016] When the actual zero position shifts to the right, determining a first difference, where the first difference is a difference between an actual voltage value of the first secondary coil and a theoretical voltage value of the first secondary coil;
[0017] The number of turns of the compensation coil is determined based on the first difference, the voltage of each turn of the secondary coil, and the proportional factor.
[0018] This optional implementation can determine a first difference when the actual zero position shifts to the right, where the first difference is the difference between the actual voltage value of the first secondary coil and the theoretical voltage value of the first secondary coil, and then can determine the number of turns of the compensation coil based on the first difference, the voltage of each turn of the secondary coil and the proportional factor.
[0019] In an optional implementation, the calculation formula for determining the number of turns of the compensation coil based on the first difference, the voltage of each turn of the secondary coil and the proportional factor is:
[0020] S = △VB / Vn×δ;
[0021] Wherein, S represents the number of turns of the compensation coil, ΔVB represents the first difference, Vn represents the voltage of each turn of the secondary coil, and δ represents the proportional factor.
[0022] This optional implementation can accurately calculate the number of turns of the compensation coil through the calculation formula S=ΔVB / Vn×δ.
[0023] In an optional embodiment, the determining the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil and the proportional factor further includes:
[0024] When the actual zero position shifts to the left, determining a second difference, where the second difference is a difference between an actual voltage value of the second secondary coil and a theoretical voltage value of the second secondary coil;
[0025] The number of turns of the compensation coil is determined based on the second difference, the voltage of each turn of the secondary coil, and the proportional factor.
[0026] This optional implementation can determine a second difference when the actual zero position shifts to the left, where the second difference is the difference between the actual voltage value of the second secondary coil and the theoretical voltage value of the second secondary coil, and then can determine the number of turns of the compensation coil based on the second difference, the voltage of each turn of the secondary coil and the proportional factor.
[0027] In an optional implementation, the calculation formula for determining the number of turns of the compensation coil based on the second difference, the voltage of each turn of the secondary coil and the proportional factor is:
[0028] S = △VA / Vn×δ;
[0029] Wherein, S represents the number of turns of the compensation coil, ΔVA represents the second difference, Vn represents the voltage of each turn of the secondary coil, and δ represents the proportional factor.
[0030] This optional implementation can accurately calculate the number of turns of the compensation coil through the calculation formula S=△VA / Vn×δ.
[0031] In an optional embodiment, the method further comprises:
[0032] The proportional factor is calculated based on the number of turns of the primary coil of the coil assembly and the total number of turns of the secondary coil.
[0033] This optional implementation can calculate the proportional factor based on the number of turns of the primary coil of the coil assembly and the total number of turns of the secondary coil.
[0034] In a second aspect, the present invention provides a compensation device for a mechanical zero offset of a linear displacement sensor, the device comprising:
[0035] A testing module, used for testing the linear displacement sensor based on a displacement platform to obtain an actual zero position of a coil assembly of the linear displacement sensor, wherein the actual zero position of the coil assembly is a position where an actual voltage value of the first secondary coil is equal to an actual voltage value of the second secondary coil, and the secondary coil of the coil assembly includes the first secondary coil and the second secondary coil;
[0036] A first determination module, configured to determine a displacement of the actual zero position relative to the standard zero position based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly;
[0037] A second determination module is used to determine the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor;
[0038] The compensation module is used to wind a target compensation coil based on the number of turns of the compensation coil to compensate for the mechanical zero position of the winding assembly.
[0039] The device of the second aspect of the present application can test the linear displacement sensor based on the displacement platform to obtain the actual zero position of the wire package assembly, and then can determine the displacement of the actual zero position relative to the standard zero position based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly, and then determine the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor, so as to wind the target compensation coil based on the number of turns of the compensation coil to compensate for the mechanical zero position of the wire package assembly. Compared with the prior art, the present application has the advantages of simple calculation process, no need to disassemble the wire package assembly and rewind the wire, and can improve production efficiency and reduce costs.
[0040] In a third aspect, the present invention provides an electronic device, comprising:
[0041] Processor; and
[0042] The memory is configured to store machine-readable instructions, and when the instructions are executed by the processor, the method for compensating the mechanical zero offset of the linear displacement sensor as described in any of the aforementioned embodiments is executed.
[0043] The electronic device of the third aspect of the present application can test the linear displacement sensor based on the displacement platform to obtain the actual zero position of the wire package assembly by executing the compensation method of the mechanical zero position offset of the linear displacement sensor, and then can determine the displacement of the actual zero position relative to the standard zero position based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly, and then determine the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor, so as to wind the target compensation coil based on the number of turns of the compensation coil to compensate for the mechanical zero position of the wire package assembly. Compared with the prior art, the present application has the advantages of simple calculation process, no need to dismantle the wire package assembly and rewind the wire, and can improve production efficiency and reduce costs.
[0044] In a fourth aspect, the present invention provides a storage medium storing a computer program, wherein the computer program is executed by a processor as described in any one of the aforementioned embodiments for compensating the mechanical zero offset of a linear displacement sensor.
[0045] The storage medium of the fourth aspect of the present application can test the linear displacement sensor based on the displacement platform to obtain the actual zero position of the wire package assembly by executing the compensation method of the mechanical zero position offset of the linear displacement sensor, and then can determine the displacement of the actual zero position relative to the standard zero position based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly, and then determine the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor, so as to wind the target compensation coil based on the number of turns of the compensation coil to compensate for the mechanical zero position of the wire package assembly. Compared with the prior art, the present application has the advantages of simple calculation process, no need to dismantle the wire package assembly and rewind, and can improve production efficiency and reduce costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 It is a flow chart of a method for compensating a mechanical zero offset of a linear displacement sensor disclosed in an embodiment of the present application;
[0048] Figure 2 It is a schematic diagram of the specific structure of a wire package assembly disclosed in an embodiment of the present application;
[0049] Figure 3 It is a schematic diagram of zero offset of a wire package assembly disclosed in an embodiment of the present application;
[0050] Figure 4 It is a structural schematic diagram of a compensation device for mechanical zero offset of a linear displacement sensor disclosed in an embodiment of the present application;
[0051] Figure 5 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0053] Embodiment 1
[0054] See also Figure 1 , Figure 1 is a flow chart of a method for compensating a mechanical zero offset of a linear displacement sensor disclosed in an embodiment of the present application, such as Figure 1 As shown, the method of the embodiment of the present application includes the following steps:
[0055] 101. Testing the linear displacement sensor based on the displacement platform to obtain an actual zero position of a wire package assembly of the linear displacement sensor, wherein the actual zero position of the wire package assembly is a position where an actual voltage value of the first secondary coil is equal to an actual voltage value of the second secondary coil, and the secondary coil of the wire package assembly includes a first secondary coil and a second secondary coil;
[0056] 102. Based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly, determine the displacement of the actual zero position relative to the standard zero position;
[0057] 103. Determine the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil and the proportional factor;
[0058] 104. Wind a target compensation coil based on the number of turns of the compensation coil to compensate for the mechanical zero position of the winding assembly.
[0059] The method of the embodiment of the present application can test the linear displacement sensor based on the displacement platform to obtain the actual zero position of the wire package assembly, and then determine the displacement of the actual zero position relative to the standard zero position based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly, and then determine the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor, so as to wind the target compensation coil based on the number of turns of the compensation coil to compensate for the mechanical zero position of the wire package assembly. Compared with the prior art, the present application has the advantages of simple calculation process, no need to disassemble the wire package assembly and rewind the wire, and can improve production efficiency and reduce costs.
[0060] In an embodiment of the present application, as an example, assuming that the mechanical zero position of the coil assembly is offset, the number of turns of the compensation coil can be calculated in the above manner, wherein the number of turns of the compensation coil can be 10 turns, and then 10 turns of the coil can be added to the existing coil of the coil assembly to correct the mechanical zero position of the coil assembly and make the mechanical zero position of the coil assembly qualified.
[0061] In the embodiment of the present application, the wire package assembly is a part of the structure of the linear displacement sensor, wherein the specific structure of the wire package assembly is as follows: Figure 2 As shown, Figure 2 Schematic diagram of the specific structure of a wire package assembly disclosed in the embodiment of the present application. Figure 2 As shown, the coil assembly is mainly composed of an iron core, a primary coil, a first secondary coil, a second secondary coil and a magnetic cover. Furthermore, the working principle of the coil assembly is: when an excitation voltage is applied to the primary coil, the magnetic field passes through the iron core and the magnetic cover to form a magnetic circuit, and an induced voltage is generated on the first secondary coil and the second secondary coil. When the iron core moves to the right, the effective number of turns of the first secondary coil increases, and the induced voltage increases, while the effective number of turns of the second secondary coil decreases, and the induced voltage decreases.
[0062] In an embodiment of the present application, testing the linear displacement sensor based on the displacement platform may refer to moving the iron core of the wire package assembly based on the displacement platform, and searching for a position that meets preset conditions during the movement of the iron core, which is the position where the actual voltage value of the first secondary coil is equal to the actual voltage value of the second secondary coil, that is, the position where the actual voltage value of the first secondary coil is equal to the actual voltage value of the second secondary coil.
[0063] In the embodiment of the present application, the standard zero position of the wire package assembly may refer to the iron core of the wire package assembly being located in the middle position of the wire package assembly.
[0064] In the embodiment of the present application, the displacement of the actual zero position relative to the standard zero position is a vector, and the displacement direction of the actual zero position relative to the standard zero position can be identified based on the vector. Figure 3 , Figure 3 Schematic diagram of zero offset of a wire package assembly disclosed in an embodiment of the present application. Figure 3 As shown, the actual zero position can be offset to the left or to the right relative to the standard zero position.
[0065] In the embodiment of the present application, as an optional implementation, the method of the embodiment of the present application further includes the following steps:
[0066] Calculating a total voltage value of the secondary coil based on an actual voltage value of the first secondary coil and an actual voltage value of the second secondary coil;
[0067] The voltage of each turn of the secondary coil is calculated based on the total voltage value of the secondary coil and the total number of turns of the secondary coil.
[0068] This optional implementation can calculate the total voltage value of the secondary coil based on the actual voltage value of the first secondary coil and the actual voltage value of the second secondary coil, and further can calculate the voltage of each turn of the secondary coil based on the total voltage value of the secondary coil and the total number of turns of the secondary coil.
[0069] With respect to the above optional implementation manner, in the embodiment of the present application, the voltage of each turn of the secondary coil may be calculated as follows:
[0070] Vn=(VA+VB) / (2(N1+N2));
[0071] Wherein, Vn represents the voltage of each turn of the secondary coil, VA is the actual voltage value of the first secondary coil, VB is the actual voltage value of the second secondary coil, N1 represents the number of turns of the first secondary coil, and N2 represents the number of turns of the second secondary coil.
[0072] In the embodiment of the present application, as an optional implementation, the step of determining the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil and the proportional factor includes the following steps:
[0073] Determine the offset direction of the actual zero position based on the displacement of the actual zero position relative to the standard zero position;
[0074] When the actual zero position shifts to the right, a first difference is determined, where the first difference is a difference between an actual voltage value of the first secondary coil and a theoretical voltage value of the first secondary coil;
[0075] The number of turns of the compensation coil is determined based on the first difference, the voltage of each turn of the secondary coil and the proportional factor.
[0076] This optional implementation can determine a first difference when the actual zero position shifts to the right, where the first difference is the difference between the actual voltage value of the first secondary coil and the theoretical voltage value of the first secondary coil, and then can determine the number of turns of the compensation coil based on the first difference, the voltage of each turn of the secondary coil, and the proportional factor.
[0077] In the embodiment of the present application, as an optional implementation, the calculation formula for determining the number of turns of the compensation coil based on the first difference, the voltage of each turn of the secondary coil and the proportional factor is:
[0078] S = △VB / Vn×δ;
[0079] Wherein, S represents the number of turns of the compensation coil, ΔVB represents the first difference, Vn represents the voltage of each turn of the secondary coil, and δ represents the proportional factor.
[0080] This optional implementation can accurately calculate the number of turns of the compensation coil through the calculation formula S=△VB / Vn×δ.
[0081] In the embodiment of the present application, as an optional implementation, the number of turns of the compensation coil is determined based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor, and further includes:
[0082] When the actual zero position shifts to the left, a second difference is determined, where the second difference is a difference between an actual voltage value of the second secondary coil and a theoretical voltage value of the second secondary coil;
[0083] The number of turns of the compensation coil is determined based on the second difference, the voltage of each turn of the secondary coil and the proportional factor.
[0084] This optional implementation can determine a second difference when the actual zero position shifts to the left, where the second difference is the difference between the actual voltage value of the second secondary coil and the theoretical voltage value of the second secondary coil, and then can determine the number of turns of the compensation coil based on the second difference, the voltage of each turn of the secondary coil and the proportional factor.
[0085] In the embodiment of the present application, as an optional implementation, the calculation formula for determining the number of turns of the compensation coil based on the second difference, the voltage of each turn of the secondary coil and the proportional factor is:
[0086] S = △VA / Vn×δ;
[0087] Wherein, S represents the number of turns of the compensation coil, ΔVA represents the second difference, Vn represents the voltage of each turn of the secondary coil, and δ represents the proportional factor.
[0088] This optional implementation can accurately calculate the number of turns of the compensation coil through the calculation formula S=△VA / Vn×δ.
[0089] In the embodiment of the present application, as an optional implementation manner, the method of the embodiment of the present application further includes the following steps:
[0090] The scaling factor is calculated based on the number of turns in the primary coil of the coil assembly and the total number of coil turns in the secondary coil.
[0091] This optional embodiment can calculate the proportionality factor based on the number of turns of the primary coil of the coil assembly and the total number of turns of the secondary coil.
[0092] Embodiment 2
[0093] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a compensation device for mechanical zero offset of a linear displacement sensor disclosed in an embodiment of the present application, such as Figure 4 As shown, the device of the embodiment of the present application includes the following functional modules:
[0094] A testing module 201 is used to test the linear displacement sensor based on the displacement platform to obtain the actual zero position of the coil assembly of the linear displacement sensor, where the actual zero position of the coil assembly is the position where the actual voltage value of the first secondary coil is equal to the actual voltage value of the second secondary coil, and the secondary coil of the coil assembly includes the first secondary coil and the second secondary coil;
[0095] A first determination module 202 is used to determine the displacement of the actual zero position relative to the standard zero position based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly;
[0096] A second determination module 203 is used to determine the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor;
[0097] The compensation module 204 is used to wind a target compensation coil based on the number of turns of the compensation coil to compensate for the mechanical zero position of the winding assembly.
[0098] The device of the embodiment of the present application can test the linear displacement sensor based on the displacement platform to obtain the actual zero position of the wire package assembly, and then determine the displacement of the actual zero position relative to the standard zero position based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly, and then determine the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor, so as to wind the target compensation coil based on the number of turns of the compensation coil to compensate for the mechanical zero position of the wire package assembly. Compared with the prior art, the present application has the advantages of simple calculation process, no need to dismantle the wire package assembly and rewind the wire, and can improve production efficiency and reduce costs.
[0099] Embodiment 3
[0100] See also Figure 5 , Figure 5 is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application, such as Figure 5 As shown, the electronic device of the embodiment of the present application includes:
[0101] Processor 301; and
[0102] The memory 302 is configured to store machine-readable instructions, and when the instructions are executed by the processor 301, the method for compensating the mechanical zero offset of the linear displacement sensor as described in any of the aforementioned embodiments is executed.
[0103] The electronic device of the embodiment of the present application can test the linear displacement sensor based on the displacement platform by executing the compensation method of the mechanical zero position offset of the linear displacement sensor, so as to obtain the actual zero position of the wire package assembly, and then determine the displacement of the actual zero position relative to the standard zero position based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly, and then determine the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor, so as to wind the target compensation coil based on the number of turns of the compensation coil to compensate for the mechanical zero position of the wire package assembly. Compared with the prior art, the present application has the advantages of simple calculation process, no need to dismantle the wire package assembly and rewind the wire, and can improve production efficiency and reduce costs.
[0104] Embodiment 4
[0105] An embodiment of the present application provides a storage medium, which stores a computer program. The computer program is executed by a processor as a method for compensating a mechanical zero offset of a linear displacement sensor according to any of the aforementioned implementations.
[0106] The storage medium of the embodiment of the present application can test the linear displacement sensor based on the displacement platform to obtain the actual zero position of the wire package assembly by executing the compensation method of the mechanical zero position offset of the linear displacement sensor, and then can determine the displacement of the actual zero position relative to the standard zero position based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly, and then determine the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor, so as to wind the target compensation coil based on the number of turns of the compensation coil to compensate for the mechanical zero position of the wire package assembly. Compared with the prior art, the present application has the advantages of simple calculation process, no need to disassemble the wire package assembly and rewind the wire, and can improve production efficiency and reduce costs.
[0107] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0108] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0109] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0110] It should be noted that if the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0111] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0112] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for compensating mechanical zero offset of a linear displacement sensor, characterized in that: The method comprises: The linear displacement sensor is tested based on a displacement platform to obtain an actual zero position of a coil assembly of the linear displacement sensor, wherein the actual zero position of the coil assembly is a position where an actual voltage value of the first secondary coil is equal to an actual voltage value of the second secondary coil, and the secondary coil of the coil assembly includes the first secondary coil and the second secondary coil; Based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly, determining the displacement of the actual zero position relative to the standard zero position; Determining the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil and the proportional factor; A target compensation coil is wound based on the number of turns of the compensation coil to compensate for the mechanical zero position of the winding assembly.
2. The method according to claim 1, characterized in that The method further comprises: Calculating a total voltage value of the secondary coil based on an actual voltage value of the first secondary coil and an actual voltage value of the second secondary coil; The voltage of each coil turn of the secondary coil is calculated based on the total voltage value of the secondary coil and the total number of coil turns of the secondary coil.
3. The method according to claim 1, characterized in that The step of determining the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor comprises: Determining the offset direction of the actual zero position based on the displacement of the actual zero position relative to the standard zero position; When the actual zero position shifts to the right, determining a first difference, where the first difference is a difference between an actual voltage value of the first secondary coil and a theoretical voltage value of the first secondary coil; The number of turns of the compensation coil is determined based on the first difference, the voltage of each turn of the secondary coil, and the proportional factor.
4. The method according to claim 3, characterized in that The calculation formula for determining the number of turns of the compensation coil based on the first difference, the voltage of each turn of the secondary coil and the proportional factor is: S = △VB / Vn×δ; Wherein, S represents the number of turns of the compensation coil, ΔVB represents the first difference, Vn represents the voltage of each turn of the secondary coil, and δ represents the proportional factor.
5. The method according to claim 3, characterized in that The method of determining the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil and the proportional factor, further comprises: When the actual zero position shifts to the left, determining a second difference, where the second difference is a difference between an actual voltage value of the second secondary coil and a theoretical voltage value of the second secondary coil; The number of turns of the compensation coil is determined based on the second difference, the voltage of each turn of the secondary coil, and the proportional factor.
6. The method according to claim 5, characterized in that The calculation formula for determining the number of turns of the compensation coil based on the second difference, the voltage of each turn of the secondary coil and the proportional factor is: S = △VA / Vn×δ; Wherein, S represents the number of turns of the compensation coil, ΔVA represents the second difference, Vn represents the voltage of each turn of the secondary coil, and δ represents the proportional factor.
7. The method according to claim 1, characterized in that The method further comprises: The proportional factor is calculated based on the number of turns of the primary coil of the coil assembly and the total number of turns of the secondary coil.
8. A compensation device for mechanical zero offset of a linear displacement sensor, characterized in that: The device comprises: A testing module, used for testing the linear displacement sensor based on a displacement platform to obtain an actual zero position of a coil assembly of the linear displacement sensor, wherein the actual zero position of the coil assembly is a position where an actual voltage value of the first secondary coil is equal to an actual voltage value of the second secondary coil, and the secondary coil of the coil assembly includes the first secondary coil and the second secondary coil; A first determination module, configured to determine a displacement of the actual zero position relative to the standard zero position based on the actual zero position of the wire package assembly and the standard zero position of the wire package assembly; A second determination module is used to determine the number of turns of the compensation coil based on the displacement of the actual zero position relative to the standard zero position, the voltage of each turn of the secondary coil, and the proportional factor; The compensation module is used to wind a target compensation coil based on the number of turns of the compensation coil to compensate for the mechanical zero position of the winding assembly.
9. An electronic device, characterized in that: include: processor; as well as A memory configured to store machine-readable instructions, which, when executed by the processor, execute the method for compensating the mechanical zero offset of the linear displacement sensor as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is executed by a processor to implement the method for compensating the mechanical zero offset of a linear displacement sensor as described in any one of claims 1 to 7.