Motor system with motor position detection function and detection method thereof
By using the PWM module in the motor system to control the transient current detection state, and using dual resistors to collect and amplify the current signal, the problems of inertial impact and current impact in the traditional method are solved, the hardware circuit is simplified, and the system complexity and cost are reduced. High-precision position detection under the inertial rotation state of the motor is achieved.
Patent Information
- Application Number
- CN202410643110.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-06
AI Technical Summary
The traditional motor position detection method will produce inertial impact and current impact when the motor is in the inertial rotation state, damaging the motor structure and control circuit. It also requires the introduction of motor phase line voltage and voltage dividing circuit, which increases hardware complexity and cost.
The PWM module is used to control the motor drive module to enter the transient current detection state, and the current signal is collected through dual resistors and amplified by the operational amplifier to avoid introducing the motor phase line voltage and voltage dividing circuit, and simplify the hardware circuit.
It realizes position detection under the inertial rotation state of the motor, reduces voltage loss and system complexity, and reduces controller design redundancy and cost.
Smart Images

Figure CN118611484A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of motor position detection, and in particular to a motor system with a motor position detection function and a detection method thereof. Background Art
[0002] In the field of motor control, sensorless permanent magnet synchronous motor (PMSM) control has attracted widespread attention due to its high efficiency and reliability. Its core lies in estimating the position of the motor through current sampling, thereby realizing real-time control of the motor. However, in the process of motor control, the starting performance of the motor is particularly critical, which directly affects the operating efficiency and safety of the motor. In a stationary state, the motor can be started by pre-positioning, but when the motor is already in an inertial rotation state, the traditional pre-positioning starting method is not applicable. This is because direct pre-positioning will produce a large inertial shock and current shock, which will not only damage the motor structure, but also may damage the control circuit components. In order to solve this problem, the traditional method is to determine the position of the motor by collecting the back electromotive force value of the motor. This method requires the introduction of the motor phase line voltage in the hardware circuit, and the voltage is divided by resistors, and then sampled by the analog-to-digital converter module of the microcontroller. However, this method has obvious disadvantages: the motor will generate voltage loss during normal operation (due to the existence of the voltage divider circuit), and the controller design is redundant (additional three-way voltage divider circuit and sampling circuit are required), and it will occupy more external resources of the MCU (additional three-way ADC sampling channels are required); the above problems need to be solved. Summary of the invention
[0003] The main purpose of the present application is to overcome the shortcomings and deficiencies of the prior art and to provide a motor system with a motor position detection function and a detection method thereof. When performing motor position detection, the present application does not need to introduce motor phase line voltage, simplifies the hardware circuit, and reduces system complexity and cost.
[0004] In order to achieve the above objectives, this application adopts the following technical solutions:
[0005] In a first aspect, the present application provides a motor system with a motor position detection function, including: a power supply module, a DC converter module, an MCU module, a current sampling module, and a motor drive module;
[0006] Among them, the first end of the power supply module is connected to the first end of the DC converter module; the second end of the DC converter module is connected to the first end of the MCU module; the second end of the MUC module is connected to the first end of the current sampling circuit module; the third end of the MUC module is connected to the first end of the motor drive module, and the second end of the motor drive module is connected to the second end of the current sampling circuit module; the third end of the drive module is connected to the second end of the power supply module.
[0007] As a preferred technical solution, the DC converter module is used to convert the voltage of the power module into a stable power supply voltage and provide it to the MCU module.
[0008] As a preferred technical solution, the current sampling module includes a first resistor, a second resistor, a first operational amplifier and a second operational amplifier.
[0009] As a preferred technical solution, the motor drive module includes a plurality of MOSFET tubes.
[0010] As a preferred technical solution, the first resistor and the second resistor are respectively connected to MOSFET tubes to form a sampling circuit;
[0011] The first operational amplifier and the second operational amplifier respectively amplify the currents on the first resistor and the second resistor, and transmit the amplified current signals to the MCU module.
[0012] As a preferred technical solution, the MCU module also includes a PWM module.
[0013] As a preferred technical solution, the MCU module controls the switching of the MOSFET tube in the motor drive module through the PWM module.
[0014] In a second aspect, the present application provides a motor position detection method, which is applied to a motor system with a motor position detection function, and comprises the following steps:
[0015] The motor drive module is controlled by the PWM module to make the motor enter the transient current detection state;
[0016] When the motor enters the transient current detection state, the current signal on the motor is collected through the first resistor and the second resistor;
[0017] The collected current signal is amplified by an operational amplifier and transmitted to the MCU module;
[0018] The MCU module processes the received current signal to obtain the processed current;
[0019] The processed current is subjected to inverse tangent calculation to obtain the real-time position of the motor.
[0020] As a preferred technical solution, the MCU module processes the received current signal by performing Clark transformation on the current signal to obtain two-phase currents Ia and Ib.
[0021] As a preferred technical solution, when entering the transient current detection state, a phase compensation mechanism is used to keep the phase of the current signal consistent with the actual phase of the motor, thereby achieving tracking without phase difference.
[0022] In summary, compared with the prior art, the effective effects brought about by the technical solution provided by this application include at least:
[0023] The present application proposes a motor system with a motor position detection function and a detection method thereof. The motor drive module is controlled by a PWM module to make the motor enter a transient current detection state. When the motor enters the transient current detection state, the current signal on the motor is collected by a dual resistor. The collected current signal is amplified and processed by an operational amplifier and transmitted to the MCU module. The MCU module processes the received current signal to obtain a processed current. The processed current is subjected to an inverse tangent calculation to obtain the real-time position of the motor. The present application avoids the introduction of motor phase line voltage, voltage divider circuit, and sampling circuit in the hardware circuit by executing a transient current sampling control action and adopting a dual resistor current sampling scheme, thereby reducing voltage loss, greatly simplifying the controller design, and reducing system complexity. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0025] Figure 1 A block diagram of a motor system with a motor position detection function provided in one embodiment of the present application;
[0026] Figure 2 A circuit diagram of a motor system with a motor position detection function provided by one embodiment of the present application;
[0027] Figure 3 A flow chart of a motor position detection method provided for one embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0029] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0030] Example:
[0031] See also Figure 1 , Figure 2 , in one embodiment of the present application, a motor system with a motor position detection function is provided, comprising: a power supply module, a DC converter module, an MCU module, a current sampling module, and a motor drive module;
[0032] Among them, the first end of the power supply module is connected to the first end of the DC converter module; the second end of the DC converter module is connected to the first end of the MCU module; the second end of the MUC module is connected to the first end of the current sampling circuit module; the third end of the MUC module is connected to the first end of the motor drive module, and the second end of the motor drive module is connected to the second end of the current sampling circuit module; the third end of the drive module is connected to the second end of the power supply module.
[0033] As one implementation manner, the DC converter module is used to convert the voltage of the power module into a stable supply voltage and provide it to the MCU module.
[0034] As one implementation mode, the current sampling module includes a first resistor, a second resistor, a first operational amplifier and a second operational amplifier. The motor driving module includes six MOSFET tubes for driving the motor.
[0035] Specifically, the first resistor and the second resistor are respectively connected to the MOSFET tube to form a sampling circuit;
[0036] The first operational amplifier and the second operational amplifier respectively amplify the currents on the first resistor and the second resistor, and transmit the amplified current signals to the MCU module.
[0037] As one of the implementation modes, the MCU module also includes a PWM module; the MCU module controls the switch of the MOSFET tube in the motor drive module through the PWM module, so that the motor enters a transient current detection state, thereby generating a current caused by the motor back electromotive force in the first resistor and the second resistor. The MCU module collects and processes these current signals, and obtains the real-time position of the motor through Clark transformation and inverse tangent calculation.
[0038] See also Figure 3In this embodiment, a motor position detection method is also disclosed, which is applied to the motor system with a motor position detection function, and the steps include:
[0039] S1, control the motor drive module through the PWM module to make the motor enter the transient current detection state;
[0040] S2, when the motor enters the transient current detection state, collecting the current signal on the motor through the first resistor and the second resistor;
[0041] S3, amplifying the collected current signal through an operational amplifier and transmitting it to the MCU module;
[0042] S4, the MCU module processes the received current signal to obtain a processed current;
[0043] Furthermore, the MCU module processes the received current signal by performing Clark transformation on the current signal to obtain two-phase currents Ia and Ib.
[0044] Clark transformation (also called 3 / 2 transformation) is a method of converting three-phase current into two-phase current; in Clark transformation, three-phase current is converted into current in a two-phase stationary coordinate system, which facilitates further analysis and calculation.
[0045] S5. Perform arc tangent calculation on the processed current to obtain the real-time position of the motor.
[0046] After Clark transformation, the MCU module obtains the two-phase currents Ia and Ib; these two current values are usually related to the magnetic field direction of the motor or the position angle of the motor; by calculating the inverse tangent of the two-phase current (arctan(Ib / Ia)), an angle value can be obtained, which represents the real-time position of the motor.
[0047] In this embodiment, when the motor enters the transient current sampling state, the current is generated from the motor back electromotive force, so the current phase reflects the motor phase. Due to the effect of the motor inductance, the current slightly lags behind the motor phase (back electromotive force). Therefore, through the phase compensation mechanism, the phase of the current signal is kept consistent with the actual phase of the motor, realizing phase difference-free tracking; the perception accuracy of the motor state is improved, thereby improving the accuracy and stability of motor control.
[0048] In this embodiment, in order to obtain the position information of the motor during the inertial rotation process, the system performs a transient current sampling control. This control accurately controls the MOSFET tube in the motor drive module through the MCU module, so that the motor enters a transient current sampling state in a very short time (such as 40 milliseconds), thereby generating a current signal related to the motor back electromotive force on the sampling resistor; this control action is not used to slow down or stop the motor, but is specifically for high-precision current sampling to estimate the real-time position of the motor.
[0049] To summarize, the present application performs a transient current sampling control action. This control precisely controls the MOSFET tube in the motor drive module through the MCU module, so that the motor enters a transient current sampling state in a very short time, thereby generating current on the motor winding, and collecting the current on the motor when entering the transient current sampling state through dual resistors, thereby realizing position detection in the rotating state under motor inertia, avoiding additional circuit design and ADC sampling channel design.
[0050] It should be noted that, for the sake of convenience of description, the aforementioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited to the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously.
[0051] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0052] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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, they should be considered to be within the scope of this specification.
[0053] The above embodiments are preferred implementation modes of the present application, but the implementation modes of the present application are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present application should be equivalent replacement methods and are included in the protection scope of the present application.
Claims
1. A motor system with a motor position detection function, characterized in that: include: Power module, DC converter module, MCU module, current sampling module, motor drive module; Among them, the first end of the power supply module is connected to the first end of the DC converter module; the second end of the DC converter module is connected to the first end of the MCU module; the second end of the MUC module is connected to the first end of the current sampling circuit module; the third end of the MUC module is connected to the first end of the motor drive module, and the second end of the motor drive module is connected to the second end of the current sampling circuit module; the third end of the drive module is connected to the second end of the power supply module.
2. The motor system with motor position detection function according to claim 1, characterized in that: The DC converter module is used to convert the voltage of the power module into a stable supply voltage and provide it to the MCU module.
3. The motor system with motor position detection function according to claim 1, characterized in that: The current sampling module includes a first resistor, a second resistor, a first operational amplifier and a second operational amplifier.
4. The motor system with motor position detection function according to claim 1, characterized in that: The motor driving module includes a plurality of MOSFET tubes.
5. The motor system with motor position detection function according to claim 3, characterized in that: The first resistor and the second resistor are respectively connected to the MOSFET tube to form a sampling circuit; The first operational amplifier and the second operational amplifier respectively amplify the currents on the first resistor and the second resistor, and transmit the amplified current signals to the MCU module.
6. The motor system with motor position detection function according to claim 1, characterized in that: The MCU module also includes a PWM module.
7. A motor system with a motor position detection function according to claim 6, characterized in that: The MCU module controls the switching of the MOSFET tube in the motor drive module through the PWM module.
8. A motor position detection method, applied to a motor system with a motor position detection function as claimed in any one of claims 1 to 7, characterized in that: The steps include: The motor drive module is controlled by the PWM module to make the motor enter the transient current detection state; When the motor enters the transient current detection state, the current signal on the motor is collected through the first resistor and the second resistor; The collected current signal is amplified by an operational amplifier and transmitted to the MCU module; The MCU module processes the received current signal to obtain the processed current; The processed current is subjected to inverse tangent calculation to obtain the real-time position of the motor.
9. A motor position detection method according to claim 8, characterized in that: The MCU module processes the received current signal by performing Clark transformation on the current signal to obtain two-phase currents Ia and Ib.
10. A motor position detection method according to claim 8, characterized in that: Also includes: When entering the transient current detection state, the phase of the current signal is kept consistent with the actual phase of the motor through the phase compensation mechanism, achieving phase difference-free tracking.
