Method for automatically detecting and matching motor parameters, brushless motor driving controller and fan controller
By integrating the microcontroller and current detection module in the brushless motor drive controller, automatically detecting and matching brushless motor parameters, the problem of parameter matching complexity in R&D and production is solved, the universality and efficiency of the driver are improved, and the reduction of the driver is reduced. The cost.
Patent Information
- Application Number
- CN202411214153.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-31
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-31
AI Technical Summary
During the research and development and production process of brushless motor drive controllers, frequent debugging and matching of different brushless motor parameters is required, resulting in long development cycle and high cost. Parameter matching in after-sales service is prone to errors, which increases the complexity of production and inventory management .
By integrating the microcontroller and current detection module in the brushless motor drive controller, the motor parameters are detected using the test frequency signal, and the inductance and resistance values are automatically calculated and stored, so that the automatic detection and matching of brushless motor parameters can be achieved.
It greatly improves the versatility of brushless motor drivers, shortens R&D time, reduces inventory and production costs, improves after-sales inspection efficiency, and simplifies production and service processes.
Smart Images

Figure CN119087864A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automatic detection technology, and in particular to a method for automatically detecting and matching motor parameters and a brushless motor drive controller. Background Art
[0002] At present, brushless motors are widely used in the fan field, but there are the following problems in the research and development and production process:
[0003] When developing a brushless motor drive controller, researchers generally need to know several main parameters of the motor: line inductance, line resistance, and match the corresponding hardware and software based on these parameters. Usually, different brushless motor parameters correspond to different driver hardware and software, so technicians will need to repeatedly debug and develop the brushless motor drive controller based on the brushless motor parameters.
[0004] On the factory production side, when producing fans, since a factory has many types of brushless motors, the hardware and software of a brushless motor driver controller can often only be matched with one or two brushless motors. Therefore, they must be matched one by one during production, which will result in many types of brushless motor driver controllers, or different software for the same model. This will increase the factory inventory and cause mismatches, requiring multiple software changes for adaptation, causing inconveniences in production control, and further leading to many problems such as increased production costs.
[0005] In terms of after-sales service, if the customer needs to repair or exchange the brushless motor drive controller, the after-sales service personnel must know the client's brushless motor parameters in order to provide the brushless motor drive controller with the corresponding software and hardware. In actual operation, since the brushless motor products for after-sales service may be products from a few years ago, and there are many types of brushless motor products for after-sales service, this situation is very easy to make mistakes.
[0006] In the related technology, there is a Chinese patent document CN117713629 A, which is named a brushless motor adaptive drive system and method. This solution measures the motor body parameters of the motor body in the initial state of the motor body; the motor parameter configuration and monitoring module converts the motor body parameters into configuration parameters, sends the configuration parameters to the motor drive module, and then receives the performance parameters sent by the motor drive module. When the performance parameters do not meet the design requirements, the configuration parameters are adjusted to meet the design requirements; the motor drive module collects the performance parameters of the motor body and sends the performance parameters to the motor parameter configuration and monitoring module. This technical solution includes a separate detection module and a drive module, and the technical solution cost is relatively high. Summary of the invention
[0007] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, an embodiment of the present invention proposes a method for automatically detecting and matching brushless motor parameters. Through this method, brushless motor drive and measurement share a system to achieve brushless motor parameter detection and matching, which can reduce the number of times engineers adjust the brushless motor drive controller program in order to make the brushless motor run normally, thereby shortening the development cycle, improving the development quality and efficiency of brushless motors, and improving after-sales inspection efficiency.
[0008] The embodiment of the present invention further provides a brushless motor drive controller that automatically detects and matches motor parameters.
[0009] According to a first aspect of the present invention, a method for automatically detecting and matching brushless motor parameters includes: a controller, a brushless motor drive controller, and the brushless motor drive controller is used to detect and configure brushless motor parameters to control the operation of the brushless motor. The method steps include:
[0010] Connect the brushless motor to the brushless motor drive controller;
[0011] The brushless motor drive controller receives a controller pairing instruction;
[0012] The brushless motor drive controller detects brushless motor parameters;
[0013] The detected brushless motor parameters are stored in the brushless motor drive controller to complete the pairing.
[0014] Furthermore, the method steps of the drive controller detecting motor parameters include:
[0015] The brushless motor drive controller generates two test frequency signals;
[0016] Detect the motor line current under two test frequency signals;
[0017] Calculate motor parameters: equivalent inductance, reactance, inductance value, resistance value.
[0018] Furthermore, the method for calculating the motor parameters is:
[0019] ①U / (X1+R)=I1;
[0020] ②U / (X2+R)=I2;
[0021] ③X1=2πfL;
[0022] ④X2=2π2fL;
[0023] Solving the system of equations yields:
[0024] L=(U / I1-U / I2) / (2f)
[0025] R=(2U / I2)-(U / I1)
[0026] Among them: U is the brushless motor driving voltage value, X1 is the equivalent inductance and reactance of the brushless motor when it is loaded with test frequency signal 1, X2 is the equivalent inductance and reactance of the brushless motor when it is loaded with test frequency signal 2, I1 is the motor line current when the brushless motor is loaded with test frequency signal 1, I2 is the brushless motor line current when the brushless motor is loaded with test frequency signal 2, L is the brushless motor parameter inductance value, and R is the brushless motor parameter resistance value.
[0027] Furthermore, the two test frequencies are in a 2-fold frequency relationship.
[0028] Furthermore, the brushless motor drive controller includes a pre-drive module, a power drive module, a microcontroller and a current detection module, and the brushless motor drive controller executes the methods described in claims 1 to 4; the microcontroller is used to provide a brushless motor test frequency signal and control the power drive module; the current detection module is used to detect the current parameters of the brushless motor when the microcontroller loads the test frequency signal.
[0029] Furthermore, the power drive module is provided with power required by the brushless motor and the brushless motor drive controller by an external power supply input VCC, the power drive module is connected to the brushless motor, the microcontroller and the pre-drive module are connected to the power drive module, and are used to set the start-up parameters of the brushless motor, input the start-up parameters of the brushless motor to the power drive module, and drive the brushless motor by the power drive module; the current detection module is connected to the microcontroller, the pre-drive module and the power drive module, and is used to detect the current parameters of the brushless motor.
[0030] Further, the power drive module includes the first to sixth field effect transistors and a resistor, the drain of the first field effect transistor is connected in parallel with the source of the second field effect transistor and the brushless motor A phase, the gate of the first field effect transistor is connected to the microcontroller and the pre-drive module, the source of the first field effect transistor is connected in parallel with the current detection module, the source of the third field effect transistor, the source of the fifth field effect transistor, and one end of the resistor; the other end of the resistor is grounded; the drain of the fifth field effect transistor is connected in parallel with the brushless motor C phase, the sixth field effect transistor, and the second field effect transistor. The sources of the field effect tubes are connected in parallel; the drain of the third field effect tube is connected in parallel with the source of the fourth field effect tube and the brushless motor B; the drain of the third field effect tube, the drain of the fourth field effect tube, and the drain of the second field effect tube are connected in parallel with the VCC terminal; the drain and gate levels of the first to sixth field effect tubes are controlled by the microcontroller and the front drive module, so that the drain and source of the fifth field effect tube and the second field effect tube, the third field effect tube and the sixth field effect tube, and the first field effect tube and the fourth field effect tube are turned on and off in turn to drive the brushless motor.
[0031] Furthermore, the invention comprises a driving circuit, wherein the driving circuit comprises a microcontroller, 6 transistors, a plurality of capacitors, and a plurality of resistors, and is characterized in that the first pin of the microcontroller is connected to the IR terminal to receive the remote control signal of the controller; the second to eighth pins of the microcontroller are respectively connected to the PWM1 to PWM6 terminals, the eighth pin of the microcontroller is connected in parallel with the 15th capacitor and the VCC terminal, the ninth pin of the microcontroller is grounded, the tenth pin of the microcontroller is connected in parallel with one end of the fifth capacitor and the 5V power supply terminal; the 16th pin of the microcontroller is connected to one end of the 16th capacitor; the 5 The other end of the capacitor, the other end of the 15th capacitor, and the other end of the 16th capacitor are connected to the ground in parallel; the 20th pin of the microcontroller is connected to the AOP terminal, and the AOP terminal is connected to one end of the 4th resistor; the other end of the 4th resistor is connected in parallel with one end of the RS3 resistor, one end of the RS2 resistor, and one end of the RS5 resistor to the I_SHUNT terminal; the other ends of the RS3 resistor, the other ends of the RS2 resistor, and the other ends of the RS5 resistor are connected to the ground in parallel and connected to one end of the 5th resistor; the other end of the 5th resistor is connected to the AOM terminal; the PWM1 terminal is connected to one end of the 1st resistor, and the other end of the 1st resistor is connected to the 6th crystal The 4th pin of the body tube, the 3rd pin of the 6th transistor is connected to the VCC terminal, the PWM4 terminal is connected to one end of the 2nd resistor, the other end of the 2nd resistor is connected to the 2nd pin of the 6th transistor, the 1st pin of the 6th transistor is connected to the I_SHUNT terminal, the 5th, 6th, 7th and 8th pins of the 6th transistor are connected in parallel to the A phase terminal of the motor; the PWM2 terminal is connected to one end of the 6th resistor, the other end of the 6th resistor is connected to the 4th pin of the 7th transistor, the 3rd pin of the 7th transistor is connected to the VCC terminal, the PWM5 terminal is connected to one end of the 7th resistor, the other end of the 7th resistor is connected to the 2nd pin of the 7th transistor, the 1st pin of the 7th transistor is connected to the VCC terminal, Connect to the I_SHUNT terminal, the 5th, 6th, 7th and 8th pins of the 7th transistor are connected in parallel to the B-phase terminal of the motor; the PWM3 terminal is connected to one end of the 3rd resistor, the other end of the 3rd resistor is connected to the 4th pin of the 8th transistor, the 3rd pin of the 8th transistor is connected to the VCC terminal, the PWM6 terminal is connected to one end of the 20th resistor, the other end of the 20th resistor is connected to the 2nd pin of the 8th transistor, the 1st pin of the 8th transistor is connected to the I_SHUNT terminal, the 5th, 6th, 7th and 8th pins of the 8th transistor are connected in parallel to the C-phase terminal of the motor, and the motor parameters can be measured by controlling the conduction and cutoff of the transistor.
[0032] The brushless motor drive controller for automatically detecting and matching motor parameters according to the second aspect of the present invention has at least the following beneficial effects:
[0033] The present invention applies to add motor parameter detection and automatic adaptation functions on the basis of the existing brushless motor drive controller, which will greatly improve the versatility of the motor driver and greatly save research and development time. Since one driver can match different motor parameters, it can greatly reduce the manufacturer's inventory and production time, thereby reducing costs.
[0034] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0036] Figure 1 A schematic diagram of the composition of a brushless motor drive controller that automatically detects and matches motor parameters is provided for an embodiment of the present application;
[0037] Figure 2 A schematic diagram of the principle of a brushless motor drive controller that automatically detects and matches motor parameters is provided for an embodiment of the present application;
[0038] Figure 3 A schematic diagram of the steps of a method for automatically detecting and matching motor parameters is provided for an embodiment of the present application;
[0039] Figure 4 A schematic diagram of a motor drive signal and current detection principle provided in an embodiment of the present application;
[0040] Figure 5 A schematic diagram of a motor current detection principle provided for an embodiment of the application;
[0041] Figure 6 A schematic diagram of the principle of a brushless motor drive controller for automatically detecting and matching motor parameters provided in an embodiment of the application;
[0042] Figure 7 Schematic diagram of a current detection circuit in the prior art.
[0043] Reference numerals:
[0044] Brushless motor 10, microcontroller and pre-driver 40, power drive module 30, three phases of brushless motor: A, B, C; power input terminal VCC, brushless motor drive controller 100, current detection module 20, drive equivalent signal source U, motor drive signal PWM, microcontroller MCU, transistor Q1, transistor Q2, transistor Q3, transistor Q4, transistor Q5, transistor Q6. DETAILED DESCRIPTION
[0045] Embodiments of the present invention are described in detail below, examples of which 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 only used to explain the present invention, and cannot be understood as limiting the present invention.
[0046] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0047] Brushless motors are widely used. The brushless motor coil is connected to the switching transistor, and the inverter is composed of 6 transistors. The upper and lower transistors are repeatedly turned on and off in a certain order to change the direction of the coil current. For example, when the upper and lower transistors are in the ON state, the coil current flows from the U phase to the W phase, and the U phase is excited to the N pole, while the W phase is excited to the S pole. Therefore, the rotor rotates 30°. This action is repeated 12 times, and the rotor rotates. The brushless motor control in the prior art usually includes:
[0048] Power circuit: Controls the current flowing into the motor coil. Generally, 6 transistors are used. The transistors connected up and down are repeatedly turned on and off in a certain order to allow current to flow into the motor coil.
[0049] Current control circuit: The current flowing into the motor varies depending on the load. By controlling the current flowing into the motor, the motor is controlled to keep the set speed.
[0050] Logic circuit: Receives feedback signals from the Hall IC of the motor, detects the position of the rotor, and determines the excitation sequence of the motor coils. The signals from this are connected to the transistors of the power circuit, driving the transistors in a certain sequence. In addition, it also has the function of detecting the motor speed. It can also execute commands to the motor, start / stop, brake / run, CW / CCW control.
[0051] Set comparison circuit: compare the speed setting signal with the motor speed signal. Based on the result, determine whether the motor speed is higher or lower than the set speed. When the motor speed is higher than the set value, the input current to the motor is reduced. When it is lower, the input current to the motor is increased to return it to the set speed.
[0052] At present, most of the development of brushless motor drive controllers is done by brushless motor drive development engineers with certain experience. They use professional equipment to measure the motor parameters based on a pre-designed brushless motor prototype, and then design a driver specifically for the brushless motor based on the motor parameters.
[0053] However, in the development process of the brushless motor drive controller, the development engineer cannot design the driver in one go, but needs to continuously adjust the driver program to make the motor body operate normally or even achieve the best operating performance. Such a development cycle is long, the efficiency is low, and it consumes a lot of energy of engineers. Moreover, the differences in the professional and technical levels of individual development engineers also lead to the problems of long development cycle and low development quality. In the disclosed Chinese patent document CN117713629A, the name is a brushless motor adaptive drive system and method. This scheme measures the motor body parameters of the motor body in the initial state of the motor body; the motor parameter configuration and monitoring module converts the motor body parameters into configuration parameters, sends the configuration parameters to the motor drive module, and then receives the performance parameters sent by the motor drive module. When the performance parameters do not meet the design requirements, adjust the configuration parameters to meet the design requirements; the motor drive module collects the performance parameters of the motor body and sends the performance parameters to the motor parameter configuration and monitoring module. This technical solution includes a separate detection module and a drive module, and the technical solution cost is relatively high.
[0054] Based on this, the embodiment of the present invention proposes a method for automatically detecting and matching motor parameters and a brushless motor drive controller, which adds a current detection function on the basis of the brushless motor drive controller in the prior art, and does not need to change the controller or remote control, so that the brushless motor drive controller can automatically detect the current parameters of the brushless motor to achieve pairing with the brushless motor, and can achieve the following on the R&D side: R&D personnel no longer need to pay attention to some parameters of the motor, and the brushless motor drive controller will automatically detect the main parameters of the brushless motor, which will greatly reduce the workload of R&D personnel;
[0055] Factory production end: Due to the fact that the brushless motor drive controller applied by the present invention has greatly improved the compatibility of brushless motor parameters, the types of brushless motor drive controller software and hardware are greatly reduced, which can well control the factory's inventory, improve quality, and improve efficiency;
[0056] After-sales service: For the brushless motor drive controller that needs to be returned, there is no need to know the parameters of the brushless motor in detail. You can directly give the universal brushless motor drive controller.
[0057] Please refer to Figure 1 and Figure 2, according to the method for automatically detecting and matching motor parameters proposed in the embodiment of the first aspect of the present invention, includes: a brushless motor drive controller, a controller; wherein the brushless motor drive controller includes: a microcontroller and a pre-drive module; the motor driver is connected to the brushless motor, and the controller or the remote control sends a pairing instruction to the brushless motor drive controller externally. After the brushless motor drive controller receives the pairing instruction, the brushless motor drive controller detects the brushless motor parameters, and stores the detected brushless motor parameters in the brushless motor drive controller, and the brushless motor drive controller controls and drives the brushless motor according to the parameters set by the pairing.
[0058] In this embodiment, the microcontroller is referred to as: MCU, the power drive module 30 is provided with the power required by the brushless motor 10 and the brushless motor drive controller 100 by the external power supply input VCC, the power drive module 30 is connected to the brushless motor 10, the microcontroller and the pre-drive module 40 are connected to the power drive module 30, and are used to set the start-up parameters of the brushless motor 10, input the start-up parameters of the brushless motor 10 to the power drive module 30, and drive the brushless motor 10 by the power drive module 30; the current detection module 20 is connected to the microcontroller, the pre-drive module 40 and the power drive module 30, and is used to detect the current parameters of the brushless motor.
[0059] Please refer to Figure 3 According to the first aspect of the present invention, a method for automatically detecting and matching motor parameters includes:
[0060] Step 201: Connecting a brushless motor drive controller;
[0061] Connect the brushless motor drive controller and the brushless motor, and turn on the power supply, and the brushless motor enters the standby state.
[0062] Step 202: The brushless motor drive controller receives a pairing instruction;
[0063] After receiving the pairing instruction data sent by the controller or remote control, the brushless motor drive controller starts pairing the brushless motor parameters.
[0064] Step 203: The brushless motor drive controller detects brushless motor parameters;
[0065] After the brushless motor drive controller detects and receives the pairing instruction data, it starts to detect the parameters of the brushless motor, such as line resistance and line inductance.
[0066] Step 204: storing the detected brushless motor parameters in the brushless motor drive controller to complete pairing;
[0067] In the above steps, according to the brushless motor parameter detection result in step 203, the parameter result is stored in the brushless drive controller to complete the motor parameter pairing.
[0068] In this embodiment, please refer to Figure 1 , Figure 3 , Figure 4 and Figure 5 According to the method for automatically detecting and matching motor parameters proposed in the first aspect of the present invention, the method steps include:
[0069] Step 1: The brushless motor drive controller generates two test frequency signals;
[0070] The microcontroller in the brushless motor drive controller 100 generates two test frequency signals: f1 and f2. Usually, the two test frequencies are in a multiple frequency relationship, such as a 2 times frequency relationship: f2=2f1.
[0071] Step 2: Detect the brushless motor line current;
[0072] For example, to detect the current of the motor line, the test frequency signal generated by the brushless motor drive controller 100 is loaded on the motor winding to test its current size.
[0073] Step 3: Calculate the equivalent inductance and reactance of the brushless motor winding;
[0074] The detected currents are I1 and I2 respectively (the current at frequency f is I1, the current at frequency 2f is I2, assuming that at frequency f, the inductive reactance of the brushless motor equivalent inductance is X1, and at frequency 2f, the inductive reactance of the brushless motor equivalent inductance is X2, assuming that the equivalent resistance of the brushless motor is R, the equivalent inductance is L, and the equivalent signal source is U, then the following equations can be obtained:
[0075] U / (X1+R)=I1
[0076] U / (X2+R)=I2
[0077] X1=2πfL
[0078] X2=2π2fL
[0079] Solve the system of equations to calculate the L and R values:
[0080] L=(U / I1-U / I2) / (2πf)
[0081] R=(2U / I2)-(U / I1)
[0082] U is determined by the power supply voltage and can give a specific value. I1 and I2 are detected by a microcontroller (MCU for short), so the inductance and resistance values of the brushless motor can be obtained.
[0083] In this embodiment, since the motor drive system may have certain errors in current detection and power supply settings, proportional corrections can be made according to actual conditions.
[0084] To further explain the motor parameter detection process of this technical solution, please refer to Figure 3 , 4 When detecting the line inductance and line resistance of the brushless motor, the microcontroller can control the transistors Q1-Q6 as follows: Q5 is in the working state, Q2 is in the on state, Q1, Q3, Q4, Q6 are in the off state, so Figure 3 It is equivalent to Figure 4 ;
[0085] Similarly, Q3 is in working state, Q6 is in conducting state, Q1, Q2, Q4, Q5 are in cut-off state; Q1 is in working state, Q4 is in conducting state, Q2, Q3, Q5, Q6 are in cut-off state. In this embodiment, the transistor can be selected as a field effect transistor.
[0086] Please refer to Figure 5 , the two AC lines of the motor can be equivalent to resistance R + inductance L, Figure 4 So it can be equivalent to Figure 5 .
[0087] The driving equivalent signal source U is controlled by a microcontroller (MCU for short). In this embodiment, the model RQ32M37D can be selected. The microcontroller can generate signal sources of different frequencies. The signal passes through the AC end of the motor, which can generate corresponding current. According to the magnitude and frequency of the current, the resistance and inductance of the AC end of the motor can be calculated. There are many calculation methods, and the following is one of the specific calculation processes:
[0088] The two frequencies generated by the microcontroller are f and 2f. For example, the two frequencies may be two frequencies that differ by one time.
[0089] The currents detected by the current detection module 20 are I1 and I2 respectively, the current at frequency f is I1, the current at frequency 2f is L2, assuming that at frequency f, the inductive reactance of the equivalent inductance of the brushless motor 10 is X1, and at frequency 2f, the inductive reactance of the equivalent inductance of the brushless motor 10 is X2, assuming that the equivalent resistance of the brushless motor is R, the equivalent inductance is L, and the driving equivalent signal source is U, then the following equations can be obtained:
[0090] ①U / (X1+R)=I1
[0091] ②U / (X2+R)=I2
[0092] ③X1=2πfL
[0093] ④X2=2π2fL
[0094] Solving the above system of equations yields:
[0095] L=(U / I1-U / I2) / (2πf)
[0096] R=(2U / I2)-(U / I1)
[0097] U is determined by the power supply voltage and can give a specific value. I1 and I2 are detected by the microcontroller, so the inductance and resistance values of the motor can be obtained.
[0098] In this embodiment, the current detection module is provided by a microcontroller, and can also be obtained by other current detection circuits, for example: Figure 7 The reference circuit in .
[0099] In some other embodiments, since the brushless motor drive controller may have certain errors in current detection and supply voltage setting, proportional corrections can be made according to actual conditions.
[0100] In this embodiment, the brushless motor parameter detection is implemented by a microcontroller, and the detection method thereof utilizes the program storage function of the microcontroller. The brushless motor parameter detection method and result can be solidified in the program of the microcontroller. The brushless motor drive controller applied in the present invention is universal.
[0101] The above-mentioned method of automatically detecting and matching motor parameters can utilize the existing brushless motor drive controller. Using the detection method applied for by the present invention will greatly improve the versatility of the brushless motor drive controller and greatly save research and development time. Since one driver can match different motor parameters, it can greatly reduce the manufacturer's inventory and production time, thereby reducing costs.
[0102] Reference Figure 6 , the brushless motor drive controller circuit for automatically detecting and matching motor parameters of the second aspect of the embodiment of the present invention is described, including: a microcontroller U5, a pre-drive circuit, for the convenience of explanation, two transistors working with each other are combined into a group. In this embodiment, Q6, Q7, and Q8 are a group of transistors to realize the drive control of the brushless motor.
[0103] in:
[0104] The first pin of the microcontroller U5 is connected to the IR terminal to receive the controller remote control signal; the second to eighth pins of the microcontroller U5 are connected to the PWM1 to PWM6 terminals respectively, the eighth pin of the microcontroller U5 is connected in parallel with the 15th capacitor C15 and the VCC terminal, the ninth pin of the microcontroller U5 is grounded, the tenth pin of the microcontroller U5 is connected in parallel with one end of the fifth capacitor C5 and the 5V power supply terminal; the sixteenth pin of the microcontroller U5 is connected to one end of the sixteenth capacitor C16; the other end of the fifth capacitor C5 and the fifteenth capacitor C16 are connected in parallel. The other end of capacitor C15 and the other end of the 16th capacitor C16 are connected to the ground in parallel; the 20th pin of microcontroller U5 is connected to the AOP end, and the AOP end is connected to one end of the 4th resistor R4; the other end of the 4th resistor R4 is connected in parallel with one end of RS3 resistor, one end of RS2 resistor, and one end of RS5 resistor to the I_SHUNT end; the other end of RS3 resistor, the other end of RS2 resistor, and the other end of RS5 resistor are connected to the ground in parallel and connected in parallel to one end of the 5th resistor R5; the other end of the 5th resistor R5 is connected to the AOM end;
[0105] The PWM1 terminal is connected to one end of the first resistor R1, the other end of the first resistor R1 is connected to the fourth pin of the sixth transistor Q6, the third pin of the sixth transistor Q6 is connected to the VCC terminal, the PWM4 terminal is connected to one end of the second resistor R2, the other end of the second resistor R2 is connected to the second pin of the sixth transistor Q6, the first pin of the sixth transistor Q6 is connected to the I_SHUNT terminal, and the fifth, sixth, seventh, and eighth pins of the sixth transistor Q6 are connected in parallel to the A-phase terminal of the motor;
[0106] The PWM2 terminal is connected to one end of the sixth resistor R6, the other end of the sixth resistor R6 is connected to the fourth pin of the seventh transistor Q7, the third pin of the seventh transistor Q7 is connected to the VCC terminal, the PWM5 terminal is connected to one end of the seventh resistor R7, the other end of the seventh resistor R7 is connected to the second pin of the seventh transistor Q7, the first pin of the seventh transistor Q7 is connected to the I_SHUNT terminal, and the fifth, sixth, seventh, and eighth pins of the seventh transistor Q7 are connected in parallel to the B-phase terminal of the motor;
[0107] The PWM3 terminal is connected to one end of the third resistor R3, the other end of the third resistor R3 is connected to the fourth pin of the eighth transistor Q8, the third pin of the eighth transistor Q8 is connected to the VCC terminal, the PWM6 terminal is connected to one end of the 20th resistor R20, the other end of the 20th resistor R20 is connected to the second pin of the eighth transistor Q8, the first pin of the eighth transistor Q8 is connected to the I_SHUNT terminal, and the fifth, sixth, seventh, and eighth pins of the eighth transistor Q8 are connected in parallel to the C phase terminal of the motor; by controlling the conduction and cutoff of the transistor, the measurement of the motor parameters is achieved.
[0108] In this embodiment, the microcontroller model can be selected as: RQ32M37D.
[0109] The brushless motor drive controller for automatically detecting and matching motor parameters according to the embodiment of the second aspect of the present invention has at least the following beneficial effects: the brushless motor drive controller applied for by the present invention detects the brushless motor parameters by a microcontroller, and its detection method utilizes the program storage function of the microcontroller, and the brushless motor parameter detection method and results can be solidified in the program of the microcontroller. The brushless motor drive controller applied for by the present invention has universality. The application of the present invention will greatly enhance the universality of the motor driver and greatly save research and development time. Since one driver can match different motor parameters, it can greatly reduce the manufacturer's inventory and production time, thereby reducing costs.
[0110] Some other embodiments of the present invention can apply the method of automatically detecting and matching motor parameters and the brushless motor drive controller of the above embodiments to a fan controller, for example, to a universal invisible fan controller. The method steps are as follows:
[0111] 1. Connect the fan controller and fan motor;
[0112] 2. Connect the power supply, and press and hold the fan remote control pairing button within 30 seconds to start pairing;
[0113] For example, by using the infrared pairing method of the remote control in the prior art, the fan remote control and the fan controller pair the fan motor parameters to realize the remote control of the fan, such as starting, stopping, adjusting the wind speed, forward and reverse operation, etc.
[0114] 3. After the fan remote control and fan controller are paired, the fan controller starts the fan motor parameter detection process and writes the detected motor parameters into the MCU memory of the fan controller. At this time, when the fan controller needs to enter the working state, it can call the parameters of the MCU memory of the fan controller to drive the fan motor.
[0115] 4. When the fan is powered on next time, the fan controller can call the fan motor parameters stored in the last memory without coding, so that the fan can work normally.
[0116] 5. If you need to replace a fan motor with different parameters, connect the corresponding fan motor and fan controller, and re-code to match the corresponding motor parameters.
[0117] Through the above application, the fan can be conveniently controlled, which is simple and easy to use.
[0118] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.
[0119] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0120] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" 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 invention. In this specification, the schematic representation of the above terms does 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 more embodiments or examples in a suitable manner.
[0121] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A method for automatically detecting and matching brushless motor parameters, comprising a controller, characterized in that: It also includes a brushless motor drive controller, which is used to detect and configure brushless motor parameters to control the operation of the brushless motor. The method steps include: Connect the brushless motor to the brushless motor drive controller; The brushless motor drive controller receives a controller pairing instruction; The brushless motor drive controller detects brushless motor parameters; The detected brushless motor parameters are stored in the brushless motor drive controller to complete the pairing.
2. The method for automatically detecting and matching brushless motor parameters according to claim 1, characterized in that: The method for detecting motor parameters by the drive controller comprises the following steps: The brushless motor drive controller generates two test frequency signals; Detect the motor line current under two test frequency signals; Calculate motor parameters: equivalent inductance, reactance, inductance value, resistance value.
3. The method for automatically detecting and matching brushless motor parameters according to claim 2, characterized in that: The method for calculating motor parameters is: ①U / (X1+R)=I1; ②U / (X2+R)=I2; ③X1=2πfL; ④X2=2π2fL; Solving the system of equations yields: L=(U / I1-U / I2) / (2f) R=(2U / I2)-(U / I1) Among them: U is the brushless motor driving voltage value, X1 is the equivalent inductance and reactance of the brushless motor when it is loaded with test frequency signal 1, X2 is the equivalent inductance and reactance of the brushless motor when it is loaded with test frequency signal 2, I1 is the motor line current when the brushless motor is loaded with test frequency signal 1, I2 is the brushless motor line current when the brushless motor is loaded with test frequency signal 2, L is the brushless motor parameter inductance value, and R is the brushless motor parameter resistance value.
4. The method for automatically detecting and matching brushless motor parameters according to claim 2, characterized in that: The two test frequencies have a 2-fold frequency relationship.
5. A brushless motor drive controller that automatically detects and matches brushless motor parameters, the brushless motor drive controller comprising a front drive module and a power drive module, characterized in that: It also includes a microcontroller and a current detection module, and the brushless motor drive controller executes the methods described in claims 1 to 4; the microcontroller is used to provide a brushless motor test frequency signal and control the power drive module; the current detection module is used to detect the current parameters of the brushless motor when the microcontroller loads the test frequency signal.
6. The brushless motor drive controller for automatically detecting and matching brushless motor parameters according to claim 5, characterized in that: The power drive module is provided with power required by the brushless motor and the brushless motor drive controller by an external power supply input VCC. The power drive module is connected to the brushless motor, and the microcontroller and the pre-drive module are connected to the power drive module, and are used to set the brushless motor startup parameters, input the brushless motor startup parameters to the power drive module, and drive the brushless motor by the power drive module; The current detection module is connected to the microcontroller, the front drive module and the power drive module, and is used to detect the current parameters of the brushless motor.
7. The brushless motor drive controller for automatically detecting and matching brushless motor parameters according to claim 6 is characterized in that the power drive module includes the first to sixth field effect transistors and a resistor, the drain of the first field effect transistor is connected in parallel with the source of the second field effect transistor and the brushless motor A phase, the gate of the first field effect transistor is connected to the microcontroller and the pre-drive module, the source of the first field effect transistor is connected in parallel with the current detection module, the source of the third field effect transistor, the source of the fifth field effect transistor, and one end of the resistor; the other end of the resistor is grounded; the fifth field effect transistor is connected in parallel with the current detection module, the source of the third field effect transistor, the source of the fifth field effect transistor, and one end of the resistor are connected in parallel ... second end of the resistor is grounded; the fifth field effect transistor is connected in parallel with the current detection module, the source of the third field effect transistor, the source of the fifth field effect transistor, and one end of the resistor are connected in parallel; the second end of the resistor is grounded; the fifth field effect transistor is connected in parallel with the current detection module, the source of the third field effect transistor, the source of the fifth field effect transistor, and one end of the resistor are connected in parallel; the second end of the resistor is grounded; the fifth field effect transistor is connected in parallel with the current detection module, the source of the third field effect transistor, the source of the fifth field effect transistor, and one end of the resistor The drain of the field effect tube is connected in parallel with the C phase of the brushless motor and the source of the sixth field effect tube; the drain of the third field effect tube is connected in parallel with the source of the fourth field effect tube and the B phase of the brushless motor; the drain of the third field effect tube, the drain of the fourth field effect tube, and the drain of the second field effect tube are connected in parallel with the VCC terminal; the drain and gate levels of the first to sixth field effect tubes are controlled by the microcontroller and the front drive module, so that the drain and source of the fifth field effect tube and the second field effect tube, the third field effect tube and the sixth field effect tube, and the first field effect tube and the fourth field effect tube are turned on and off in turn to drive the brushless motor.
8. The brushless motor drive controller for automatically detecting and matching motor parameters according to claim 7 comprises a drive circuit, wherein the drive circuit comprises a microcontroller, 6 transistors, a plurality of capacitors, and a plurality of resistors, wherein: The first pin of the microcontroller is connected to the IR terminal to receive the controller remote control signal; the second to eighth pins of the microcontroller are connected to the PWM1 to PWM6 terminals respectively, the eighth pin of the microcontroller is connected in parallel with the 15th capacitor and the VCC terminal, the ninth pin of the microcontroller is grounded, the tenth pin of the microcontroller is connected in parallel with one end of the fifth capacitor and the 5V power supply terminal; the sixteenth pin of the microcontroller is connected to one end of the sixteenth capacitor; the other end of the fifth capacitor, the other end of the fifteenth capacitor, and the other end of the sixteenth capacitor are connected in parallel to the ground; the twenty-third pin of the microcontroller is connected in parallel with the fifth capacitor and the VCC terminal; the ninth pin of the microcontroller is grounded, the tenth pin of the microcontroller is grounded, and the tenth pin of the microcontroller is grounded. The pin is connected to the AOP terminal, and the AOP terminal is connected to one end of the fourth resistor; the other end of the fourth resistor is connected in parallel with one end of the RS3 resistor, one end of the RS2 resistor, and one end of the RS5 resistor to the I_SHUNT terminal; the other ends of the RS3 resistor, the other ends of the RS2 resistor, and the other ends of the RS5 resistor are connected to the ground in parallel and connected to one end of the fifth resistor; the other end of the fifth resistor is connected to the AOM terminal; the PWM1 terminal is connected to one end of the first resistor, and the other end of the first resistor is connected to the fourth pin of the sixth transistor, and the third pin of the sixth transistor is connected to the VCC terminal, P WM4 is connected to one end of the second resistor, the other end of the second resistor is connected to the second pin of the sixth transistor, the first pin of the sixth transistor is connected to the I_SHUNT terminal, and the 5th, 6th, 7th, and 8th pins of the sixth transistor are connected in parallel to the A phase terminal of the motor; PWM2 is connected to one end of the sixth resistor, the other end of the sixth resistor is connected to the fourth pin of the seventh transistor, the third pin of the seventh transistor is connected to the VCC terminal, PWM5 is connected to one end of the seventh resistor, the other end of the seventh resistor is connected to the second pin of the seventh transistor, the first pin of the seventh transistor is connected to the I_SHUNT terminal, and the The 5th, 6th, 7th and 8th pins of the 7th transistor are connected in parallel to the B-phase terminal of the motor; the PWM3 terminal is connected to one end of the 3rd resistor, the other end of the 3rd resistor is connected to the 4th pin of the 8th transistor, the 3rd pin of the 8th transistor is connected to the VCC terminal, the PWM6 terminal is connected to one end of the 20th resistor, the other end of the 20th resistor is connected to the 2nd pin of the 8th transistor, the 1st pin of the 8th transistor is connected to the I_SHUNT terminal, the 5th, 6th, 7th and 8th pins of the 8th transistor are connected in parallel to the C-phase terminal of the motor, and the measurement of the motor parameters is achieved by controlling the conduction and cutoff of the transistor.
9. A fan controller, characterized in that: The fan controller executes the method for automatically detecting and matching brushless motor parameters as described in claims 1 to 4, or the fan controller is composed of a brushless motor drive controller for automatically detecting and matching brushless motor parameters as described in claims 5 to 8.
Citation Information
Patent Citations
Brushless direct-current motor drive circuit, channel gate and control method
CN102545741A
Control method matched with various kinds of direct current brushless motor drive programs
CN103780173A
Asynchronous motor offline static parameter identification method and apparatus
CN108183647A
Testing system and method based on free switching of output power of direct current brushless motor
CN117192359A
Brushless motor adaptive driving system and driving method
CN117713629A
