WO2023071641A1 - Control method and apparatus for linear resonant actuator, and device and medium - Google Patents

Control method and apparatus for linear resonant actuator, and device and medium Download PDF

Info

Publication number
WO2023071641A1
WO2023071641A1 PCT/CN2022/120564 CN2022120564W WO2023071641A1 WO 2023071641 A1 WO2023071641 A1 WO 2023071641A1 CN 2022120564 W CN2022120564 W CN 2022120564W WO 2023071641 A1 WO2023071641 A1 WO 2023071641A1
Authority
WO
WIPO (PCT)
Prior art keywords
linear motor
voltage
current
vibrator
damping
Prior art date
Application number
PCT/CN2022/120564
Other languages
French (fr)
Chinese (zh)
Inventor
刘兵
刘钰佳
杨鑫峰
Original Assignee
歌尔股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202111290967.4A external-priority patent/CN113938082B/en
Application filed by 歌尔股份有限公司 filed Critical 歌尔股份有限公司
Publication of WO2023071641A1 publication Critical patent/WO2023071641A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P23/00Arrangements or methods for the control of AC motors characterised by a control method other than vector control
    • H02P23/14Estimation or adaptation of motor parameters, e.g. rotor time constant, flux, speed, current or voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P23/00Arrangements or methods for the control of AC motors characterised by a control method other than vector control
    • H02P23/20Controlling the acceleration or deceleration
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/02Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the kind of motor
    • H02P25/06Linear motors

Definitions

  • the present invention relates to the technical field of linear motors, in particular to a control method, a control device, equipment and a medium of a linear motor.
  • Linear Resonant Actuator has been widely used in various vibration occasions of electronic equipment due to its advantages of strong vibration, richness, crispness and low energy consumption.
  • LRA Linear Resonant Actuator
  • linear motors can achieve very rich and realistic vibration feedback.
  • the vibration of the linear motor is mainly achieved by driving the vibrator to generate acceleration.
  • the main purpose of the present invention is to provide a control method, control device, equipment and medium of a linear motor, aiming to solve the problem that the linear motor is difficult to accurately control the response time of the acceleration.
  • the present invention provides a method for controlling a linear motor, the method comprising:
  • the linear motor is controlled to vibrate.
  • the method further includes:
  • the driving voltage is updated using the equivalent voltage.
  • the obtaining an equivalent voltage based on the steady-state amplitude and the damping adjustment coefficient includes:
  • the damping adjustment coefficient Based on the steady-state amplitude, the damping adjustment coefficient and a first preset formula, an equivalent voltage amplitude is obtained; the first preset formula is:
  • u′ m is the equivalent voltage amplitude
  • a ref is the steady-state amplitude
  • k ⁇ is the damping adjustment coefficient
  • is the inherent damping coefficient of the linear motor
  • m is the vibrator mass of the linear motor
  • Bl is the magnetic field strength
  • r is the damping coefficient
  • R is the DC resistance of the coil
  • the equivalent voltage is obtained;
  • the second preset formula is:
  • u′ 1 (t) u′ m cos( ⁇ c t);
  • u′ 1 (t) is the equivalent voltage
  • t is the time
  • the method before acquiring the current speed of the vibrator of the linear motor, the method further includes:
  • the third preset formula is:
  • v(t) is the current velocity of the vibrator
  • Bl is the magnetic field strength
  • u fdb (t) is the voltage
  • ifdb (t) is the current current
  • t is the time.
  • the obtaining the damping adjustment coefficient based on the response time and the hardware parameters of the linear motor includes:
  • the hardware parameters of the linear motor and a fourth preset formula Based on the response time, the hardware parameters of the linear motor and a fourth preset formula, a damping adjustment coefficient is obtained; the fourth preset formula is:
  • k ⁇ is the damping adjustment coefficient
  • t rd is the response time
  • is the inherent damping coefficient of the linear motor
  • m is the vibrator mass of the linear motor
  • Bl is the magnetic field strength
  • k is the spring stiffness coefficient
  • r is the damping coefficient
  • R is the DC resistance of the coil.
  • the obtaining the target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient includes:
  • the target compensation voltage is obtained;
  • u c (t) is the target compensation voltage
  • k ⁇ is the damping adjustment coefficient
  • Bl is the magnetic field strength
  • r is the damping coefficient
  • R is the DC resistance of the coil
  • v(t) is the current speed of the vibrator.
  • the present invention also provides a control device for a linear motor, including:
  • a parameter acquisition module configured to acquire the current speed of the vibrator of the linear motor, the driving voltage, the steady-state amplitude and the response time of the target acceleration
  • a coefficient adjustment module configured to obtain a damping adjustment coefficient based on the response time and the hardware parameters of the linear motor
  • a compensation voltage determination module configured to obtain a target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient
  • a voltage determination module configured to obtain an actual driving voltage based on the driving voltage and the target compensation voltage
  • a vibration control module configured to control the vibration of the linear motor based on the actual driving voltage.
  • the present invention also provides an electronic device, comprising:
  • the drive module is connected to the linear motor, and the drive module is used to provide a drive voltage to the linear motor to drive the vibration unit to vibrate;
  • a processing module the processing module is used to obtain the current speed of the vibrator of the linear motor, the driving voltage, the steady-state amplitude of the target acceleration and the response time; based on the response time and the hardware parameters of the linear motor, obtain damping adjustment coefficient; based on the current speed of the vibrator and the damping adjustment coefficient, obtain a target compensation voltage; based on the driving voltage and the target compensation voltage, obtain an actual driving voltage; based on the actual driving voltage, control the vibration of the linear motor .
  • it also includes:
  • the voltage and current detection module is used to connect with the linear motor to detect the current current and current voltage of the linear motor and send them to the processing module;
  • the processing module is used to acquire the current voltage and the current current of the linear motor
  • the first preset formula is:
  • v(t) is the current velocity of the vibrator
  • Bl is the magnetic field strength
  • u fdb (t) is the voltage
  • ifdb (t) is the current current
  • t is the time.
  • the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a control program of a linear motor, and when the control program of the linear motor is executed by a processor, the linear motor as described above is realized. Motor control method.
  • the present invention provides a control method, control device, equipment and medium for a linear motor.
  • the method obtains the current speed of the vibrator of the linear motor, the driving voltage, and the target acceleration response time to be achieved; based on the response time and the hardware parameters of the linear motor, obtains a damping adjustment coefficient; based on the current speed of the vibrator and the obtained
  • the damping adjustment coefficient is used to obtain a target compensation voltage; based on the driving voltage and the target compensation voltage, an actual driving voltage is obtained; based on the actual driving voltage, vibration of the linear motor is controlled.
  • the present invention calculates the damping adjustment coefficient between the virtual damping required to achieve the desired target acceleration and response time and the original damping of the linear motor, and then constructs a suitable compensation voltage according to the vibrator speed and the damping adjustment coefficient, based on The actual voltage after compensation controls the vibration of the linear motor, thus changing the original damping characteristics of the motor, that is, the virtual damping control, so as to realize the accurate adjustment of the response time of the linear motor acceleration to achieve the response time of the target acceleration, which can be used to speed up the motor acceleration Fast response time for crisp, smear-free vibration feedback.
  • FIG. 1 is a schematic flowchart of a first embodiment of a control method for a linear motor of the present application
  • FIG. 2 is a schematic flowchart of a second embodiment of a control method for a linear motor of the present application
  • Fig. 3 is the acceleration response wave diagram of embodiment 1 to embodiment 3 of the present application.
  • Fig. 4 is the actual control voltage waveform diagram of embodiment 1 to embodiment 3 of the present application.
  • Fig. 5 is a schematic flow chart of the control device of the linear motor of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device of the present application.
  • Linear Resonant Actuator has been widely used in various vibration occasions of various consumer electronic devices due to its advantages of strong vibration, richness, crispness and low energy consumption.
  • LRA Linear Resonant Actuator
  • the motor can achieve very rich and realistic vibration feedback.
  • the vibrator will be damped to a certain extent during its motion, and this damping characteristic is an important factor affecting the acceleration response speed and amplitude.
  • the vibration of the linear motor is mainly achieved by driving the vibrator to generate acceleration.
  • the embodiment of the present application provides a linear motor control method, by calculating the damping adjustment coefficient between the virtual damping required to achieve the target acceleration and response time and the original damping of the linear motor, and then according to Vibrator speed and damping adjustment coefficient construct a suitable compensation voltage, control the vibration of the linear motor based on the actual voltage after compensation, thereby changing the original damping characteristics of the motor, that is, virtual damping control, so as to achieve accurate adjustment of the response time of the linear motor acceleration,
  • it can be used to speed up the response time of the motor acceleration to achieve crisp and tail-free vibration feedback.
  • FIG. 1 is a schematic flowchart of the first embodiment of the linear motor control method of the present application.
  • the method includes:
  • Step S101 acquiring the current speed, driving voltage, and response time of the target acceleration of the vibrator of the linear motor.
  • the execution body of the method is the processing module in the hardware circuit of the linear motor in the electronic device.
  • the processing module is connected with the driving module, and the driving module is connected with the linear motor through the power amplifier, so that the processing module can send a driving signal to the driving module, and the driving module provides voltage for the linear motor.
  • the processing module can obtain the target acceleration waveform data a(t) input by the user through the user interface of the electronic device, and the user can set a response time t rd for the target acceleration at any moment.
  • the current velocity of the vibrator can be expressed as v(t).
  • the current speed of the vibrator can be detected and fed back by the processing module according to the speed detection element in the linear motor.
  • the current speed of the vibrator can be obtained according to the current current fed back by the current detection module of the linear motor and the current voltage fed back by the voltage detection module.
  • step S101 it also includes:
  • Step S10 acquiring the current voltage and the current current of the linear motor
  • Step S20 Obtain the current speed of the vibrator based on the current voltage, the current current and a third preset formula
  • the third preset formula is:
  • v(t) is the current velocity of the vibrator
  • Bl is the magnetic field strength
  • u fdb (t) is the voltage
  • ifdb (t) is the current current
  • t is the time.
  • the current speed of the vibrator can be obtained by calculating in real time the current current and the current voltage fed back by the current detection module and the voltage detection module.
  • Step S102 Obtain a damping adjustment coefficient based on the response time and the hardware parameters of the linear motor.
  • the hardware parameters are the parameters of the drive circuit hardware of the linear motor, such as: the vibrator mass m of the linear motor, the magnetic field strength Bl, the spring stiffness coefficient k, the damping coefficient r, and the coil DC resistance R.
  • the damping adjustment coefficient is the ratio between the virtual damping coefficient and the damping adjustment coefficients k and ⁇ .
  • u(t) is the driving voltage
  • x(t) is the displacement
  • v(t) is the velocity
  • a(t) is the acceleration.
  • the response time is obtained as:
  • the steady-state amplitude of the acceleration response is:
  • the intrinsic damping coefficient ⁇ of the system is given by the expression It is determined that the larger the intrinsic damping coefficient, the shorter the response time of the system acceleration response, but the smaller the steady-state amplitude; the smaller the damping, the longer the response time of the system acceleration response, but the larger the steady-state amplitude.
  • the actual design of the motor needs to combine the needs of the two, and compromise the design of the inherent damping coefficient ⁇ .
  • the actual damping coefficient of the system can be realized by means of virtual damping control.
  • the damping coefficient of the system can be adjusted through voltage compensation, that is, the virtual damping coefficient can be adjusted as needed, and the dynamic adjustment of the motor acceleration response time and steady-state amplitude can be realized. If the user pays more attention to the response time t rd , then increase the virtual damping coefficient; if the user pays more attention to the steady-state amplitude a m , then adjust the virtual damping coefficient smaller.
  • the damping adjustment coefficient k ⁇ can be obtained according to the response time t rd input by the user and the hardware parameters of the linear motor. That is, the ratio between the virtual damping coefficient and the intrinsic damping coefficient.
  • step S102 specifically includes:
  • the hardware parameters of the linear motor and a fourth preset formula Based on the response time, the hardware parameters of the linear motor and a fourth preset formula, a damping adjustment coefficient is obtained; the fourth preset formula is:
  • k ⁇ is the damping adjustment coefficient
  • t rd is the response time
  • is the inherent damping coefficient of the linear motor
  • m is the vibrator mass of the linear motor
  • Bl is the magnetic field strength
  • k is the spring stiffness coefficient
  • r is the damping coefficient
  • R is the DC resistance of the coil.
  • Step S103 Obtain a target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient.
  • the target compensation voltage is the compensation voltage required by the linear motor to achieve the virtual damping required by the response time t rd .
  • the target compensation voltage can be obtained based on the current speed of the vibrator, the damping adjustment coefficient and a fifth preset formula; the fifth preset formula is:
  • u c (t) is the target compensation voltage
  • k ⁇ is the damping adjustment coefficient
  • Bl is the magnetic field strength
  • r is the damping coefficient
  • R is the DC resistance of the coil
  • v(t) is the current speed of the vibrator.
  • Step S104 Obtain an actual driving voltage based on the driving voltage and the target compensation voltage.
  • Step S105 controlling the linear motor to vibrate based on the actual driving voltage.
  • the target compensation voltage is
  • the driving voltage is Driven by this driving voltage
  • the response time of the acceleration of the linear motor is:
  • the damping adjustment coefficient k ⁇ can be calculated according to the response time t rd required by the target acceleration and the hardware parameters of the linear motor, that is, for the linear motor to achieve For this response time t rd , the virtual damping coefficient of the linear motor system should be k ⁇ times the intrinsic damping coefficient ⁇ of the system.
  • this embodiment adjusts the damping coefficient of the system through voltage compensation, that is, adjusts the virtual damping coefficient as needed Therefore, the coefficient k ⁇ can be adjusted according to the vibrator velocity v(t) and damping, using The target compensation voltage u c (t) is calculated, and the compensation voltage is compensated to the driving voltage, so that the actual response time of the linear motor when vibrating is t rd .
  • control method provided by this embodiment can be used, and t rd can be set to a small value, such as 0.01s, to achieve fast start-up of the linear motor, no tailing, and a better vibration feeling Crisp effect.
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for controlling a linear motor of the present application.
  • the method includes the following steps:
  • Step S201 acquiring the current speed, driving voltage, and response time of the target acceleration of the vibrator of the linear motor.
  • Step S202 Obtain a damping adjustment coefficient based on the response time and the hardware parameters of the linear motor.
  • Step S203 If the steady-state amplitude input by the user is received, an equivalent voltage is obtained based on the steady-state amplitude, the damping adjustment coefficient, and the hardware parameters.
  • the user can input the steady-state amplitude a ref of the target acceleration to the processing module through the user interface of the electronic device, or the user can also input the target acceleration waveform to the processing module through the user interface of the electronic device, and the processing module can analyze the Acceleration waveform, so as to obtain the steady-state amplitude a ref .
  • the processing module After the processing module obtains the steady-state amplitude a ref , it can obtain an equivalent electric current based on the steady-state amplitude and the damping adjustment coefficient.
  • step S203 includes: obtaining an equivalent voltage amplitude based on the steady-state amplitude, the damping adjustment coefficient, and a first preset formula; the first preset formula is:
  • u′ m is the equivalent voltage amplitude
  • a ref is the steady-state amplitude
  • k ⁇ is the damping adjustment coefficient
  • is the inherent damping coefficient of the linear motor
  • m is the vibrator mass of the linear motor
  • Bl is the magnetic field strength
  • r is the damping coefficient
  • R is the DC resistance of the coil
  • the equivalent voltage is obtained;
  • the second preset formula is:
  • u′ 1 (t) u′ m cos( ⁇ c t);
  • u′ 1 (t) is the equivalent voltage
  • t is the time
  • Step S204 updating the driving voltage by using the equivalent voltage.
  • Step S205 Obtain an actual driving voltage based on the driving voltage and the target compensation voltage.
  • Step S206 Based on the actual driving voltage, control the vibration of the linear motor.
  • the target compensation voltage is
  • the driving voltage is Driven by this driving voltage
  • the response time of the acceleration of the linear motor is:
  • the user when the user defines the steady-state amplitude a ref , that is, when the steady-state amplitude a ref is known, it can be based on The equivalent voltage amplitude u m is calculated, and the original driving voltage data is updated by equivalent voltage replacement, so that the steady-state amplitude of the linear motor vibration under actual voltage control reaches a ref .
  • the user can define the steady-state amplitude a ref as a variable value, and the linear motor can dynamically adjust the response time and steady-state amplitude of the acceleration. Or the user can limit the steady-state amplitude a ref to a fixed value. For example, the user can set the steady-state amplitude a ref to a constant value, so that in the process of motor vibration, according to The equivalent voltage amplitude u m is adjusted so that the steady-state amplitude a ref is a constant value when the linear motor vibrates.
  • FIG. 3 shows the acceleration response waveforms of Embodiment 1 to Embodiment 3 above.
  • Fig. 4 shows the actual control voltage waveforms of the above-mentioned Embodiment 1 to Embodiment 3.
  • the response time is the shortest. Compared with the characteristics of the linear motor before adjustment, it starts faster, has no tailing, and has a crisper vibration. It can be seen that the amplitude and response time of the acceleration are consistent with the set amplitude and time.
  • the present invention also provides a linear motor control device, including:
  • a parameter acquisition module configured to acquire the current speed of the vibrator of the linear motor, the drive voltage, and the response time of the target acceleration
  • a coefficient adjustment module configured to obtain a damping adjustment coefficient based on the response time and the hardware parameters of the linear motor
  • a compensation voltage determination module configured to obtain a target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient
  • a voltage determination module configured to obtain an actual driving voltage based on the driving voltage and the target compensation voltage
  • a vibration control module configured to control the vibration of the linear motor based on the actual driving voltage.
  • the present invention also provides an electronic device, including:
  • a driving module 200 is connected to the linear motor 400, and the driving module 200 is used to provide a driving voltage for the linear motor 400 to drive the vibration unit to vibrate;
  • a processing module 100 the processing module 100 is used to obtain the current speed of the vibrator of the linear motor 400, the driving voltage, the steady-state amplitude and the response time of the target acceleration; based on the response time and the hardware parameters of the linear motor, Obtain a damping adjustment coefficient; obtain a target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient; obtain an actual driving voltage based on the driving voltage and the target compensation voltage; and control the The linear motor vibrates.
  • it also includes:
  • the voltage and current detection module 500 is used to connect with the linear motor 400 to detect the current current and current voltage of the linear motor and send them to the processing module 100;
  • the processing module 100 is used to acquire the current voltage and the current current of the linear motor
  • the third preset formula is:
  • v(t) is the current velocity of the vibrator
  • Bl is the magnetic field strength
  • u fdb (t) is the voltage
  • ifdb (t) is the current current
  • t is the time.
  • the processing module is further configured to obtain an equivalent voltage based on the steady-state amplitude, the damping adjustment coefficient, and the hardware parameters if the steady-state amplitude input by the user is received;
  • the effective voltage updates the driving voltage.
  • the processing module is further configured to obtain an equivalent voltage amplitude based on the steady-state amplitude, the damping adjustment coefficient, and a first preset formula; the first preset formula is:
  • u m is the equivalent voltage amplitude
  • a ref is the steady-state amplitude
  • k ⁇ is the damping adjustment coefficient
  • is the inherent damping coefficient of the linear motor
  • m is the vibrator mass of the linear motor
  • Bl is the magnetic field strength
  • r is the damping coefficient
  • R is the DC resistance of the coil
  • the equivalent voltage is obtained;
  • the second preset formula is:
  • u 1 (t) u m cos( ⁇ c t);
  • u 1 (t) is the equivalent voltage
  • t is the time
  • the processing module is further configured to obtain a damping adjustment coefficient based on the response time, the hardware parameters of the linear motor and a fourth preset formula; the fourth preset formula is:
  • k ⁇ is the damping adjustment coefficient
  • t rd is the response time
  • is the inherent damping coefficient of the linear motor
  • m is the vibrator mass of the linear motor
  • Bl is the magnetic field strength
  • k is the spring stiffness coefficient
  • r is the damping coefficient
  • R is the DC resistance of the coil.
  • the processing module is further configured to obtain a target compensation voltage based on the current speed of the vibrator, the damping adjustment coefficient and a fifth preset formula; the fifth preset formula is:
  • u c (t) is the target compensation voltage
  • k ⁇ is the damping adjustment coefficient
  • Bl is the magnetic field strength
  • r is the damping coefficient
  • R is the DC resistance of the coil
  • v(t) is the current speed of the vibrator.
  • a power amplifier is further arranged between the driving module and the linear motor, and the power amplifier performs power matching on the driving voltage transmitted from the driving module to the power amplifier.
  • the driving voltage may be an analog signal or a digital signal.
  • the power amplifier may be a class A, class B, class AB, or class D driver commonly used in the field.
  • an embodiment of the present invention also proposes a computer storage medium, on which a control program of a linear motor is stored, and when the control program of the linear motor is executed by a processor, the steps of the method for controlling the linear motor above are realized. Therefore, details will not be repeated here. In addition, the description of the beneficial effect of adopting the same method will not be repeated here.
  • program instructions can be deployed to be executed on one computing device, or on multiple computing devices located at one site, or alternatively, on multiple computing devices distributed across multiple sites and interconnected by a communication network to execute.
  • the above programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods.
  • the above-mentioned storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Linear Motors (AREA)

Abstract

The present invention belongs to the technical field of linear resonant actuators. Disclosed are a control method and apparatus for a linear resonant actuator, and a device and a medium. The method comprises: acquiring the current vibrator speed of a linear resonant actuator, a driving voltage and a response time to a target acceleration; obtaining a damping adjustment coefficient on the basis of the response time and hardware parameters of the linear resonant actuator; obtaining a target compensation voltage on the basis of the current vibrator speed and the damping adjustment coefficient; obtaining an actual driving voltage on the basis of the driving voltage and the target compensation voltage; and on the basis of the actual driving voltage, controlling the linear resonant actuator to vibrate. By means of the control method of the present invention, the response time to an acceleration of a linear resonant actuator can be accurately adjusted.

Description

线性马达的控制方法、控制装置、设备以及介质Control method, control device, equipment and medium of linear motor 技术领域technical field
本发明涉及线性马达技术领域,尤其涉及一种线性马达的控制方法、控制装置、设备以及介质。The present invention relates to the technical field of linear motors, in particular to a control method, a control device, equipment and a medium of a linear motor.
背景技术Background technique
线性马达(Linear Resonant Actuator,LRA)凭借其振感强烈、丰富、清脆,能耗低等优点,已经广泛应用于电子设备的各种振动场合。对于电子设备的应用而言,通过构造多样化的宽频振动波形(加速度波形),线性马达可以实现非常丰富、真实的振感反馈。Linear Resonant Actuator (LRA) has been widely used in various vibration occasions of electronic equipment due to its advantages of strong vibration, richness, crispness and low energy consumption. For the application of electronic equipment, by constructing a variety of broadband vibration waveforms (acceleration waveforms), linear motors can achieve very rich and realistic vibration feedback.
其中,线性马达的振感主要通过驱动振子产生加速度来实现,加速度响应越快,振感越清脆;加速度幅值越大,振感越强。在实际控制过程中,通常需要在设置一定的加速度幅值情况下,根据需要调整加速度响应时间,一般情况下加速度响应时间越短越好。且可通过增大驱动电压幅值的方式来减少加速度响应时间。Among them, the vibration of the linear motor is mainly achieved by driving the vibrator to generate acceleration. The faster the acceleration response, the crisper the vibration; the larger the acceleration amplitude, the stronger the vibration. In the actual control process, it is usually necessary to adjust the acceleration response time according to the need under the condition of setting a certain acceleration amplitude. Generally, the shorter the acceleration response time, the better. And the acceleration response time can be reduced by increasing the driving voltage amplitude.
但是,相关技术通常采用手动调试电压幅值和作用时间来获取预期的响应时间,不仅调试复杂,且难以精确控制加速度的响应时间,尤其是,难以在控制过程中准确地动态调整响应时间。However, related technologies usually use manual adjustment of the voltage amplitude and action time to obtain the expected response time, which is not only complicated to debug, but also difficult to accurately control the response time of the acceleration, especially, it is difficult to accurately dynamically adjust the response time during the control process.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solution of the present invention, and does not mean that the above content is admitted as prior art.
发明内容Contents of the invention
本发明的主要目的在于提供一种线性马达的控制方法、控制装置、设备以及介质,旨在解决线性马达难以精确控制加速度的响应时间的问题。The main purpose of the present invention is to provide a control method, control device, equipment and medium of a linear motor, aiming to solve the problem that the linear motor is difficult to accurately control the response time of the acceleration.
为实现上述目的,第一方面,本发明提供一种线性马达的控制方法,所述方法包括:In order to achieve the above object, in a first aspect, the present invention provides a method for controlling a linear motor, the method comprising:
获取所述线性马达的振子当前速度、驱动电压以及目标加速度的响应时间;Acquiring the response time of the current speed, driving voltage and target acceleration of the vibrator of the linear motor;
基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数;Obtaining a damping adjustment coefficient based on the response time and hardware parameters of the linear motor;
基于所述振子当前速度与所述阻尼调整系数,获得目标补偿电压;Obtain a target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient;
基于所述驱动电压与所述目标补偿电压,获得实际驱动电压;obtaining an actual driving voltage based on the driving voltage and the target compensation voltage;
基于所述实际驱动电压,控制所述线性马达振动。Based on the actual drive voltage, the linear motor is controlled to vibrate.
在一实施例中,所述基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数之后,所述方法还包括:In an embodiment, after obtaining the damping adjustment coefficient based on the response time and the hardware parameters of the linear motor, the method further includes:
若接收到用户输入的稳态幅值,基于所述稳态幅值、所述阻尼调整系数和所述硬件参数,获得等效电压;If the steady-state amplitude input by the user is received, an equivalent voltage is obtained based on the steady-state amplitude, the damping adjustment coefficient, and the hardware parameters;
利用所述等效电压更新所述驱动电压。The driving voltage is updated using the equivalent voltage.
在一实施例中,所述基于所述稳态幅值和所述阻尼调整系数,获得等效电压,包括:In an embodiment, the obtaining an equivalent voltage based on the steady-state amplitude and the damping adjustment coefficient includes:
基于所述稳态幅值、所述阻尼调整系数和第一预设公式,获得等效电压幅值;第一预设公式为:Based on the steady-state amplitude, the damping adjustment coefficient and a first preset formula, an equivalent voltage amplitude is obtained; the first preset formula is:
Figure PCTCN2022120564-appb-000001
Figure PCTCN2022120564-appb-000001
其中,u′ m为所述等效电压幅值,a ref为所述稳态幅值,
Figure PCTCN2022120564-appb-000002
k ξ为所述阻尼调整系数,ξ为所述线性马达的固有阻尼系数,且
Figure PCTCN2022120564-appb-000003
Figure PCTCN2022120564-appb-000004
m为线性马达的振子质量,Bl为磁场强度,r为阻尼系数,R为线圈直流电阻;
Wherein, u′ m is the equivalent voltage amplitude, a ref is the steady-state amplitude,
Figure PCTCN2022120564-appb-000002
k ξ is the damping adjustment coefficient, ξ is the inherent damping coefficient of the linear motor, and
Figure PCTCN2022120564-appb-000003
Figure PCTCN2022120564-appb-000004
m is the vibrator mass of the linear motor, Bl is the magnetic field strength, r is the damping coefficient, and R is the DC resistance of the coil;
基于所述等效电压幅值与第二预设公式,获得等效电压;第二预设公式为:Based on the equivalent voltage amplitude and a second preset formula, the equivalent voltage is obtained; the second preset formula is:
u′ 1(t)=u′ mcos(ω ct); u′ 1 (t)=u′ m cos(ω c t);
其中,u′ 1(t)为所述等效电压,t为时刻。 Wherein, u′ 1 (t) is the equivalent voltage, and t is the time.
在一实施例中,所述获取所述线性马达的振子当前速度之前,所述方法还包括:In an embodiment, before acquiring the current speed of the vibrator of the linear motor, the method further includes:
获取所述线性马达的当前电压和所述当前电流;obtaining the current voltage and the current current of the linear motor;
基于所述当前电压、所述当前电流和第三预设公式,获得所述振子当前 速度;Obtaining the current speed of the vibrator based on the current voltage, the current current and a third preset formula;
其中,所述第三预设公式为:Wherein, the third preset formula is:
Figure PCTCN2022120564-appb-000005
Figure PCTCN2022120564-appb-000005
其中,v(t)为所述振子当前速度,Bl为磁场强度,u fdb(t)为所述电压,i fdb(t)为所述当前电流,t为时刻。 Wherein, v(t) is the current velocity of the vibrator, Bl is the magnetic field strength, u fdb (t) is the voltage, ifdb (t) is the current current, and t is the time.
在一实施例中,所述基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数,包括:In an embodiment, the obtaining the damping adjustment coefficient based on the response time and the hardware parameters of the linear motor includes:
基于所述响应时间、所述线性马达的硬件参数和第四预设公式,获得阻尼调整系数;所述第四预设公式为:Based on the response time, the hardware parameters of the linear motor and a fourth preset formula, a damping adjustment coefficient is obtained; the fourth preset formula is:
Figure PCTCN2022120564-appb-000006
Figure PCTCN2022120564-appb-000006
其中,k ξ为所述阻尼调整系数,t rd为所述响应时间,ξ为所述线性马达的固有阻尼系数,且
Figure PCTCN2022120564-appb-000007
m为线性马达的振子质量,Bl为磁场强度、k为弹簧劲度系数,r为阻尼系数,R为线圈直流电阻。
where k ξ is the damping adjustment coefficient, t rd is the response time, ξ is the inherent damping coefficient of the linear motor, and
Figure PCTCN2022120564-appb-000007
m is the vibrator mass of the linear motor, Bl is the magnetic field strength, k is the spring stiffness coefficient, r is the damping coefficient, and R is the DC resistance of the coil.
在一实施例中,所述基于所述振子当前速度与所述阻尼调整系数,获得目标补偿电压,包括:In an embodiment, the obtaining the target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient includes:
基于所述振子当前速度、所述阻尼调整系数与第五预设公式,获得目标补偿电压;第五预设公式为:Based on the current speed of the vibrator, the damping adjustment coefficient and a fifth preset formula, the target compensation voltage is obtained; the fifth preset formula is:
Figure PCTCN2022120564-appb-000008
Figure PCTCN2022120564-appb-000008
其中,u c(t)为所述目标补偿电压,k ξ为所述阻尼调整系数,Bl为磁场强度,r为阻尼系数,R为线圈直流电阻,v(t)为所述振子当前速度。 Wherein, u c (t) is the target compensation voltage, k ξ is the damping adjustment coefficient, Bl is the magnetic field strength, r is the damping coefficient, R is the DC resistance of the coil, and v(t) is the current speed of the vibrator.
第二方面,本发明还提供了一种线性马达的控制装置,包括:In the second aspect, the present invention also provides a control device for a linear motor, including:
参数获取模块,用于获取所述线性马达的振子当前速度、驱动电压、目标加速度的稳态幅值与响应时间;A parameter acquisition module, configured to acquire the current speed of the vibrator of the linear motor, the driving voltage, the steady-state amplitude and the response time of the target acceleration;
系数调整模块,用于基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数;A coefficient adjustment module, configured to obtain a damping adjustment coefficient based on the response time and the hardware parameters of the linear motor;
补偿电压确定模块,用于基于所述振子当前速度与所述阻尼调整系数, 获得目标补偿电压;a compensation voltage determination module, configured to obtain a target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient;
电压确定模块,用于基于所述驱动电压与所述目标补偿电压,获得实际驱动电压;A voltage determination module, configured to obtain an actual driving voltage based on the driving voltage and the target compensation voltage;
振动控制模块,用于基于所述实际驱动电压,控制所述线性马达振动。A vibration control module, configured to control the vibration of the linear motor based on the actual driving voltage.
第三方面,本发明还提供了一种电子设备,包括:In a third aspect, the present invention also provides an electronic device, comprising:
线性马达;linear motor;
驱动模块,所述驱动模块与所述线性马达连接,所述驱动模块用于为所述线性马达提供驱动电压,以驱动振动单元振动;以及a drive module, the drive module is connected to the linear motor, and the drive module is used to provide a drive voltage to the linear motor to drive the vibration unit to vibrate; and
处理模块,所述处理模块用于获取所述线性马达的振子当前速度、驱动电压、目标加速度的稳态幅值与响应时间;基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数;基于所述振子当前速度与所述阻尼调整系数,获得目标补偿电压;基于所述驱动电压与所述目标补偿电压,获得实际驱动电压;基于所述实际驱动电压,控制所述线性马达振动。A processing module, the processing module is used to obtain the current speed of the vibrator of the linear motor, the driving voltage, the steady-state amplitude of the target acceleration and the response time; based on the response time and the hardware parameters of the linear motor, obtain damping adjustment coefficient; based on the current speed of the vibrator and the damping adjustment coefficient, obtain a target compensation voltage; based on the driving voltage and the target compensation voltage, obtain an actual driving voltage; based on the actual driving voltage, control the vibration of the linear motor .
在一实施例中,还包括:In one embodiment, it also includes:
电压与电流检测模块,用于与线性马达连接,以检测所述线性马达的当前电流与当前电压,并发送至所述处理模块;The voltage and current detection module is used to connect with the linear motor to detect the current current and current voltage of the linear motor and send them to the processing module;
所述处理模块用于获取所述线性马达的当前电压和所述当前电流;The processing module is used to acquire the current voltage and the current current of the linear motor;
基于所述当前电压、所述当前电流和第一预设公式,获得所述振子当前速度;Obtaining the current speed of the vibrator based on the current voltage, the current current and a first preset formula;
其中,所述第一预设公式为:Wherein, the first preset formula is:
Figure PCTCN2022120564-appb-000009
Figure PCTCN2022120564-appb-000009
其中,v(t)为所述振子当前速度,Bl为磁场强度,u fdb(t)为所述电压,i fdb(t)为所述当前电流,t为时刻。 Wherein, v(t) is the current velocity of the vibrator, Bl is the magnetic field strength, u fdb (t) is the voltage, ifdb (t) is the current current, and t is the time.
第四方面,本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有线性马达的控制程序,所述线性马达的控制程序被处理器执行时实现如上述的线性马达的控制方法。In the fourth aspect, the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a control program of a linear motor, and when the control program of the linear motor is executed by a processor, the linear motor as described above is realized. Motor control method.
本发明提出的一种线性马达的控制方法、控制装置、设备及介质。该方法获取所述线性马达的振子当前速度、驱动电压以及需要达到的目标加速度响应时间;基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系 数;基于所述振子当前速度与所述阻尼调整系数,获得目标补偿电压;基于所述驱动电压与所述目标补偿电压,获得实际驱动电压;基于所述实际驱动电压,控制所述线性马达振动。The present invention provides a control method, control device, equipment and medium for a linear motor. The method obtains the current speed of the vibrator of the linear motor, the driving voltage, and the target acceleration response time to be achieved; based on the response time and the hardware parameters of the linear motor, obtains a damping adjustment coefficient; based on the current speed of the vibrator and the obtained The damping adjustment coefficient is used to obtain a target compensation voltage; based on the driving voltage and the target compensation voltage, an actual driving voltage is obtained; based on the actual driving voltage, vibration of the linear motor is controlled.
由此,本发明计算出欲达到待达到的目标加速度与响应时间所需的虚拟阻尼和线性马达原有阻尼之间的阻尼调整系数,再根据振子速度和阻尼调整系数构造适宜的补偿电压,基于补偿后的实际电压控制线性马达振动,从而改变马达的原有阻尼特性,即虚拟阻尼控制,从而实现对线性马达加速度的响应时间的准确调整,以达到目标加速度的响应时间,可用于加快马达加速度的响应时间,实现清脆、无拖尾的振感反馈。Thus, the present invention calculates the damping adjustment coefficient between the virtual damping required to achieve the desired target acceleration and response time and the original damping of the linear motor, and then constructs a suitable compensation voltage according to the vibrator speed and the damping adjustment coefficient, based on The actual voltage after compensation controls the vibration of the linear motor, thus changing the original damping characteristics of the motor, that is, the virtual damping control, so as to realize the accurate adjustment of the response time of the linear motor acceleration to achieve the response time of the target acceleration, which can be used to speed up the motor acceleration Fast response time for crisp, smear-free vibration feedback.
附图说明Description of drawings
图1为本申请线性马达的控制方法第一实施例的流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of a control method for a linear motor of the present application;
图2为本申请线性马达的控制方法第二实施例的流程示意图;FIG. 2 is a schematic flowchart of a second embodiment of a control method for a linear motor of the present application;
图3为本申请实施例1至实施例3的加速度响应波形图;Fig. 3 is the acceleration response wave diagram of embodiment 1 to embodiment 3 of the present application;
图4为本申请实施例1至实施例3的实际控制电压波形图;Fig. 4 is the actual control voltage waveform diagram of embodiment 1 to embodiment 3 of the present application;
图5为本申请线性马达的控制装置的流程示意图;Fig. 5 is a schematic flow chart of the control device of the linear motor of the present application;
图6为本申请电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device of the present application.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
线性马达(Linear Resonant Actuator,LRA)凭借其振感强烈、丰富、清脆以及能耗低等优点,已经广泛应用于各种消费级电子设备的各种振动场合。通过构造多样化的宽频振动波形(加速度波形),马达可以实现非常丰富、真实的振感反馈。Linear Resonant Actuator (LRA) has been widely used in various vibration occasions of various consumer electronic devices due to its advantages of strong vibration, richness, crispness and low energy consumption. By constructing a variety of broadband vibration waveforms (acceleration waveforms), the motor can achieve very rich and realistic vibration feedback.
振子运动过程中会受到一定的阻尼,而这个阻尼特性是影响加速度响应速度和幅值的重要因素,阻尼越大,马达加速度响应的上升时间和下降时间 越短,但稳态幅值越小;阻尼越小,马达加速度响应的上升时间和下降时间越长,但稳态幅值越大。马达在实际设计时需综合两者的需求,折中设计固有阻尼系数。一旦马达设计完成,其固有阻尼特性就被确定,从而加速度响应时间和稳态幅值也随之确定。其中,线性马达的振感主要通过驱动振子产生加速度来实现,加速度响应越快,振感越清脆;加速度幅值越大,振感越强。在实际控制过程中,通常需要在设置一定的加速度幅值情况下,根据需要调整加速度响应时间,一般情况下加速度响应时间越短越好。且可通过增大驱动电压幅值的方式来减少加速度响应时间。The vibrator will be damped to a certain extent during its motion, and this damping characteristic is an important factor affecting the acceleration response speed and amplitude. The greater the damping, the shorter the rise time and fall time of the motor acceleration response, but the smaller the steady-state amplitude; The smaller the damping, the longer the rise time and fall time of the motor acceleration response, but the larger the steady state amplitude. In the actual design of the motor, it is necessary to combine the requirements of the two, and to compromise the design of the inherent damping coefficient. Once the motor design is complete, its inherent damping characteristics are determined, so the acceleration response time and steady-state amplitude are also determined. Among them, the vibration of the linear motor is mainly achieved by driving the vibrator to generate acceleration. The faster the acceleration response, the crisper the vibration; the larger the acceleration amplitude, the stronger the vibration. In the actual control process, it is usually necessary to adjust the acceleration response time according to the need under the condition of setting a certain acceleration amplitude. Generally, the shorter the acceleration response time, the better. And the acceleration response time can be reduced by increasing the driving voltage amplitude.
但是,相关技术通常采用手动调试电压幅值和作用时间来获取预期的响应时间,不仅调试复杂,且难以精确控制加速度的响应时间,尤其是,难以在控制过程中准确地动态调整响应时间。However, related technologies usually use manual adjustment of the voltage amplitude and action time to obtain the expected response time, which is not only complicated to debug, but also difficult to accurately control the response time of the acceleration, especially, it is difficult to accurately dynamically adjust the response time during the control process.
为此,本申请实施例提供了一种线性马达的控制方法,通过计算出欲达到待达到的目标加速度与响应时间所需的虚拟阻尼和线性马达原有阻尼之间的阻尼调整系数,再根据振子速度和阻尼调整系数构造适宜的补偿电压,基于补偿后的实际电压控制线性马达振动,从而改变马达的原有阻尼特性,即虚拟阻尼控制,从而实现对线性马达加速度的响应时间的准确调整,以达到目标加速度的响应时间,可用于加快马达加速度的响应时间,实现清脆、无拖尾的振感反馈。To this end, the embodiment of the present application provides a linear motor control method, by calculating the damping adjustment coefficient between the virtual damping required to achieve the target acceleration and response time and the original damping of the linear motor, and then according to Vibrator speed and damping adjustment coefficient construct a suitable compensation voltage, control the vibration of the linear motor based on the actual voltage after compensation, thereby changing the original damping characteristics of the motor, that is, virtual damping control, so as to achieve accurate adjustment of the response time of the linear motor acceleration, In order to achieve the response time of the target acceleration, it can be used to speed up the response time of the motor acceleration to achieve crisp and tail-free vibration feedback.
下面结合一些具体实施例进一步阐述本申请的发明构思。The inventive concept of the present application will be further described below in conjunction with some specific embodiments.
本申请提供一种线性马达的控制方法第一实施例,参阅图1,图1为本申请线性马达的控制方法第一实施例的流程示意图。The present application provides a first embodiment of a linear motor control method, refer to FIG. 1 , which is a schematic flowchart of the first embodiment of the linear motor control method of the present application.
本实施例中,所述方法包括:In this embodiment, the method includes:
步骤S101、获取所述线性马达的振子当前速度、驱动电压、目标加速度的响应时间。Step S101 , acquiring the current speed, driving voltage, and response time of the target acceleration of the vibrator of the linear motor.
本实施例中,方法的执行主体为电子设备中线性马达的硬件电路中的处理模块。处理模块与驱动模块连接,驱动模块通过功率放大器与线性马达连接,从而处理模块可发出一驱动信号至驱动模块,驱动模块为线性马达提供电压。In this embodiment, the execution body of the method is the processing module in the hardware circuit of the linear motor in the electronic device. The processing module is connected with the driving module, and the driving module is connected with the linear motor through the power amplifier, so that the processing module can send a driving signal to the driving module, and the driving module provides voltage for the linear motor.
本实施例中,处理模块可通过电子设备的用户接口获取到用户输入的目 标加速度波形数据a(t),对于任一时刻的目标加速度,用户可设定一响应时间t rdIn this embodiment, the processing module can obtain the target acceleration waveform data a(t) input by the user through the user interface of the electronic device, and the user can set a response time t rd for the target acceleration at any moment.
驱动电压为原有驱动波形数据驱动线性马达振动时的电压数据,其可表示为一余弦函数:u 1(t)=u mcos(ω ct)。 The driving voltage is the voltage data when the original driving waveform data drives the linear motor to vibrate, which can be expressed as a cosine function: u 1 (t)= um cos(ω c t).
振子当前速度可表示为v(t)。振子当前速度可以为处理模块根据线性马达内的速度检测元件检测并反馈得到。The current velocity of the vibrator can be expressed as v(t). The current speed of the vibrator can be detected and fed back by the processing module according to the speed detection element in the linear motor.
或者在一实施例中,振子的当前速度可根据线性马达的电流检测模块反馈的当前电流和电压检测模块反馈的当前电压得到。Or in an embodiment, the current speed of the vibrator can be obtained according to the current current fed back by the current detection module of the linear motor and the current voltage fed back by the voltage detection module.
如,此时,步骤S101之前,还包括:For example, at this time, before step S101, it also includes:
步骤S10、获取所述线性马达的当前电压和所述当前电流;Step S10, acquiring the current voltage and the current current of the linear motor;
步骤S20、基于所述当前电压、所述当前电流和第三预设公式,获得所述振子当前速度;Step S20. Obtain the current speed of the vibrator based on the current voltage, the current current and a third preset formula;
其中,所述第三预设公式为:Wherein, the third preset formula is:
Figure PCTCN2022120564-appb-000010
Figure PCTCN2022120564-appb-000010
其中,v(t)为所述振子当前速度,Bl为磁场强度,u fdb(t)为所述电压,i fdb(t)为所述当前电流,t为时刻。 Wherein, v(t) is the current velocity of the vibrator, Bl is the magnetic field strength, u fdb (t) is the voltage, ifdb (t) is the current current, and t is the time.
此时,可通过电流检测模块和电压检测模块反馈的当前电流和当前电压实时解算得到振子当前速度。At this time, the current speed of the vibrator can be obtained by calculating in real time the current current and the current voltage fed back by the current detection module and the voltage detection module.
步骤S102、基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数。Step S102. Obtain a damping adjustment coefficient based on the response time and the hardware parameters of the linear motor.
其中,硬件参数为线性马达的驱动电路硬件具有的参数,如:线性马达的振子质量m,磁场强度Bl、弹簧劲度系数k,阻尼系数r,圈直流电阻R等。Among them, the hardware parameters are the parameters of the drive circuit hardware of the linear motor, such as: the vibrator mass m of the linear motor, the magnetic field strength Bl, the spring stiffness coefficient k, the damping coefficient r, and the coil DC resistance R.
可以理解的,阻尼调整系数为虚拟阻尼系数为所述阻尼调整系数k ξ之间的比值。 It can be understood that the damping adjustment coefficient is the ratio between the virtual damping coefficient and the damping adjustment coefficients k and ξ .
具体而言,线性马达的电压方程为:Specifically, the voltage equation for a linear motor is:
Figure PCTCN2022120564-appb-000011
Figure PCTCN2022120564-appb-000011
式中,u(t)为驱动电压;x(t)为位移;v(t)为速度;a(t)为加速度。In the formula, u(t) is the driving voltage; x(t) is the displacement; v(t) is the velocity; a(t) is the acceleration.
在幅值为u m的余弦电压u(t)=u mcos(ω ct)驱动下,线性马达的加速度响应为: Driven by a cosine voltage u(t)= um cos(ω c t) whose amplitude is u m , the acceleration response of the linear motor is:
Figure PCTCN2022120564-appb-000012
Figure PCTCN2022120564-appb-000012
式中,
Figure PCTCN2022120564-appb-000013
In the formula,
Figure PCTCN2022120564-appb-000013
定义加速度幅值从0上升到稳态幅值的90%所需的时间为上升时间t r;定义加速度幅值从稳态幅值的100%下降到10%所需的时间为下降时间t d,则求出响应时间为: Define the time required for the acceleration amplitude to rise from 0 to 90% of the steady-state amplitude as the rising time t r ; define the time required for the acceleration amplitude to drop from 100% of the steady-state amplitude to 10% as the falling time t d , then the response time is obtained as:
Figure PCTCN2022120564-appb-000014
Figure PCTCN2022120564-appb-000014
加速度响应的稳态幅值为:The steady-state amplitude of the acceleration response is:
Figure PCTCN2022120564-appb-000015
Figure PCTCN2022120564-appb-000015
明显可看出,系统的固有阻尼系数ξ由表达式
Figure PCTCN2022120564-appb-000016
决定,固有阻尼系数越大,系统加速度响应的响应时间越短,但稳态幅值越小;阻尼越小,系统加速度响应的响应时间越长,但稳态幅值越大。一般而言,马达在实际设计时需综合两者的需求,折中设计固有阻尼系数ξ。
It is obvious that the intrinsic damping coefficient ξ of the system is given by the expression
Figure PCTCN2022120564-appb-000016
It is determined that the larger the intrinsic damping coefficient, the shorter the response time of the system acceleration response, but the smaller the steady-state amplitude; the smaller the damping, the longer the response time of the system acceleration response, but the larger the steady-state amplitude. Generally speaking, the actual design of the motor needs to combine the needs of the two, and compromise the design of the inherent damping coefficient ξ.
在实际控制过程中,通常希望马达的加速度响应的响应时间t rd足够短,从而实现快速、无拖尾的振感反馈。因此,可通过虚拟阻尼控制的方式实现对系统实际阻尼系数。具体而言,可通过电压补偿的方式,调整系统的阻尼系数,即按需调整虚拟阻尼系数,则可实现马达加速度响应时间和稳态幅值的动态调节。若用户更关注响应时间t rd,则将虚拟阻尼系数调大;若用户更关注稳态幅值a m,则将虚拟阻尼系数调小。 In the actual control process, it is usually hoped that the response time t rd of the acceleration response of the motor is short enough to achieve fast and tail-free vibration feedback. Therefore, the actual damping coefficient of the system can be realized by means of virtual damping control. Specifically, the damping coefficient of the system can be adjusted through voltage compensation, that is, the virtual damping coefficient can be adjusted as needed, and the dynamic adjustment of the motor acceleration response time and steady-state amplitude can be realized. If the user pays more attention to the response time t rd , then increase the virtual damping coefficient; if the user pays more attention to the steady-state amplitude a m , then adjust the virtual damping coefficient smaller.
因此,可根据用户输入的响应时间t rd与所述线性马达的硬件参数,获得阻尼调整系数k ξ。即虚拟阻尼系数与固有阻尼系数之间的比值。 Therefore, the damping adjustment coefficient k ξ can be obtained according to the response time t rd input by the user and the hardware parameters of the linear motor. That is, the ratio between the virtual damping coefficient and the intrinsic damping coefficient.
具体而言,步骤S102具体包括:Specifically, step S102 specifically includes:
基于所述响应时间、所述线性马达的硬件参数和第四预设公式,获得阻尼调整系数;所述第四预设公式为:Based on the response time, the hardware parameters of the linear motor and a fourth preset formula, a damping adjustment coefficient is obtained; the fourth preset formula is:
Figure PCTCN2022120564-appb-000017
Figure PCTCN2022120564-appb-000017
其中,k ξ为所述阻尼调整系数,t rd为所述响应时间,ξ为所述线性马达的固有阻尼系数,且
Figure PCTCN2022120564-appb-000018
m为线性马达的振子质量,Bl为磁场强度、k为弹簧劲度系数,r为阻尼系数,R为线圈直流电阻。
where k ξ is the damping adjustment coefficient, t rd is the response time, ξ is the inherent damping coefficient of the linear motor, and
Figure PCTCN2022120564-appb-000018
m is the vibrator mass of the linear motor, Bl is the magnetic field strength, k is the spring stiffness coefficient, r is the damping coefficient, and R is the DC resistance of the coil.
步骤S103、基于所述振子当前速度与所述阻尼调整系数,获得目标补偿电压。Step S103. Obtain a target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient.
目标补偿电压为线性马达想要达到响应时间t rd所需的虚拟阻尼所需的补偿电压。 The target compensation voltage is the compensation voltage required by the linear motor to achieve the virtual damping required by the response time t rd .
具体而言,可基于所述振子当前速度、所述阻尼调整系数与第五预设公式,获得目标补偿电压;第五预设公式为:Specifically, the target compensation voltage can be obtained based on the current speed of the vibrator, the damping adjustment coefficient and a fifth preset formula; the fifth preset formula is:
Figure PCTCN2022120564-appb-000019
Figure PCTCN2022120564-appb-000019
其中,u c(t)为所述目标补偿电压,k ξ为所述阻尼调整系数,Bl为磁场强度,r为阻尼系数,R为线圈直流电阻,v(t)为所述振子当前速度。 Wherein, u c (t) is the target compensation voltage, k ξ is the damping adjustment coefficient, Bl is the magnetic field strength, r is the damping coefficient, R is the DC resistance of the coil, and v(t) is the current speed of the vibrator.
步骤S104、基于所述驱动电压与所述目标补偿电压,获得实际驱动电压。Step S104. Obtain an actual driving voltage based on the driving voltage and the target compensation voltage.
即实际驱动电压u(t)=u c(t)+u 1(t)。 That is, the actual driving voltage u(t)= uc (t)+u 1 (t).
步骤S105、基于所述实际驱动电压,控制所述线性马达振动。Step S105 , controlling the linear motor to vibrate based on the actual driving voltage.
可以理解的,若预期将线性马达的虚拟阻尼系数调整为固有阻尼系数ξ的k ξ倍,则调整后的电压方程为: It can be understood that if the virtual damping coefficient of the linear motor is expected to be adjusted to k ξ times the intrinsic damping coefficient ξ, the adjusted voltage equation is:
Figure PCTCN2022120564-appb-000020
Figure PCTCN2022120564-appb-000020
式中,目标补偿电压为
Figure PCTCN2022120564-appb-000021
In the formula, the target compensation voltage is
Figure PCTCN2022120564-appb-000021
换算可得,驱动电压为
Figure PCTCN2022120564-appb-000022
在该驱动电压的驱动下,线性马达的加速度的响应时间为:
Conversion can be obtained, the driving voltage is
Figure PCTCN2022120564-appb-000022
Driven by this driving voltage, the response time of the acceleration of the linear motor is:
Figure PCTCN2022120564-appb-000023
Figure PCTCN2022120564-appb-000023
其中,
Figure PCTCN2022120564-appb-000024
为虚拟阻尼系数。
in,
Figure PCTCN2022120564-appb-000024
is the virtual damping coefficient.
由此,采用虚拟阻尼系数
Figure PCTCN2022120564-appb-000025
时,线性马达的加速度的响应时间t rd为:
Therefore, using the virtual damping coefficient
Figure PCTCN2022120564-appb-000025
When , the response time t rd of the acceleration of the linear motor is:
Figure PCTCN2022120564-appb-000026
Figure PCTCN2022120564-appb-000026
不难看出,当k ξ满足0<k ξ<1,系统的虚拟阻尼减小,响应时间t rd增大。当设置k ξ满足k ξ>1时,系统的虚拟阻尼增大,响应时间t rd减小。 It is not difficult to see that when k ξ satisfies 0<k ξ <1, the virtual damping of the system decreases and the response time t rd increases. When k ξ is set to satisfy k ξ >1, the virtual damping of the system increases and the response time t rd decreases.
因此,本实施例中,在响应时间t rd为已知值时,可根据目标加速度所需的响应时间t rd和线性马达的硬件参数,计算出阻尼调整系数k ξ,即为线性马达为了达到该响应时间t rd,线性马达系统的虚拟阻尼系数应当是系统固有阻尼系数ξ的k ξ倍。为了达到该
Figure PCTCN2022120564-appb-000027
所需,本实施例通过电压补偿的方式调整系统的阻尼系数,即按需调整虚拟阻尼系数
Figure PCTCN2022120564-appb-000028
因此可根据振子速度v(t)和阻尼调整系数k ξ,利用
Figure PCTCN2022120564-appb-000029
计算得到目标补偿电压u c(t),将该补偿电压补偿至驱动电压上,可使得线性马达振动时实际响应时间为t rd
Therefore, in this embodiment, when the response time t rd is a known value, the damping adjustment coefficient k ξ can be calculated according to the response time t rd required by the target acceleration and the hardware parameters of the linear motor, that is, for the linear motor to achieve For this response time t rd , the virtual damping coefficient of the linear motor system should be k ξ times the intrinsic damping coefficient ξ of the system. In order to achieve the
Figure PCTCN2022120564-appb-000027
required, this embodiment adjusts the damping coefficient of the system through voltage compensation, that is, adjusts the virtual damping coefficient as needed
Figure PCTCN2022120564-appb-000028
Therefore, the coefficient k ξ can be adjusted according to the vibrator velocity v(t) and damping, using
Figure PCTCN2022120564-appb-000029
The target compensation voltage u c (t) is calculated, and the compensation voltage is compensated to the driving voltage, so that the actual response time of the linear motor when vibrating is t rd .
值得一提的是,本实施例中,可采用本实施例提供的控制方法,并可设定t rd为一较小值,如0.01s,实现线性马达启动快、无拖尾,振感更清脆的效果。 It is worth mentioning that in this embodiment, the control method provided by this embodiment can be used, and t rd can be set to a small value, such as 0.01s, to achieve fast start-up of the linear motor, no tailing, and a better vibration feeling Crisp effect.
作为一个实施例,提出本申请线性马达的控制方法的第二实施例。参阅图2,图2为本申请线性马达的控制方法的第二实施例的流程示意图。As an embodiment, the second embodiment of the control method of the linear motor of the present application is proposed. Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a second embodiment of a method for controlling a linear motor of the present application.
本实施例中,方法包括以下步骤:In this embodiment, the method includes the following steps:
步骤S201、获取所述线性马达的振子当前速度、驱动电压、目标加速度的响应时间。Step S201, acquiring the current speed, driving voltage, and response time of the target acceleration of the vibrator of the linear motor.
步骤S202、基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数。Step S202. Obtain a damping adjustment coefficient based on the response time and the hardware parameters of the linear motor.
步骤S203、若接收到用户输入的稳态幅值,基于所述稳态幅值、所述阻尼调整系数和所述硬件参数,获得等效电压。Step S203. If the steady-state amplitude input by the user is received, an equivalent voltage is obtained based on the steady-state amplitude, the damping adjustment coefficient, and the hardware parameters.
本实施例中,用户可通过电子设备的用户接口向处理模块输入目标加速度的稳态幅值a ref,或者用户还可通过电子设备的用户接口向处理模块输入目标加速度波形,处理模块可解析该加速度波形,从而得到稳态幅值a refIn this embodiment, the user can input the steady-state amplitude a ref of the target acceleration to the processing module through the user interface of the electronic device, or the user can also input the target acceleration waveform to the processing module through the user interface of the electronic device, and the processing module can analyze the Acceleration waveform, so as to obtain the steady-state amplitude a ref .
处理模块在获得稳态幅值a ref后,可基于所述稳态幅值和所述阻尼调整系数,获得等效电。 After the processing module obtains the steady-state amplitude a ref , it can obtain an equivalent electric current based on the steady-state amplitude and the damping adjustment coefficient.
具体而言,步骤S203包括:基于所述稳态幅值、所述阻尼调整系数和第一预设公式,获得等效电压幅值;第一预设公式为:Specifically, step S203 includes: obtaining an equivalent voltage amplitude based on the steady-state amplitude, the damping adjustment coefficient, and a first preset formula; the first preset formula is:
Figure PCTCN2022120564-appb-000030
Figure PCTCN2022120564-appb-000030
其中,u′ m为所述等效电压幅值,a ref为所述稳态幅值,
Figure PCTCN2022120564-appb-000031
k ξ为所述阻尼调整系数,ξ为所述线性马达的固有阻尼系数,且
Figure PCTCN2022120564-appb-000032
Figure PCTCN2022120564-appb-000033
m为线性马达的振子质量,Bl为磁场强度,r为阻尼系数,R为线圈直流电阻;
Wherein, u′ m is the equivalent voltage amplitude, a ref is the steady-state amplitude,
Figure PCTCN2022120564-appb-000031
k ξ is the damping adjustment coefficient, ξ is the inherent damping coefficient of the linear motor, and
Figure PCTCN2022120564-appb-000032
Figure PCTCN2022120564-appb-000033
m is the vibrator mass of the linear motor, Bl is the magnetic field strength, r is the damping coefficient, and R is the DC resistance of the coil;
基于所述等效电压幅值与第二预设公式,获得等效电压;第二预设公式为:Based on the equivalent voltage amplitude and a second preset formula, the equivalent voltage is obtained; the second preset formula is:
u′ 1(t)=u′ mcos(ω ct); u′ 1 (t)=u′ m cos(ω c t);
其中,u′ 1(t)为所述等效电压,t为时刻。 Wherein, u′ 1 (t) is the equivalent voltage, and t is the time.
步骤S204、利用所述等效电压更新所述驱动电压。Step S204, updating the driving voltage by using the equivalent voltage.
即令驱动电压u 1(t)=u′ 1(t)。 That is, drive voltage u 1 (t)=u′ 1 (t).
步骤S205、基于所述驱动电压与所述目标补偿电压,获得实际驱动电压。Step S205. Obtain an actual driving voltage based on the driving voltage and the target compensation voltage.
步骤S206、基于所述实际驱动电压,控制所述线性马达振动。Step S206. Based on the actual driving voltage, control the vibration of the linear motor.
可以理解的,若预期将线性马达的虚拟阻尼系数调整为固有阻尼系数ξ的k ξ倍,则调整后的电压方程为: It can be understood that if the virtual damping coefficient of the linear motor is expected to be adjusted to k ξ times the intrinsic damping coefficient ξ, the adjusted voltage equation is:
Figure PCTCN2022120564-appb-000034
Figure PCTCN2022120564-appb-000034
式中,目标补偿电压为
Figure PCTCN2022120564-appb-000035
In the formula, the target compensation voltage is
Figure PCTCN2022120564-appb-000035
换算可得,驱动电压为
Figure PCTCN2022120564-appb-000036
在该驱动电压的驱动下,线性马达的加速度的响应时间为:
Conversion can be obtained, the driving voltage is
Figure PCTCN2022120564-appb-000036
Driven by this driving voltage, the response time of the acceleration of the linear motor is:
Figure PCTCN2022120564-appb-000037
Figure PCTCN2022120564-appb-000037
其中,
Figure PCTCN2022120564-appb-000038
为虚拟阻尼系数。
in,
Figure PCTCN2022120564-appb-000038
is the virtual damping coefficient.
由此,采用虚拟阻尼系数
Figure PCTCN2022120564-appb-000039
时,线性马达的加速度的稳态幅值a ref为:
Therefore, using the virtual damping coefficient
Figure PCTCN2022120564-appb-000039
When , the steady-state amplitude a ref of the acceleration of the linear motor is:
Figure PCTCN2022120564-appb-000040
Figure PCTCN2022120564-appb-000040
不难看出,当k ξ满足0<k ξ<1,系统的虚拟阻尼减小,稳态幅值a ref增大。当设置k ξ满足k ξ>1时,系统的虚拟阻尼增大,稳态幅值a ref减小。 It is not difficult to see that when k ξ satisfies 0<k ξ <1, the virtual damping of the system decreases and the steady-state amplitude a ref increases. When k ξ is set to satisfy k ξ >1, the virtual damping of the system increases and the steady-state amplitude a ref decreases.
因此,本实施例中,在用户限定了稳态幅值a ref时,即稳态幅值a ref已知时,可根据
Figure PCTCN2022120564-appb-000041
计算得到等效电压幅值u m,并通过等效电压替换更新有原有的驱动电压数据,从而使得实际电压控制下线性马达振动的稳态幅值达到a ref
Therefore, in this embodiment, when the user defines the steady-state amplitude a ref , that is, when the steady-state amplitude a ref is known, it can be based on
Figure PCTCN2022120564-appb-000041
The equivalent voltage amplitude u m is calculated, and the original driving voltage data is updated by equivalent voltage replacement, so that the steady-state amplitude of the linear motor vibration under actual voltage control reaches a ref .
用户可限定稳态幅值a ref为变化值,此时线性马达可实现动态调整加速度的响应时间和稳态幅值。或者用户可限定稳态幅值a ref为固定值,如用户可设定稳态幅值a ref为一恒定值时,从而在马达振动过程中,不断根据
Figure PCTCN2022120564-appb-000042
调整等效电压幅值u m,使得线性马达振动时的稳态幅值a ref为一恒定值。
The user can define the steady-state amplitude a ref as a variable value, and the linear motor can dynamically adjust the response time and steady-state amplitude of the acceleration. Or the user can limit the steady-state amplitude a ref to a fixed value. For example, the user can set the steady-state amplitude a ref to a constant value, so that in the process of motor vibration, according to
Figure PCTCN2022120564-appb-000042
The equivalent voltage amplitude u m is adjusted so that the steady-state amplitude a ref is a constant value when the linear motor vibrates.
为了便于理解上述技术方案,示出:In order to facilitate the understanding of the above technical solutions, it is shown that:
实施例1:设置稳态幅值a ref=700m/s 2,t rd未限定,即不设置上升时间。 Embodiment 1: Set steady-state amplitude a ref =700m/s 2 , t rd is not limited, that is, no rise time is set.
实施例2:设置稳态幅值a ref=700m/s 2,t rd=0.01s,即上升时间设置为0.01S。 Embodiment 2: Set the steady-state amplitude a ref =700m/s 2 , t rd =0.01s, that is, set the rise time to 0.01s.
实施例3:设置稳态幅值a ref=700m/s 2,t rd=0.12s,即设置上升时间为0.12S。 Embodiment 3: Set the steady-state amplitude a ref =700m/s 2 , t rd =0.12s, that is, set the rise time to 0.12s.
参阅图3,图3示出了上述实施例1至实施例3的加速度响应波形,。参阅图4,图4示出了上述实施例1至实施例3的实际控制电压波形。Referring to FIG. 3 , FIG. 3 shows the acceleration response waveforms of Embodiment 1 to Embodiment 3 above. Referring to Fig. 4, Fig. 4 shows the actual control voltage waveforms of the above-mentioned Embodiment 1 to Embodiment 3.
不难看出,尤其是实施例2中响应时间最短,较调整前的线性马达特性而言,启动快、无拖尾,振感更清脆。可见,加速度的幅值和响应时间均与设置的幅值和时间一致。It is not difficult to see that especially in Example 2, the response time is the shortest. Compared with the characteristics of the linear motor before adjustment, it starts faster, has no tailing, and has a crisper vibration. It can be seen that the amplitude and response time of the acceleration are consistent with the set amplitude and time.
基于同一发明构思,参阅图5,本发明还提供了一种线性马达的控制装置,包括:Based on the same inventive concept, referring to Fig. 5, the present invention also provides a linear motor control device, including:
参数获取模块,用于获取所述线性马达的振子当前速度、驱动电压、目标加速度的响应时间;A parameter acquisition module, configured to acquire the current speed of the vibrator of the linear motor, the drive voltage, and the response time of the target acceleration;
系数调整模块,用于基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数;A coefficient adjustment module, configured to obtain a damping adjustment coefficient based on the response time and the hardware parameters of the linear motor;
补偿电压确定模块,用于基于所述振子当前速度与所述阻尼调整系数,获得目标补偿电压;A compensation voltage determination module, configured to obtain a target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient;
电压确定模块,用于基于所述驱动电压与所述目标补偿电压,获得实际驱动电压;A voltage determination module, configured to obtain an actual driving voltage based on the driving voltage and the target compensation voltage;
振动控制模块,用于基于所述实际驱动电压,控制所述线性马达振动。A vibration control module, configured to control the vibration of the linear motor based on the actual driving voltage.
此外,参阅图6,本发明还提供了一种电子设备,包括:In addition, referring to FIG. 6, the present invention also provides an electronic device, including:
线性马达400; Linear motor 400;
驱动模块200,所述驱动模块200与所述线性马达400连接,所述驱动模块200用于为所述线性马达400提供驱动电压,以驱动振动单元振动;以及A driving module 200, the driving module 200 is connected to the linear motor 400, and the driving module 200 is used to provide a driving voltage for the linear motor 400 to drive the vibration unit to vibrate; and
处理模块100,所述处理模块100用于获取所述线性马达400的振子当前速度、驱动电压、目标加速度的稳态幅值与响应时间;基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数;基于所述振子当前速度与所述阻尼调整系数,获得目标补偿电压;基于所述驱动电压与所述目标补偿电压,获得实际驱动电压;基于所述实际驱动电压,控制所述线性马达振动。A processing module 100, the processing module 100 is used to obtain the current speed of the vibrator of the linear motor 400, the driving voltage, the steady-state amplitude and the response time of the target acceleration; based on the response time and the hardware parameters of the linear motor, Obtain a damping adjustment coefficient; obtain a target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient; obtain an actual driving voltage based on the driving voltage and the target compensation voltage; and control the The linear motor vibrates.
在一实施例中,还包括:In one embodiment, it also includes:
电压与电流检测模块500,用于与线性马达400连接,以检测所述线性马达的当前电流与当前电压,并发送至所述处理模块100;The voltage and current detection module 500 is used to connect with the linear motor 400 to detect the current current and current voltage of the linear motor and send them to the processing module 100;
所述处理模块100用于获取所述线性马达的当前电压和所述当前电流;The processing module 100 is used to acquire the current voltage and the current current of the linear motor;
基于所述当前电压、所述当前电流和第三预设公式,获得所述振子当前速度;Obtain the current speed of the vibrator based on the current voltage, the current current and a third preset formula;
其中,所述第三预设公式为:Wherein, the third preset formula is:
Figure PCTCN2022120564-appb-000043
Figure PCTCN2022120564-appb-000043
其中,v(t)为所述振子当前速度,Bl为磁场强度,u fdb(t)为所述电压,i fdb(t)为所述当前电流,t为时刻。 Wherein, v(t) is the current velocity of the vibrator, Bl is the magnetic field strength, u fdb (t) is the voltage, ifdb (t) is the current current, and t is the time.
在一实施例中,处理模块还用于若接收到用户输入的稳态幅值,基于所 述稳态幅值、所述阻尼调整系数和所述硬件参数,获得等效电压;利用所述等效电压更新所述驱动电压。In an embodiment, the processing module is further configured to obtain an equivalent voltage based on the steady-state amplitude, the damping adjustment coefficient, and the hardware parameters if the steady-state amplitude input by the user is received; The effective voltage updates the driving voltage.
在一实施例中,处理模块还用于基于所述稳态幅值、所述阻尼调整系数和第一预设公式,获得等效电压幅值;第一预设公式为:In an embodiment, the processing module is further configured to obtain an equivalent voltage amplitude based on the steady-state amplitude, the damping adjustment coefficient, and a first preset formula; the first preset formula is:
Figure PCTCN2022120564-appb-000044
Figure PCTCN2022120564-appb-000044
其中,u m为所述等效电压幅值,a ref为所述稳态幅值,
Figure PCTCN2022120564-appb-000045
k ξ为所述阻尼调整系数,ξ为所述线性马达的固有阻尼系数,且
Figure PCTCN2022120564-appb-000046
Figure PCTCN2022120564-appb-000047
m为线性马达的振子质量,Bl为磁场强度,r为阻尼系数,R为线圈直流电阻;
Wherein, u m is the equivalent voltage amplitude, a ref is the steady-state amplitude,
Figure PCTCN2022120564-appb-000045
k ξ is the damping adjustment coefficient, ξ is the inherent damping coefficient of the linear motor, and
Figure PCTCN2022120564-appb-000046
Figure PCTCN2022120564-appb-000047
m is the vibrator mass of the linear motor, Bl is the magnetic field strength, r is the damping coefficient, and R is the DC resistance of the coil;
基于所述等效电压幅值与第二预设公式,获得等效电压;第二预设公式为:Based on the equivalent voltage amplitude and a second preset formula, the equivalent voltage is obtained; the second preset formula is:
u 1(t)=u mcos(ω ct); u 1 (t) = u m cos(ω c t);
其中,u 1(t)为所述等效电压,t为时刻。 Wherein, u 1 (t) is the equivalent voltage, and t is the time.
在一实施例中,处理模块还用于基于所述响应时间、所述线性马达的硬件参数和第四预设公式,获得阻尼调整系数;所述第四预设公式为:In an embodiment, the processing module is further configured to obtain a damping adjustment coefficient based on the response time, the hardware parameters of the linear motor and a fourth preset formula; the fourth preset formula is:
Figure PCTCN2022120564-appb-000048
Figure PCTCN2022120564-appb-000048
其中,k ξ为所述阻尼调整系数,t rd为所述响应时间,ξ为所述线性马达的固有阻尼系数,且
Figure PCTCN2022120564-appb-000049
m为线性马达的振子质量,Bl为磁场强度、k为弹簧劲度系数,r为阻尼系数,R为线圈直流电阻。
where k ξ is the damping adjustment coefficient, t rd is the response time, ξ is the inherent damping coefficient of the linear motor, and
Figure PCTCN2022120564-appb-000049
m is the vibrator mass of the linear motor, Bl is the magnetic field strength, k is the spring stiffness coefficient, r is the damping coefficient, and R is the DC resistance of the coil.
在一实施例中,处理模块还用于基于所述振子当前速度、所述阻尼调整系数与第五预设公式,获得目标补偿电压;第五预设公式为:In an embodiment, the processing module is further configured to obtain a target compensation voltage based on the current speed of the vibrator, the damping adjustment coefficient and a fifth preset formula; the fifth preset formula is:
Figure PCTCN2022120564-appb-000050
Figure PCTCN2022120564-appb-000050
其中,u c(t)为所述目标补偿电压,k ξ为所述阻尼调整系数,Bl为磁场强 度,r为阻尼系数,R为线圈直流电阻,v(t)为所述振子当前速度。 Wherein, u c (t) is the target compensation voltage, k ξ is the damping adjustment coefficient, Bl is the magnetic field strength, r is the damping coefficient, R is the DC resistance of the coil, and v(t) is the current speed of the vibrator.
在一些实施例中,驱动模块和线性马达之间还设置有一功率放大器,功率放大器对驱动模块传输至功率放大器的驱动电压进行功率匹配。其中,驱动电压可以是模拟信号,还可以是数字信号。功率放大器可以是本领域常见的如A类,B类,AB类,或者D类驱动器。In some embodiments, a power amplifier is further arranged between the driving module and the linear motor, and the power amplifier performs power matching on the driving voltage transmitted from the driving module to the power amplifier. Wherein, the driving voltage may be an analog signal or a digital signal. The power amplifier may be a class A, class B, class AB, or class D driver commonly used in the field.
此外,本发明实施例还提出一种计算机存储介质,存储介质上存储有线性马达的控制程序,线性马达的控制程序被处理器执行时实现如上文的线性马达的控制方法的步骤。因此,这里将不再进行赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。对于本申请所涉及的计算机可读存储介质实施例中未披露的技术细节,请参照本申请方法实施例的描述。确定为示例,程序指令可被部署为在一个计算设备上执行,或者在位于一个地点的多个计算设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算设备上执行。In addition, an embodiment of the present invention also proposes a computer storage medium, on which a control program of a linear motor is stored, and when the control program of the linear motor is executed by a processor, the steps of the method for controlling the linear motor above are realized. Therefore, details will not be repeated here. In addition, the description of the beneficial effect of adopting the same method will not be repeated here. For the technical details not disclosed in the embodiments of the computer-readable storage medium involved in the present application, please refer to the description of the method embodiments of the present application. Certainly for example, program instructions can be deployed to be executed on one computing device, or on multiple computing devices located at one site, or alternatively, on multiple computing devices distributed across multiple sites and interconnected by a communication network to execute.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,上述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware. The above programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the above-mentioned storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (10)

  1. 一种线性马达的控制方法,其特征在于,所述方法包括:A control method for a linear motor, characterized in that the method comprises:
    获取所述线性马达的振子当前速度、驱动电压以及目标加速度的响应时间;Acquiring the response time of the current speed, driving voltage and target acceleration of the vibrator of the linear motor;
    基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数;Obtaining a damping adjustment coefficient based on the response time and hardware parameters of the linear motor;
    基于所述振子当前速度与所述阻尼调整系数,获得目标补偿电压;Obtain a target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient;
    基于所述驱动电压与所述目标补偿电压,获得实际驱动电压;obtaining an actual driving voltage based on the driving voltage and the target compensation voltage;
    基于所述实际驱动电压,控制所述线性马达振动。Based on the actual drive voltage, the linear motor is controlled to vibrate.
  2. 根据权利要求1所述的线性马达的控制方法,其特征在于,所述基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数之后,所述方法还包括:The method for controlling a linear motor according to claim 1, wherein, after obtaining the damping adjustment coefficient based on the response time and the hardware parameters of the linear motor, the method further comprises:
    若接收到用户输入的稳态幅值,基于所述稳态幅值、所述阻尼调整系数和所述硬件参数,获得等效电压;If the steady-state amplitude input by the user is received, an equivalent voltage is obtained based on the steady-state amplitude, the damping adjustment coefficient, and the hardware parameters;
    利用所述等效电压更新所述驱动电压。The driving voltage is updated using the equivalent voltage.
  3. 根据权利要求2所述的线性马达的控制方法,其特征在于,所述基于所述稳态幅值和所述阻尼调整系数,获得等效电压,包括:The control method of a linear motor according to claim 2, wherein said obtaining an equivalent voltage based on said steady-state amplitude and said damping adjustment coefficient comprises:
    基于所述稳态幅值、所述阻尼调整系数和第一预设公式,获得等效电压幅值;第一预设公式为:Based on the steady-state amplitude, the damping adjustment coefficient and a first preset formula, an equivalent voltage amplitude is obtained; the first preset formula is:
    Figure PCTCN2022120564-appb-100001
    Figure PCTCN2022120564-appb-100001
    其中,u′ m为所述等效电压幅值,a ref为所述稳态幅值,
    Figure PCTCN2022120564-appb-100002
    k ξ为所述阻尼调整系数,ξ为所述线性马达的固有阻尼系数,且
    Figure PCTCN2022120564-appb-100003
    Figure PCTCN2022120564-appb-100004
    m为线性马达的振子质量,Bl为磁场强度,r为阻尼系数,R为线圈直流电阻;
    Wherein, u′ m is the equivalent voltage amplitude, a ref is the steady-state amplitude,
    Figure PCTCN2022120564-appb-100002
    k ξ is the damping adjustment coefficient, ξ is the inherent damping coefficient of the linear motor, and
    Figure PCTCN2022120564-appb-100003
    Figure PCTCN2022120564-appb-100004
    m is the vibrator mass of the linear motor, Bl is the magnetic field strength, r is the damping coefficient, and R is the DC resistance of the coil;
    基于所述等效电压幅值与第二预设公式,获得等效电压;第二预设公式为:Based on the equivalent voltage amplitude and a second preset formula, the equivalent voltage is obtained; the second preset formula is:
    u′ 1(t)=u′ mcos(ω ct); u′ 1 (t)=u′ m cos(ω c t);
    其中,u′ 1(t)为所述等效电压,t为时刻。 Wherein, u′ 1 (t) is the equivalent voltage, and t is the time.
  4. 根据权利要求1所述的线性马达的控制方法,其特征在于,所述获取所述线性马达的振子当前速度、驱动电压以及目标加速度的响应时间之前,所述方法还包括:The method for controlling a linear motor according to claim 1, wherein before acquiring the current speed of the vibrator of the linear motor, the driving voltage and the response time of the target acceleration, the method further comprises:
    获取所述线性马达的当前电压和所述当前电流;obtaining the current voltage and the current current of the linear motor;
    基于所述当前电压、所述当前电流和第三预设公式,获得所述振子当前速度;Obtain the current speed of the vibrator based on the current voltage, the current current and a third preset formula;
    其中,所述第三预设公式为:Wherein, the third preset formula is:
    Figure PCTCN2022120564-appb-100005
    Figure PCTCN2022120564-appb-100005
    其中,v(t)为所述振子当前速度,Bl为磁场强度,u fdb(t)为所述电压,i fdb(t)为所述当前电流,t为时刻。 Wherein, v(t) is the current velocity of the vibrator, Bl is the magnetic field strength, u fdb (t) is the voltage, ifdb (t) is the current current, and t is the time.
  5. 根据权利要求1所述的线性马达的控制方法,其特征在于,所述基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数,包括:The method for controlling a linear motor according to claim 1, wherein said obtaining a damping adjustment coefficient based on said response time and hardware parameters of said linear motor comprises:
    基于所述响应时间、所述线性马达的硬件参数和第四预设公式,获得阻尼调整系数;所述第四预设公式为:Based on the response time, the hardware parameters of the linear motor and a fourth preset formula, a damping adjustment coefficient is obtained; the fourth preset formula is:
    Figure PCTCN2022120564-appb-100006
    Figure PCTCN2022120564-appb-100006
    其中,k ξ为所述阻尼调整系数,t rd为所述响应时间,ξ为所述线性马达的固有阻尼系数,且
    Figure PCTCN2022120564-appb-100007
    m为线性马达的振子质量,Bl为磁场强度、k为弹簧劲度系数,r为阻尼系数,R为线圈直流电阻。
    where k ξ is the damping adjustment coefficient, t rd is the response time, ξ is the inherent damping coefficient of the linear motor, and
    Figure PCTCN2022120564-appb-100007
    m is the vibrator mass of the linear motor, Bl is the magnetic field strength, k is the spring stiffness coefficient, r is the damping coefficient, and R is the DC resistance of the coil.
  6. 根据权利要求1所述的线性马达的控制方法,其特征在于,所述基于所述振子当前速度与所述阻尼调整系数,获得目标补偿电压,包括:The control method of a linear motor according to claim 1, wherein the obtaining a target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient comprises:
    基于所述振子当前速度、所述阻尼调整系数与第五预设公式,获得目标 补偿电压;第五预设公式为:Based on the current speed of the vibrator, the damping adjustment coefficient and the fifth preset formula, the target compensation voltage is obtained; the fifth preset formula is:
    Figure PCTCN2022120564-appb-100008
    Figure PCTCN2022120564-appb-100008
    其中,u c(t)为所述目标补偿电压,k ξ为所述阻尼调整系数,Bl为磁场强度,r为阻尼系数,R为线圈直流电阻,v(t)为所述振子当前速度。 Wherein, u c (t) is the target compensation voltage, k ξ is the damping adjustment coefficient, Bl is the magnetic field strength, r is the damping coefficient, R is the DC resistance of the coil, and v(t) is the current speed of the vibrator.
  7. 一种线性马达的控制装置,其特征在于,包括:A control device for a linear motor, characterized in that it comprises:
    参数获取模块,用于获取所述线性马达的振子当前速度、驱动电压、目标加速度的稳态幅值与响应时间;A parameter acquisition module, configured to acquire the current speed of the vibrator of the linear motor, the driving voltage, the steady-state amplitude and the response time of the target acceleration;
    系数调整模块,用于基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数;A coefficient adjustment module, configured to obtain a damping adjustment coefficient based on the response time and the hardware parameters of the linear motor;
    补偿电压确定模块,用于基于所述振子当前速度与所述阻尼调整系数,获得目标补偿电压;A compensation voltage determination module, configured to obtain a target compensation voltage based on the current speed of the vibrator and the damping adjustment coefficient;
    电压确定模块,用于基于所述驱动电压与所述目标补偿电压,获得实际驱动电压;A voltage determination module, configured to obtain an actual driving voltage based on the driving voltage and the target compensation voltage;
    振动控制模块,用于基于所述实际驱动电压,控制所述线性马达振动。A vibration control module, configured to control the vibration of the linear motor based on the actual driving voltage.
  8. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    线性马达;linear motor;
    驱动模块,所述驱动模块与所述线性马达连接,所述驱动模块用于为所述线性马达提供驱动电压,以驱动振动单元振动;以及a drive module, the drive module is connected to the linear motor, and the drive module is used to provide a drive voltage to the linear motor to drive the vibration unit to vibrate; and
    处理模块,所述处理模块用于获取所述线性马达的振子当前速度、驱动电压、目标加速度的稳态幅值与响应时间;基于所述响应时间和所述线性马达的硬件参数,获得阻尼调整系数;基于所述振子当前速度与所述阻尼调整系数,获得目标补偿电压;基于所述驱动电压与所述目标补偿电压,获得实际驱动电压;基于所述实际驱动电压,控制所述线性马达振动。A processing module, the processing module is used to obtain the current speed of the vibrator of the linear motor, the driving voltage, the steady-state amplitude of the target acceleration and the response time; based on the response time and the hardware parameters of the linear motor, obtain damping adjustment coefficient; based on the current speed of the vibrator and the damping adjustment coefficient, obtain a target compensation voltage; based on the driving voltage and the target compensation voltage, obtain an actual driving voltage; based on the actual driving voltage, control the vibration of the linear motor .
  9. 根据权利要求8所述的电子设备,其特征在于,还包括:The electronic device according to claim 8, further comprising:
    电压与电流检测模块,用于与线性马达连接,以检测所述线性马达的当前电流与当前电压,并发送至所述处理模块;The voltage and current detection module is used to connect with the linear motor to detect the current current and current voltage of the linear motor and send them to the processing module;
    所述处理模块用于获取所述线性马达的当前电压和所述当前电流;The processing module is used to acquire the current voltage and the current current of the linear motor;
    基于所述当前电压、所述当前电流和第一预设公式,获得所述振子当前速度;Obtaining the current speed of the vibrator based on the current voltage, the current current and a first preset formula;
    其中,所述第一预设公式为:Wherein, the first preset formula is:
    Figure PCTCN2022120564-appb-100009
    Figure PCTCN2022120564-appb-100009
    其中,v(t)为所述振子当前速度,Bl为磁场强度,u fdb(t)为所述电压,i fdb(t)为所述当前电流,t为时刻。 Wherein, v(t) is the current velocity of the vibrator, Bl is the magnetic field strength, u fdb (t) is the voltage, ifdb (t) is the current current, and t is the time.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有线性马达的控制程序,所述线性马达的控制程序被处理器执行时实现如权利要求1至7任一项所述的线性马达的控制方法。A computer-readable storage medium, characterized in that a control program of a linear motor is stored on the computer-readable storage medium, and when the control program of the linear motor is executed by a processor, any one of claims 1 to 7 is realized. The control method of the linear motor.
PCT/CN2022/120564 2021-10-29 2022-09-22 Control method and apparatus for linear resonant actuator, and device and medium WO2023071641A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111290967.4A CN113938082B (en) 2021-10-29 Control method, control device, equipment and medium for linear motor
CN202111290967.4 2021-10-29

Publications (1)

Publication Number Publication Date
WO2023071641A1 true WO2023071641A1 (en) 2023-05-04

Family

ID=79285548

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/120564 WO2023071641A1 (en) 2021-10-29 2022-09-22 Control method and apparatus for linear resonant actuator, and device and medium

Country Status (1)

Country Link
WO (1) WO2023071641A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003009494A (en) * 2001-06-21 2003-01-10 Canon Inc Active damper, aligner and method for manufacturing device
CN108347209A (en) * 2018-02-02 2018-07-31 瑞声科技(新加坡)有限公司 Overshoot response eliminates system and method
CN110502111A (en) * 2019-08-09 2019-11-26 瑞声科技(新加坡)有限公司 Motor signal compensation method, electronic equipment and storage medium
CN111159623A (en) * 2019-12-16 2020-05-15 瑞声科技(新加坡)有限公司 Motor vibration signal calculation method and device, terminal and storage medium
CN113938082A (en) * 2021-10-29 2022-01-14 歌尔股份有限公司 Control method, control device, apparatus and medium for linear motor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003009494A (en) * 2001-06-21 2003-01-10 Canon Inc Active damper, aligner and method for manufacturing device
CN108347209A (en) * 2018-02-02 2018-07-31 瑞声科技(新加坡)有限公司 Overshoot response eliminates system and method
CN110502111A (en) * 2019-08-09 2019-11-26 瑞声科技(新加坡)有限公司 Motor signal compensation method, electronic equipment and storage medium
CN111159623A (en) * 2019-12-16 2020-05-15 瑞声科技(新加坡)有限公司 Motor vibration signal calculation method and device, terminal and storage medium
CN113938082A (en) * 2021-10-29 2022-01-14 歌尔股份有限公司 Control method, control device, apparatus and medium for linear motor

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CIÁURRIZ, P. ET AL.: "Stable Discrete-Time Impedances for Haptic Systems With Vibration Modes and Delay", IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, vol. 22, no. 3, 31 May 2014 (2014-05-31), XP011545977, DOI: 10.1109/TCST.2013.2271931 *
ZAREI, M. ET AL.: "An experimental oscillation damping impedance control for the Novint Falcon haptic device based on the phase trajectory length function concept", INSTITUTION OF MECHANICAL ENGINEERS, vol. 233, no. 8, 7 September 2018 (2018-09-07), XP009545673 *

Also Published As

Publication number Publication date
CN113938082A (en) 2022-01-14

Similar Documents

Publication Publication Date Title
US10828672B2 (en) Driver circuitry
CN110266223B (en) Vibration control system and method for motor, and electronic apparatus
EP3768439A1 (en) Methods and apparatus for driving a transducer
Krasnopolskaya et al. Chaos in vibrating systems with a limited power‐supply
US10344821B2 (en) Vibration suppressing apparatus and vibration suppressing method thereof
TWI726473B (en) A method, a system and a device for calibrating a frequency of a driving voltage waveform for a linear resonance device
CN110995079B (en) Method, device, terminal and storage medium for generating motor vibration signal
CN107025335B (en) simulation calculation method and simulation system based on state variable discretization
WO2022134219A1 (en) Motor vibration signal generation method and apparatus, computer device, and storage medium
US10868486B2 (en) Low power adaptive linear resonant actuator driver using accelerometer
CN108872063B (en) Trace substance detection device and method based on parameter excitation and synchronous resonance
CN111159623B (en) Method, device, terminal and storage medium for calculating motor vibration signal
Elliott et al. Multifunctional design of inertially-actuated velocity feedback controllers
WO2023071642A1 (en) Method for controlling linear resonant actuator, and device and medium
US8884711B2 (en) MEMS device oscillator loop with amplitude control
WO2023071641A1 (en) Control method and apparatus for linear resonant actuator, and device and medium
WO2020258202A1 (en) Motor parameter tracking method and system
CN108845594B (en) Vibration harmonic iterative control method based on transfer function
CN113949325B (en) Control method, control device, equipment and medium for linear motor
CN113938082B (en) Control method, control device, equipment and medium for linear motor
CN110861762B (en) Self-adaptive piezoelectric shunt semi-passive control device and method for shafting vibration control
Baumann et al. Destabilization of velocity feedback controllers with stroke limited inertial actuators
CN115741668A (en) Mechanical arm, self-adaptive admittance control system and method thereof and robot
CN104467818B (en) A kind of piezoelectric ceramic drive signal source circuit
JP2020137146A (en) Vibration power generation apparatus

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: 22885528

Country of ref document: EP

Kind code of ref document: A1