Redundant circuit for software and hardware decoding and sensorless estimation of permanent magnet synchronous motor
By designing redundant circuits for software and hardware decoding and sensorless estimation in the permanent magnet synchronous motor, the problem of angle value errors caused by rotary transformer failure or decoding chip failure is solved, and the reliability of rotor position identification and the stability of motor control are improved. .
Patent Information
- Application Number
- CN202210111936.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-27
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-01-27
AI Technical Summary
Under harsh working conditions, when the resolver fails or the decoding chip fails, the angle value obtained by the permanent magnet synchronous motor control system is wrong, causing the motor to lose control and reducing the reliability of rotor position identification.
A redundant circuit for permanent magnet synchronous motor software and hardware decoding and sensorless estimation is designed. The rotor angle value is solved through the resolver decoding chip and the excitation signal processing circuit. The microprocessor switches to software decoding after determining the hardware decoding failure, and Switch to sensorless estimation when software decoding fails, and estimate the rotor position using the stator voltage and current in the two-phase rotating coordinate system.
It improves the reliability of rotor position identification under fault conditions and ensures the stability and control accuracy of motor output.
Smart Images

Figure CN114553063B
Abstract
Description
Technical Field
[0001] The present application relates to the field of redundant circuits and control technology for motor rotor position identification, and in particular to a redundant circuit for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor. Background Art
[0002] At present, new energy vehicles require motor control systems with good stability. In the control of permanent magnet synchronous motors, an especially important control variable is the motor rotor position, which has a great influence on the control effect and control accuracy.
[0003] In the related technology, the electric vehicle controller obtains the angle information of the permanent magnet synchronous motor by installing a rotating transformer in the motor and using a rotating transformer decoding chip to output the excitation signal, which is then sent to the primary winding of the rotating transformer through a signal processing circuit. The sine and cosine signals (orthogonal differential signals) fed back by the rotating transformer are then decoded to obtain the angle value, and the data is transmitted to the MCU (Microcontroller Unit) through the SPI (Serial Peripheral Interface) interface to achieve the expected functions of the system.
[0004] However, new energy vehicles face different working conditions. Working in harsh working environments may cause the resolver to malfunction or the decoding chip to fail. The angle obtained by the control system will also receive an erroneous value, causing the permanent magnet synchronous motor to have unexpected outputs, thereby causing the motor to lose control and reduce the reliability of rotor position identification, which needs to be solved urgently. Summary of the invention
[0005] The present application provides a redundant circuit for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor to solve the problem that when a rotary transformer fails or a decoding chip fails, the control system receives an erroneous angle value, thereby causing the permanent magnet synchronous motor to have an unexpected output and cause the motor to lose control.
[0006] The first aspect of the present application provides a redundant circuit for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor, including:
[0007] Microprocessor, drive and inverter circuit, resolver decoding chip, logic control circuit, software and hardware decoding switching control circuit, excitation signal processing circuit, resolver and permanent magnet synchronous motor, among which,
[0008] The resolver decoding chip and the excitation signal processing circuit provide an excitation signal for the primary winding of the resolver, and after processing the orthogonal differential signal of the resolver, the resolver decoding chip calculates a first rotor angle value at a current control moment;
[0009] The microprocessor is used to determine that a hardware decoding fault occurs when the difference between the first rotor angle value at the current control moment and the first rotor angle value at the previous control moment is greater than a preset threshold value, and send the hard decoding fault to the logic control circuit; and after the hardware and software decoding switching control circuit switches the hardware decoding to software decoding, determine whether the voltage value of the permanent magnet synchronous motor is in a preset voltage range, and determine that a software decoding fault occurs when the voltage value is not in the preset voltage range, and at the same time switch the software decoding to sensorless estimation, and estimate the rotor position of the permanent magnet synchronous motor based on the stator voltage and current in a two-phase rotating coordinate system.
[0010] Optionally, the microprocessor comprises:
[0011] ADC (Analog-to-Digital Converter) module, PWM (Pulse Width Modulation) module, SPI interface, SMU (Source Measure Unit) module, rotor position fault-tolerant unit;
[0012] Among them, the rotor position fault-tolerant unit is used to obtain the corresponding rotor angle values under the hardware decoding, the software decoding and the sensorless estimation respectively, and calculate the rotor position of the permanent magnet synchronous motor according to the weighting coefficient set based on the fault state of the hardware decoding, the software decoding and the sensorless estimation.
[0013] Optionally, the microprocessor is further used for:
[0014] During sensorless estimation, the second angle value at the last control moment and the second angle value at the current control moment are obtained based on the ADC module and the PWM module, and when the deviation between the second angle value at the last control moment and the second angle value at the current control moment is greater than the preset threshold, it is determined that a sensorless estimation fault occurs, and the permanent magnet synchronous motor is controlled to stop and an alarm is issued.
[0015] Optionally, the software and hardware decoding switching control circuit is composed of at least one group of MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor) circuits, wherein each group of MOSFET circuits is composed of two MOSFETs connected in reverse series.
[0016] Optionally, the redundant circuit for software and hardware decoding and sensorless estimation of the permanent magnet synchronous motor is characterized by:
[0017] in,
[0018] The MCU and the resolver decoding chip are independently arranged.
[0019] According to the redundant circuit of the hardware and software decoding and sensorless estimation of the permanent magnet synchronous motor of the embodiment of the present application, the rotary transformer decoding chip and the excitation signal processing circuit provide the excitation signal for the primary winding of the rotary transformer and process its orthogonal differential signal, and solve the first rotor angle value at the current control moment; the microprocessor is used to determine the hardware decoding fault when the difference between the first rotor angle value at the current and the last control moment is greater than the preset threshold value and send it to the logic control circuit; after the hardware and software decoding switching control circuit switches the hardware decoding to the software decoding, if the voltage value of the permanent magnet synchronous motor is not in the preset voltage range, it is determined that the software decoding fault occurs, the software decoding is switched to the sensorless estimation and the rotor position of the permanent magnet synchronous motor is estimated according to the stator voltage and current in the two-phase rotating coordinate system. Thus, when the rotary transformer fails or the decoding chip fails, the angle obtained by the control system receives an erroneous value, thereby causing the permanent magnet synchronous motor to have an unexpected output and cause the motor to lose control. The reliability of the rotor position identification is improved through the redundant design of the hardware and software decoding and sensorless estimation of the permanent magnet synchronous motor.
[0020] A second aspect of the present application provides an electric vehicle, comprising the redundant circuit for software and hardware decoding and sensorless estimation of the permanent magnet synchronous motor described in the first aspect of the present application.
[0021] A third aspect of the present application provides a method for switching a redundant circuit for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor, using the redundant circuit for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor described in the first aspect of the present application, comprising the following steps:
[0022] A first rotor angle value of the permanent magnet synchronous motor at a current control moment through the microprocessor;
[0023] If the difference between the first rotor angle value at the current control moment and the first rotor angle value at the previous control moment is greater than the preset threshold, it is determined that a hardware decoding failure occurs, and hardware decoding is switched to software decoding;
[0024] Determining whether the voltage value of the permanent magnet synchronous motor is within a preset voltage interval, and if the voltage value is not within the preset voltage interval, determining that a software decoding failure occurs, and switching the software decoding to sensorless estimation; and
[0025] The rotor position of the permanent magnet synchronous motor is estimated according to the stator voltage and current in a two-phase rotating coordinate system.
[0026] Optionally, the method for switching redundant circuits according to the permanent magnet synchronous motor software and hardware decoding and sensorless estimation further includes:
[0027] The rotor angle values corresponding to the hardware decoding, the software decoding and the sensorless estimation are respectively obtained, and the rotor position of the permanent magnet synchronous motor is calculated according to the weighting coefficient set based on the fault state of the hardware decoding, the software decoding and the sensorless estimation.
[0028] Optionally, the method for switching redundant circuits according to the permanent magnet synchronous motor software and hardware decoding and sensorless estimation further includes:
[0029] During sensorless estimation, the second angle value at the last control moment and the second angle value at the current control moment are obtained based on the ADC module and the PWM module, and when the deviation between the second angle value at the last control moment and the second angle value at the current control moment is greater than the preset threshold, it is determined that a sensorless estimation fault occurs, and the permanent magnet synchronous motor is controlled to stop and an alarm is issued.
[0030] Optionally, according to the switching method of the redundant circuit of the permanent magnet synchronous motor software and hardware decoding and sensorless estimation, the first rotor angle value at the current control moment is calculated by the rotary transformer decoding chip.
[0031] According to the switching method of the redundant circuit of the permanent magnet synchronous motor software and hardware decoding and sensorless estimation in the embodiment of the present application, the rotary transformer decoding chip and the excitation signal processing circuit provide the excitation signal for the primary winding of the rotary transformer and process its orthogonal differential signal, and solve the first rotor angle value at the current control moment; the microprocessor is used to determine the hardware decoding fault when the difference between the first rotor angle value at the current and the last control moment is greater than the preset threshold value and send it to the logic control circuit; after the software and hardware decoding switching control circuit switches the hardware decoding to the software decoding, if the voltage value of the permanent magnet synchronous motor is not in the preset voltage range, it is determined that the software decoding fault occurs, the software decoding is switched to the sensorless estimation and the rotor position of the permanent magnet synchronous motor is estimated according to the stator voltage and current in the two-phase rotating coordinate system. Thus, when the rotary transformer fails or the decoding chip fails, the angle obtained by the control system receives an erroneous value, thereby causing the permanent magnet synchronous motor to have an unexpected output and cause the motor to lose control. The reliability of the rotor position identification is improved through the redundant design of the software and hardware decoding and sensorless estimation of the permanent magnet synchronous motor.
[0032] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0034] Figure 1 A block diagram of a redundant circuit for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor provided according to an embodiment of the present application;
[0035] Figure 2 A redundant circuit connection block diagram of software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor provided according to an embodiment of the present application;
[0036] Figure 3 The present invention is a flowchart of a method for switching redundant circuits of permanent magnet synchronous motor hardware and software decoding and sensorless estimation according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0038] The following describes the redundant circuit of hardware and software decoding and sensorless estimation of the permanent magnet synchronous motor of the embodiment of the present application with reference to the accompanying drawings. In view of the problems mentioned in the above background technology center that when the rotary transformer fails or the decoding chip fails, the angle obtained by the control system receives an erroneous value, thereby causing the permanent magnet synchronous motor to have an unexpected output and cause the motor to lose control, the present application provides a redundant circuit of hardware and software decoding and sensorless estimation of the permanent magnet synchronous motor, which provides an excitation signal for the primary winding of the rotary transformer and processes its orthogonal differential signal through the rotary transformer decoding chip and the excitation signal processing circuit, and solves the first rotor angle value at the current control moment; the microprocessor is used to determine that a hardware decoding fault occurs and sends it to the logic control circuit when the difference between the first rotor angle value at the current and last control moments is greater than a preset threshold value; after the hardware and software decoding switching control circuit switches the hardware decoding to the software decoding, if the voltage value of the permanent magnet synchronous motor is not in the preset voltage range, it is determined that a software decoding fault occurs, the software decoding is switched to the sensorless estimation, and the rotor position of the permanent magnet synchronous motor is estimated according to the stator voltage and current in the two-phase rotating coordinate system. This solves the problem of the control system receiving an erroneous angle value when the resolver fails or the decoding chip fails, causing the permanent magnet synchronous motor to have an unexpected output and cause the motor to lose control. The reliability of rotor position identification is improved through the redundant design of permanent magnet synchronous motor hardware and software decoding and sensorless estimation.
[0039] Specifically, Figure 1 A block diagram of a redundant circuit for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor provided in an embodiment of the present application.
[0040] like Figure 1 As shown, the permanent magnet synchronous motor software and hardware decoding and sensorless estimation redundant circuit 10 includes: a microprocessor 100, a drive and inverter circuit 200, a rotary transformer decoding chip 300, a logic control circuit 400, a software and hardware decoding switching control circuit 500, an excitation signal processing circuit 600, a permanent magnet synchronous motor 700 and a rotary transformer 800.
[0041] In some embodiments, the microprocessor 100 includes: an analog-to-digital converter ADC module, a pulse width modulation PWM module, a serial peripheral interface SPI interface, a source measurement unit SMU module, and a rotor position fault-tolerant unit; wherein the rotor position fault-tolerant unit is used to obtain the corresponding rotor angle values under hardware decoding, software decoding and sensorless estimation, respectively, and calculate the rotor position of the permanent magnet synchronous motor according to the weighted coefficient set based on the fault state of hardware decoding, software decoding and sensorless estimation.
[0042] Furthermore, in some embodiments, the microprocessor 100 is also used to: during sensorless estimation, obtain the second angle value at the last control moment and the second angle value at the current control moment based on the ADC module and the PWM module, and when the deviation between the second angle value at the last control moment and the second angle value at the current control moment is greater than a preset threshold, determine that a sensorless estimation fault has occurred, control the permanent magnet synchronous motor to stop and alarm.
[0043] Specifically, if Figure 2As shown, the microprocessor 100 is respectively connected to the drive and inverter circuit 200, the resolver decoding chip 300, the logic control circuit 400, the permanent magnet synchronous motor 700, and the resolver 800; the resolver decoding chip 300 is respectively connected to the SPI interface of the microprocessor 100, the logic control circuit 400, the software and hardware decoding switching control circuit 500, and the resolver 800; the software and hardware decoding switching control circuit 500 is connected to the pulse width modulation module of the microprocessor 100, the excitation signal processing circuit 600, the resolver decoding chip 300, and the logic control circuit 400; the excitation signal The signal processing circuit 600 is connected to the software and hardware decoding switching control circuit 500 and the rotary transformer 800; the rotary transformer 800 is connected to the excitation signal processing circuit 600, the ADC module of the microprocessor 100, the permanent magnet synchronous motor 700, and the rotary transformer decoding chip 300; the permanent magnet synchronous motor 700 is connected to the ADC module of the microprocessor 100, the drive and inverter circuit 200, and the rotary transformer 800; the drive and inverter circuit 200 is connected to the PWM module of the microprocessor 100 and the permanent magnet synchronous motor 700; the logic control circuit 400 is connected to the signal measurement unit of the microprocessor 100.
[0044] Among them, the rotary transformer decoding chip 300 and the excitation signal processing circuit 600 provide an excitation signal for the primary winding of the rotary transformer 800, and after processing the orthogonal differential signal of the rotary transformer 800, the rotary transformer decoding chip 300 calculates the first rotor angle value at the current control moment; the microprocessor 100 is used to determine that a hardware decoding fault occurs when the difference between the first rotor angle value at the current control moment and the first rotor angle value at the previous control moment is greater than a preset threshold, and send the hard decoding fault to the logic control circuit 400; and after the hardware and software decoding switching control circuit 500 switches the hardware decoding to the software decoding, it is determined whether the voltage value of the permanent magnet synchronous motor 700 is in the preset voltage range, and when the voltage value is not in the preset voltage range, it is determined that a software decoding fault occurs, and the software decoding is switched to sensorless estimation, and the rotor position of the permanent magnet synchronous motor 700 is estimated based on the stator voltage and current in the two-phase rotating coordinate system.
[0045] Furthermore, the hardware decoding circuit is composed of a rotary transformer decoding chip, a logic control circuit, a software and hardware decoding switching control circuit, an excitation signal processing circuit, a rotary transformer, an SPI interface in a microprocessor MCU, and an SMU module. The rotary transformer decoding chip cooperates with the excitation signal processing circuit to provide an excitation signal for the primary winding of the rotary transformer, and combines the hard decoding conditioning circuit to process the sine and cosine winding response signal (orthogonal differential signal) of the rotary transformer. The rotary transformer decoding chip calculates the angle and transmits it to the MCU via SPI. The hardware decoding chip can simultaneously diagnose the fault of the hardware decoding system and send it to the MCU via SPI. When the hardware decoding fails, it switches to a software decoding circuit composed of a PWM module, a drive and inverter circuit, a rotary transformer decoding chip, a logic control circuit, a software and hardware decoding switching control circuit, an excitation signal processing circuit, a rotary transformer, an SMU module in a microprocessor, and an ADC module. The analog-to-digital converter (ADC) module of the MCU can extract the envelope of the sine-cosine winding response signal, which is decoded by the resolver software algorithm to obtain the rotor angle. When the software decoding fails, the system can continue to switch to the sensorless estimation circuit composed of the drive and inverter circuit, permanent magnet synchronous motor, PWM module and ADC module in the microprocessor MCU. The MCU can estimate the rotor position information based on the stator voltage and current in the two-phase rotating coordinate system, so that the motor can achieve the expected output.
[0046] Among them, in the embodiment of the present application, the microprocessor 100 and the resolver decoding chip 300 are independent of each other, and the rotor position detection redundant device can simultaneously obtain the required rotor position information based on the resolver decoding chip 300, software decoding, and sensorless estimation scheme; the microprocessor 100 also integrates a rotor position fault-tolerant unit, which can perform weighted summation on the rotor position angles obtained by the three schemes, and perform fault diagnosis on the resolver hard decoding scheme, software decoding scheme, and sensorless estimation scheme in real time, thereby realizing fault-tolerant control of rotor position detection, thereby determining the rotor position of the permanent magnet synchronous motor.
[0047] Furthermore, during sensorless estimation, if the voltage value of the feedback signal received by the ADC module undergoes an obvious abnormal change, it is judged as a software decoding failure, the fault is reported and the sensorless estimation scheme is switched to determine whether the deviation between the angle value at the current control moment obtained by the sensorless estimation and the angle value at the last control moment exceeds the set threshold. If the deviation of the angle value exceeds the set threshold, the sensorless estimation is determined to be invalid. If all three methods fail, the rotor position detection device is determined to be invalid, the permanent magnet synchronous motor is controlled to stop and an alarm is issued. Otherwise, a weighting coefficient is assigned according to the fault status of hardware decoding, software decoding and fault-free redundant estimation, and the final rotor position is calculated.
[0048] It should be noted that when hardware decoding fails, the corresponding weighting coefficient of hardware decoding is set to 0, when software decoding fails, the corresponding weighting coefficient of software decoding is set to 0, and when fault-free redundancy estimation fails, the corresponding weighting coefficient of fault-free redundancy estimation is set to 0.
[0049] Furthermore, in some embodiments, the software and hardware decoding switching control circuit is composed of at least one group of MOSFET circuits, wherein each group of MOSFET circuits is composed of two MOSFETs connected in reverse series.
[0050] Specifically, in the software and hardware decoding and sensorless estimation redundant circuit of the permanent magnet synchronous motor of an electric vehicle in an embodiment of the present application, the software and hardware decoding switching control circuit is composed of one or more groups of MOSFET circuits, wherein each group of circuits is composed of two MOSFET devices, and the two MOSFETs are connected in reverse series.
[0051] Therefore, through the redundant design of rotating transformer hardware and software decoding and sensorless estimation, when hardware decoding fails, it switches to software decoding; when software decoding fails, it switches to sensorless estimation, and uses the estimated angle information as the data required by the system. The system can still complete the specified function, greatly improving the reliability of rotor position identification.
[0052] To facilitate technical personnel in this field to further understand the permanent magnet synchronous motor hardware and software decoding and the redundant circuit of sensorless estimation in the embodiment of the present application, the switching method corresponding to the redundant circuit of permanent magnet synchronous motor hardware and software decoding and sensorless estimation is further elaborated below.
[0053] Specifically, the switching method corresponding to the redundant circuit of the permanent magnet synchronous motor software and hardware decoding and sensorless estimation includes the following steps:
[0054] S1, fault detection: When the decoding chip fails or the hardware circuit related to the resolver fails, the angle value received by the SPI interface of the MCU changes abnormally; if the angle value received by the SPI changes abnormally, it is judged as a hardware decoding failure;
[0055] S2, switching from hardware decoding to software decoding: When the CPU detects that the deviation between the angle value at this control moment and the angle value at the last control moment exceeds a certain value, the SMU module reads the resolver fault flag bit in the CPU register and outputs a fault signal to the logic control circuit or the signal output by the resolver decoding chip is given to the logic control circuit. The logic control circuit outputs an enable signal, reports the fault, and switches the hardware and software decoding switching control circuit to the software decoding solution.
[0056] S3, determining whether the voltage value of the feedback signal received by the ADC module undergoes an obvious abnormal change. If so, it is determined to be a software decoding failure, the failure is reported, and the sensorless estimation scheme is switched;
[0057] S4, determining whether the deviation between the angle value at the current control moment obtained by the sensorless estimation and the angle value at the previous control moment exceeds a set threshold, and if so, determining that the sensorless estimation is invalid;
[0058] S5, determining whether the resolver hardware decoding fault flag, the resolver software decoding fault flag, and the sensorless estimation fault flag are simultaneously faulty. If so, determining that the rotor position detection device is failed, shutting down and alarming, and ending; otherwise, proceeding to step S6;
[0059] S6, calculate the final rotor position information: assign weighted coefficients according to the fault states of the three schemes, calculate the final rotor position, and end.
[0060] According to the redundant circuit of hardware and software decoding and sensorless estimation of the permanent magnet synchronous motor in the embodiment of the present application, by setting three modes of resolver hardware decoding, software decoding and sensorless estimation redundancy, when the resolver hardware decoding fails, the fault can be detected immediately, and a fault signal can be output to control the relay to quickly switch to software decoding, and the rotor angle information can be continued to be obtained by using the software decoding that is not faulty; when both the resolver hardware decoding and software decoding schemes fail to detect errors, the sensorless estimation scheme can estimate the rotor angle information based on the easily measured electrical signal, and apply it to the magnetic field oriented control of the permanent magnet synchronous motor, effectively improving the reliability and safety of the motor controller, and the entire fault detection process is rapid and easy to use, the entire switching process is fast, and the circuit is simple and the cost is low.
[0061] Next, a method for switching redundant circuits for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor according to an embodiment of the present application will be described with reference to the accompanying drawings.
[0062] Figure 3 It is a flow chart of a method for switching redundant circuits of permanent magnet synchronous motor software and hardware decoding and sensorless estimation according to an embodiment of the present application.
[0063] like Figure 3 As shown, the method for switching the redundant circuit of the permanent magnet synchronous motor software and hardware decoding and sensorless estimation includes the following steps:
[0064] In step S301, a first rotor angle value of the permanent magnet synchronous motor at the current control moment is obtained through a microprocessor.
[0065] In step S302, if the difference between the first rotor angle value at the current control moment and the first rotor angle value at the previous control moment is greater than a preset threshold, it is determined that a hardware decoding failure occurs, and hardware decoding is switched to software decoding.
[0066] In step S303, it is determined whether the voltage value of the permanent magnet synchronous motor is within a preset voltage range. If the voltage value is not within the preset voltage range, it is determined that a software decoding failure occurs, and the software decoding is switched to sensorless estimation.
[0067] In step S304, the rotor position of the permanent magnet synchronous motor is estimated according to the stator voltage and current in the two-phase rotating coordinate system.
[0068] Furthermore, in some embodiments, the method for switching the redundant circuit of the permanent magnet synchronous motor software and hardware decoding and sensorless estimation further includes:
[0069] The rotor angle values corresponding to hardware decoding, software decoding and sensorless estimation are obtained respectively, and the rotor position of the permanent magnet synchronous motor is calculated according to the weighted coefficients set based on the fault states of hardware decoding, software decoding and sensorless estimation.
[0070] Furthermore, in some embodiments, the method for switching redundant circuits of permanent magnet synchronous motor software and hardware decoding and sensorless estimation further includes:
[0071] During sensorless estimation, the second angle value at the last control moment and the second angle value at the current control moment are obtained based on the ADC module and the PWM module. When the deviation between the second angle value at the last control moment and the second angle value at the current control moment is greater than a preset threshold, it is determined that a sensorless estimation fault has occurred, and the permanent magnet synchronous motor is controlled to stop and an alarm is sounded.
[0072] Furthermore, in some embodiments, the first rotor angle value at the current control moment is calculated by the resolver decoding chip.
[0073] According to the switching method of the redundant circuit of the permanent magnet synchronous motor hardware and software decoding and sensorless estimation in the embodiment of the present application, by setting three modes of resolver hardware decoding, software decoding and sensorless estimation redundancy, when the resolver hardware decoding fails, the fault can be detected immediately, and a fault signal can be output to control the relay to quickly switch to software decoding, and the rotor angle information can be continued to be obtained by using the software decoding that is not faulty; when both the resolver hardware decoding and software decoding schemes fail to detect errors, the sensorless estimation scheme can estimate the rotor angle information based on the easily measured electrical signal, and apply it to the magnetic field oriented control of the permanent magnet synchronous motor, effectively improving the reliability and safety of the motor controller, and the entire fault detection process is rapid and easy to use, the entire switching process is fast, and the circuit is simple and the cost is low.
[0074] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0075] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0076] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0077] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.
[0078] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0079] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0080] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0081] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A redundant circuit for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor, characterized in that: include: Microprocessor, drive and inverter circuit, resolver decoding chip, logic control circuit, software and hardware decoding switching control circuit, excitation signal processing circuit, resolver and permanent magnet synchronous motor, among which, The resolver decoding chip and the excitation signal processing circuit provide an excitation signal for the primary winding of the resolver, and after processing the orthogonal differential signal of the resolver, the resolver decoding chip calculates a first rotor angle value at a current control moment; The microprocessor is used to determine that a hardware decoding fault occurs when the difference between the first rotor angle value at the current control moment and the first rotor angle value at the previous control moment is greater than a preset threshold value, and send the hardware decoding fault to the logic control circuit; and after the hardware and software decoding switching control circuit switches the hardware decoding to the software decoding, determine whether the voltage value of the permanent magnet synchronous motor is within a preset voltage interval, and determine that a software decoding fault occurs when the voltage value is not within the preset voltage interval, and at the same time switch the software decoding to sensorless estimation, and estimate the rotor position of the permanent magnet synchronous motor according to the stator voltage and current in the two-phase rotating coordinate system; Wherein, the microprocessor includes: an analog / digital converter ADC module, a pulse width modulation PWM module, a serial peripheral interface SPI interface, a source measurement unit SMU module, and a rotor position fault-tolerant unit; wherein the rotor position fault-tolerant unit is used to respectively obtain the rotor angle values corresponding to the hardware decoding, the software decoding, and the sensorless estimation, and calculate the rotor position of the permanent magnet synchronous motor according to the weighted coefficient set based on the fault state of the hardware decoding, the software decoding, and the sensorless estimation; The microprocessor is also used for: in sensorless estimation, obtaining the second angle value at the last control moment and the second angle value at the current control moment based on the ADC module and the PWM module, and when the deviation between the second angle value at the last control moment and the second angle value at the current control moment is greater than the preset threshold, determining that a sensorless estimation fault occurs, controlling the permanent magnet synchronous motor to stop and alarming.
2. The redundant circuit for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor according to claim 1, characterized in that: The software and hardware decoding switching control circuit is composed of at least one group of MOSFET circuits, wherein each group of MOSFET circuits is composed of two MOSFETs connected in reverse series.
3. The redundant circuit for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor according to claim 1, characterized in that: in, The microprocessor and the resolver decoding chip are independently arranged.
4. An electric vehicle, characterized in that: include: A redundant circuit for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor as described in any one of claims 1 to 3.
5. A method for switching redundant circuits of permanent magnet synchronous motor software and hardware decoding and sensorless estimation, characterized in that: Using the redundant circuit for software and hardware decoding and sensorless estimation of a permanent magnet synchronous motor as described in any one of claims 1 to 3, the method comprises the following steps: A first rotor angle value of the permanent magnet synchronous motor at a current control moment through the microprocessor; If the difference between the first rotor angle value at the current control moment and the first rotor angle value at the previous control moment is greater than the preset threshold, it is determined that a hardware decoding failure occurs, and hardware decoding is switched to software decoding; Determining whether the voltage value of the permanent magnet synchronous motor is within a preset voltage range, and if the voltage value is not within the preset voltage range, determining that a software decoding failure occurs, and switching the software decoding to sensorless estimation; and The rotor position of the permanent magnet synchronous motor is estimated according to the stator voltage and current in the two-phase rotating coordinate system; Wherein, it also includes: respectively obtaining the rotor angle values corresponding to the hardware decoding, the software decoding and the sensorless estimation, and calculating the rotor position of the permanent magnet synchronous motor according to the weighted coefficients set based on the fault states of the hardware decoding, the software decoding and the sensorless estimation; It also includes: during sensorless estimation, based on the ADC module and the PWM module, obtaining the second angle value at the last control moment and the second angle value at the current control moment, and when the deviation between the second angle value at the last control moment and the second angle value at the current control moment is greater than the preset threshold, it is determined that a sensorless estimation fault occurs, and the permanent magnet synchronous motor is controlled to stop and an alarm is issued.
6. The method according to claim 5, characterized in that in, The resolver decoding chip calculates the first rotor angle value at the current control moment.
