WO2022105885A1 - 一种由电机驱动的机构确定开关时间的方法及系统 - Google Patents
一种由电机驱动的机构确定开关时间的方法及系统 Download PDFInfo
- Publication number
- WO2022105885A1 WO2022105885A1 PCT/CN2021/131833 CN2021131833W WO2022105885A1 WO 2022105885 A1 WO2022105885 A1 WO 2022105885A1 CN 2021131833 W CN2021131833 W CN 2021131833W WO 2022105885 A1 WO2022105885 A1 WO 2022105885A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- control amount
- switching time
- motor
- time
- switching
- Prior art date
Links
- 230000007246 mechanism Effects 0.000 title claims abstract description 227
- 238000000034 method Methods 0.000 title claims abstract description 81
- 230000008569 process Effects 0.000 claims abstract description 29
- 238000004364 calculation method Methods 0.000 claims description 28
- 238000004590 computer program Methods 0.000 claims description 6
- 230000000875 corresponding effect Effects 0.000 description 12
- 230000009471 action Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000001276 controlling effect Effects 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 5
- 238000012360 testing method Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P23/00—Arrangements or methods for the control of AC motors characterised by a control method other than vector control
- H02P23/14—Estimation or adaptation of motor parameters, e.g. rotor time constant, flux, speed, current or voltage
Definitions
- the present application relates to the technical field of motor control, and in particular, to a method and system for determining switching time of a mechanism driven by a motor.
- the motor can drive many types of mechanisms to operate, such as the automatic opening and closing of the door leaf of an automatic door driven by the motor, or the automatic opening and closing of the door wing of the access gate (hereinafter referred to as the gate) to allow users to pass.
- Automatic door is a general term for door systems that meet the following conditions: after the control device in the door system recognizes the switch signal, the motor in the door system drives the switch of the door leaf of the door system for people to pass.
- Automatic doors include smooth automatic doors, revolving automatic doors, swing automatic doors or folding automatic doors, etc.
- the gate is installed at the entrance and exit of the personnel passage to form a passage of personnel between the fuselage and the fuselage or between the fuselage and other building facilities. The gate is used to make the personnel follow the designated It is an executive device of an entrance and exit control system with orderly passage, and its door wings are driven and switched by a motor.
- the closed-loop control technology of the FOC system of PMSM can realize the precise control of the opening and closing time of the gate wing or the automatic door leaf, but in order to realize the three-loop control of the FOC system, it is necessary to have a photoelectric encoder or a magnetoelectric encoder equipped with The position sensor with higher accuracy can only be realized by collecting the motor running state signal, which is expensive and not easy to realize.
- low-precision position sensors such as in-position contact switches or photoelectric switches can be configured. Controller) or the control unit of the low-end single-chip microcomputer, the control unit adjusts the voltage or current of the brush motor or stepper motor drive mechanism switch, so as to control the switching time of the mechanism such as the gate wing of the gate or the automatic door leaf.
- the above process uses open-loop control to control brushed motors or stepper motors.
- the position signal collected by a low-precision position sensor is used as the input of the motor control, the switching time of the motor drive mechanism will not be as expected. There is a deviation in the switching time of the mechanism, resulting in inaccurate switching time of the mechanism.
- an embodiment of the present application provides a method for determining switching time of a mechanism driven by a motor, which enables accurate switching time of the motor-driven driving mechanism when open-loop control is adopted for the motor of the driving mechanism.
- the embodiment of the present application also provides a system for determining the switching time of a mechanism driven by a motor, and when the system adopts open-loop control for the motor of the driving mechanism, the switching time of the motor-driven driving mechanism is accurate.
- An embodiment of the present application provides a method for determining switching time of a mechanism driven by a motor, the method comprising:
- the mechanism switching time is determined according to the position signal of the mechanism movement collected by the position sensor, and the determined mechanism switching time is compared with the set expected switching time to obtain the switching time error value;
- the final control amount is obtained after the compensation control amount is added to the set control amount, and when the motor drive mechanism is switched on and off next time, the motor drive mechanism switch is controlled according to the final control amount.
- the determining the switch time of the mechanism according to the position signal of the mechanism movement collected by the position sensor includes:
- the starting time of the motor and the closing time when the position sensor recognizes that the motor drive mechanism moves to the closing position are obtained, and the difference between the obtained starting time of the motor and the obtained closing time is used as the determined switching time of the mechanism.
- the comparing the determined switching time of the mechanism with the set expected switching time to obtain the switching time error value includes:
- the determined switching time of the mechanism is compared with the set expected switching time at the corresponding switching speed gear, and the difference between the two is used as the obtained switching time error value at the corresponding switching speed gear.
- the calculating and obtaining the compensation control amount according to the switching time error value includes: calculating and obtaining the compensation control amount according to the switching time error value based on the proportional-integral PI control mode of the motor;
- the final control amount obtained by adding the compensation control amount to the set control amount includes:
- the sum of the set control amount and the compensation control amount is taken as the obtained final control amount.
- the method before controlling the switch of the motor drive mechanism according to the final control amount, the method further includes:
- controlling the switch of the motor drive mechanism according to the final control amount includes:
- the corresponding pulse width modulation PWM signal is output to control the switch of the motor drive mechanism.
- An embodiment of the present application provides a system for determining switching time by a mechanism driven by a motor, including: a position sensor, a switching time calculation unit, a time control unit, and a modulation unit, wherein,
- Position sensor used to collect the position signal of the movement of the mechanism
- a switching time calculation unit configured to determine the switching time of the mechanism according to the position signal of the movement of the mechanism collected by the position sensor, and compare the determined switching time of the mechanism with the set expected switching time to obtain a switching time error value
- the time control unit is used to calculate and obtain the compensation control amount according to the switching time error value, and obtain the final control amount after increasing the compensation control amount on the basis of the set control amount;
- the modulation unit is used to control the switch of the motor drive mechanism according to the final control amount when the motor drive mechanism is switched on and off next time.
- the on-off time calculation unit is specifically used to obtain the start-up time of the motor and the turn-off time when the position sensor recognizes that the motor drive mechanism moves to the off position, and compares the obtained start-up time of the motor with the start-up time of the motor. The difference between the obtained closing times is used as the determined switching time of the mechanism.
- the switch time calculation unit is specifically configured to compare the determined switch time of the mechanism with the set expected switch time at the corresponding switch speed gear, and use the difference between the two as the obtained corresponding switch Switching time error value in speed gear.
- the time control unit is specifically used for a proportional-integral PI control method based on the motor, and the compensation control amount is calculated according to the switching time error value;
- the time control unit is specifically configured to take the sum of the set control amount and the compensation control amount as the obtained final control amount.
- An embodiment of the present application provides a device for determining switching time by a mechanism driven by a motor, the device comprising:
- the error determination module is used for determining the switching time of the mechanism according to the position signal of the movement of the mechanism collected by the position sensor during the switching process of the motor drive mechanism, and comparing the determined switching time of the mechanism with the set expected switching time to obtain the switching time error value;
- the calculation module is used to calculate the compensation control amount according to the switching time error value
- the control module is configured to increase the compensation control amount on the set control amount to obtain the final control amount, and control the motor drive mechanism switch according to the final control amount when the motor drive mechanism is switched on and off next time.
- An embodiment of the present application provides a non-transitory computer-readable storage medium storing computer instructions, the computer instructions being used to cause the computer to execute the method for determining switching time of a mechanism driven by a motor according to any one of the foregoing.
- the embodiment of the present application provides an electronic device, including:
- the processor is configured to implement any one of the aforementioned method steps for determining the switching time of the mechanism driven by the motor when executing the program stored in the memory.
- the switching time of the mechanism is determined according to the position signal collected by the position sensor, and is compared with the set expected switching time to obtain the switching time error value; according to the switching time error value calculation
- the compensation control amount is obtained; the final control amount is obtained by increasing the compensation control amount on the basis of the set control amount, and when the motor drive mechanism is switched on and off next time, the motor drive mechanism is controlled to switch on and off according to the final control amount. Therefore, when the open-loop control of the motor of the driving mechanism is adopted in the embodiment of the present application, the situation that the switching time of the mechanism is determined to be inaccurate due to the inaccurate position signal collected by the low-precision sensor is considered. In an accurate situation, when the motor drive mechanism is switched on and off next time, the control amount of the control motor is compensated, so that the switching time of the motor drive mechanism gradually tends to be accurate.
- FIG. 1 is a flowchart of a method for determining switching time by a mechanism driven by a motor provided by an embodiment of the present application
- FIG. 2 is a schematic structural diagram of a system for determining switching time by a motor-driven mechanism according to an embodiment of the present application
- FIG. 3 is a schematic diagram of an example of a method for determining a switching time by a mechanism driven by a motor provided by an embodiment of the present application;
- FIG. 4 is a schematic diagram of a motor open-loop control system provided by an embodiment of the present application.
- FIG. 5 is a flowchart of a method for calculating the switching time of a mechanism by a switching time calculating unit provided by an embodiment of the present application;
- FIG. 6 is a graph showing the time change of the door opening and closing of the left and right channels under the method provided by the embodiment of the present application;
- Fig. 7 is the time change curve diagram of the door opening and closing time of the left and right two channels under the traditional method
- FIG. 8 is a graph showing the change of the switching time error of the left and right channels under the method of the present application and the conventional method.
- the mechanism is the door leaf of the automatic door or the door wing of the access gate
- the automatic door includes two left and right door leaves or the gate includes
- two brushed motors or stepper motors are required to drive the left and right door leaves or door wings to open and close, respectively.
- the opening and closing times of the wings are different, and the opening and closing times of the left and right door leaves or door wings cannot be synchronized, which greatly affects the user experience.
- the switching time of the mechanism is determined according to the position signal of the movement of the mechanism collected by the position sensor, and the switching time error value is obtained by comparing it with the set expected switching time; The time error value is calculated to obtain the compensation control amount; the final control amount is obtained by increasing the compensation control amount on the basis of the determined next motor control amount, and when the motor drive mechanism is switched on and off next time, the motor drive mechanism is controlled according to the final control amount.
- the mechanism is the door leaf of the automatic door or the door wing of the access gate
- the brushed motor or stepper motor drives the left and right door leaves or door wings respectively, and the switching time is accurate, which tends to be the expected switching time, so the switching time of the left and right door leaves or door wings is synchronized, which improves the user experience.
- FIG. 1 is a flowchart of a method for determining switching time by a motor-driven mechanism provided by an embodiment of the present application.
- the method for determining switching time by a motor-driven mechanism provided by an embodiment of the present application can be applied to any switch with a control motor-driven mechanism.
- Capable electronic equipment for example, can be applied to the controller in automatic doors or gates.
- the specific steps include:
- Step 101 During the current switching process of the motor drive mechanism, the mechanism switching time is determined according to the position signal of the mechanism movement collected by the position sensor, and the determined mechanism switching time is compared with the set expected switching time to obtain the switching time error value;
- Step 102 calculating the compensation control amount according to the switching time error value
- Step 103 After the compensation control amount is added to the set control amount, a final control amount is obtained, and when the motor driving mechanism is switched on and off next time, the motor driving mechanism is controlled to switch on and off according to the final control amount.
- the mechanism switch in this application may refer to the mechanism opening or the mechanism closing. Since the mechanism opening and the mechanism closing have the same principles, the following description is convenient, and only the mechanism closing is taken as an example for description, and the same is true for the mechanism opening. available, and will not be repeated here.
- the position sensor may be any device capable of outputting different position signals according to different positions of the mechanism, such as the aforementioned contact switch, photoelectric switch, and the like. It can be understood that the position of the mechanism is different when it is turned on and when it is turned off, so the position signal output by the position sensor is different, that is, the execution body of the method for determining the switching time of the motor-driven mechanism provided by the present application can be based on the output of the position sensor. The position signal judges whether the mechanism has been closed, and then determines the switching time of the mechanism.
- the expected switching time may refer to the time elapsed from when the mechanism is expected to be closed until the mechanism is closed.
- the expected switching time may be the time set by the user according to actual experience or needs, or it may be calculated according to preset rules.
- the average value of the mechanism switching time when the mechanism is switched on and off multiple times in the history of the mechanism is used as the expected mechanism switching time.
- determining the switching time of the mechanism according to the position signal of the mechanism movement collected by the position sensor may include:
- comparing the determined switching time of the mechanism with the set expected switching time to obtain the switching time error value may include:
- the error value of the switching time at the corresponding switching speed gear is obtained. In the specific comparison, it is the difference between the determined switching time of the mechanism and the expected switching time under the set corresponding switching speed gear.
- the set expected switching time may actually be the switching time for different switching speed gears according to user requirements.
- the control compensation of the motor drive mechanism by the method is established under different switching speed gears of the mechanism, so that the compensation can be made more accurate.
- the different switching speed gears of the mechanism reflect the different switching speed modes of the mechanism during normal use. Under different switching speed modes, the mechanism will switch at different speeds.
- the switching speed gears can be set to multiple gears, and the gears
- the number of bits can vary according to different application scenarios, such as 1 to 10 files, 1 to 20 files, and so on.
- step 102 the larger the switching time error is, the less the control of the mechanism in the current switching process of the motor drive mechanism can be considered to meet expectations, that is, the greater the difference between the actual control amount set for the motor and the control amount that can meet the expectations, Therefore, the compensation control amount should be larger at this time.
- the way of calculating the compensation control amount according to the switching time error value may vary according to different application scenarios, but it should be satisfied that the switching time error value is positively correlated with the calculated compensation control amount.
- the switching time error value can be input into any increasing function, and the output of the increasing function can be used as the compensation control amount.
- calculating and obtaining the compensation control amount according to the switching time error value may include: calculating and obtaining the compensation control amount according to the switching time error value based on the proportional integral (PI) control mode of the motor.
- PI proportional integral
- the operation process of the motor drive mechanism can be divided into a start-up phase, a normal operation phase, a stop phase and a fault phase, and the applicable phase of the method is the normal operation phase of the motor drive mechanism.
- the set control variable may refer to a parameter set for the motor and used to control the motor driving mechanism, and the control variable is used to control the switching speed of the mechanism during the switching process of the motor driving mechanism. Change the mechanism switching time when the motor drive mechanism is switched on and off.
- the control variable may include one or more of the following parameters: current, voltage, pulse frequency, pulse width, and duty cycle when the motor power is supplied.
- the final control amount obtained by increasing the compensation control amount on the basis of the set control amount refers to changing the set control amount, and making the final control amount obtained after the change equal to the set control amount in value and the sum of the compensation control amount. Therefore, although the final control amount is obtained by adding the compensation control amount on the basis of the set control amount, since the compensation control amount may be a negative value, the final control amount is not necessarily greater than the set control amount. If the compensation control amount is a positive value, the final control amount obtained after increasing the compensation control amount is greater than the set control amount; if the compensation control amount is a negative value, the final control amount obtained after increasing the compensation control amount is smaller than the set control amount amount of control. In an implementation manner, adding the compensation control amount on the basis of the set control amount to obtain the final control amount may include: obtaining the final control amount as the sum of the set control amount and the compensation control amount.
- the switch of the motor drive mechanism before controlling the switch of the motor drive mechanism according to the final control amount, it may further include:
- the maximum control amount may refer to the expected maximum value of the control amount that can make the motor work normally, that is, theoretically, when the control amount set for the motor is greater than the maximum control amount, the motor may not operate normally.
- the maximum control amount can be set by the user according to experience or actual needs, or calculated according to preset rules. Exemplarily, it can be the minimum value of the control amount set when the motor is abnormal in the statistical history, and the minimum value is set. as the maximum amount of control.
- control amount of the switch of the motor drive mechanism can be prevented from exceeding the bearing range of the motor, and the safety of the motor can be ensured.
- controlling the switch of the motor drive mechanism according to the final control amount may include:
- the corresponding pulse width modulation (PWM, Pluse Width Modulation) signal is output to control the switch of the motor drive mechanism.
- FIG. 2 is a schematic structural diagram of a system for determining switching time by a mechanism driven by a motor provided in an embodiment of the present application, including: a position sensor, a switching time calculation unit, a time control unit, and a modulation unit, wherein,
- Position sensor used to collect the position signal of the movement of the mechanism
- the switching time calculation unit is used to determine the switching time of the mechanism according to the position signal of the movement of the mechanism collected by the position sensor, and compare the determined switching time of the mechanism with the set expected switching time to obtain the switching time error value;
- the time control unit is used to calculate and obtain the compensation control amount according to the switching time error value, and obtain the final control amount after increasing the compensation control amount on the basis of the set control amount;
- the modulation unit is used to control the switch of the motor drive mechanism according to the final control amount when the motor drive mechanism is switched on and off next time.
- the action of the mechanism is realized by the motor driven by the motor drive core.
- the position sensor can collect the position of the drive core, that is, the position signal of the mechanism movement.
- the switching time calculation unit is also used to obtain the starting time of the motor and the closing time when the position sensor recognizes that the motor drive mechanism moves to the closing position, and compares the obtained starting time of the motor with the obtained closing time. The difference is used as the determined switching time of the mechanism.
- the switching time calculation unit is further configured to compare the determined switching time of the mechanism with the set expected switching time at the corresponding switching speed gear to obtain the switching time error value at the corresponding switching speed gear. In the specific comparison, it is the difference between the determined switching time of the mechanism and the expected switching time under the set corresponding switching speed gear.
- the time control unit is also used for calculating the compensation control amount based on the switch time error value based on the proportional integral control mode of the motor.
- the modulation unit is also used for taking the sum of the set control amount and the compensation control amount as the obtained final control amount.
- FIG. 3 is a schematic diagram of an example of a method for determining a switching time by a mechanism driven by a motor provided by an embodiment of the present application, including:
- Step 301 According to the position signal of the movement of the mechanism collected by the position sensor, the switching time calculation unit calculates the door opening and closing time t n (k) with the k-th switching speed gear position n;
- n is any one of all switching speed gears, and k is a positive integer;
- Step 302 Set the expected door opening and closing time t* n (k) with the kth opening and closing speed gear as n, and set the expected door opening and closing time t*n ( k) and the door opening and closing time tn (k) in the time comparator. Under the action, the switching time error value ⁇ t n (k) is obtained;
- Step 303 According to the switching time error value ⁇ t n (k), under the action of the time control unit, calculate the control compensation amount s c (k+1) with the next switching speed gear n, and calculate the time in the middle of the normal operation stage of the motor. The summation of the control amount s(t) of t and the motor control compensation amount s c (k) obtains the final control amount s l (t) of the motor;
- Step 304 According to the final control amount s l (t) of the motor, the modulation unit outputs the PWM signal required by the mechanism to control the motor.
- the opening and closing time calculation unit of step 301 calculates the kth door opening and closing time of the mechanism according to the starting time of the motor and the stopping time of the motor.
- the different switching speed gears in step 301 reflect the different switching speed modes of the mechanism during normal use.
- the speed gears are 1 to 10 gears.
- the setting of the speed gears It can also be different, for example, the speed gear can be 1-20 gears, and it can also be 0.1-1.5 gears.
- the expected door opening and closing time t* n (k) in step 302 refers to the opening and closing time set value for different opening and closing speed gears according to user requirements.
- the time control unit in step 302 is designed according to the PI control method, but the design of the time control unit is not limited to the PI control algorithm, and any control algorithm that can eliminate errors is applicable.
- the embodiment of the present application solves the problem that when there are multiple mechanisms, such as two left and right door wings of a gate or two left and right door leaves of an automatic door, when different motors drive different mechanisms, the switch of different mechanisms cannot be made. Time synchronization problem.
- the embodiments of the present application are applied in the case where the position sensor used is not high in accuracy when the motor adopts an open-loop control mode.
- the schematic diagram of the motor open-loop control system provided by the embodiment of the present application is shown in FIG. 4 , including: a modulation unit, an H-bridge drive circuit, a time control unit, a switching time calculation unit, a position sensor, a DC brush motor, and a motor core.
- FIG. 4 the specific implementation process of the entire embodiment of the present application is described, and the embodiment of the present application is described in detail by taking the door wing of the gate as an example as the mechanism.
- Step 1 According to the position signal of the movement of the mechanism collected by the position sensor, the switching time calculation unit calculates the switching time t n (k) when the k-th switching speed gear is n, and the specific implementation process of the switching time calculation unit is shown in the figure. 5 shown.
- the opening/closing command of the gate is first received and the motor state is updated, and then it is judged whether the motor starts to start. If the motor starts, the timer starts to count, and the position signal of the position sensor is obtained. The signal updates the motor status in real time, and then judges whether the motor has stopped. If the motor has stopped, it means that the kth door opening/closing action has been completed. Stop the timer and assign the value to t n (k), which is the reading of the timer. Assign the value to t n (k), the timer is cleared, and the calculation of the door opening and closing time is completed.
- Step 2 Set the expected switching time t* n (k) of the k-th switching speed gear as n.
- the expected switching time value is set according to the user's needs.
- Step 3 According to the time error ⁇ t n (k), under the action of the time control unit, calculate the control compensation amount s c (k+1) of the motor with the next switching speed gear n, where the time control unit is based on PI
- the control gain can be set according to the user's experience or actual needs.
- the working process of the motor is roughly divided into: start-up stage, normal operation stage, stop stage, and fault stage.
- the brushed DC motor is selected, and the control value of the motor is the voltage value, that is, the voltage value output by the motor power supply, so the amplitude of the final control value s l (t) of the motor at the current moment is lower than
- Step 4 According to the change of the final control amount s l (t) of the motor, the final control amount of the motor is modulated by the modulation unit to generate a driving signal, that is, the PWM signal controls the operation of the motor, and the motor drives the gate wing of the gate to open and close.
- FIG. 5 is a flow chart of the method for obtaining the switching time of the mechanism by the switching time calculation unit provided by the embodiment of the present application.
- the mechanism adopts a gate as an example.
- the switching time calculation unit is a main part of the controller that controls the motor.
- the specific implementation is:
- Step 501 receive the door opening/closing command of the gate and update the motor state
- Step 502 determine whether the motor starts to start, if so, execute step 503; if not, return to step 501 to continue execution;
- Step 503 the set timer starts timing, obtains the position signal of the position sensor, and updates the motor state in real time according to the position signal;
- Step 504 determine whether the motor has stopped, if so, go to step 505; if not, return to step 503 to continue to execute;
- Step 505 Determine that the k-th door opening/closing action of the gate wing of the gate has been completed, stop the timer, assign the value to t n (k), clear the timer, and complete the calculation of the switching time of the mechanism.
- a comparison test is carried out by using the method provided by the embodiment of the present application and the traditional switching method of the gate wing of the gate driven by the motor.
- the test environment adopts the double-channel gate wing for door opening and closing test.
- the two channels are divided into left channel and right channel.
- the motor is selected as a DC brush motor
- the transmission mechanism is selected as a sheave transmission mechanism
- the position sensor is selected as a photoelectric switch to control the control of the motor.
- the main control chip of the controller selects a controller chip with a main frequency of 48MHz, and the door opening and closing time is set to 1.4s according to user requirements, and the time error of the left and right channels is plus or minus 0.1s.
- the test results are shown in Figure 6, Figure 7 and Figure 8. 6 is a graph showing the time change of the door opening and closing time of the left and right two channels using the method provided by the embodiment of the present application; The change curve of the switching time error of the left and right channels under the application method and the traditional method.
- the time error of the left and right channels has been reduced to within 0.1s, and the left and right channels are not synchronized.
- the phenomenon has been significantly improved to meet the needs of users.
- the time error of the left and right channels fluctuates continuously, and the problem of different door opening and closing times of the left and right channels is not effectively solved.
- the time error curve in Figure 8 it can be seen more intuitively.
- the time error gradually approaches zero from the maximum error of 0.8 seconds, which can effectively adjust the time error of the left and right channels. It fluctuates between 0.5s and the time error of the left and right channels cannot be effectively adjusted.
- the motor control method for controlling the opening and closing time of the gate in the embodiment of the present application is effective.
- the embodiment of the present application also provides a device for determining switching time by a mechanism driven by a motor, the device comprising:
- the error determination module is used for determining the switching time of the mechanism according to the position signal of the movement of the mechanism collected by the position sensor during the switching process of the motor drive mechanism, and comparing the determined switching time of the mechanism with the set expected switching time to obtain the switching time error value;
- the calculation module is used to calculate the compensation control amount according to the switching time error value
- the control module is configured to increase the compensation control amount on the set control amount to obtain the final control amount, and control the motor drive mechanism switch according to the final control amount when the motor drive mechanism is switched on and off next time.
- Embodiments of the present application further provide a non-transitory computer-readable storage medium storing computer instructions, the computer instructions being used to cause the computer to perform any one of the aforementioned determinations by the motor-driven mechanism method of switching time.
- the embodiment of the present application also provides an electronic device, including:
- the mechanism switching time is determined according to the position signal of the mechanism movement collected by the position sensor, and the determined mechanism switching time is compared with the set expected switching time to obtain the switching time error value;
- the final control amount is obtained after the compensation control amount is added to the set control amount, and when the motor drive mechanism is switched on and off next time, the motor drive mechanism switch is controlled according to the final control amount.
- the memory mentioned in the above electronic device may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory.
- RAM Random Access Memory
- NVM non-Volatile Memory
- the memory may also be at least one storage device located away from the aforementioned processor.
- the above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processor, DSP), dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
- CPU Central Processing Unit
- NP Network Processor
- DSP Digital Signal Processor
- ASIC Application Specific Integrated Circuit
- FPGA Field-Programmable Gate Array
- FPGA Field-Programmable Gate Array
- the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
- software it can be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
- the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
- the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
- the usable media may be magnetic media (e.g., floppy disk, hard disk, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., Solid State Disk (SSD)), and the like.
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Control Of Electric Motors In General (AREA)
- Control Of Direct Current Motors (AREA)
Abstract
Description
Claims (13)
- 一种由电机驱动的机构确定开关时间的方法,其特征在于,所述方法包括:本次电机驱动机构开关过程中,根据位置传感器采集的机构运动的位置信号确定机构开关时间,将所述确定的机构开关时间与设置的期望开关时间比较,得到开关时间误差值;根据开关时间误差值计算得到补偿控制量;在所设置的控制量上增加所述补偿控制量后得到最终控制量,在下次电机驱动机构开关时,根据最终控制量控制电机驱动机构开关。
- 如权利要求1所述的方法,其特征在于,所述根据位置传感器采集的机构运动的位置信号确定机构开关时间包括:获取电机的启动时间,及获取位置传感器识别到电机驱动机构运动至关闭位置时的关闭时间,将所获取的电机的所述启动时间与获取的所述关闭时间之差作为所确定的机构开关时间。
- 如权利要求1所述的方法,其特征在于,所述将所述确定的机构开关时间与设置的期望开关时间比较,得到开关时间误差值包括:将所述确定的机构开关时间与设置的对应开关速度档位下的期望开关时间比较,将两者之差作为得到的对应开关速度档位下的开关时间误差值。
- 如权利要求1所述的方法,其特征在于,所述根据开关时间误差值计算得到补偿控制量包括:基于电机的比例积分PI控制方式,根据开关时间误差值计算得到补偿控制量;所述在所设置的控制量上增加该补偿控制量后得到最终控制量包括:将所设置的控制量,与所述补偿控制量之和作为得到的最终控制量。
- 如权利要求1所述的方法,其特征在于,在根据最终控制量控制电机驱动机构开关之前,还包括:判断得到的最终控制量是否大于设置的最大控制量,如果否,则执行所述根据最终控制量控制电机驱动机构开关的步骤;如果是,则根据设置的最大控制量控制电机驱动机构开关。
- 如权利要求1所述的方法,其特征在于,所述根据最终控制量控制电机驱动机构开关包括:根据最终控制量,输出对应的脉冲宽度调制PWM信号,控制电机驱动机 构开关。
- 一种由电机驱动的机构确定开关时间的系统,其特征在于,包括:位置传感器、开关时间计算单元、时间控制单元及调制单元,其中,位置传感器,用于采集机构运动的位置信号;开关时间计算单元,用于根据位置传感器采集的机构运动的位置信号确定机构开关时间,将所述确定的机构开关时间与设置的期望开关时间比较,得到开关时间误差值;时间控制单元,用于根据开关时间误差值计算得到补偿控制量,在所设置的控制量的基础上增加该补偿控制量后得到最终控制量;调制单元,用于在下次电机驱动机构开关时,根据最终控制量控制电机驱动机构开关。
- 如权利要求7所述的系统,其特征在于,所述开关时间计算单元,具体用于获取电机的启动时间,及获取位置传感器识别到电机驱动机构运动至关闭位置时的关闭时间,将所获取的电机的启动时间与获取的关闭时间之差作为所确定的机构开关时间。
- 如权利要求7所述的系统,其特征在于,所述开关时间计算单元,具体用于将所述确定的机构开关时间与设置的对应开关速度档位下的期望开关时间比较,将两者之差作为得到的对应开关速度档位下的开关时间误差值。
- 如权利要求7所述的系统,其特征在于,所述时间控制单元,具体用于基于电机的比例积分PI控制方式,根据开关时间误差值计算得到补偿控制量;所述时间控制单元,具体用于用于将所设置的控制量与所述补偿控制量之和作为得到的最终控制量。
- 一种由电机驱动的机构确定开关时间的装置,其特征在于,所述装置包括:误差确定模块,用于本次电机驱动机构开关过程中,根据位置传感器采集的机构运动的位置信号确定机构开关时间,将所述确定的机构开关时间与设置的期望开关时间比较,得到开关时间误差值;计算模块,用于根据开关时间误差值计算得到补偿控制量;控制模块,用于在所设置的控制量上增加所述补偿控制量后得到最终控 制量,在下次电机驱动机构开关时,根据最终控制量控制电机驱动机构开关。
- 一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行根据权利要求1-6中任一项所述的方法。
- 一种电子设备,其特征在于,包括:存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的程序时,实现权利要求1-6任一所述的方法步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011300386.X | 2020-11-19 | ||
CN202011300386.XA CN112491320A (zh) | 2020-11-19 | 2020-11-19 | 一种由电机驱动的机构确定开关时间的方法及系统 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022105885A1 true WO2022105885A1 (zh) | 2022-05-27 |
Family
ID=74931870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/131833 WO2022105885A1 (zh) | 2020-11-19 | 2021-11-19 | 一种由电机驱动的机构确定开关时间的方法及系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112491320A (zh) |
WO (1) | WO2022105885A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112491320A (zh) * | 2020-11-19 | 2021-03-12 | 杭州海康威视数字技术股份有限公司 | 一种由电机驱动的机构确定开关时间的方法及系统 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012229584A (ja) * | 2011-04-27 | 2012-11-22 | Tsubaki Emerson Co | 自動扉制御装置、自動扉システム、自動扉制御方法及び自動扉調整方法 |
CN108988693A (zh) * | 2018-08-01 | 2018-12-11 | 中控智慧科技股份有限公司 | 一种有刷电机参数控制方法、装置及设备 |
CN110336517A (zh) * | 2019-07-03 | 2019-10-15 | 东方久乐汽车电子(上海)股份有限公司 | 一种基于到位运行时间的隐藏门把手控制方法 |
CN112491320A (zh) * | 2020-11-19 | 2021-03-12 | 杭州海康威视数字技术股份有限公司 | 一种由电机驱动的机构确定开关时间的方法及系统 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101985934B1 (ko) * | 2012-11-23 | 2019-06-05 | 엘지디스플레이 주식회사 | Pwm 방식의 dc-dc 변환기 |
CN107346951B (zh) * | 2017-07-03 | 2020-06-30 | 广东威灵电机制造有限公司 | 永磁同步电机系统的弱磁控制方法及装置 |
CN110391773B (zh) * | 2019-07-03 | 2021-08-24 | 东方久乐汽车电子(上海)股份有限公司 | 一种带有自学习功能的隐藏门把手闭环控制方法 |
CN111740667A (zh) * | 2020-07-21 | 2020-10-02 | 重庆凡越自动化科技有限公司 | 基于永磁同步直线电机的自动门控制方法及系统 |
-
2020
- 2020-11-19 CN CN202011300386.XA patent/CN112491320A/zh active Pending
-
2021
- 2021-11-19 WO PCT/CN2021/131833 patent/WO2022105885A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012229584A (ja) * | 2011-04-27 | 2012-11-22 | Tsubaki Emerson Co | 自動扉制御装置、自動扉システム、自動扉制御方法及び自動扉調整方法 |
CN108988693A (zh) * | 2018-08-01 | 2018-12-11 | 中控智慧科技股份有限公司 | 一种有刷电机参数控制方法、装置及设备 |
CN110336517A (zh) * | 2019-07-03 | 2019-10-15 | 东方久乐汽车电子(上海)股份有限公司 | 一种基于到位运行时间的隐藏门把手控制方法 |
CN112491320A (zh) * | 2020-11-19 | 2021-03-12 | 杭州海康威视数字技术股份有限公司 | 一种由电机驱动的机构确定开关时间的方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN112491320A (zh) | 2021-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7193387B1 (en) | System and method for motor speed estimation using hybrid model reference adaptive system | |
US6586898B2 (en) | Systems and methods of electric motor control | |
US7208897B2 (en) | Motion control system for barrier drive | |
WO2022242708A1 (zh) | 电机启动方法及可读存储介质 | |
CN108233788A (zh) | 基于幂指数趋近率的无刷直流电机滑模变结构控制方法 | |
WO2022105885A1 (zh) | 一种由电机驱动的机构确定开关时间的方法及系统 | |
CN109462352B (zh) | 电机控制方法、装置和计算机可读存储介质 | |
WO2006012990A1 (de) | Chirurgische maschine und verfahren zum steuern und/oder regeln einer chirurgischen maschine | |
CN102769420B (zh) | 电机启动的控制方法和装置 | |
US11606050B2 (en) | Method and system for controlling electric motor, and controller | |
CN108809199B (zh) | 变频器追踪电机转速的方法、装置及变频器 | |
WO2023109615A1 (zh) | 一种闸机同步控制系统及方法 | |
CN110460271A (zh) | 一种汽车电动尾门的电机转速平稳启动控制方法 | |
CN108964537A (zh) | 一种轨道客车电动门的控制方法及控制系统 | |
WO2023159908A1 (zh) | 电机启动控制方法 | |
CN105162375B (zh) | 屏蔽门控制系统参数自整定方法 | |
CN112713818B (zh) | 由直流有刷电机驱动运行的机构实现自锁的方法及系统 | |
CN110649855A (zh) | Pmsm伺服系统电流环系统 | |
CN112865640B (zh) | 电机的控制方法、装置及计算机可读存储介质 | |
Harashima et al. | A design method for digital speed control system of motor drives | |
CN114826036A (zh) | 一种可减小换相转矩脉动的无刷直流电机控制方法 | |
CN113359420A (zh) | 闸机控制方法、装置和系统及闸机 | |
CN102324890B (zh) | 电梯门机开关门到位转矩控制方法及电梯门机装置 | |
CN111365823A (zh) | 空调系统及空调系统的控制方法 | |
CN113169686B (zh) | 控制无刷永磁电机的方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21894032 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21894032 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21894032 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16.11.2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21894032 Country of ref document: EP Kind code of ref document: A1 |