A low-cost and high-reliability position detection device for permanent magnet synchronous motor

By combining a single sensor with a code disk or a rotor magnetic pole, and using a signal processing device to detect the position of a permanent magnet synchronous motor, the problem of high cost and high failure probability in the existing technology is solved, and low-cost, high-reliability position detection is achieved.

CN107659225BActive Publication Date: 2024-09-17NINGBO INST OF MATERIALS TECH & ENG CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201711004813.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-10-25
Publication Date
2024-09-17
Estimated Expiration
2037-10-25

AI Technical Summary

Technical Problem

The existing position detection methods of permanent magnet synchronous motors are costly and require multiple sensors to increase the probability of failure, and it is difficult to determine faults when interference signals exist.

Method used

A single sensor is used in combination with the code disk or rotor magnetic pole, and the sensor signal processing device is used for signal encoding and calculation to obtain the motor position information. The signal is processed through DSP, MCU, CPLD or FPGA devices to reduce costs and failure probability.

Benefits of technology

It achieves low-cost and high-reliability position detection of permanent magnet synchronous motors, reduces the probability of sensor failure and the difficulty of fault judgment, and improves work reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN107659225B
    Figure CN107659225B
Patent Text Reader

Abstract

The present invention discloses a position detection device for a permanent magnet synchronous motor with low cost and high reliability, comprising a detection part that rotates synchronously with the motor, a single sensor that is coupled with the detection part and outputs high and low levels according to the position state of the detection part, and a sensor signal processing device that receives the detection signal of the sensor and calculates the position information of the motor rotor. The present invention uses a single sensor and adopts a code disk or a rotor magnetic pole as the detection part of the sensor, and encodes and calculates the sensor output signal through the sensor signal processing device to obtain the required electrical angle and mechanical angle position of the motor, which greatly reduces the cost, reduces the probability of sensor failure and the difficulty of judging sensor failure, and improves the working reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of permanent magnet synchronous motors, in particular to a position detection device for permanent magnet synchronous motors with low cost and high reliability. Background Art

[0002] Permanent magnet synchronous motors need to collect position information during control, and the collection method usually uses photoelectric sensors, Hall sensors, rotary encoders, incremental encoders or absolute encoders. Among them, the cost of rotary encoders, incremental encoders and absolute encoders is relatively high, and the use of photoelectric sensors or Hall sensors requires multiple devices on the basis of traditional position detection methods. Therefore, none of the above methods is low-cost, and the use of multiple sensor devices also increases the probability of sensor failure. In addition, when interference signals enter, it increases the difficulty of fault judgment. Summary of the invention

[0003] The purpose of the present invention is to provide a low-cost and high-reliability position detection device for a permanent magnet synchronous motor in response to the above-mentioned current state of the art. The position detection of a rotating permanent magnet synchronous motor can be achieved through a single sensor, which greatly reduces the cost, reduces the probability of sensor failure and the difficulty of judging sensor failure, and improves working reliability.

[0004] The technical solution adopted by the present invention to solve the above technical problems is: a low-cost and high-reliability position detection device for a permanent magnet synchronous motor, including a detection part that rotates synchronously with the motor, a single sensor coupled to the detection part and outputting high and low levels according to the position state of the detection part, and a sensor signal processing device that receives the detection signal of the sensor and calculates the motor rotor position information.

[0005] In order to optimize the above technical solution, the present invention also includes the following improved technical solution.

[0006] The sensor signal processing device includes a sensor signal encoding module and a sensor signal encoding processing module. The sensor signal encoding module captures the rising edge or falling edge of the high and low level signals, and obtains the binary encoding of the square wave through the time width of the edge signal. The sensor signal encoding processing module includes a position calculation module, which calculates the electrical angle and mechanical angle position of the motor according to the binary code.

[0007] The above-mentioned detection part is a code disk connected to the motor rotor shaft, and the code disk has a convex detection part and a concave detection part within a unit area angle; the sensor outputs corresponding high-level or low-level detection signals to the convex detection part or the concave detection part respectively.

[0008] The above-mentioned unit area angle R=360° / P / N, where R is the unit area angle value of the code disk, 360° is the mechanical angle, P is the number of poles of the motor rotor, and N is the number of phases of the motor; the raised detection part and the recessed detection part within the unit area are divided in an m:n manner, where m≠n.

[0009] The above-mentioned position calculation module obtains the interval code according to the binary code, and calculates the position information of the motor in combination with the interval code and the integral of the angular velocity within the interval; at the same time, the binary coding information sent by the sensor signal coding module is stored in the first register, and an internally estimated binary coding information is stored in the second register, and the binary coding information of the first register is compared with the binary coding information of the second register. If they are equal, it is considered to be normal operation. If they are not equal, fault information is output, and the coding information of the first register is used to update the coding of the second register.

[0010] The above-mentioned detection part is the magnetic pole of the motor rotor; the sensor outputs a corresponding high-level or low-level detection signal according to the N-pole or S-pole of the motor rotor.

[0011] The above position calculation module records the area between the two rising edges as the Re area, and calculates the starting electrical angle in the Re area. The position information of the motor is calculated by integrating the angular velocity in the Re region.

[0012] The sensor signal encoding processing module mentioned above includes a starting and rotation direction change processing module, which performs starting and rotation direction change processing control on the motor.

[0013] The signal processing, code generation, code logic processing and position calculation of the sensor signal processing device are implemented through DSP, MCU, CPLD or FPGA devices.

[0014] The sensor signal processing device described above is applicable to all permanent magnet synchronous motors whose phase number N is an integer multiple of 3 and whose stator slot number is a multiple of N.

[0015] Compared with the prior art, the present invention uses a single sensor and adopts a code disk or a rotor pole as the detection part of the sensor. The sensor signal processing device encodes and calculates the sensor output signal to obtain the required electrical angle and mechanical angle position of the motor, which greatly reduces the cost, reduces the probability of sensor failure and the difficulty of judging sensor failure, and improves working reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 This is a schematic diagram of the composition of Example 1.

[0017] Figure 2 This is a module diagram of the sensor signal processing device in Example 1.

[0018] Figure 3 This is a structural diagram of the sensor code disk of Example 1.

[0019] Figure 4 This is a schematic diagram of the internal structure of the motor of Example 1.

[0020] Figure 5 This is the sensor signal and coding diagram of Example 1.

[0021] Figure 6 This is the schematic diagram coded as “1” in Example 1.

[0022] Figure 7 This is the schematic diagram of the code "0" in Example 1.

[0023] Figure 8 This is a schematic diagram of the binary coding error detection principle in Example 1.

[0024] Fig. 9 This is a diagram of the angular velocity integration processing within the interval in Example 1.

[0025] Fig.10 This is the sinusoidal wave power-on diagram in Example 1.

[0026] Fig.11 This is the forward conversion reversal principle diagram in Example 1.

[0027] Fig.12 This is a diagram of the sensor device of Example 2.

[0028] Fig.13 This is a module diagram of the sensor signal processing device in Example 2.

[0029] Fig.14 This is the signal principle diagram for forward and reverse rotation in Example 2.

[0030] Fig.15 This is the Re internal angular velocity integration processing diagram of Example 2.

[0031] Fig.16 This is the sinusoidal wave power-on diagram of Example 2.

[0032] Fig.17 This is the forward conversion reversal principle diagram of Example 2. DETAILED DESCRIPTION

[0033] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings.

[0034] Figures 1 to 17 Shown is a schematic structural diagram of the present invention.

[0035] Example 1

[0036] like Figure 1As shown, a low-cost and high-reliability position detection device for a permanent magnet synchronous motor of this embodiment includes a detection unit that rotates synchronously with the motor, a single sensor that is coupled to the detection unit and outputs high and low levels according to the position state of the detection unit, and a sensor signal processing device that receives the detection signal of the sensor and calculates the motor rotor position information.

[0037] In this embodiment, the detection unit adopts a suitable code disk to detect the position information of the motor rotor through a single sensor.

[0038] like Figure 3 The single sensor and the corresponding code disc shown in the figure are matched to the three-phase permanent magnet synchronous motor with 12 slots and 4 poles. The code disc is coaxially fixed with the motor rotor. The raised part of the code disc is represented by "H" and the recessed part of the code disc is represented by "L". Since this code disc is used for a three-phase, 12-slot, 4-pole permanent magnet synchronous motor, the internal structure of the motor is as follows Figure 4 shown.

[0039] The sensor can be a device such as an optical coupler, a Hall, or a proximity switch, and its output characteristic has only two states, high level or low level. In this application, it is assumed that when the convex part passes through the sensor, the sensor outputs a high level signal, and when the concave part passes through the sensor, the sensor outputs a low level signal.

[0040] The present invention stipulates that the clockwise rotation of the motor is the positive rotation direction, and the counterclockwise rotation of the motor is the reverse rotation direction. When the motor rotates, the sensor code disk device outputs a series of square wave signals of varying widths, which are input to the sensor signal processing device, and the position information of the motor rotor is obtained after processing.

[0041] Figure 3 In the figure, the unit area angle of the code disk is 30° mechanical angle, and the 30° area is further divided according to the principle of 3:1, into two areas of 22.5° and 7.5°. H1 represents the angle of the raised part as 22.5°, L1 represents the angle of the sunken part as 7.5°, H2 represents the angle of the raised part as 7.5°, and L2 represents the angle of the sunken part as 22.5°, which represents the division of the code disk. The division of the code disk is based on H1, L1, H1, L1, H2, L2, H1, L1, H2, L2, H2, L2 as a cycle, and it can be divided into 2 groups in total in this cycle.

[0042] The above splitting method is applicable to all permanent magnet synchronous motors with N phases, where N is a multiple of 3 and the number of stator slots is a multiple of N. It can be calculated by the following formula: The unit area of the encoder disk is: R = (360° / P / N), where R is the angular value of the unit area of the encoder disk, 360° is the mechanical angle, P is the number of rotor poles (a multiple of 2), and the number of stator slots is a multiple of N. According to the above principle, R can be split in a 3:1 manner, or in an m:n manner (m≠n).

[0043] A sensor signal processing device is used to receive the output signal of the sensor encoder disk device, encode and process the signal, finally obtain the correct position information, and at the same time perform error detection of the encoding and process start and rotation direction changes. As Figure 2 shown, the sensor signal processing device mainly consists of two parts: a sensor signal encoding module and a sensor signal encoding and processing module.

[0044] The sensor signal encoding module mainly encodes the output signal of the sensor. The sensor signal encoding module captures the rising edge or falling edge of the signal through the edge of the signal, and obtains the binary encoding of the square wave through software encoding. The specific process is to operate with the time between two adjacent rising edges of the signal as a square wave unit. Taking forward rotation as an example, as Figure 6 and Figure 7 shown, at the first rising edge, a module internal counter is started to count. When the falling edge arrives, the counting is stopped, and the current count value is recorded as T1. Then the counter is immediately reset to start counting again. When the second rising edge arrives, the counting is stopped again, and the current count value is recorded as T2. Then compare the magnitudes of T1 and T2. If T1>T2, then the just received square wave unit is encoded as "1". If T1<T2, then the just received square wave unit is encoded as "0".

[0045] Thus, when the encoder disk starts to rotate forward from the position as Figure 3 shown, the binary encoding "110100" can be obtained. From the above, it can be seen that when the high-level time width of the square wave signal between two rising edges is greater than the low-level time width, it is encoded as "1", and when the high-level time width of the square wave signal between two rising edges is less than the low-level time width, it is encoded as "0". When the motor needs to run in reverse, we only need to invert the square wave signal input to the sensor signal encoding module, and the obtained square wave signal has the same waveform characteristics as when rotating forward. Using the above method for forward operation, the binary code with the same encoding order can be obtained. Next, the position interval code can be obtained through the binary encoding, as Figure 5 shown. Whether it is forward or reverse rotation, it can be obtained for Figure 5The square wave waveform in the figure is a square wave unit, and a series of binary codes can be obtained by taking the interval between two adjacent rising edges. Each square wave unit is regarded as an interval and marked with an interval code. The current interval code is determined by the first 3 binary codes. The details are shown in Table 1.

[0046] Table 1 Binary code and interval code mapping table

[0047] The first 3 binary codes Current range code 001 1 010 2 011 3 100 4 101 5 110 6

[0048] From this, we can get Figure 5 The interval code in Figure 5 It can be seen that the interval code is a repetitive pattern of 4->1->3->6->5->2->4. That is, the interval code of any interval in a code disk cycle is unique and regular. If the rotation direction remains unchanged, knowing the current interval code can predict the next interval code and the 6-bit binary code to be received, as shown in Table 2 below, where the highest bit in the right column is the first to be received.

[0049] Table 2 Estimated binary code in the current interval

[0050] Current range code The received 6-bit binary code 4 110100 1 101001 3 010011 6 100110 5 001101 2 011010

[0051] The sensor signal encoding processing module consists of two parts, namely the position calculation module and the start and rotation direction change processing module. The sensor signal encoding processing module is mainly used for calculation and processing of the encoded signal.

[0052] The location calculation module mainly combines the interval code to obtain the location information and perform coding error detection. Figure 3 and Figure 4 It can be seen that one encoder cycle corresponds to an electrical angle of 0 to 360°, a mechanical angle of 0 to 180°, and an interval code of 4->1->3->6->5->2. The rising edge of the encoder interval 4 and the motor electrical angle 0 point are aligned when the encoder is installed. It can be seen that the interval code corresponds to a specific electrical angle interval during forward and reverse rotation, as shown in Tables 3 and 4 below.

[0053] Table 3 Forward rotation, interval code and electrical angle interval mapping table

[0054] Interval code Electrical angle range 4 1 to 60° 1 61 to 120° 3 121 to 180° 6 181 to 240° 5 241 to 300° 2 301 to 360°

[0055] Table 4: Mapping table of interval codes and electrical angle intervals during reversal

[0056]

[0057]

[0058] like Figure 5As shown, the current interval code can be known from the previous interval code, and the electrical angle range can be obtained through Table 3 and Table 4. In order to obtain a more accurate electrical angle value, we use the motor angular velocity value when entering the current interval to integrate the time to obtain the accurate angle.

[0059] Δθ m =w*T (Formula 1)

[0060] Where T is the time from the last rising edge to the current moment (the time from the start-up moment to the current moment when starting), w is the mechanical angular velocity corresponding to the rising edge moment when entering the current interval, Δθ m It is the mechanical angle change within a single interval.

[0061] Δθ e =Δθ m *P / 2 (Formula 2)

[0062] Where P is the number of motor poles, Δθ e is the electrical angle change in a single interval. Therefore, we can get

[0063] Current electrical angle: θ e = Starting electrical angle of current interval + Δθ e (Formula 3)

[0064] The starting electrical angle of the current interval varies depending on the forward and reverse rotations, as detailed in Tables 3 and 4 above. If the mechanical angle is to be obtained, the premise is that the motor must start rotating from the mechanical 0 point when it is started, and the mechanical 0 point position is aligned with the electrical angle 0 point, such as Figure 3 As shown, a counter needs to be turned on. When the motor rotates forward, it starts counting from 0. Every time a signal rises, the counter is incremented by 1. When the counter reaches the maximum threshold M of one motor revolution, it is reset to 0, where M = 360° / R. On the contrary, when the motor starts to reverse, it starts counting from M. Every time a signal rises, the counter is decremented by 1. When the counter reaches 0, it is reset to M. Therefore, we can get

[0065] Current mechanical angle: θ m = counter * R + Δθ m (Formula 4)

[0066] The idea of ​​integrating the angle within the interval is based on the fact that the angular velocity within the interval is fixed. In the actual operation of the motor, there may be a situation where the speed changes within the interval, such as Figure 5As shown in the figure, the angular velocity did not change in interval 3, the actual angular velocity accelerated in interval 4, and decelerated in interval 1. If we determine the slope integral based on the initial velocity when entering the interval, the angle will be insufficient or overflow. To solve this problem, we reset the angle to R at the rising edge at the end of the interval for the problem of insufficient angle, and stop integrating when the integral value reaches R and keep R until the end of the interval, as shown in the figure below. Figure 5 shown.

[0067] As mentioned above, the error detection of the coding refers to comparing the latest 6-bit binary code of the binary code with the 6-bit binary code estimated by the system. If they are consistent, it means it is normal. If they are inconsistent, an error is reported and the current first register is used to update the second register. Every time a rising edge of a signal is captured, the encoded "1" or "0" is shifted into the first register right, and the second register is cyclically shifted right by one bit. Then, through Figure 8 The logical comparison shown obtains the comparison result.

[0068] The above-mentioned startup and rotation direction change processing modules are mainly used to handle the two special situations when the startup and the motor rotation direction change.

[0069] In the first case, before the motor starts, the motor and the encoder are as follows Figure 3 The alignment angle is 0°, i.e. the initial angle θ mi =θ ei = 0°. At this time, the motor control starts with the current loop open-loop control, and a sine wave current is passed. Fig.10 Taking forward rotation as an example, the rotation starts from the current interval 4. Figure 8 The second register in is preloaded with "001011". When it passes through 6 intervals, that is, when the 6th rising edge is received, it reaches interval 4 again. The first register has received the latest 6-bit binary code from the sensor signal encoding module. Next, the first register and the second register are compared every time a rising edge is received, such as Figure 8 As shown, and check θ e Is it within the angle range of the corresponding interval in Table 3 (θ e From formula 3, it is obtained that until the 12th rising edge is received, if the comparison and inspection results are correct at this time, it is considered that the position detection is normal, and the motor control switches to closed-loop control. The same applies to reverse rotation.

[0070] In the second case, when the direction of rotation needs to be reversed, the motor stops in a free stop mode. Fig.11 As shown in the figure, there are two situations when the machine stops. e and θ m Assign values ​​to θei ,θ mi , as the initial angle when starting in reverse direction, and record the current interval code X at the same time, stop the binary coding, record the current value of the counter, and stop the counter addition and subtraction. After the stop is completed, the motor control immediately starts the reverse direction with the current loop open-loop control. At the rising edge immediately after the first falling edge after the reverse start, the start timer is restarted to calculate T1 and T2 for binary coding, the counter is set to the recorded value when stopped and the counter addition and subtraction are restarted, and the current interval code is reset to X' by looking up Table 5. The given current needs to be combined with θ ei and Fig.10 The above method is effective for Fig.11 The following method of switching into closed loop is the same as that of starting, except that θ mi ,θ ei The current angle value replaces 0°, and the interval X' replaces the interval 4. Conversely, the reverse to forward method is similar to the above.

[0071] Table 5 Interval code change table when switching between forward and reverse directions

[0072]

[0073] Example 2

[0074] The present embodiment is a low-cost, high-reliability position detection device for a permanent magnet synchronous motor, comprising a single sensor device and a sensor signal processing device. Compared with the present embodiment 1, the present embodiment does not use a code disk, and the detection unit uses the magnetic pole of the motor rotor. The sensor outputs a corresponding high-level or low-level detection signal according to the N pole or S pole of the motor rotor. When the motor rotates, the sensor device outputs a series of square wave signals with consistent width and inputs them to the sensor signal processing device, and the position information is obtained after processing.

[0075] like Fig.12 As shown, the number of sensors in this embodiment is one, which is installed in a 12-slot 4-pole three-phase permanent magnet synchronous motor to detect the polarity change of the 4-pole rotor.

[0076] The sensor of this embodiment can be a device such as a Hall element, and its output characteristic has only two states, namely, a high level or a low level. In this embodiment, when the N pole of the permanent magnet rotor of the motor passes through the sensor, the sensor outputs a high level signal H, and when the S pole of the permanent magnet rotor of the motor passes through the sensor, the sensor outputs a low level signal L as an example.

[0077] The sensor signal processing device mainly consists of two parts: the position calculation module and the start and rotation direction change processing module. The sensor signal processing device receives the output signal of the sensor code disk device, processes the signal, and finally obtains the position information of the motor rotor, as well as processes the start and rotation direction change.

[0078] The position calculation module obtains the position information by combining the high and low levels of the input signal. Fig.12 and Fig.14 It can be seen that when the motor rotates forward, we get the level states of H, L, H, L... When the motor needs to rotate in the reverse direction, we only need to invert the square wave signal input to the sensor signal processing device, and the obtained square wave signal has the same waveform characteristics as the forward rotation. The area between the two rising edges is recorded as the Re area, which corresponds to a square wave cycle, corresponding to an electrical angle of 0 to 360°, and its corresponding mechanical angle is in P is the number of motor poles. The rising edge of the N pole and the 0° point of the motor electrical angle are aligned when the encoder is installed.

[0079] In order to obtain a more accurate electrical angle value, we integrate the motor angular velocity value with respect to time in the Re region to obtain the accurate angle.

[0080]

[0081] Where t is the time from the last rising edge to the current moment (the time from the start-up moment to the current moment when starting), ω is the mechanical angular velocity corresponding to the last rising edge moment, It is the change in mechanical angle from the last rising edge to the current moment.

[0082] Current electrical angle:

[0083] Where P is the number of motor poles, is the starting electrical angle in the Re region. is 0°, when reversed It is 360°.

[0084] If you want to get the mechanical angle, the premise is that the motor must start rotating from the mechanical 0 point when it starts, and the mechanical 0 point position is aligned with the electrical angle 0 point, such as Fig.12 As shown, a counter needs to be turned on. When the motor rotates forward, it starts counting from 0. Every time a signal rises, the count CNT increases by 1. When the counter reaches the maximum threshold M of one motor revolution, it is reset to 0, where M = P / 2. On the contrary, when the motor starts to reverse, it starts counting from M. Every time a signal rises, the count CNT decreases by 1. When the counter reaches 0, it is reset to M. Therefore, we can get

[0085] Current mechanical angle:

[0086] The idea of ​​integrating the angle in the Re region is based on the fact that the angular velocity in the Re region is fixed. In actual motor operation, the angular velocity in the Re region may change. Fig.15 As shown in the figure, the angular velocity did not change in the first Re region, the actual angular velocity accelerated in the second Re region, and decelerated in the third Re region. If we integrate in the Re region at this time, we will determine the slope based on the initial velocity when entering the Re region, and the angle will be insufficient or overflow. In order to solve this problem, we reset the angle to 0 at the rising edge at the end of the Re region. For the angle overflow problem, we can solve it when the integral value reaches Stop integration and keep To the end of Re area, such as Fig.15 shown.

[0087] The startup and rotation direction change processing module is mainly used to handle the two special situations when the motor starts and the rotation direction of the motor changes.

[0088] In the first case, before the motor starts, the motor and the encoder are as follows Fig.12 The alignment shown is at an angle of 0°, i.e. the initial angle = 0°. At this time, the motor control starts with the current loop open-loop control, and a sine wave current is passed. Fig.16 Taking forward rotation as an example, the motor starts rotating from a mechanical angle of 0°. When the motor passes through a Re region, that is, when the first rising edge is received, the motor control switches into closed-loop control. The same is true for reverse rotation.

[0089] In the second case, when the direction of rotation needs to be reversed, the motor stops in a free stop mode. Fig.17 As shown in the figure, there are two types of positions when the machine is stopped. and Assign values ​​to As the initial angle for reverse start, record the current value of CNT and stop CNT addition and subtraction. After the stop is completed, the motor control immediately starts the reverse direction with the current loop open-loop control. At the rising edge immediately after the first falling edge after the reverse start, CNT is set to the recorded value when stopping and CNT addition and subtraction are restarted. The given current needs to be combined with and Fig.16 , and enter closed-loop control at the next second rising edge. Fig.17 The forward-to-reverse open-loop starting method is similar to the normal starting method, except that The current angle value is used instead of 0°. Conversely, the reverse rotation method is similar to the above.

[0090] The best embodiment of the present invention has been described, and various changes or modifications made by those skilled in the art will not depart from the scope of the present invention.

Claims

1. A position detection device for a permanent magnet synchronous motor, comprising: A detection part that rotates synchronously with the motor, the detection part is a code disk connected to the motor rotor shaft, and the code disk has a convex detection part and a concave detection part within a unit area angle; A single sensor coupled to the detection part and outputting a high or low level according to the position state of the detection part, wherein the sensor outputs a high or low level detection signal corresponding to the protruding detection part or the recessed detection part; and, a sensor signal processing device that receives a detection signal from the sensor and calculates the motor rotor position information; The sensor signal processing device comprises a sensor signal encoding module and a sensor signal encoding processing module; the sensor signal encoding module captures the rising edge or falling edge of the high and low level signals, and obtains the binary encoding of the square wave through the time width of the edge signal; the sensor signal encoding processing module comprises a position calculation module, and the position calculation module calculates the electrical angle and mechanical angle position of the motor according to the binary code, wherein the calculation formula used is: θe=current interval starting electrical angle+Δθe θm=counter*R+Δθm Δθm=w*T Δθe=Δθm*P / 2 θe is the current electrical angle, θm is the current mechanical angle, Δθm is the change in mechanical angle within a single interval, Δθe is the change in electrical angle within a single interval, T is the time from the last rising edge to the current moment, w is the mechanical angular velocity corresponding to the rising edge moment when entering the current interval, P is the number of poles of the motor rotor, counter is the count of the counter, R is the unit area angle, And, the position calculation module determines the slope integral according to the initial velocity entering the interval; wherein, when the angle is insufficient, the angle is reset to R at the rising edge moment of the end of the interval, and when the angle overflows, the integration is stopped when the integral value reaches R and R is maintained until the end of the interval; Among them, when the motor starts, it starts to rotate from the mechanical 0 point, and the mechanical 0 point position is aligned with the electrical angle 0 point. When the motor rotates forward, the counter starts counting from 0, and each time a signal rising edge is encountered, the counter increases by 1. When the counter calculates to the maximum threshold M of one motor circle, it is reset to 0, where M = 360° / R. When the motor reverses, the counter starts counting from M, and each time a signal rising edge is encountered, the counter decreases by 1, and when the counter calculates to 0, it is reset to M.

2. The position detection device according to claim 1, characterized in that: The unit area angle R=360° / P / N, where 360° is a mechanical angle and N is the number of phases of the motor; the raised detection portion and the recessed detection portion within the unit area are divided in an m:n manner, where m≠n.

3. The position detection device according to claim 2, characterized in that: The position calculation module obtains the interval code according to the binary code, and calculates the position information of the motor in combination with the interval code and the integral of the angular velocity within the interval; at the same time, the binary code information sent by the sensor signal encoding module is stored in the first register, and an internally estimated binary code information is stored in the second register, and the binary code information of the first register is compared with the binary code information of the second register. If they are equal, it is considered to be normal operation. If they are not equal, fault information is output, and the code information of the first register is used to update the code of the second register.

4. The position detection device according to any one of claims 1 to 3, characterized in that: The sensor signal encoding processing module also includes a starting and rotation direction change processing module, which is used to perform starting and rotation direction change processing control on the motor.

5. The position detection device according to claim 4, characterized in that: The signal processing, code generation, code logic processing and position calculation of the sensor signal processing device are implemented through DSP, MCU, CPLD or FPGA devices.

6. The position detection device according to claim 5, characterized in that: The sensor signal processing device is suitable for all permanent magnet synchronous motors whose phase number N is an integer multiple of 3 and whose stator slot number is a multiple of N.

7. A position detection device for a permanent magnet synchronous motor, characterized in that: include: A detection part that rotates synchronously with the motor, wherein the detection part is a magnetic pole of the motor rotor; A single sensor coupled to the detection unit and outputting a corresponding high-level or low-level detection signal according to the N pole or S pole of the motor rotor; and, a sensor signal processing device, for receiving an output signal of the sensor and processing the signal to obtain position information of the motor rotor, and to process the start-up and rotation direction change of the motor; The sensor signal processing device includes a position calculation module and a start and rotation direction change processing module. The position calculation module records the area between two rising edges as the Re area. The Re area corresponds to a square wave cycle, an electrical angle of 0 to 360°, and a mechanical angle of Ψ r , according to the starting electrical angle ψ in the Re region i The position information of the motor is calculated by integrating the angular velocity in the Re region. The corresponding calculation formula is: P e =Ψ i +△Ψ m *P / 2 P m =CNT*Ψ r +△Ψ m △Ψ m =ω*t P r =360 / (P / 2) Ψ e is the current electrical angle, Ψ m is the current mechanical angle, t is the time from the last rising edge to the current moment, ω is the mechanical angular velocity corresponding to the last rising edge moment, △Ψ m is the change in mechanical angle from the last rising edge to the current moment, P is the number of motor poles, Ψ i is the starting electrical angle in the Re region, when rotating forward i is 0°, when reversed i is 360°, CNT is the count of the counter, Furthermore, when the angular velocity in the Re region is insufficient, the angle is reset to Ψ at the rising edge at the end of the Re region. r When the angular velocity overflows within the Re region, the integral value reaches Ψ r Stop integration and keep Ψ r to the end of the Re region; The starting and rotation direction change processing module is used to perform starting and rotation direction change processing control on the motor.

8. The position detection device according to claim 7, characterized in that: The signal processing, code generation, code logic processing and position calculation of the sensor signal processing device are implemented through DSP, MCU, CPLD or FPGA devices.

9. The position detection device according to claim 8, characterized in that: The sensor signal processing device is applicable to all permanent magnet synchronous motors whose phase number N is an integer multiple of 3 and whose stator slot number is a multiple of N.