Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first", "second" and "third" in the embodiments of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, a flowchart of an embodiment of a method for reducing interference of motor leakage flux on a magnetic encoder is provided.
S11: and detecting the distribution condition of the motor leakage flux and finding out a first position with relatively small motor leakage flux.
And detecting the distribution condition of the motor leakage flux and finding out a first position with relatively small motor leakage flux. Specifically, a plurality of magnetic field strengths of the whole body of the motor shell are detected by a gaussmeter, the plurality of magnetic field strengths and corresponding positions of the magnetic field strengths are recorded, the plurality of magnetic field strengths are compared, the minimum magnetic field strength is selected, and then a first position corresponding to the minimum magnetic field strength is found.
More specifically, a plurality of detection positions are uniformly arranged around the motor shell, the magnetic field strengths of the detection positions are detected by a gaussmeter, and then the magnetic field strengths of the detection positions are recorded, so that the minimum value of the magnetic field strengths is obtained. In view of the fact that the detected positions of the motor are relatively random, the local minimum value obtained by comparing the magnetic field strengths of the detected positions is not necessarily the minimum value of the magnetic field strength of the whole motor shell, and an error inevitably exists, so that the position can be used as a first position with relatively small motor leakage flux for further adjustment according to the first position.
Optionally, 12 detection positions are uniformly arranged along the whole circumference of the motor housing, or 18, 24, 36 and other detection positions are arranged, which is not limited in the present application.
S12: the first position of the motor is mounted adjacent to the magnetic encoder.
Installing a first position of the motor close to the magnetic encoder, and regarding the position relation between the magnetic encoder and the first position, firstly fixing the magnetic encoder, and adjusting the position of the motor to ensure that the distance between the first position and the magnetic encoder is minimum; or fixing the motor, and after determining the first position, arranging the magnetic encoder at the position closest to the first position.
Inevitably, the motor will leak magnetic, which in turn affects the accuracy of the magnetic encoder. The first position with relatively small leakage flux of the motor is detected due to the fact that the magnetic field generated by the permanent magnet inside the motor on the shell is not distributed uniformly, the first position is close to the magnetic encoder during installation, the interference of the magnetic field of the motor on the magnetic encoder can be effectively reduced, and therefore the accuracy of the magnetic encoder is guaranteed to the maximum extent.
Referring to fig. 2, a flow chart of another embodiment of a method for reducing interference of motor leakage flux on a magnetic encoder is provided.
S21: and detecting the distribution condition of the motor leakage flux and finding out a first position with relatively small motor leakage flux.
Evenly set up a plurality of detection positions around motor housing, detect the magnetic field intensity of a plurality of detection positions with the gaussmeter, the magnetic field intensity of a plurality of detection positions of rerecording, and then obtain the minimum among a plurality of magnetic field intensities, the detection position that this minimum corresponds is the first position that motor magnetic leakage is less relatively.
S22: a first location is identified on the motor housing.
To facilitate subsequent adjustment of the mounting orientation of the motor based on the first position, the first position is marked on the motor housing.
S23: the mounting orientation of the motor is adjusted to minimize the distance from the first position to the magnetic encoder.
The mounting orientation of the motor is adjusted to minimize the distance from the first position to the magnetic encoder. The motor and the magnetic encoder are both installed on the fixing seat, wherein the motor is cylindrical, the motor is installed and fixed in a motor installation groove in the fixing seat, and the installation position of the magnetic encoder is located on the cylindrical side face of the motor. The detected magnetic leakage distribution condition of the whole body of the motor is the magnetic leakage distribution condition of the whole periphery of the side surface of the motor, and the first position is positioned on the side surface of the electrode, so that the installation direction of the motor can be adjusted to ensure that the distance from the first position to the magnetic encoder is shortest.
The first position on the motor with relatively small leakage flux faces the magnetic encoder, and the interference of the magnetic field generated by the motor due to the leakage flux on the magnetic encoder is also greatly reduced.
Referring to fig. 3, a schematic flow chart of another embodiment of a method for reducing interference of motor leakage flux on a magnetic encoder is provided.
S301: the magnetic encoder is fixed on the fixed seat.
The magnetic encoder is fixed on the fixed seat. The magnetic encoder is provided with a plurality of magnetosensitive elements along the circumference evenly, and the installation position of adjustment magnetic encoder is very limited to magnetic encoder's precision influence, and the installation position of motor is different, has the regional just to magnetic encoder of different magnetic leakage, and is more or less to magnetic encoder's precision influence. In this embodiment, the magnetic encoder is fixed first, and then the installation position of the motor is adjusted.
S302: a first reading of the magnetic encoder is detected and recorded.
The magnetic encoder is coupled to a magnetic encoder reader, and a first reading of the magnetic encoder is detected and recorded prior to the motor being installed, the first reading being measured without any magnetic interference from the magnetic encoder.
S303: and detecting the distribution condition of the motor leakage flux and finding out a first position with relatively small motor leakage flux.
Evenly set up a plurality of detection positions around motor housing, detect the magnetic field intensity of a plurality of detection positions with the gaussmeter, the magnetic field intensity of a plurality of detection positions of rerecording, and then obtain the minimum among a plurality of magnetic field intensities, the detection position that this minimum corresponds is the first position that motor magnetic leakage is less relatively.
S304: a first location is identified on the motor housing.
To facilitate subsequent adjustment of the mounting orientation of the motor based on the first position, the first position is marked on the motor housing.
S305: the mounting orientation of the motor is adjusted to minimize the distance from the first position to the magnetic encoder.
S306: a second reading of the magnetic encoder is detected and recorded.
After step S305, a second reading of the magnetic encoder is again detected and recorded, the second reading being measured with the first position on the motor being at the shortest distance from the magnetic encoder.
S307: and subtracting the first reading from the second reading to obtain a first difference value, and verifying whether the first difference value is within a preset threshold range.
And subtracting the first reading from the second reading to obtain a first difference value, and verifying whether the first difference value is within a preset threshold range. If so, the magnetic interference of the motor to the magnetic encoder is within an acceptable range, the motor is fixed in the motor mounting groove in the current mounting position of the motor, and the process is ended. If not, go to step S308.
Specifically, the preset threshold range is plus or minus 0.5 degrees.
S308: and detecting the distribution condition of the leakage flux of the motor again on the motor shell within 30 degrees of the left and right of the first position, and finding out a second position where the leakage flux of the motor is relatively small near the first position.
When the first difference exceeds the preset threshold range, it can be considered that a region with less leakage flux exists near the first position. And detecting the distribution condition of the leakage flux of the motor again on the motor shell within 30 degrees of the left and right of the first position, and finding out a second position where the leakage flux of the motor is relatively small near the first position. That is, a plurality of detection positions are uniformly provided in a range of 30 degrees to the left and right of the first position on the electrode case, the magnetic field strengths of the detection positions are detected again, the magnitudes of the magnetic field strengths are compared to obtain the minimum value, and the detection position corresponding to the minimum value is regarded as the second position.
Alternatively, in view of the fact that the magnetic field strength at the detection positions on both sides of the first position is greater than the magnetic field strength at the first position on the first detection motor housing, a plurality of detection positions may be provided on the region between the two detection positions to obtain the second position.
S309: the mounting orientation of the motor is adjusted to minimize the distance from the second position to the magnetic encoder.
The mounting orientation of the motor is again adjusted to minimize the distance from the second position to the magnetic encoder. If the detected second position coincides with the first position, it is described that the interval between the plurality of detected positions set for the second time is too large, and the interval between the plurality of detected positions needs to be reduced.
S310: a third reading of the magnetic encoder is detected and recorded.
Similarly, a third reading of the magnetic encoder is again detected and recorded for comparison with the first reading.
S311: and subtracting the first reading from the third reading to obtain a second difference value, and verifying whether the second difference value is within a preset threshold range.
And subtracting the first reading from the third reading to obtain a second difference value, and verifying whether the second difference value is within a preset threshold range. If yes, the flow is ended. If not, the second difference is still outside the plus or minus 0.5 degrees, the motor is replaced, and step S303 is executed again.
Optionally, if not, a review is needed here, and whether the interval of the detection positions of the motor is reasonable is detected for the first time, and after the interval is reduced, the detection positions are increased, and step S303 is executed again.
Referring to fig. 4, a schematic flowchart of another embodiment of a method for reducing interference of motor leakage flux on a magnetic encoder according to the present application is shown.
S41: the magnetic encoder is fixed on the fixed seat.
S42: the magnetic encoder is electrically connected to the magnetic encoding reader and records a first reading displayed on the magnetic encoding reader.
S43: and the motor is arranged on the fixed seat, the installation position of the motor is rotationally adjusted, and a plurality of second readings displayed on the magnetic coding reading instrument are recorded.
Uniformly marking a plurality of detection positions on the fixed seat, installing the motor on the fixed seat, and rotationally adjusting the installation position of the motor to ensure that the distance between the plurality of detection positions and the magnetic encoder is the shortest in sequence, recording the second reading of the magnetic encoder at the moment, and obtaining a plurality of second readings corresponding to the plurality of detection positions.
S44: subtracting the first reading from the plurality of second readings to obtain a plurality of first differences, and selecting the minimum value of the plurality of first differences.
S45: and judging whether the minimum value is within a preset threshold range.
Judging whether the minimum value is within a preset threshold range, if so, executing step S46; if not, the motor is replaced, and step S42 is executed.
Alternatively, if not, the interval of the detection positions is decreased, that is, the detection positions are increased, and step S42 is executed again.
S46: the adjustment motor is rotated so that the distance between the position corresponding to the minimum value and the magnetic encoder becomes the shortest.
Referring to fig. 5, a schematic structural diagram of an embodiment of a motor assembly provided in the present application is shown.
The motor assembly 50 includes a motor 51 and a magnetic encoder 52. The leakage distribution of the motor 51 is not uniform, and the magnetic encoder 52 is fixed relative to the position on the motor where the leakage distribution is relatively small. That is, the distance from the position on the motor 51 where the leakage flux distribution is relatively small to the magnetic encoder 52 is the shortest, so that the magnetic interference of the magnetic field generated by the leakage flux of the motor to the magnetic encoder is within the allowable range, and further, the accuracy of the magnetic encoder 52 is within the allowable range.
The beneficial effect of this application is: different from the prior art, the method and the motor assembly for reducing the interference of motor leakage flux on the magnetic encoder are provided. The method for reducing the interference of motor leakage flux to the magnetic encoder comprises the following steps: detecting the distribution condition of motor leakage flux and finding out a first position with relatively small motor leakage flux; the first position of the motor is mounted adjacent to the magnetic encoder. In this way, this application is close to magnetic encoder with the installation of the relatively less first position of magnetic leakage on the motor, has greatly reduced the magnetic field that the motor magnetic leakage produced to magnetic encoder's magnetic interference, has guaranteed magnetic encoder's accuracy effectively.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.