Motor speed fluctuation compensation control method, device, equipment and computer readable storage medium

By generating speed fluctuation curves and mirror curves, iterative control is performed, and the motor duty cycle is dynamically compensated, which solves the noise and vibration problems caused by seat motor speed fluctuations, and improves the accuracy of obstacle detection.

CN118264157BActive Publication Date: 2024-11-12CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410351227.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2024-11-12
Estimated Expiration
2044-03-26

AI Technical Summary

Technical Problem

The PWM duty cycle output and Hall signal of existing seat motors are detected as open-loop systems, causing large fluctuations in motor speed, generating noise and vibration, and may lead to incorrect clamping prevention algorithms.

Method used

By obtaining the motor set speed and actual speed values, a speed fluctuation curve and a mirror curve are generated, and iterative control is used to use the mirror curve and duty cycle adjustment coefficient to dynamically compensate the motor duty cycle to reduce speed fluctuations and noise and improve obstacles Accuracy of detection.

Benefits of technology

It effectively reduces motor speed fluctuations, reduces noise and vibration, improves the operating stability of the seat and the accuracy of obstacle detection, and avoids the failure of the anti-pinch algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118264157B_ABST
    Figure CN118264157B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of motor control, and discloses a motor speed fluctuation compensation control method, device, equipment and storage medium, the method comprising: obtaining the basic duty cycle of the motor according to the set speed of the motor; obtaining the seat speed value during the continuous operation of the seat, and generating a speed fluctuation curve according to the seat speed value; obtaining the mirror speed value according to the difference between the seat speed value on the speed fluctuation curve and the set speed, and generating a mirror curve of the speed fluctuation curve according to the mirror speed value; iteratively controlling according to the mirror speed value on the mirror curve and the duty cycle adjustment coefficient to obtain the compensation duty cycle of the corresponding seat speed value; superimposing the compensation duty cycle on the basic duty cycle to obtain the actual duty cycle of the motor, and controlling the motor speed according to the actual duty cycle. The technical solution of the present application can reduce the speed fluctuation of the seat motor and reduce the noise and vibration caused by the speed fluctuation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of motor control technology, and in particular to a motor speed fluctuation compensation control method, device, equipment and computer-readable storage medium. Background Art

[0002] With the improvement of people's living standards and the rapid development of the automobile industry, traditional five-seater cars can no longer meet the car needs of some families with many children. At present, the size of high-end cars is getting bigger and bigger, and six-seater cars are becoming more and more popular. In order to improve the comfort and convenience of users, the rear seats of six-seater cars will be equipped with one-button folding and one-button unfolding functions.

[0003] Currently in the industry, the PWM duty cycle output and Hall signal detection of the seat motor is an open-loop system. Generally, the duty cycle of the seat motor is fixed. In order to increase the seat motor torque and reduce the motor jitter during operation, planetary gears and shock-absorbing damping blocks are generally used to adjust the motor output torque and reduce the motor jitter. However, these two mechanisms may cause another problem: the motor speed fluctuates greatly, causing a certain frequency of noise during the operation of the seat, and when the motor speed fluctuation decreases, the interval of the Hall signal will be lengthened. The seat anti-pinch is determined by the change of the motor Hall cycle, which may cause the anti-pinch algorithm to mis-pinch. Summary of the invention

[0004] In view of the above problems, the present application provides a motor speed fluctuation compensation control method, device, equipment and computer-readable storage medium, which are used to solve the problems of noise, vibration and anti-pinch algorithm failure generated during seat movement in the prior art.

[0005] According to one aspect of an embodiment of the present application, a motor speed fluctuation compensation control method is provided, the method comprising: obtaining a basic duty cycle of the motor according to a set speed of the motor; obtaining a seat speed value during continuous operation of the seat, and generating a speed fluctuation curve according to the seat speed value; obtaining a mirror speed value according to a difference between the seat speed value on the speed fluctuation curve and the set speed, and generating a mirror curve of the speed fluctuation curve according to the mirror speed value; performing iterative control according to the mirror speed value on the mirror curve and a duty cycle adjustment coefficient to obtain a compensation duty cycle corresponding to the seat speed value; superimposing the compensation duty cycle on the basic duty cycle to obtain an actual duty cycle of the motor, and controlling the motor speed according to the actual duty cycle.

[0006] In an optional manner, iterative control is performed based on the mirror speed value and the duty cycle adjustment coefficient on the mirror curve to obtain the compensated duty cycle of the corresponding seat speed value, further including: obtaining the first compensated duty cycle of the corresponding seat speed value based on the mirror speed value and the duty cycle adjustment coefficient on the mirror curve; confirming the actual duty cycle of the motor based on the basic duty cycle and the first compensated duty cycle, and obtaining the actual speed of the motor after duty cycle compensation: when the absolute value of the difference between the actual speed and the set speed exceeds a threshold, iteratively controlling the duty cycle adjustment coefficient to obtain a second compensated duty cycle until the absolute value of the difference between the actual speed and the set speed does not exceed the threshold.

[0007] In an optional manner, after confirming the actual duty cycle of the motor based on the basic duty cycle and the first compensated duty cycle, and obtaining the actual speed of the motor after duty cycle compensation, it further includes: when the absolute value of the difference between the actual speed and the set speed does not exceed a threshold, using the duty cycle adjustment coefficient as a calibration parameter to perform compensation control on the duty cycle of the motor.

[0008] In an optional manner, when the absolute value of the difference between the actual speed and the set speed does not exceed a threshold value, the duty cycle adjustment coefficient is used as a calibration parameter to perform compensation control on the duty cycle of the motor, further comprising: obtaining a peak value and a trough value of an actual speed curve generated according to the actual speed; obtaining the absolute value of the difference between the peak value and the trough value and the set speed respectively; when the absolute value does not exceed a threshold value, the duty cycle adjustment coefficient is used as a calibration parameter to perform compensation control on the duty cycle of the motor.

[0009] In an optional manner, before obtaining the basic duty cycle of the motor according to the set speed of the motor, it further includes: presetting the set speed of the motor and the number of Hall sensors corresponding to the full stroke of the seat.

[0010] In an optional manner, the seat speed value during the continuous operation of the seat is obtained, and a speed fluctuation curve is generated according to the seat speed value, further comprising: during the continuous operation of the seat, respectively obtaining the seat speed value collected by each Hall sensor; connecting the seat speed values ​​in chronological order to generate the speed fluctuation curve.

[0011] In an optional manner, before obtaining the basic duty cycle of the motor according to the set speed of the motor, it further includes: obtaining speed data of the motor during the full operating stroke of the seat; extracting a maximum speed value and a minimum speed value according to the speed data; respectively obtaining speed fluctuation values ​​between the maximum speed value and the minimum speed value and the set speed; when the absolute value of the speed fluctuation value exceeds a threshold value, obtaining the basic duty cycle of the motor according to the set speed of the motor.

[0012] According to another aspect of an embodiment of the present application, a motor speed fluctuation compensation control device is provided, including: a duty cycle acquisition module, used to acquire a basic duty cycle of the motor according to a set speed of the motor; a processing module, used to acquire a seat speed value during continuous operation of the seat, and generate a speed fluctuation curve according to the seat speed value; acquire a mirror speed value according to a difference between the seat speed value on the speed fluctuation curve and the set speed, and generate a mirror curve of the speed fluctuation curve according to the mirror speed value; a compensation duty cycle iterative calculation module, used to perform iterative control according to the mirror speed value on the mirror curve and a duty cycle adjustment coefficient to acquire a compensation duty cycle corresponding to the seat speed value; a motor control module, used to superimpose the compensation duty cycle on the basic duty cycle to acquire an actual duty cycle of the motor, and control the motor speed according to the actual duty cycle.

[0013] According to another aspect of an embodiment of the present application, a motor speed fluctuation compensation control device is provided, comprising: a controller; and a memory for storing one or more programs, wherein when the one or more programs are executed by the controller, the controller implements any one of the motor speed fluctuation compensation control methods described above.

[0014] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the storage medium stores at least one executable instruction, wherein the executable instruction enables a motor speed fluctuation compensation control apparatus / device to perform the operation of any one of the motor speed fluctuation compensation control methods described above.

[0015] The embodiments of the present application use motor speed fluctuation compensation control methods, devices, equipment and computer-readable storage media to dynamically compensate for the duty cycle of the motor during seat movement, thereby controlling the motor speed to reduce motor speed fluctuations, reduce noise and vibration caused by speed fluctuations, and improve the accuracy of obstacle detection.

[0016] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0018] Figure 1 A schematic diagram showing a flow chart of a first embodiment of a motor speed fluctuation compensation control method provided by the present application;

[0019] Figure 2 A schematic flow chart of a second embodiment of the motor speed fluctuation compensation control method provided by the present application is shown;

[0020] Figure 3 A schematic diagram of a speed fluctuation curve-mirror curve provided by the present application is shown;

[0021] Figure 4 A schematic structural diagram of a first embodiment of a motor speed fluctuation compensation control device provided by the present application is shown;

[0022] Figure 5 A structural schematic diagram of an embodiment of a motor speed fluctuation compensation control device provided in the present application is shown. DETAILED DESCRIPTION

[0023] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0024] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0025] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0026] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0027] At present, the PWM duty cycle output and Hall signal detection of the seat motor is an open-loop system. Generally, the duty cycle of the seat motor is fixed. In order to increase the seat motor torque and reduce the motor vibration during operation, planetary gears and shock-absorbing damping blocks are generally used to adjust the motor output torque and reduce the motor vibration during operation.

[0028] However, these two mechanisms may cause another problem: the motor speed fluctuates greatly, causing noise of a certain frequency during the operation of the seat, and when the motor speed fluctuation decreases, the interval of the Hall signal will be lengthened. The seat anti-pinch function is determined by the change of the motor Hall cycle, resulting in a certain probability of causing the seat anti-pinch algorithm to fail.

[0029] The present invention reduces motor speed fluctuations by identifying motor speed fluctuations and correcting the duty cycle; and does not cause the interval of the Hall signal to be lengthened, so that when the seat encounters an obstacle, effective identification can be performed, thereby achieving seat anti-pinch and anti-rotation actions.

[0030] Figure 1 The flowchart of the first embodiment of the motor speed fluctuation compensation control method of the present application is shown, and the method is executed by the motor speed fluctuation compensation control device. Figure 1 As shown, the method comprises the following steps:

[0031] Step S11: Obtain the basic duty cycle of the motor according to the set speed of the motor.

[0032] The motor is a car seat motor, which is used to control the movement, folding and unfolding of the seat, etc. The seat motor has a Hall sensor, and there are single Hall sensor motors and multi-Hall sensor motors. This implementation takes a single Hall sensor motor as an example.

[0033] The set speed is customized by the seat performance engineer in the software according to specific needs (in theory, the seat should run at the set speed throughout its entire travel range. For example, the motor set speed V1 (Hall number / s)).

[0034] The motor duty cycle is an important parameter that describes the working state of the motor. It refers to the proportion of the motor's power-on time in a cycle to the total time, usually expressed as a percentage. The motor duty cycle can represent the motor's working mode. For example, a duty cycle of 0% means that the motor has been stopped, while a duty cycle of 100% means that the motor is running continuously.

[0035] Optionally, before obtaining the basic duty cycle of the motor according to the set speed of the motor, it further includes: presetting the set speed of the motor and the number of Hall sensors corresponding to the full stroke of the seat.

[0036] Step S12: Acquire the seat speed value during the continuous operation of the seat, and generate a speed fluctuation curve according to the seat speed value.

[0037] Among them, the seat speed value is the signal value collected by each Hall sensor on the full stroke of the seat. The Hall sensor can be used to detect the motor speed. The Hall signal usually refers to the rotor position signal of the brushless DC motor. Generally, there are two situations: outputting high potential voltage and outputting low potential voltage.

[0038] The speed fluctuation curve is drawn using the speed values ​​collected by all Hall sensors over the entire seat travel. Each point on the speed fluctuation curve corresponds to the speed value at the moment of the Hall count value.

[0039] Optionally, obtaining a seat speed value during continuous operation of the seat, and generating a speed fluctuation curve based on the seat speed value, further includes: obtaining the seat speed value collected by each Hall sensor during the continuous operation of the seat; connecting the seat speed values ​​in chronological order to generate the speed fluctuation curve.

[0040] Step S13: acquiring a mirror image speed value according to the difference between the seat speed value on the speed fluctuation curve and the set speed, and generating a mirror image curve of the speed fluctuation curve according to the mirror image speed value.

[0041] Among them, the mirror speed value = seat speed value - set speed. The mirror speed value corresponds to the seat speed value one by one. The mirror curve is a curve image drawn using all mirror speed values.

[0042] Step S14: performing iterative control according to the mirror speed value and the duty cycle adjustment coefficient on the mirror curve to obtain the compensation duty cycle of the corresponding seat speed value.

[0043] The duty cycle adjustment coefficient is a constant, which is set by the seat performance engineer according to actual needs. In this embodiment, the duty cycle adjustment coefficient is 0.001.

[0044] By multiplying each point on the mirror curve (i.e., the mirror speed value) by the duty cycle adjustment coefficient, the duty cycle compensation value (i.e., the compensated duty cycle, the same below) corresponding to each seat speed value can be obtained. Then, it is determined whether the duty cycle compensation value meets the requirements; if it does not meet the requirements, the duty cycle adjustment coefficient is incremented, and then the incremented duty cycle adjustment coefficient is multiplied by each mirror speed value on the mirror curve to obtain the adjusted duty cycle compensation value, and the judgment is made again based on the adjusted duty cycle compensation value until the obtained duty cycle compensation value meets the requirements.

[0045] Step S15: superimpose the compensation duty cycle on the basic duty cycle to obtain the actual duty cycle of the motor, and control the motor speed according to the actual duty cycle.

[0046] Among them, the actual duty cycle = basic duty cycle + compensation duty cycle, which is the duty cycle output by the seat motor when it works subsequently.

[0047] Through the above method, the speed value of the seat in the entire seat stroke is measured using a Hall sensor, and then the corresponding compensation duty cycle is obtained through the change of the seat speed value and the duty cycle adjustment coefficient; after obtaining the compensation duty cycle, the motor is controlled based on the compensation duty cycle and the basic duty cycle, and the duty cycle adjustment coefficient / compensation duty cycle is iterated according to the observed speed fluctuation of the seat motor until the speed fluctuation change of the seat motor meets the requirements, thereby reducing the noise and vibration caused by speed fluctuations, and avoiding problems such as mis-clamping of the seat.

[0048] Optionally, iterative control is performed according to the mirror speed value and the duty cycle adjustment coefficient on the mirror curve to obtain the compensated duty cycle of the corresponding seat speed value, further including: obtaining a first compensated duty cycle of the corresponding seat speed value according to the mirror speed value and the duty cycle adjustment coefficient on the mirror curve; confirming the actual duty cycle of the motor according to the basic duty cycle and the first compensated duty cycle, and obtaining the actual speed of the motor after duty cycle compensation: when the absolute value of the difference between the actual speed and the set speed exceeds a threshold, iteratively controlling the duty cycle adjustment coefficient to obtain a second compensated duty cycle until the absolute value of the difference between the actual speed and the set speed does not exceed a threshold.

[0049] Among them, the first compensation duty cycle can be the same as the second compensation duty cycle, or it can be different. The actual speed is the speed when the motor is running, which may be larger or smaller than the set speed of the motor. The threshold value can be customized according to specific needs. In this embodiment, the threshold value is 20 Hall numbers / s. That is, the peak value and trough value of the actual speed of the motor are both within ±20 (Hall number / s, assuming that this range value is a fluctuation range value that will not affect the anti-pinch / jam judgment) of the set speed V1 of the motor.

[0050] Optionally, after confirming the actual duty cycle of the motor based on the basic duty cycle and the first compensated duty cycle, and obtaining the actual speed of the motor after duty cycle compensation, it further includes: when the absolute value of the difference between the actual speed and the set speed does not exceed a threshold, using the duty cycle adjustment coefficient as a calibration parameter to perform compensation control on the duty cycle of the motor.

[0051] Among them, calibration parameters refer to the parameters used to adjust and optimize system performance in machine learning and control systems. These parameters are usually obtained through experiments or simulations, and their accuracy is crucial to the performance of the system.

[0052] Optionally, when the absolute value of the difference between the actual speed and the set speed does not exceed a threshold value, the duty cycle adjustment coefficient is used as a calibration parameter to perform compensation control on the duty cycle of the motor, further including: obtaining the peak value and trough value of the actual speed curve generated according to the actual speed; obtaining the absolute value of the difference between the peak value and the trough value and the set speed respectively; when the absolute value does not exceed a threshold value, the duty cycle adjustment coefficient is used as a calibration parameter to perform compensation control on the duty cycle of the motor.

[0053] The peak value and the trough value of the actual speed curve may also be the maximum value and the minimum value of the actual speed curve.

[0054] For example, see Figure 2 . Figure 2 A flow chart showing another embodiment of the motor speed fluctuation compensation control method of the present application is shown, and the method is executed by a motor speed fluctuation compensation control device (eg, a vehicle computer). Figure 2 As shown, the method comprises the following steps:

[0055] Step S21: Obtaining a compensation duty cycle of a corresponding seat speed value according to the mirror speed value on the mirror curve and the duty cycle adjustment coefficient.

[0056] Step S22: confirming the actual duty cycle of the motor according to the basic duty cycle and the compensated duty cycle, and obtaining the actual speed of the motor after the duty cycle is compensated.

[0057] Step S23: Determine whether the absolute value of the difference between the actual speed and the set speed exceeds a threshold.

[0058] Step S24: If not, the duty cycle adjustment coefficient is used as a calibration parameter to perform compensation control on the duty cycle of the motor.

[0059] Optionally, after step S23, the method further includes: if yes, the duty cycle adjustment coefficient is automatically increased by a preset value, and step S21 is repeated.

[0060] Specifically, each mirror speed value on the mirror curve is multiplied by the duty cycle adjustment coefficient to obtain the first compensation duty cycle of the seat speed value corresponding to the mirror speed value (different seat speed values ​​correspond to different mirror speed values, resulting in different first compensation duty cycles. That is, there are multiple first compensation duty cycles, and their values ​​may also be different). Then the actual duty cycle of the seat speed value is adjusted to the basic duty cycle + the first compensation duty cycle. After adjusting the actual duty cycles of all seat speed values ​​on the speed fluctuation curve, run the full stroke of the seat again, and then observe the actual speed of the motor after duty cycle compensation (that is, during the full stroke of the seat, the duty cycle of the motor will change). Then calculate the difference between the observed actual speed of the motor and the set speed of the motor, and then check whether the absolute value of the difference between the two does not exceed the threshold (that is, determine whether the difference is within a certain range, such as -20 to +20). If it exceeds the threshold, iteration is required, by increasing the duty cycle adjustment coefficient (e.g., +0.001) and then multiplying it by the mirror speed value to obtain a second compensated duty cycle, and then performing the above steps again until the absolute value of the difference between the actual speed and the set speed does not exceed the threshold.

[0061] Specifically, after confirming that the absolute value of the difference between the actual speed and the set speed does not exceed the threshold, the duty cycle adjustment coefficient is solidified into the software as a calibration parameter so that subsequent seats operate according to this parameter to compensate for the duty cycle of the motor.

[0062] Specifically, after the duty cycle is compensated in the above, the actual speed of the motor is observed. Then, by using all the actual speeds observed, the actual speed fluctuation curve of the motor is drawn. The peak value and trough value on the curve are obtained (in other real-time methods, the maximum value and the minimum value can also be used), and then the peak value (that is, the actual speed corresponding to the peak, there can be multiple peaks on the curve. The peak value can be the maximum value) is calculated with the set speed, and the trough value (that is, the actual speed corresponding to the trough, there can be multiple troughs on the curve. The trough value can be the minimum value) is calculated with the set speed. If the difference between the two is within the preset range (such as ±20), there is no need to correct the duty cycle; if there is at least one that is not within the preset range, the duty cycle needs to be corrected.

[0063] Optionally, before obtaining the basic duty cycle of the motor according to the set speed of the motor, it further includes: obtaining speed data of the motor when the seat is running at full stroke; extracting maximum speed value and minimum speed value according to the speed data; respectively obtaining speed fluctuation values ​​between the maximum speed value and the minimum speed value and the set speed; when the absolute value of the speed fluctuation value exceeds a threshold value, obtaining the basic duty cycle of the motor according to the set speed of the motor.

[0064] Among them, the maximum speed value and the minimum speed value are the same as the speed fluctuation value before the set speed, which means that there is no need to adjust the duty cycle of the motor.

[0065] Exemplarily, the motor speed fluctuation compensation control method described in this embodiment is specifically as follows:

[0066] Step 1: The seat performance engineer enters the motor set speed V1 (number of Halls / s) (theoretically, the seat should run at V1 speed throughout its entire travel) and the number of Halls N1 (pieces) corresponding to the full travel of the seat into the software.

[0067] like Figure 3 As shown, the duty cycle adjustment coefficient P1 is 0.001. The typical value of the motor speed (i.e., the set speed of the motor) V1 is 1000.

[0068] Step 2: When calibrating the seat control parameters and anti-pinch calibration, measure the basic duty cycle D1 according to the motor set speed V1.

[0069] Step 3: Test the speed value of the seat during continuous operation and draw a speed fluctuation curve S1 (each point of the S1 curve corresponds to the speed value at the moment of the Hall counting value).

[0070] Step 4: Calculate the difference between the speed value corresponding to each Hall count value on the S1 curve and V1 to obtain the mirror image curve S1' of S1, and store the value corresponding to each Hall count value on the S1' curve into array A1 (array length is N1).

[0071] Step 5: During the test, read the current Hall count value, and take out the corresponding speed mirror value V1' in A1, multiply V1' by the duty cycle adjustment coefficient P1 (a value is preset) to obtain the duty cycle compensation value D1' (ie, the compensated duty cycle).

[0072] Step 6: The duty cycle real-time output value (i.e., actual duty cycle) Dout = D1 + D1', observe whether the motor speed fluctuation is reduced. If the peak value and trough value of the motor speed are both within ±20 (Hall number / s, assuming that it will not affect the fluctuation range of the seat anti-pinch / jam judgment) of the motor set speed V1, execute step 8; otherwise, execute step 7.

[0073] Step 7: After the P1 parameter is increased by 0.001 (in other implementations, it may also be decreased), the above steps 5 and 6 are repeated.

[0074] Step 8: Fix the adjustment coefficient P1 at this time as a calibration parameter in the software, and the subsequent seats will operate according to this parameter.

[0075] In summary, by identifying the motor speed fluctuation and correcting the duty cycle, the motor speed fluctuation problem caused by the inherent factors of the seat system can be reduced. Therefore, when the seat really encounters an obstacle, it can be effectively identified and take actions such as anti-pinch and stall.

[0076] Figure 4 The schematic diagram of the structure of the embodiment of the motor speed fluctuation compensation control device of the present application is shown. Figure 4 As shown, the device 400 includes: a duty cycle acquisition module 410 , a processing module 420 , a compensated duty cycle iterative calculation module 430 and a motor control module 440 .

[0077] The duty cycle acquisition module 410 is used to acquire the basic duty cycle of the motor according to the set speed of the motor.

[0078] The processing module 420 is used to obtain the seat speed value during the continuous operation of the seat, and generate a speed fluctuation curve based on the seat speed value; obtain the mirror speed value based on the difference between the seat speed value on the speed fluctuation curve and the set speed, and generate a mirror curve of the speed fluctuation curve based on the mirror speed value.

[0079] The compensation duty cycle iterative calculation module 430 is used to perform iterative control according to the mirror speed value on the mirror curve and the duty cycle adjustment coefficient to obtain the compensation duty cycle of the corresponding seat speed value.

[0080] The motor control module 440 is used to add the compensation duty cycle to the basic duty cycle to obtain the actual duty cycle of the motor, and control the motor speed according to the actual duty cycle.

[0081] It should be noted that the motor speed fluctuation compensation control device provided in the above embodiment and the motor speed fluctuation compensation control method provided in the above embodiment belong to the same concept, and the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.

[0082] Figure 5A structural schematic diagram of an embodiment of the motor speed fluctuation compensation control device of the present application is shown, which shows a structural schematic diagram of a computer system suitable for implementing the motor speed fluctuation compensation control device of the embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the motor speed fluctuation compensation control device.

[0083] See also Figure 5 As shown, the motor speed fluctuation compensation control device includes: a controller; a memory for storing one or more programs, and when the one or more programs are executed by the controller, the above-mentioned motor speed fluctuation compensation control method is executed.

[0084] Please continue reading Figure 5 As shown, the computer system 500 of the motor speed fluctuation compensation control device includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.

[0085] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.

[0086] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.

[0087] Another aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the motor speed fluctuation compensation control method described above is implemented. The computer-readable storage medium may be included in the motor speed fluctuation compensation control device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0088] Another aspect of the present application also provides a computer program product or a computer program, which includes at least one executable instruction. When the executable instruction runs on the motor speed fluctuation compensation control device / equipment, the motor speed fluctuation compensation control device / equipment executes the motor speed fluctuation compensation control method as described above.

[0089] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0090] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0091] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0092] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0093] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0094] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A motor speed fluctuation compensation control method, characterized in that: The method comprises: According to the set speed of the motor, a basic duty cycle of the motor is obtained; Acquiring a seat speed value during continuous operation of the seat, and generating a speed fluctuation curve according to the seat speed value; Acquire a mirror speed value according to a difference between a seat speed value on the speed fluctuation curve and the set speed, and generate a mirror curve of the speed fluctuation curve according to the mirror speed value; Iterative control is performed according to the mirror speed value and the duty cycle adjustment coefficient on the mirror curve to obtain the corresponding compensation duty cycle of the seat speed value; Superimposing the compensated duty cycle on the basic duty cycle to obtain an actual duty cycle of the motor, and controlling the motor speed according to the actual duty cycle; The iterative control is performed according to the mirror speed value and the duty cycle adjustment coefficient on the mirror curve to obtain the corresponding compensation duty cycle of the seat speed value, further comprising: According to the mirror speed value and the duty cycle adjustment coefficient on the mirror curve, obtaining a first compensation duty cycle of the corresponding seat speed value; Determining an actual duty cycle of the motor according to the basic duty cycle and the first compensated duty cycle, and acquiring an actual speed of the motor after duty cycle compensation; When the absolute value of the difference between the actual speed and the set speed exceeds a threshold, iteratively controlling the duty cycle adjustment coefficient to obtain a second compensation duty cycle until the absolute value of the difference between the actual speed and the set speed does not exceed the threshold; The iteratively controlling the duty cycle adjustment coefficient to obtain a second compensation duty cycle includes: The duty cycle adjustment coefficient is automatically increased according to a preset amplitude to obtain a duty cycle adjustment coefficient after the self-increase; The self-incremented duty cycle adjustment coefficient is multiplied by the mirror speed value to obtain a second compensated duty cycle.

2. The method according to claim 1, characterized in that After confirming the actual duty cycle of the motor according to the basic duty cycle and the first compensated duty cycle, and acquiring the actual speed of the motor after duty cycle compensation, the method further includes: When the absolute value of the difference between the actual speed and the set speed does not exceed a threshold value, the duty cycle adjustment coefficient is used as a calibration parameter to perform compensation control on the duty cycle of the motor.

3. The method according to claim 2, characterized in that When the absolute value of the difference between the actual speed and the set speed does not exceed a threshold value, the duty cycle adjustment coefficient is used as a calibration parameter to perform compensation control on the duty cycle of the motor, further comprising: Acquire peak values ​​and trough values ​​of an actual speed curve generated according to the actual speed; Obtaining the absolute values ​​of the differences between the peak value and the trough value and the set speed respectively; When the absolute value does not exceed a threshold value, the duty cycle adjustment coefficient is used as a calibration parameter to perform compensation control on the duty cycle of the motor.

4. The method according to claim 1, characterized in that: Before obtaining the basic duty cycle of the motor according to the set speed of the motor, the method further includes: The set speed of the motor and the number of Halls corresponding to the full stroke of the seat are preset.

5. The method according to claim 4, characterized in that The step of obtaining a seat speed value during continuous operation of the seat and generating a speed fluctuation curve according to the seat speed value further includes: During the continuous operation of the seat, respectively obtaining the seat speed value collected by each Hall sensor; The seat speed values ​​are connected in time sequence to generate the speed fluctuation curve.

6. The method according to claim 1, characterized in that Before obtaining the basic duty cycle of the motor according to the set speed of the motor, the method further includes: Acquiring speed data of the motor during the full travel of the seat; Extracting a maximum speed value and a minimum speed value according to the speed data; Respectively obtaining the speed fluctuation value between the maximum speed value and the minimum speed value and the set speed; When the absolute value of the speed fluctuation value exceeds a threshold value, a basic duty cycle of the motor is obtained according to a set speed of the motor.

7. A motor speed fluctuation compensation control device, characterized in that: The device comprises: A duty cycle acquisition module, used to acquire a basic duty cycle of the motor according to a set speed of the motor; A processing module, used for obtaining a seat speed value during continuous operation of the seat, and generating a speed fluctuation curve according to the seat speed value; obtaining a mirror speed value according to a difference between the seat speed value on the speed fluctuation curve and the set speed, and generating a mirror curve of the speed fluctuation curve according to the mirror speed value; The compensation duty cycle iteration calculation module is used to perform iterative control according to the mirror speed value and the duty cycle adjustment coefficient on the mirror curve to obtain the compensation duty cycle of the corresponding seat speed value; the iterative control according to the mirror speed value and the duty cycle adjustment coefficient on the mirror curve to obtain the compensation duty cycle of the corresponding seat speed value further includes: obtaining the first compensation duty cycle of the corresponding seat speed value according to the mirror speed value and the duty cycle adjustment coefficient on the mirror curve; confirming the actual duty cycle of the motor according to the basic duty cycle and the first compensation duty cycle, and obtaining the duty cycle. the actual speed of the motor after compensation; when the absolute value of the difference between the actual speed and the set speed exceeds a threshold, iteratively controlling the duty cycle adjustment coefficient to obtain a second compensated duty cycle, until the absolute value of the difference between the actual speed and the set speed does not exceed the threshold, the iteratively controlling the duty cycle adjustment coefficient to obtain the second compensated duty cycle, comprising: self-increasing the duty cycle adjustment coefficient according to a preset amplitude to obtain the self-increased duty cycle adjustment coefficient; multiplying the self-increased duty cycle adjustment coefficient by the mirror speed value to obtain the second compensated duty cycle; The motor control module is used to superimpose the compensated duty cycle on the basic duty cycle to obtain the actual duty cycle of the motor, and control the motor speed according to the actual duty cycle.

8. A motor speed fluctuation compensation control device, characterized in that: include: Controller; A memory for storing one or more programs. When the one or more programs are executed by the controller, the controller implements the motor speed fluctuation compensation control method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction. When the executable instruction is executed on the motor speed fluctuation compensation control apparatus / device, the motor speed fluctuation compensation control apparatus / device performs the operation of the motor speed fluctuation compensation control method as described in any one of claims 1 to 6.