Motor steering testing method and testing device thereof

By fixing the permanent magnet on the motor shaft, using an alternating magnetic field power supply auxiliary module, and combining the Wiegand sensor and Hall sensor to detect the rotation state of the motor, the accurate detection of the number of rotations and directions of the motor after the motor is powered off, achieving efficient and automated measurement.

CN120233117APending Publication Date: 2025-07-01WUXI YISI SEMICONDUCTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311867090.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

In the prior art, it is difficult to accurately detect the number of rotations and the direction of rotation after the motor is powered off, and the backup battery power supply method has problems such as life loss and manual replacement is time-consuming and labor-intensive.

Method used

The permanent magnet is combined with the power supply auxiliary module. The permanent magnet generates an alternating magnetic field when the shaft rotates. The rotation state and number of rotations of the shaft are detected by the Wiegand sensor and Hall sensor. The signal processing unit converts the electrical signal to realize continuous power supply and data calculation.

Benefits of technology

It improves the automation of motor steering tests, reduces labor costs, and ensures accurate measurement and testing accuracy of the shaft state after power outage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120233117A_ABST
    Figure CN120233117A_ABST
Patent Text Reader

Abstract

The invention provides a motor steering test method and a test device thereof. The motor steering test device comprises a rotation position detection module, a signal detection module, a power supply module, a selection module, a permanent magnet, a test board and a power supply auxiliary module. The power supply auxiliary module is used for generating an electric signal when the permanent magnet rotates and detecting the number of turns of rotation of the rotating shaft; the rotation position detection module is used for monitoring the rotation state of the rotating shaft and detecting the circle counting initial position when the power supply auxiliary module records the rotating shaft to rotate by one circle; the selection module is used for electrically connecting the power supply module with the signal detection module and electrically connecting the power supply auxiliary module with the signal detection module; the signal detection module is used for calculating rotation data of the rotating shaft. The accuracy of testing the rotation information of the motor can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motors, and particularly to a method and a testing device for testing the rotation direction of a motor. Background Art

[0002] To judge the rotation direction of a motor and measure the number of rotation turns of the motor, an angular measurement device, a rotational angle sensor, a rotary encoder, etc. are usually used.

[0003] In some special application systems, after the motor suddenly loses power, it is also particularly important to detect the number of rotation turns and the rotation direction of the motor. At present, some researchers have proposed a method of using a backup battery to supply power to maintain the detection device to continue detecting the motor after the motor loses power. However, the life of the battery will be consumed with the increase of the use time and the influence of the environment, thus affecting the detection accuracy, and using a backup battery to supply power to the detection device also requires regular manual replacement, which is time-consuming and laborious.

[0004] Therefore, how to improve the accuracy of testing the rotation information of the motor has become an urgent problem to be solved at present. Summary of the Invention

[0005] To solve the above problems, the motor rotation direction testing method and testing device provided by the present invention can stably supply power to the rotation position detection module when the motor loses power through a selection module, a permanent magnet and a power supply auxiliary module, thereby improving the accuracy of testing the rotation information of the motor.

[0006] In a first aspect, the present invention provides a motor rotation direction testing device, which includes: a rotation position detection module, a signal detection module, a power supply module, a selection module, a permanent magnet and a power supply auxiliary module;

[0007] The power supply module is electrically connected to the rotation position detection module and the selection module respectively, and the power supply auxiliary module is electrically connected to the rotation position detection module, the signal detection module and the selection module respectively;

[0008] The permanent magnet is used for being fixedly connected to the rotating shaft of the motor to provide an alternating magnetic field for the power supply auxiliary module;

[0009] The power supply auxiliary module is used for generating an electrical signal when the permanent magnet rotates to supply power to the rotation position detection module and the signal detection module, and detecting the number of turns of the rotating shaft;

[0010] The rotation position detection module is used for monitoring the rotation state of the rotating shaft and detecting the counting start position of the power supply auxiliary module when recording one turn of the rotating shaft;

[0011] The selection module is used to electrically connect the power supply module to the signal detection module, and connect the power supply auxiliary module to the signal detection module when the power supply module stops working, so that the power supply auxiliary module supplies power to the signal detection module through an electrical signal;

[0012] The signal detection module is used to calculate the rotation data of the rotating shaft through the rotation position detection module and the power supply auxiliary module.

[0013] Optionally, the power supply auxiliary module includes: a Wiegand sensor and a signal processing unit;

[0014] The Wiegand sensor is electrically connected to the signal processing unit, and the signal processing unit is respectively electrically connected to the rotation position detection module, the signal detection module and the selection module;

[0015] The Wiegand sensor is used to generate a voltage pulse signal when the permanent magnet rotates, and the signal processing unit is used to convert the voltage pulse signal into a continuous electrical signal to supply power to the rotation position detection module and the signal detection module;

[0016] The motor rotation direction testing device further includes: a test board, and both the rotation position detection module and the power supply auxiliary module are fixedly connected to the test board, and the test board is fixedly arranged outside the motor.

[0017] Optionally, the signal processing unit includes: a Schottky diode, a filter capacitor and a linear voltage regulator;

[0018] The positive electrode of the Schottky diode is electrically connected to the pulse output terminal of the Wiegand sensor, the negative electrode of the Schottky diode is electrically connected to the input terminal of the linear voltage regulator through the filter capacitor, and the output terminal of the linear voltage regulator is respectively electrically connected to the rotation position detection module and the signal detection module.

[0019] Optionally, the rotation position detection module includes: a rotation position detection unit and a Hall detection component;

[0020] Both the rotation position detection unit and the Hall detection component are fixedly connected to the test board, the rotation position detection unit is respectively electrically connected to the signal detection module and the power supply module, and the Hall detection component is respectively electrically connected to the signal detection module and the power supply auxiliary module;

[0021] The rotation position detection unit is used to monitor the rotation position of the rotating shaft when the power supply module supplies power to the motor, and the Hall detection component is used to monitor the rotation orientation of the rotating shaft through the permanent magnet when the power supply module stops supplying power to the motor.

[0022] Optionally, the permanent magnet is in a plate-like structure, the rotation center line of the permanent magnet coincides with the axis of the rotating shaft, and the test board is perpendicular to the axis of the rotating shaft;

[0023] The Hall detection component includes two Hall sensors;

[0024] Two Hall sensors and a Wiegand sensor are fixed on the same side of the test board. The Wiegand sensor coincides with the axis of the rotating shaft. The included angle range between the two Hall sensors relative to the Wiegand sensor is between 30° and 180°.

[0025] Optionally, the permanent magnet is of a ring structure, and the rotation center line of the permanent magnet coincides with the axis of the rotating shaft.

[0026] Two Hall sensors and a Wiegand sensor are fixed at the same end of the test board. The two Hall sensors and the Wiegand sensor are all located in the cavity of the permanent magnet. The Wiegand sensor coincides with the axis of the rotating shaft. The included angle range between the two Hall sensors relative to the Wiegand sensor is between 30° and 180°.

[0027] In a second aspect, the present invention provides a method for testing the rotation direction of a motor. This method is applied to the motor rotation direction testing device in any one of the above. This method includes:

[0028] Obtain the power-on initial position, free rotation direction, termination position, and counting start position of the rotating shaft of the motor through the rotation position detection module; wherein, the power-on initial rotation position is used to record the angular position of the rotating shaft when the power supply module supplies power to the motor and the rotating shaft is stationary, the free rotation direction is used to record the rotation direction of the rotating shaft after the motor is powered off, and the termination position is used to record the angular position of the rotating shaft when the motor is powered off and stops rotating.

[0029] According to the power-on initial position, free rotation direction, termination position, and counting start position, determine whether the angular position of the rotating shaft when the motor is powered off and stops rotating is within the verification angle range. The verification angle range is the angular range from the power-on initial position along the free rotation direction to the termination position.

[0030] If so, add 1 to the sum of the number of rotation cycles detected by the rotation position detection module before the motor is powered off and the number of rotation cycles detected by the power supply auxiliary module after the motor is powered off, and use this sum as the total number of rotation cycles of the rotating shaft during the test.

[0031] If not, use the sum of the number of rotation cycles recorded by the rotation position detection module before the motor is powered off and the number of rotation cycles recorded by the power supply auxiliary module after the motor is powered off as the total number of rotation cycles of the rotating shaft during the test.

[0032] Optionally, the step of obtaining the power-on initial position, free rotation direction, termination position, and counting start position of the rotating shaft of the motor through the rotation position detection module includes:

[0033] After the rotating shaft stops rotating, control the power supply module to supply power to the motor and record the current angular position of the rotating shaft through the rotation position detection module, and use the current angular position as the termination position.

[0034] This method further includes:

[0035] Obtain the power-on real-time position data through the rotation position detection module. The power-on real-time position data is used to record the angular position of the rotating shaft before the motor power-off at different time nodes;

[0036] Calculate the number of rotations of the rotating shaft before the motor power-off according to the power-on real-time position data.

[0037] Optionally, the step of calculating the number of rotations of the rotating shaft before the motor power-off according to the power-on real-time position data includes:

[0038] Subtract the angular position corresponding to the previous time node from the angular position corresponding to the current time node to obtain the current rotation angle value;

[0039] Determine whether the current rotation angle value is greater than the positive adjacent range value or less than the negative adjacent range value; if the current rotation angle value is greater than the positive adjacent range value, then take the negative value of the difference between 360 and the current rotation angle value as the actual current rotation angle value, if the current rotation angle value is less than the negative adjacent range value, then take the sum of 360 and the current rotation angle value as the actual current rotation angle value. The positive adjacent range value is greater than 60 and less than 360, and the negative adjacent range value is less than -60 and greater than -360;

[0040] Accumulate the current rotation angle value obtained each time to obtain the actual rotation angle sum;

[0041] Determine whether the actual rotation angle sum is greater than 360 or less than -360. If the actual rotation angle sum is greater than 360 or less than -360, record one rotation of the rotating shaft and clear the actual rotation angle sum until the power supply module stops power supply.

[0042] Optionally, the step of determining whether the actual rotation angle sum is greater than 360 or less than -360 includes: if the actual rotation angle sum is greater than 360, record one clockwise rotation of the rotating shaft, if the actual rotation angle sum is less than -360, record one counterclockwise rotation of the rotating shaft.

[0043] In a third aspect, the present invention provides a method for testing the motor rotation direction. The method is applied to the motor rotation direction testing device in any one of the above, and the method includes:

[0044] Obtain the power-off initial position, free rotation direction, termination position and rotation counting start position of the rotating shaft of the motor through the rotation position detection module; wherein, the power-off initial rotation position is used to record the angular position of the rotating shaft when the motor power-off, the free rotation direction is used to record the rotation direction of the rotating shaft after the motor power-off, and the termination position is used to record the angular position of the rotating shaft after the motor power-off and when it stops rotating;

[0045] According to the power-off initial position, free rotation direction, termination position, and counting start position, determine whether the angular position of the rotating shaft when the motor is powered off and stops rotating is within the verification angular range. The verification angular range is the angular range from the power-off initial position along the free rotation direction to the termination position.

[0046] If so, record the number of rotations of the rotating shaft by the power supply auxiliary module as the total number of rotations of the rotating shaft after the motor is powered off.

[0047] If not, subtract 1 from the number of rotations of the rotating shaft detected by the power supply auxiliary module and use it as the total number of rotations of the rotating shaft after the motor is powered off.

[0048] Optionally, the steps of obtaining the power-off initial position, free rotation direction, termination position, and counting start position of the rotating shaft of the motor through the rotation position detection module include:

[0049] After the rotating shaft stops rotating, control the power supply module to supply power to the motor and record the current angular position where the rotating shaft is located through the rotation position detection module, and use the current angular position as the termination position.

[0050] The method further includes:

[0051] Obtain the power-on real-time position data through the rotation position detection module. The power-on real-time position data is used to record the angular position of the rotating shaft before the motor is powered off at different time nodes.

[0052] Calculate the number of rotations of the rotating shaft before the motor is powered off according to the power-on real-time position data.

[0053] Optionally, the steps of calculating the number of rotations of the rotating shaft before the motor is powered off according to the power-on real-time position data include:

[0054] Subtract the angular position corresponding to the previous time node from the angular position corresponding to the current time node to obtain the current rotation angle value.

[0055] Judge whether the current rotation angle value is greater than the positive adjacent range value or less than the negative adjacent range value. If the current rotation angle value is greater than the positive adjacent range value, then use the negative value of the difference between 360 and the current rotation angle value as the actual current rotation angle value. If the current rotation angle value is less than the negative adjacent range value, then use the sum of 360 and the current rotation angle value as the actual current rotation angle value. The positive adjacent range value is greater than 60 and less than 360, and the negative adjacent range value is less than -60 and greater than -360.

[0056] Accumulate the current rotation angle value obtained each time to obtain the actual rotation angle sum. When the actual rotation angle sum is greater than 360 or less than -360, record that the rotating shaft rotates one circle, and clear the actual rotation angle sum until the power supply module stops supplying power.

[0057] The motor steering test method and its test device provided by the embodiment of the present invention fix a permanent magnet on the rotating shaft, so that after the motor is powered off, the permanent magnet uses the rotation of the rotating shaft to provide an alternating magnetic field with stable magnetic field intensity for the power supply auxiliary module. Thereby, the power supply auxiliary module can provide electric energy to the rotation position detection module and the signal detection module in the alternating magnetic field and detect the number of turns of the rotating shaft, so that the rotation position detection module can continue to monitor the rotation state of the rotating shaft after the motor is powered off, and send the collected data to the signal detection module for calculation, so that the signal detection module calculates the rotation data such as the rotation direction, the number of turns, and the absolute angle before and after rotation of the rotating shaft through the power supply auxiliary module. In this way, not only the automation degree of the motor steering test is improved, the labor cost is reduced, but also the state of the rotating shaft after power off can be accurately measured, thereby improving the test accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0059] Figure 1 Schematic structural diagram of a motor steering test device according to an embodiment of the present application;

[0060] Figure 2 Schematic structural diagram of a motor steering test device according to an embodiment of the present application;

[0061] Figure 3 Schematic structural diagram of a test board according to an embodiment of the present application;

[0062] Figure 4 Schematic exploded view of a motor steering test device according to an embodiment of the present application;

[0063] Figure 5 Schematic analysis diagram for calculating the number of turns of the rotating shaft according to an embodiment of the present application.

[0064] REFERENCE SIGNS:

[0065] 1. Rotation position detection module; 11. Rotation position detection unit; 12. Hall detection component; 2. Signal detection module; 3. Power supply module; 4. Selection module; 5. Power supply auxiliary module; 51. Wiegand sensor; 52. Signal processing unit; 6. Permanent magnet; 7. Test board; 8. Rotating shaft. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0066] To facilitate the understanding of this application, the following will provide a more comprehensive description of this application with reference to the relevant attached drawings. Embodiments of this application are shown in the drawings. However, this application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to make the disclosure of this application more thorough and comprehensive.

[0067] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used in the specification of this application herein are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0068] Spatial relationship terms such as "under", "below", "beneath", "underneath", "above", "over" etc. can be used herein to describe the relationship of one element or feature shown in the drawings with other elements or features. It should be understood that, in addition to the orientations shown in the drawings, spatial relationship terms also include different orientations of the devices during use and operation. For example, if the device in the drawing is flipped, the element or feature described as "under other elements" or "beneath it" or "under it" will be oriented "above" other elements or features. Therefore, the exemplary terms "under" and "beneath" can include both the upper and lower orientations. In addition, the device can also have other orientations (such as rotating 90 degrees or other orientations), and the spatial descriptive terms used herein are accordingly interpreted.

[0069] It should be noted that when an element is referred to as being "fixedly connected" to another element, it can be directly on the other element or there can also be an intermediate element. When an element is considered to be "connected" to another element, it can be directly connected to the other element or there may be an intermediate element at the same time. On the contrary, when an element is referred to as being "directly on" another element, there is no intermediate element. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are only for illustrative purposes.

[0070] As used herein, the singular forms "a", "an" and "the" may also include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms "comprising" or "having" etc. specify the presence of the stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof.

[0071] Embodiment 1

[0072] This embodiment provides a motor steering test device. Refer to Figure 1 andFigure 2 , the motor rotation direction test device includes: a rotation position detection module 1, a signal detection module 2, a power supply module 3, a selection module 4, a permanent magnet 6, and a power supply auxiliary module 5.

[0073] The power supply module 3 is electrically connected to the rotation position detection module 1 and the selection module 4 respectively, and the power supply auxiliary module 5 is electrically connected to the rotation position detection module 1, the signal detection module 2, and the selection module 4 respectively;

[0074] The permanent magnet 6 is used to be fixedly connected to the rotating shaft 8 of the motor to provide an alternating magnetic field for the power supply auxiliary module 5;

[0075] The power supply auxiliary module 5 is used to generate an electrical signal when the permanent magnet rotates to supply power to the rotation position detection module 1 and the signal detection module 2, and to detect the number of turns of rotation of the rotating shaft 8;

[0076] The rotation position detection module 1 is used to monitor the rotation state of the rotating shaft 8 and detect the counting start position of the power supply auxiliary module 5 when recording one turn of rotation of the rotating shaft 8;

[0077] The selection module 4 is used to electrically connect the power supply module 3 to the signal detection module 2 and electrically connect the power supply auxiliary module 5 to the signal detection module 2 when the power supply module 3 stops working, so that the power supply auxiliary module 5 supplies power to the signal detection module 2 through an electrical signal;

[0078] The signal detection module 2 is used to calculate the rotation data of the rotating shaft 8 through the rotation position detection module 1 and the power supply auxiliary module 5.

[0079] It should be noted that the rotation data includes but is not limited to the rotation direction of the rotating shaft 8, the number of turns of rotation of the rotating shaft 8, and the absolute angle. The absolute angle is the initial position when the rotating shaft 8 does not rotate when the motor is powered on; the power supply auxiliary module 5 can detect the number of turns of rotation of the rotating shaft 8 after the motor is powered on and after the motor is powered off and send the detected data to the signal detection module 2. In this way, the signal detection module 2 can use the power supply auxiliary module 5 alone to calculate the number of turns of rotation of the rotating shaft 8 after the motor is powered on and after the motor is powered off, or can use the rotation position detection module 1 to calculate the number of turns of rotation of the rotating shaft 8 after the motor is powered on and use the power supply auxiliary module 5 to calculate the number of turns of rotation of the rotating shaft 8 after the motor is powered off; the counting start position is also the counting end position of the power supply auxiliary module 5 when recording one turn of rotation of the rotating shaft 8. Specifically, when a certain fixed position of the rotating shaft 8 passes through the counting start position once, the power supply auxiliary module 5 will send a signal to the signal detection module 2 to increase the value of the signal detection module 2 for recording the number of turns of rotation of the rotating shaft 8 by 1.

[0080] In this embodiment, the motor steering test device further includes: a test board 7, which is a printed circuit board; the rotation position detection module 1 and the power supply auxiliary module 5 are both fixedly connected to the test board 7 and are both electrically connected to the signal detection module 2 through the test board 7; the test board 7 is fixedly arranged outside the motor; after the motor is powered on, the signal detection module 2 uses the rotation position detection module 1 to calculate the number of turns of the rotation of the rotating shaft 8, and after the motor is powered off, it uses the power supply auxiliary module 5 to calculate the number of turns of the rotation of the rotating shaft 8.

[0081] The power supply auxiliary module 5 includes: a Weigand sensor 51 and a signal processing unit 52. Among them, the Weigand sensor 51 is electrically connected to the signal processing unit 52; the signal processing unit 52 is respectively electrically connected to the rotation position detection module 1, the signal detection module 2 and the selection module 4.

[0082] The Weigand sensor 51 is used to generate a voltage pulse signal when the permanent magnet rotates, and the signal processing unit 52 is used to convert the voltage pulse signal into a continuous electrical signal to supply power to the rotation position detection module 1 and the signal detection module 2.

[0083] In this embodiment, the signal processing unit 52 includes: a Schottky diode, a filter capacitor and a linear voltage regulator. Among them, the positive electrode of the Schottky diode is electrically connected to the pulse output terminal of the Weigand sensor 51, the negative electrode of the Schottky diode is electrically connected to the input terminal of the linear voltage regulator through the filter capacitor, and the output terminal of the linear voltage regulator is respectively electrically connected to the rotation position detection module 1 and the signal detection module 2. By setting the Schottky diode, the filter capacitor and the linear voltage regulator, operations of rectifying, filtering and stabilizing the voltage pulse signal can be realized.

[0084] In addition, the rotation position detection module 1 can use two different types of sensor components to respectively detect the rotation state of the rotating shaft 8 when the power supply module 3 supplies power to the motor, and the rotation state of the rotating shaft 8 when the power supply module 3 stops supplying power to the motor. The rotation position detection module 1 can use one type of sensor component to respectively detect the rotation state of the rotating shaft 8 when the power supply module 3 supplies power to the motor and when the power supply module 3 stops supplying power to the motor.

[0085] In this embodiment, the rotation position detection module 1 includes: a rotation position detection unit 11 and a Hall detection component 12. Among them, the rotation position detection unit 11 is a rotation position sensor (RPS), and the Hall detection component 12 includes two Hall sensors (HALL); the rotation position detection unit 11 and the Hall detection component 12 are both fixedly connected to the test board 7, the rotation position detection unit 11 is respectively electrically connected to the signal detection module 2 and the power supply module 3, and the Hall detection component 12 is respectively electrically connected to the signal detection module 2 and the signal processing unit 52.

[0086] The rotation position detection unit 11 is used to monitor the rotation position of the rotating shaft 8 when the power supply module 3 supplies power to the motor, and the Hall detection component 12 is used to monitor the rotation orientation of the rotating shaft 8 through the permanent magnet when the power supply module 3 stops supplying power to the motor.

[0087] The signal detection module 2 includes: an ultra-low-power micro control unit (MCU), resistor-capacitor components, and a non-volatile memory, etc. A detection pin of the MCU, such as PA8, is electrically connected to the power supply interface of the power supply module 3, and another pin, such as PA5, is connected to the output end of the power supply auxiliary module 5. The VBAT pin of the MCU is connected to the output end of the power supply auxiliary module 5 through the selection module 4. The rotation position detection module 1 is connected to the SPI (Serial Peripheral Interface) interface of the signal detection module 2 so that the signal detection module 2 can read the data collected by the rotation position detection module 1 in real time.

[0088] It should be noted that all the devices used in the entire device provided in this embodiment are ultra-low-power and fast-start devices, including but not limited to this ultra-low-power micro control unit and Hall sensor. Among them, the non-volatile memory in the signal detection module 2 uses MRAM (non-volatile magnetic random access memory) with a high-frequency write / read rate. This memory does not need to erase the address when working, can directly perform write operations, and does not lose data when power is off.

[0089] Furthermore, the permanent magnet 6 is in a plate-like structure. The rotation center line of the permanent magnet 6 coincides with the axis of the rotating shaft 8, and the test board 7 is perpendicular to the axis of the rotating shaft 8. Among them, the two Hall sensors and the Wiegand sensor 51 are fixed on the same side of the test board 7; the rotation position detection unit 11 is located on the other side of the test board 7, and both the rotation position detection unit 11 and the Wiegand sensor 51 coincide with the axis of the rotating shaft 8; the included angle range between the two Hall sensors relative to the Wiegand sensor 51 is between 30° and 180°, such as 60°, 120°, or 150°, etc. In this embodiment, combined with Figure 3 ,the included angle between the two Hall sensors relative to the Wiegand sensor 51 is 90°.

[0090] Embodiment 2

[0091] The motor steering test device provided in this embodiment is mainly different from the motor steering test device in Embodiment 1 in that: combined with Figure 4 ,the permanent magnet 6 is in an annular structure. In addition, the position of the test board 7 relative to the permanent magnet 6 can be the same as or different from that in Embodiment 1.

[0092] The test probe is parallel to the axis of the rotating shaft 8. Two Hall sensors and the Wiegand sensor 51 are fixed at one end of the test board 7 facing the rotating shaft 8. The two Hall sensors and the Wiegand sensor 51 are all located inside the cavity of the permanent magnet 6. The Wiegand sensor 51 coincides with the axis of the rotating shaft 8. The rotation position detection unit 11 is fixedly arranged on the other side of the test board 7, and the rotation position detection unit 11 coincides with the Wiegand sensor 51 in a direction perpendicular to the test board 7.

[0093] The motor rotation direction test device provided by the present invention has a simple structure and low design cost. Through the cooperation between various modules, it can complete the calculation of the rotation direction, number of turns and angle of the motor after power-on and power-off. Compared with the test devices in the prior art, the motor rotation direction test device provided by the present invention can complete the test more stably and reliably. Among them, by fixing the permanent magnet 6 on the rotating shaft 8, the permanent magnet 6 uses the rotation of the rotating shaft 8 to provide an alternating magnetic field with stable magnetic field intensity for the power supply auxiliary module 5 after the motor is powered off, so that the power supply auxiliary module 5 can provide electrical energy to the rotation position detection module 1 and the signal detection module 2 in the alternating magnetic field and detect the number of turns of the rotation of the rotating shaft 8, so that the rotation position detection module 1 can continue to monitor the rotation state of the rotating shaft 8 after the motor is powered off and send the collected data to the signal detection module 2 for calculation, so that the signal detection module 2 calculates the rotation data such as the rotation direction, number of turns and absolute angle before and after rotation of the rotating shaft 8 through the power supply auxiliary module 5. In this way, not only the automation degree of the motor rotation direction test is improved, the labor cost is reduced, but also the state of the rotating shaft 8 after power-off can be accurately measured, thereby improving the test accuracy.

[0094] Embodiment III

[0095] This embodiment provides a method for testing the rotation direction of a motor. This method is applied to the motor rotation direction test device in Embodiment I or Embodiment II, and is specifically implemented by the MCU in the signal detection module 2. This method includes steps S101 to S104:

[0096] Step S101: Obtain the power-on initial position, free rotation direction, termination position and counting start position of the rotating shaft 8 of the motor through the rotation position detection module 1.

[0097] Among them, the power-on initial rotation position is used to record the angular position of the rotating shaft 8 when the power supply module 3 supplies power to the motor and the rotating shaft 8 is stationary. The free rotation direction is used to record the rotation direction of the rotating shaft 8 after the motor is powered off. The termination position is used to record the angular position of the rotating shaft 8 when the motor is powered off and stops rotating;

[0098] Step S102: According to the power-on initial position, free rotation direction, termination position and counting start position, judge whether the angular position of the rotating shaft 8 when the motor is powered off and stops rotating is within the calibration angle range.

[0099] Among them, the verification angle range is the angle range from the initial power-on position along the free rotation to the termination position.

[0100] Step S103: When the angular position of the rotating shaft 8 when the motor is powered off and stops rotating is within the verification angle range, add 1 to the sum of the number of rotation turns detected by the rotation position detection module 1 before the motor is powered off and the number of rotation turns detected by the power supply auxiliary module 5 after the motor is powered off for the rotating shaft 8, and use it as the total number of rotation turns of the rotating shaft 8 during the test.

[0101] Step S104: When the angular position of the rotating shaft 8 when the motor is powered off and stops rotating is not within the verification angle range, use the sum of the number of rotation turns recorded by the rotation position detection module 1 before the motor is powered off and the number of rotation turns recorded by the power supply auxiliary module 5 after the motor is powered off for the rotating shaft 8 as the total number of rotation turns of the rotating shaft 8 during the test.

[0102] This method can accurately and reliably calculate the number of rotation turns of the rotating shaft 8 during the test phase by obtaining the initial power-on position, free rotation, termination position, and counting start position of the rotating shaft 8 of the motor through the rotation position detection module 1.

[0103] In an alternative embodiment, the step of obtaining the initial power-on position, free rotation, termination position, and counting start position of the rotating shaft 8 of the motor through the rotation position detection module 1 includes:

[0104] After the rotating shaft 8 stops rotating, control the power supply module 3 to supply power to the motor and record the current angular position where the rotating shaft 8 is located through the rotation position detection module 1, and use the current angular position as the termination position.

[0105] This method further includes:

[0106] Step S105: Obtain the real-time power-on position data through the rotation position detection module 1, and the real-time power-on position data is used to record the angular position of the rotating shaft 8 before the motor is powered off at different time nodes.

[0107] Step S106: Calculate the number of rotation turns of the rotating shaft 8 before the motor is powered off according to the real-time power-on position data.

[0108] In this embodiment, steps S105 and S106 are performed before step S101 or during the execution of step S101, and this embodiment does not make specific limitations on this.

[0109] In an alternative embodiment, the step of calculating the number of rotation turns of the rotating shaft 8 before the motor is powered off according to the real-time power-on position data includes:

[0110] Step S1061: Subtract the angular position corresponding to the current time node from the angular position corresponding to the previous time node to obtain the current rotation angle value.

[0111] Step S1062: Determine whether the current rotation angle value is greater than the positive proximity range value or less than the negative proximity range value; if the current rotation angle value is greater than the positive proximity range value, then use the negative value of the difference between 360 and the current rotation angle value as the actual current rotation angle value, and if the current rotation angle value is less than the negative proximity range value, then use the sum of 360 and the current rotation angle value as the actual current rotation angle value.

[0112] Among them, the positive proximity range value is greater than 60 and less than 360, and the negative proximity range value is less than -60 and greater than -360, but it is not limited to this.

[0113] Step S1063: Accumulate the current rotation angle value obtained each time to obtain the actual rotation angle sum.

[0114] Step S1064: Determine whether the actual rotation angle sum is greater than 360 or less than -360. If the actual rotation angle sum is greater than 360 or less than -360, record that the rotating shaft 8 rotates one circle, and clear the actual rotation angle sum until the power supply module 3 stops supplying power.

[0115] In an alternative embodiment, the step of determining whether the actual rotation angle sum is greater than 360 or less than -360 includes: if the actual rotation angle sum is greater than 360, record that the rotating shaft 8 rotates one circle clockwise, and if the actual rotation angle sum is less than -360, record that the rotating shaft 8 rotates one circle counterclockwise.

[0116] In this embodiment, the process of implementing the motor rotation direction test method through the motor rotation direction test device in Embodiment 1 or Embodiment 2 is as follows:

[0117] When the motor is powered on, the selection module 4 selects the power supply module 3 to supply power to the signal detection module 2 and the rotation position detection unit 11, and the voltage can be 2.5 - 3.3V. The rotation position detection unit 11 works normally, and the micro control unit reads the data of the rotation position detection unit 11 in real time through the SPI interface. When the motor is powered on and stationary, the micro control unit reads the initial data DATA1 of the rotation position detection unit 11, that is, the initial position when powered on, and stores it in the fixed address A1 of the non-volatile memory. When the motor rotates normally, the micro control unit reads the real-time data DATA2 of the rotation position detection unit 11 and saves it in the address A2 of the non-volatile memory. At the same time, when the pulse (Wiegand signal) of the PA5 pin is detected, the data DATA3 collected by the rotation position detection unit 11 at this time, that is, the starting position of counting the number of turns, is recorded in the address A3 of the non-volatile memory. It should be noted that the Wiegand sensor 51 will output two pulsed electrical signals, one positive and one negative, when the magnetic poles of the stable magnetic field generated by the permanent magnet 6 alternate, and the signal period is the magnetic field alternation period. In this embodiment, only one positive pulse of the Wiegand signal is used for test judgment, that is, when the Wiegand sensor 51 has a positive pulse (voltage pulse signal) when the magnetic poles of the permanent magnet 6 alternate, the micro control unit records that the rotating shaft 8 rotates one week.

[0118] The micro control unit takes DATA2 as the current calculated angle value ANGLE1, and takes the real-time data collected by the rotation position detection unit 11 next time as the angle value ANGLE2, and records the difference between ANGLE2 and ANGLE1, that is, the current rotation angle value. After obtaining the current rotation angle value, the value of ANGLE2 covers the value of ANGLE1, and the real-time data of the rotation position detection unit 11 is taken again to assign a value to ANGLE2. In this way, multiple current rotation angle values corresponding to the rotating shaft 8 at adjacent time nodes can be obtained by circulating. Among them, when the value of the current rotation angle value is greater than 0, it is judged that the current motor rotation direction is clockwise, and when the value of ANGLE is less than 0, it is judged that the current motor rotation direction is counterclockwise. The micro control unit accumulates the current rotation angle value obtained each time to get SUM. When SUM is greater than 360, it is judged that the motor rotates one circle clockwise at this time. When SUM is less than - 360, it is judged that the motor rotates one circle counterclockwise at this time.

[0119] It should be noted that since the real-time data range collected by the rotation position detection unit 11 is from 0 degrees to 359 degrees, directly calculating the current rotation angle value according to the above method will result in a large deviation between the current rotation angle value and the actual rotation angle value. For example, if the angle position corresponding to the previous time node is 300°, and the angle position corresponding to the current time node is 20°, the obtained current rotation angle value is -280°, while in fact it is 80°. Therefore, the present invention adds a judgment of the adjacent range value. In this embodiment, when the value of the current rotation angle value is greater than 300, the value of the current rotation angle value is assigned to -(360 - current rotation angle value); when the value of the current rotation angle value is less than -300, the value of the current rotation angle value is assigned to (360 + current rotation angle value). At the same time, the micro control unit records the accumulated number of turns in the address A4 of the non-volatile memory. At this time, the calculation of the number of turns of the motor rotation and the judgment of the forward and reverse rotation directions of the motor under the power-on condition are completed.

[0120] When the power module 3 is disconnected from the motor, the rotation position detection module 1 does not work. Due to inertia, the rotating shaft 8 of the motor will continue to rotate. When the rotating shaft 8 rotates one circle, a positive pulse will appear when the Weigand sensor 51 alternates the magnetic poles of the permanent magnet 6. The selection module 4 supplies power to the VBAT pin of the micro control unit with the voltage after processing the Weigand pulse, and supplies power to the ultra-low-power non-volatile memory and the ultra-low-power Hall sensor. After the micro control unit is started, it will detect the output signal of the Hall sensor. When it detects that the output levels of the two Hall sensors H1 and H2 are high level and low level respectively, it indicates that the one circle just rotated by the rotating shaft 8 is clockwise rotation. When it detects that the output levels of the two Hall sensors H1 and H2 are both high level, it indicates that the one circle just rotated by the rotating shaft 8 is counterclockwise rotation. At the same time, every time a Weigand signal appears, it is regarded as a complete circle, and the data of the complete circle is updated to the non-volatile memory. When the motor finally stops, after power-on again, the micro control unit reads the final DATA4 of the rotation angle sensor again, that is, the termination position, and then reads DATA1, DATA2 and DATA3 from the addresses A1, A2 and A3 of the non-volatile memory in turn. According to DATA1 and DATA4, the absolute angle value can be calculated. In this way, the number of turns of the motor rotation, the rotation direction during the test, and the angle value of the initial position relative to the termination position during power-on, that is, the absolute angle value, can be accurately obtained.

[0121] For example, in combination with Figure 5, when the motor is powered on, the microprocessing unit obtains the current static starting angle value (start) through the rotational position sensor, that is, the initial power-on position is 20°. When the motor rotates normally, the microprocessing unit reads the real-time data of the rotational position sensor as 30°, 35°, etc., and then determines that the current motor rotation direction is clockwise according to the above method. When the microprocessing unit detects that the PA5 pin on it obtains the Wiegand pulse signal (WGPL), the microprocessing unit records the rotational position sensor data at this time as 60°, that is, the starting position for counting turns is obtained. Calculate the angle difference ANGLE3 between two adjacent moments obtained by the microprocessing unit according to the above algorithm, that is, the value of the current rotation angle. If ANGLE3 is greater than 300, then ANGLE3 is assigned as -(360 - ANGLE3); if the value of ANGLE3 is less than -300, then the value of ANGLE3 is assigned as (360 + ANGLE3). Then accumulate ANGLE3 to get SUM. When SUM is greater than 360, it is determined at this time that the motor rotates clockwise for one circle. And update the accumulated number of turns to the non-volatile memory address A4.

[0122] After the motor system is powered off (PWDN), if the position sensor angle is obtained at the moment of power-off, that is, the initial power-off position is 320°. Due to inertia, the motor rotates, and the pulses output by the Wiegand sensor 51 under the action of the alternating magnetic field supply power to the signal detection module 2 and the Hall sensors. During the power supply period, when the microprocessing unit detects that the output levels of the two Hall sensors H1 and H2 are high level and low level respectively, it indicates that the just-rotated one circle is clockwise rotation. At the same time, the microprocessing unit will update the number of turns in the non-volatile memory according to the positive pulse output by the Wiegand sensor 51.

[0123] During the process of final actual turn number verification: when the motor finally stops and is powered on again, if the microprocessing unit reads the final value of the rotational angle sensor (PWUP1) again, that is, the termination position is 40°, and then reads the starting angle (start) 20°, the angle at the moment of power-off (PWDN) 320°, and the angle when the Wiegand pulse is generated (WGPL) 60° from the non-volatile memory addresses A1, A2, and A3 in sequence. According to the starting angle 20° and the power-on angle 40° after power-off, the absolute angle value of the rotating shaft 8 can be calculated as 20°. Because the motor rotates in the clockwise direction, the motor's second power-on angle 40° is within the range between the starting angle 20° and the angle 60° when the Wiegand pulse is generated, such as Figure 4 in PWUP1. At this time, the accumulated number of rotations obtained under the power-off condition should be +1, which is the actual number of rotations. If after the motor is powered on again, the microprocessing unit reads the final value of the rotational angle sensor PWUP2 within the range between the angle 60° when the Wiegand pulse is generated and the starting angle 20°, then the final number of rotations of the rotating shaft 8 is the actual number of rotations. In this way, the rotation direction and absolute angle of the motor are also verified and ended.

[0124] Embodiment 4

[0125] The present invention provides a method for testing the rotation direction of a motor. This method is applied to the motor rotation direction testing device in any of the above items, and this method includes steps S201 to S204:

[0126] Step S201: Obtain the power-off initial position, free rotation direction, termination position, and counting start position of the rotating shaft 8 of the motor through the rotation position detection module 1.

[0127] Among them, the power-off initial rotation position is used to record the angular position of the rotating shaft 8 when the motor is powered off, the free rotation direction is used to record the rotation direction of the rotating shaft 8 after the motor is powered off, and the termination position is used to record the angular position of the rotating shaft 8 when it stops rotating after the motor is powered off;

[0128] Step S202: According to the power-off initial position, free rotation direction, termination position, and counting start position, determine whether the angular position of the rotating shaft 8 when it stops rotating after the motor is powered off is within the verification angular range.

[0129] Among them, the verification angular range is the angular range from the power-off initial position along the free rotation direction to the termination position.

[0130] Step S203: When the angular position of the rotating shaft 8 when it stops rotating after the motor is powered off is within the verification angular range, record the number of rotations of the rotating shaft 8 by the power supply auxiliary module 5 as the total number of rotations of the rotating shaft 8 after the motor is powered off.

[0131] Step S204: When the angular position of the rotating shaft 8 when it stops rotating after the motor is powered off is not within the verification angular range, subtract 1 from the number of rotations of the rotating shaft 8 detected by the power supply auxiliary module 5 and use it as the total number of rotations of the rotating shaft 8 after the motor is powered off.

[0132] This method can accurately and reliably calculate the number of rotations of the rotating shaft 8 after power-off by obtaining the power-off initial position, free rotation direction, termination position, and counting start position of the rotating shaft 8 of the motor through the rotation position detection module 1.

[0133] In an optional embodiment, the step of obtaining the power-off initial position, free rotation direction, termination position, and counting start position of the rotating shaft 8 of the motor through the rotation position detection module 1 includes:

[0134] After the rotating shaft 8 stops rotating, control the power supply module 3 to supply power to the motor and record the current angular position where the rotating shaft 8 is located through the rotation position detection module 1, and use the current angular position as the termination position;

[0135] This method further includes:

[0136] Obtain the power-on real-time position data through the rotation position detection module 1. The power-on real-time position data is used to record the angular position of the rotating shaft 8 before the motor power-off at different time nodes;

[0137] Calculate the number of rotations of the rotating shaft 8 before the motor power-off according to the power-on real-time position data.

[0138] In an alternative embodiment, the step of calculating the number of rotations of the rotating shaft 8 before the motor power-off according to the power-on real-time position data includes:

[0139] Subtract the angular position corresponding to the current time node from the angular position corresponding to the previous time node to obtain the current rotation angle value;

[0140] Determine whether the current rotation angle value is greater than the positive proximity range value or less than the negative proximity range value; if the current rotation angle value is greater than the positive proximity range value, then take the negative value of the difference between 360 and the current rotation angle value as the actual current rotation angle value, if the current rotation angle value is less than the negative proximity range value, then take the sum of 360 and the current rotation angle value as the actual current rotation angle value. The positive proximity range value is greater than 60 and less than 360, and the negative proximity range value is less than -60 and greater than -360;

[0141] Accumulate the current rotation angle value obtained each time to obtain the actual rotation angle sum. When the actual rotation angle sum is greater than 360 or less than -360, record one rotation of the rotating shaft 8 and clear the actual rotation angle sum until the power supply module 3 stops power supply.

[0142] In an alternative embodiment, the step of determining whether the actual rotation angle sum is greater than 360 or less than -360 includes: if the actual rotation angle sum is greater than 360, record one clockwise rotation of the rotating shaft 8, if the actual rotation angle sum is less than -360, record one counterclockwise rotation of the rotating shaft 8.

[0143] In this embodiment, calculating the rotation data of the rotating shaft 8 in the motor-powered state can refer to the method in Embodiment 4, and this embodiment will not elaborate too much on this. In the process of calculating the rotation data of the rotating shaft 8 after power-off in this embodiment, the specific verification process is different from that in Embodiment 3 in that the verification angle range in Embodiment 3 is between the power-on initial position and the termination position, while the verification angle range in this embodiment is between the power-off initial position and the termination position, and their verification methods are basically the same. This embodiment will not elaborate too much on this.

[0144] Wherein, the total number of rotations of the rotating shaft 8 in the test stage calculated in this embodiment is the sum of the number of rotations of the rotating shaft 8 during the normal rotation stage of the motor and the number of rotations of the rotating shaft 8 after the motor power-off.

[0145] In the description of this specification, the descriptions referring to terms such as "some embodiments", "other embodiments", "ideal embodiments", etc. mean that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.

[0146] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0147] The above-described embodiments only represent several implementation manners of the present application. The descriptions are relatively specific and detailed, but should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.

Claims

1. A motor steering test device, characterized in that, The motor steering test device includes: a rotation position detection module (1), a signal detection module (2), a power supply module (3), a selection module (4), a permanent magnet (6), and a power supply auxiliary module (5); The power supply module (3) is electrically connected to the rotation position detection module (1) and the selection module (4) respectively, and the power supply auxiliary module (5) is electrically connected to the rotation position detection module (1), the signal detection module (2), and the selection module (4) respectively; The permanent magnet (6) is used to be fixedly connected to the rotating shaft (8) of the motor to provide an alternating magnetic field for the power supply auxiliary module (5); The power supply auxiliary module (5) is used to generate an electrical signal when the permanent magnet rotates, to supply power to the rotation position detection module (1) and the signal detection module (2), and to detect the number of turns of rotation of the rotating shaft (8); The rotation position detection module (1) is used to monitor the rotation state of the rotating shaft (8) and detect the starting position of counting turns when the power supply auxiliary module (5) records one turn of rotation of the rotating shaft (8); The selection module (4) is used to electrically connect the power supply module (3) to the signal detection module (2), and electrically connect the power supply auxiliary module (5) to the signal detection module (2) when the power supply module (3) stops working, so that the power supply auxiliary module (5) supplies power to the signal detection module (2) through an electrical signal; The signal detection module (2) is used to calculate the rotation data of the rotating shaft (8) through the rotation position detection module (1) and the power supply auxiliary module (5).

2. The motor steering test device according to claim 1, characterized in that The power supply auxiliary module (5) includes: a Wiegand sensor (51) and a signal processing unit (52); The Wiegand sensor (51) is electrically connected to the signal processing unit (52), and the signal processing unit (52) is electrically connected to the rotation position detection module (1), the signal detection module (2), and the selection module (4) respectively; The Wiegand sensor (51) is used to generate a voltage pulse signal when the permanent magnet rotates, and the signal processing unit (52) is used to convert the voltage pulse signal into a continuous electrical signal to supply power to the rotation position detection module (1) and the signal detection module (2); The motor steering test device further includes: a test board (7), the rotation position detection module (1) and the power supply auxiliary module (5) are both fixedly connected to the test board (7), and the test board (7) is fixedly arranged outside the motor.

3. The motor steering test device according to claim 2, characterized in that, The signal processing unit (52) includes: a Schottky diode, a filter capacitor, and a linear voltage regulator; The positive electrode of the Schottky diode is electrically connected to the pulse output terminal of the Wiegand sensor (51), the negative electrode of the Schottky diode is electrically connected to the input terminal of the linear voltage regulator through the filter capacitor, and the output terminal of the linear voltage regulator is electrically connected to the rotation position detection module (1) and the signal detection module (2) respectively.

4. The motor steering test device according to claim 2, wherein, The rotation position detection module (1) includes: a rotation position detection unit (11) and a Hall detection component (12); The rotation position detection unit (11) and the Hall detection assembly (12) are both fixedly connected to the test board (7). The rotation position detection unit (11) is electrically connected to the signal detection module (2) and the power supply module (3) respectively, and the Hall detection assembly (12) is electrically connected to the signal detection module (2) and the power supply auxiliary module (5) respectively; The rotation position detection unit (11) is used to monitor the rotation position of the rotating shaft (8) when the power supply module (3) supplies power to the motor, and the Hall detection assembly (12) is used to monitor the rotation orientation of the rotating shaft (8) through the permanent magnet when the power supply module (3) stops supplying power to the motor.

5. The motor steering test device according to claim 4, wherein The permanent magnet (6) is in a plate-like structure. The rotation center line of the permanent magnet (6) coincides with the axis of the rotating shaft (8), and the test board (7) is perpendicular to the axis of the rotating shaft (8); The Hall detection assembly (12) includes two Hall sensors; The two Hall sensors and the Wiegand sensor (51) are fixed on the same side of the test board (7). The Wiegand sensor (51) coincides with the axis of the rotating shaft (8), and the included angle between the two Hall sensors relative to the Wiegand sensor (51) ranges from 30° to 180°.

6. The motor steering test device according to claim 4, characterized in that, The permanent magnet (6) is in an annular structure. The rotation center line of the permanent magnet (6) coincides with the axis of the rotating shaft (8); The two Hall sensors and the Wiegand sensor (51) are fixed at the same end of the test board (7). The two Hall sensors and the Wiegand sensor (51) are all located in the cavity of the permanent magnet (6). The Wiegand sensor (51) coincides with the axis of the rotating shaft (8), and the included angle between the two Hall sensors relative to the Wiegand sensor (51) ranges from 30° to 180°.

7. A method for testing the steering of an electric motor, characterized in that, The method is applied to the motor steering test device according to any one of claims 1 to 6. The method includes: Obtaining the power-on initial position, free rotation direction, termination position and counting start position of the rotating shaft (8) of the motor through the rotation position detection module (1); wherein, the power-on initial rotation position is used to record the angular position of the rotating shaft (8) when the power supply module (3) supplies power to the motor and the rotating shaft (8) is stationary, the free rotation direction is used to record the rotation direction of the rotating shaft (8) after the motor is powered off, and the termination position is used to record the angular position of the rotating shaft (8) when the motor is powered off and stops rotating; Judging whether the angular position of the rotating shaft (8) when the motor is powered off and stops rotating is within the verification angle range according to the power-on initial position, free rotation direction, termination position and counting start position. The verification angle range is the angular range from the power-on initial position along the free rotation direction to the termination position; If so, add 1 to the sum of the number of rotations detected by the rotation position detection module (1) for the rotating shaft (8) before the motor power-off and the number of rotations detected by the power supply assistance module (5) after the motor power-off, and use the result as the total number of rotations of the rotating shaft (8) during the test; If not, use the sum of the number of rotations recorded by the rotation position detection module (1) for the rotating shaft (8) before the motor power-off and the number of rotations recorded by the power supply assistance module (5) after the motor power-off as the total number of rotations of the rotating shaft (8) during the test.

8. The method according to claim 7, wherein The step of obtaining the power-on initial position, free rotation direction, termination position, and counting start position of the rotating shaft (8) of the motor by the rotation position detection module (1) includes: After the rotating shaft (8) stops rotating, control the power supply module (3) to supply power to the motor and record the current angular position where the rotating shaft (8) is located through the rotation position detection module (1), and use the current angular position as the termination position; The method further includes: Obtain power-on real-time position data through the rotation position detection module (1), where the power-on real-time position data is used to record the angular position of the rotating shaft (8) before the motor power-off at different time nodes; Calculate the number of rotations of the rotating shaft (8) before the motor power-off according to the power-on real-time position data.

9. The method according to claim 8, wherein The step of calculating the number of rotations of the rotating shaft (8) before the motor power-off according to the power-on real-time position data includes: Subtract the angular position corresponding to the previous time node from the angular position corresponding to the current time node to obtain the current rotation angle value; Determine whether the current rotation angle value is greater than the positive proximity range value or less than the negative proximity range value; if the current rotation angle value is greater than the positive proximity range value, then use the negative value of the difference between 360 and the current rotation angle value as the actual current rotation angle value, if the current rotation angle value is less than the negative proximity range value, then use the sum of 360 and the current rotation angle value as the actual current rotation angle value, the positive proximity range value is greater than 60 and less than 360, and the negative proximity range value is less than -60 and greater than -360; Accumulate the current rotation angle value obtained each time to obtain the actual rotation angle sum; Determine whether the actual rotation angle sum is greater than 360 or less than -360. If the actual rotation angle sum is greater than 360 or less than -360, record that the rotating shaft (8) rotates one circle, and clear the actual rotation angle sum until the power supply module (3) stops supplying power.

10. The method according to claim 9, characterized in that The step of determining whether the actual rotation angle sum is greater than 360 or less than -360 includes: if the actual rotation angle sum is greater than 360, record that the rotating shaft (8) rotates one circle clockwise, if the actual rotation angle sum is less than -360, record that the rotating shaft (8) rotates one circle counterclockwise.

11. A method for testing the steering of an electric motor, characterized in that, The method is applied to the motor rotation direction test device according to any one of claims 1 to 6, and the method includes: Obtain the power-off initial position, free rotation direction, termination position, and counting start position of the rotating shaft (8) of the motor through the rotation position detection module (1); wherein, the power-off initial rotation position is used to record the angular position of the rotating shaft (8) when the motor is powered off, the free rotation direction is used to record the rotation direction of the rotating shaft (8) after the motor is powered off, and the termination position is used to record the angular position of the rotating shaft (8) when it stops rotating after the motor is powered off; Based on the power-off initial position, free rotation direction, termination position, and counting start position, determine whether the angular position of the rotating shaft (8) when it stops rotating after the motor is powered off is within the verification angle range, and the verification angle range is the angular range from the power-off initial position along the free rotation direction to the termination position; If so, take the number of rotations of the rotating shaft (8) recorded by the power supply assistance module (5) as the total number of rotations of the rotating shaft (8) after the motor is powered off; If not, subtract 1 from the number of rotations of the rotating shaft (8) detected by the power supply assistance module (5) and take it as the total number of rotations of the rotating shaft (8) after the motor is powered off.

12. The method according to claim 11, wherein The step of obtaining the power-off initial position, free rotation direction, termination position, and counting start position of the rotating shaft (8) of the motor through the rotation position detection module (1) includes: After the rotating shaft (8) stops rotating, control the power supply module (3) to supply power to the motor and record the current angular position where the rotating shaft (8) is located through the rotation position detection module (1), and take the current angular position as the termination position; The method further includes: Obtain the power-on real-time position data through the rotation position detection module (1), and the power-on real-time position data is used to record the angular position of the rotating shaft (8) before the motor is powered off at different time nodes; Calculate the number of rotations of the rotating shaft (8) before the motor is powered off according to the power-on real-time position data.

13. The method according to claim 12, wherein The step of calculating the number of rotations of the rotating shaft (8) before the motor is powered off according to the power-on real-time position data includes: Subtract the angular position corresponding to the previous time node from the angular position corresponding to the current time node to obtain the current rotation angle value; Judge whether the current rotation angle value is greater than the positive adjacent range value or less than the negative adjacent range value; if the current rotation angle value is greater than the positive adjacent range value, then take the negative value of the difference between 360 and the current rotation angle value as the actual current rotation angle value, if the current rotation angle value is less than the negative adjacent range value, then take the sum of 360 and the current rotation angle value as the actual current rotation angle value, the positive adjacent range value is greater than 60 and less than 360, and the negative adjacent range value is less than -60 and greater than -360; Accumulate the current rotation angle value obtained each time to obtain the actual rotation angle sum. When the actual rotation angle sum is greater than 360 or less than -360, record that the rotating shaft (8) rotates one circle, and clear the actual rotation angle sum until the power supply module (3) stops supplying power.