WO2021258483A1 - Method and device for generating voltage driving signal, and storage medium - Google Patents

Method and device for generating voltage driving signal, and storage medium Download PDF

Info

Publication number
WO2021258483A1
WO2021258483A1 PCT/CN2020/104643 CN2020104643W WO2021258483A1 WO 2021258483 A1 WO2021258483 A1 WO 2021258483A1 CN 2020104643 W CN2020104643 W CN 2020104643W WO 2021258483 A1 WO2021258483 A1 WO 2021258483A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
displacement
motor
acceleration
number sequence
Prior art date
Application number
PCT/CN2020/104643
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
Application filed by 瑞声声学科技(深圳)有限公司, 瑞声科技(新加坡)有限公司 filed Critical 瑞声声学科技(深圳)有限公司
Publication of WO2021258483A1 publication Critical patent/WO2021258483A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user
    • 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
    • H02P29/00Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors

Definitions

  • FIG. 2 is a schematic diagram of an embodiment of the original AC signal of the present invention.
  • the original AC signal A0 in the embodiment of the present invention is an integrated signal.
  • the original AC signal A0 is a desired vibration acceleration signal.
  • the original acceleration signal is integrated twice to obtain the displacement signal, and the value of the displacement signal at the recording time stamp is read to obtain the first A sequence of numbers, and the first sequence of numbers is interpolated and through interpolation, the first number sequence is expanded to an offset curve with the same length as the displacement signal, and finally the displacement signal is subtracted from the offset curve to obtain an unbiased displacement signal ,
  • This can effectively remove the offset generated by the second integral in the AC signal.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Power Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Linear Motors (AREA)
  • User Interface Of Digital Computer (AREA)
  • Apparatuses For Generation Of Mechanical Vibrations (AREA)

Abstract

A method and device for generating a voltage driving signal, and a storage medium. The voltage driving signal is used for driving a motor. The method comprises: providing an expected vibration acceleration signal (S100); determining, according to the acceleration signal, a timestamp of which the acceleration is zero (S200); performing quadratic integration on the acceleration signal to obtain a displacement signal (S300); according to the timestamp, obtaining all displacement values, corresponding to the timestamp, on the displacement signal to form a first number sequence (S400); performing interpolation processing on the first number sequence to generate a bias curve comprising all the displacement values (S500); subtracting the bias curve from the displacement signal to obtain a bias-free displacement signal (S600); and converting the bias displacement signal by using an electromechanical coupling equation of the motor into the voltage driving signal used for driving the motor (S700). By means of the method, the bias generated by quadratic integration in the voltage driving signal can be effectively removed.

Description

一种电压驱动信号的生成方法及设备、存储介质Method, equipment and storage medium for generating voltage drive signal 技术领域Technical field
本发明涉及触觉效果技术领域,特别是涉及一种电压驱动信号的生成方法及设备、存储介质。The present invention relates to the technical field of haptic effects, in particular to a method and equipment for generating a voltage drive signal, and a storage medium.
背景技术Background technique
振动系统中,加速度、速度、位移是表征振子状态的常用的物理量。但是在实际应用中,加速度是最常用的物理量,因为对其测量是十分方便的,一个精度足够的加速度传感器即可。虽然位移是振子状态的最直接的状态表征,速度与加速度只需要位移分别求一次导与两次导即可,但是位移的测量需要较为苛刻的测量条件,所以在追求低成本的工程生产中,一般不会直接测量位移信号。因此通常采用加速度信号表征理想的振动效果。In a vibration system, acceleration, velocity, and displacement are commonly used physical quantities that characterize the state of a vibrator. However, in practical applications, acceleration is the most commonly used physical quantity, because it is very convenient to measure it, just an acceleration sensor with sufficient accuracy. Although displacement is the most direct state representation of the state of the vibrator, velocity and acceleration only require one derivative and two derivative of the displacement, but the measurement of displacement requires more stringent measurement conditions. Therefore, in the pursuit of low-cost engineering production, Generally, the displacement signal will not be measured directly. Therefore, the acceleration signal is usually used to characterize the ideal vibration effect.
在设计与理想振动效果对应的电机驱动信号时,如何结合加速信号便于测量与位移信号表征更直观两个优点呢?可以通过采集对象选择加速信号,分析对象选择位移信号。但是,加速度进行二次积分时会引入一定的偏置,如果不把这些偏置去掉,那么二次积分出来的位移信号会出现“飘”的状态(越来越大),不符合实际应用场景的。因此,如何利用加速度信号设计准确的电机驱动信号,是工程应用中一个十分重要的难题。When designing the motor drive signal corresponding to the ideal vibration effect, how to combine the acceleration signal to facilitate the measurement and the displacement signal to be more intuitive? The acceleration signal can be selected by the acquisition object, and the displacement signal can be selected by the analysis object. However, a certain offset will be introduced during the second integration of the acceleration. If these offsets are not removed, the displacement signal from the second integration will appear "floating" (increasing), which does not meet the actual application scenario. of. Therefore, how to use the acceleration signal to design an accurate motor drive signal is a very important problem in engineering applications.
发明内容Summary of the invention
本发明主要是提供一种电压驱动信号的生成方法及设备、存储介质,能够解决现有技术中加速度进行二次积分时会引入偏置的问题。The present invention mainly provides a method for generating a voltage drive signal, a device, and a storage medium, which can solve the problem of introducing bias when the acceleration is integrated twice in the prior art.
为解决上述技术问题,本发明采用的一个技术方案是:提供一种电压驱动信号的生成方法,所述电压驱动信号用于驱动电机,所述方法包括:提供期望的振动加速度信号;根据所述加速度信号确定加速度为零的时间戳;对所述加速度信号进行二次积分以得到位移信号;根据所述时间戳,获取所述位移信号上与所述时间戳对应的所有位移数值,以形成第一数列;对所述第一数列进行插值处理,以生成包含所有所述位移数值的偏置曲线;将所述位移信号和所述偏置曲线相减,以得到无偏置位移信号;利用电机机电耦合方程将所述偏置位移信号转换为用于驱动所述电机的电压驱动信号。In order to solve the above technical problems, a technical solution adopted by the present invention is to provide a method for generating a voltage drive signal, the voltage drive signal is used to drive a motor, and the method includes: providing a desired vibration acceleration signal; The acceleration signal determines the time stamp at which the acceleration is zero; the acceleration signal is integrated twice to obtain the displacement signal; according to the time stamp, all the displacement values on the displacement signal corresponding to the time stamp are obtained to form the first A sequence of numbers; performing interpolation processing on the first sequence of numbers to generate an offset curve containing all the displacement values; subtracting the displacement signal from the offset curve to obtain an unbiased displacement signal; using a motor The electromechanical coupling equation converts the bias displacement signal into a voltage drive signal for driving the motor.
其中,对所述第一数列进行插值处理,以生成包含所有所述位移数值的偏置曲线包括:在相邻的时间戳之间插入连续单调的数值,以使得所述第一数列扩充为所述偏置曲线。Wherein, performing interpolation processing on the first number sequence to generate an offset curve including all the displacement values includes: inserting continuous monotonic values between adjacent timestamps, so that the first number sequence is expanded as required.述Offset curve.
其中,所述偏置曲线的长度和所述位移信号的长度相同。Wherein, the length of the offset curve is the same as the length of the displacement signal.
其中,所述方法进一步包括:电压驱动信号将所述电压驱动信号输 出至所述电机,以使得设备基于所述电压驱动信号进行触觉效果播放。Wherein, the method further includes: outputting the voltage driving signal to the motor by a voltage driving signal, so that the device performs haptic effect playback based on the voltage driving signal.
其中,所述电压驱动信号的计算公式为:Wherein, the calculation formula of the voltage drive signal is:
Figure PCTCN2020104643-appb-000001
Figure PCTCN2020104643-appb-000001
Figure PCTCN2020104643-appb-000002
Figure PCTCN2020104643-appb-000002
其中,m表示所述电机的动子的质量,c表示所述电机的机械阻尼,k表示所述电机的弹簧系数;BL表示机电耦合系数,R e表示所述电机的线圈电阻,L e为表示所述电机的线圈电感,i为电流,u为电压,x为位移,
Figure PCTCN2020104643-appb-000003
为速度,
Figure PCTCN2020104643-appb-000004
为加速度;其中,加速度
Figure PCTCN2020104643-appb-000005
由所述加速度信号提供,速度
Figure PCTCN2020104643-appb-000006
由所述加速度信号进行一次积分获得,位移x由所述无偏置位移信号提供。
Where, m denotes the mass of the mover of the motor, c denotes a motor mechanical damping, k is the spring constant of the motor; BL represents the electromechanical coupling coefficient, the coil resistance R e represents a motor, L e is Represents the coil inductance of the motor, i is the current, u is the voltage, x is the displacement,
Figure PCTCN2020104643-appb-000003
Is the speed,
Figure PCTCN2020104643-appb-000004
Is acceleration; where, acceleration
Figure PCTCN2020104643-appb-000005
Provided by the acceleration signal, speed
Figure PCTCN2020104643-appb-000006
It is obtained by performing one integration of the acceleration signal, and the displacement x is provided by the unbiased displacement signal.
其中,所述对所述第一数列进行插值处理包括线性插值、多项式插值以及样条插值中的一种。Wherein, the interpolation processing on the first number sequence includes one of linear interpolation, polynomial interpolation, and spline interpolation.
为解决上述技术问题,本发明采用的另一个技术方案是:提供一种电压驱动信号的生成偏置的设备,所述设备包括处理器以及存储器,所述存储器存储有计算机指令,所述处理器耦合所述存储器,所述处理器在工作时执行所述计算机指令以实现上述的生成方法。In order to solve the above technical problems, another technical solution adopted by the present invention is to provide a device for generating bias of a voltage drive signal, the device including a processor and a memory, the memory storing computer instructions, and the processor Coupled with the memory, the processor executes the computer instructions during work to implement the foregoing generating method.
为解决上述技术问题,本发明采用的又一个技术方案是:提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行以实现如上述的生成方法。In order to solve the above technical problem, another technical solution adopted by the present invention is to provide a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the above-mentioned generating method.
本发明的有益效果是:区别于现有技术的情况,本发明提供一种电压驱动信号的生成方法及设备、存储介质,通过识别并记录期望的振动加速度信号号为零时刻的时间戳,对原始加速度信号进行二次积分后得到位移信号,读取位移信号在记录时间戳处的数值,以得到第一数列,并对第一数列进行插值处理并通过插值,使得第一数列扩充为长度与位移信号等长的偏置曲线,最后将位移信号减去偏置曲线即可获得无偏置的位移信号,如此可以有效去除交流信号中二次积分产生的偏置。The beneficial effect of the present invention is: different from the situation in the prior art, the present invention provides a method for generating a voltage drive signal, a device, and a storage medium. The original acceleration signal is double-integrated to obtain the displacement signal. The value of the displacement signal at the recording time stamp is read to obtain the first number sequence, and the first number sequence is interpolated and through interpolation, the first number sequence is expanded to the length and The offset curve with the same length of the displacement signal, and finally the displacement signal is subtracted from the offset curve to obtain the displacement signal without offset, which can effectively remove the offset generated by the second integral in the AC signal.
附图说明Description of the drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,其中:In order to explain the technical solutions in the embodiments of the present invention more clearly, the following will briefly introduce the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative work, other drawings can be obtained based on these drawings, among which:
图1是本发明电压驱动信号的生成方法一实施方式的流程示意图;FIG. 1 is a schematic flowchart of an embodiment of a method for generating a voltage drive signal according to the present invention;
图2是本发明原始交流信号一实施方式的示意图;Fig. 2 is a schematic diagram of an embodiment of the original AC signal of the present invention;
图3是本发明原始积分信号一实施方式的示意图;Fig. 3 is a schematic diagram of an embodiment of the original integrated signal of the present invention;
图4是本发明第一数列一实施方式的示意图;4 is a schematic diagram of an embodiment of the first number sequence of the present invention;
图5是本发明无偏置积分信号一实施方式的示意图;Fig. 5 is a schematic diagram of an embodiment of an unbiased integral signal of the present invention;
图6是本发明提供电压驱动信号的生成设备实施例的示意框图;Fig. 6 is a schematic block diagram of an embodiment of a device for generating a voltage drive signal according to the present invention;
图7是本发明提供的计算机可读存储介质实施例的示意框图。Fig. 7 is a schematic block diagram of an embodiment of a computer-readable storage medium provided by the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
请一并参阅图1,图1是本发明电压驱动信号的生成方法一实施方式的流程示意图,如图1所示本发明提供的方法包括如下步骤:Please also refer to FIG. 1. FIG. 1 is a schematic flowchart of an embodiment of a method for generating a voltage drive signal according to the present invention. As shown in FIG. 1, the method provided by the present invention includes the following steps:
S100,提供期望的振动加速度信号。S100: Provide a desired vibration acceleration signal.
进一步结合图2,图2为本发明原始交流信号一实施方式的示意图。可选地,本发明中实施例中的原始交流信号A0为被积分信号,例如在加速度信号积分转换为位移信号应用中,该原始交流信号A0为期望的振动加速度信号。Further combined with FIG. 2, FIG. 2 is a schematic diagram of an embodiment of the original AC signal of the present invention. Optionally, the original AC signal A0 in the embodiment of the present invention is an integrated signal. For example, in an application where an acceleration signal is integrated and converted into a displacement signal, the original AC signal A0 is a desired vibration acceleration signal.
S200,根据加速度信号确定加速度为零的时间戳。S200: Determine a time stamp at which the acceleration is zero according to the acceleration signal.
进一步,根据加速度信号确定加速度为零的时的时间戳T0并记录。将所有加速度为零的时的时间戳T0记作数列L0,即数列L0表征所述原始交流信号A0(加速度信号)的每一个过零点的时刻。Further, the time stamp T0 when the acceleration is zero is determined according to the acceleration signal and recorded. The time stamp T0 when all accelerations are zero is recorded as a series L0, that is, the series L0 represents the time of each zero-crossing point of the original AC signal A0 (acceleration signal).
S300,对加速度信号进行二次积分以得到位移信号。S300: Perform quadratic integration on the acceleration signal to obtain a displacement signal.
进一步结合图3,图3为本发明原始积分信号一实施方式的示意图。可以理解的是,本发明中原始交流信号A0为加速度信号,如此可以对该加速度信号进行二次积分从而得到原始积分信号,此处原始积分信号D0为位移信号。Further combined with FIG. 3, FIG. 3 is a schematic diagram of an embodiment of the original integrated signal of the present invention. It can be understood that the original AC signal A0 in the present invention is an acceleration signal, so the acceleration signal can be integrated twice to obtain the original integrated signal, where the original integrated signal D0 is a displacement signal.
需要说明的是,本发明步骤S200和步骤S300也可以同时进行,此处不做具体限定。It should be noted that step S200 and step S300 of the present invention can also be performed at the same time, which is not specifically limited here.
S400,根据时间戳,获取位移信号上与所述时间戳对应的所有位移数值,以形成第一数列。S400: Obtain all displacement values corresponding to the timestamp on the displacement signal according to the timestamp to form a first number sequence.
进一步结合图4,图4为本发明第一数列一实施方式的示意图。具体地,选取原始积分信号D0(位移信号)上与时间戳对应的所有位移数值,从而形成如图4所示的第一数列DL。Further combined with FIG. 4, FIG. 4 is a schematic diagram of an embodiment of the first number sequence of the present invention. Specifically, all the displacement values corresponding to the time stamp on the original integrated signal D0 (displacement signal) are selected to form the first series DL as shown in FIG. 4.
S500,对第一数列进行插值处理,以生成包含所有位移数值的偏置曲线。S500: Perform interpolation processing on the first number sequence to generate an offset curve including all displacement values.
具体地,通过对第一数列DL进行插值处理,即将时刻为L0、数值大小为DL的信号中间插入连续单调的数值,以使得第一数列DL扩充为偏置曲线Rc。其中,偏置曲线Rc的长度与位移信号0的长度相等。可以理解的是,本发明实施例中的插值方式可以为线性插值、多项式插值以及样条插值中的一种,根据实际应用场景进行选择,此处不做具体限定。Specifically, by performing interpolation processing on the first number sequence DL, that is, a continuous monotonic value is inserted between the signal whose time is L0 and the value is DL, so that the first number sequence DL is expanded into the offset curve Rc. Wherein, the length of the offset curve Rc is equal to the length of the displacement signal 0. It can be understood that the interpolation method in the embodiment of the present invention may be one of linear interpolation, polynomial interpolation, and spline interpolation, which is selected according to actual application scenarios, and is not specifically limited here.
S600,将位移信号及偏置曲线相减,以得到无偏置位移信号。S600: Subtract the displacement signal and the offset curve to obtain an unbiased displacement signal.
结合图5,图5为本发明无偏置积分信号一实施方式的示意图,将原始积分信号D0(位移信号)减去上述偏置曲线Rc,便可以得到如图5所示的无偏置积分信号D1,即得到无偏执的位移信号。Combined with Fig. 5, Fig. 5 is a schematic diagram of an embodiment of the unbiased integral signal of the present invention. The original integral signal D0 (displacement signal) is subtracted from the above-mentioned offset curve Rc, and the unbiased integral as shown in Fig. 5 can be obtained. The signal D1 is a displacement signal without paranoia.
上述实施方式中,通过识别并记录期望的振动加速度信号号为零时刻的时间戳,对原始加速度信号进行二次积分后得到位移信号,读取位移信号在记录时间戳处的数值,以得到第一数列,并对第一数列进行插值处理并通过插值,使得第一数列扩充为长度与位移信号等长的偏置曲线,最后将位移信号减去偏置曲线即可获得无偏置的位移信号,如此可以有效去除交流信号中二次积分产生的偏置。In the above embodiment, by identifying and recording the time stamp when the expected vibration acceleration signal number is zero, the original acceleration signal is integrated twice to obtain the displacement signal, and the value of the displacement signal at the recording time stamp is read to obtain the first A sequence of numbers, and the first sequence of numbers is interpolated and through interpolation, the first number sequence is expanded to an offset curve with the same length as the displacement signal, and finally the displacement signal is subtracted from the offset curve to obtain an unbiased displacement signal , This can effectively remove the offset generated by the second integral in the AC signal.
除此之外,本发明提供的电压驱动信号的生成方法进一步包括:In addition, the method for generating a voltage drive signal provided by the present invention further includes:
S700,利用电机机电耦合方程将偏置位移信号转换为用于驱动电机的电压驱动信号。S700, using the electromechanical coupling equation of the motor to convert the offset displacement signal into a voltage driving signal for driving the motor.
具体地,根据无偏置位移信号生成电压驱动信号。具体地,将无偏置积分信号D1(位移信号)代入机电耦合方程,以计算得出电压驱动信号,其中机电耦合方程为:Specifically, the voltage drive signal is generated according to the unbiased displacement signal. Specifically, the unbiased integral signal D1 (displacement signal) is substituted into the electromechanical coupling equation to calculate the voltage drive signal, where the electromechanical coupling equation is:
Figure PCTCN2020104643-appb-000007
Figure PCTCN2020104643-appb-000007
Figure PCTCN2020104643-appb-000008
Figure PCTCN2020104643-appb-000008
其中,m表示电机的动子的质量,c表示电机的机械阻尼,k表示电机的弹簧系数;BL表示机电耦合系数,R e表示电机的线圈电阻,L e为表示电机的线圈电感,i为电流,u为电压,x为位移,
Figure PCTCN2020104643-appb-000009
为速度,
Figure PCTCN2020104643-appb-000010
为加速度;其中,加速度
Figure PCTCN2020104643-appb-000011
由加速度信号提供,速度
Figure PCTCN2020104643-appb-000012
由加速度信号进行一次积分获得,位移x由无偏置位移信号提供。可选地,本发明实施例中,在已知位移信号x=D1的情况下,将该位移信号D1代入电机耦合方程即可求得电压驱动信号u=V1。
Wherein, m represents a mass of the mover of the motor, c denotes mechanical damping of the motor, k represents a spring constant of the motor; BL represents the electromechanical coupling coefficient, R e represents a coil resistance of the motor, L e is a coil inductance of the motor, i is Current, u is voltage, x is displacement,
Figure PCTCN2020104643-appb-000009
Is the speed,
Figure PCTCN2020104643-appb-000010
Is acceleration; where, acceleration
Figure PCTCN2020104643-appb-000011
Provided by acceleration signal, speed
Figure PCTCN2020104643-appb-000012
It is obtained by integrating the acceleration signal once, and the displacement x is provided by the unbiased displacement signal. Optionally, in the embodiment of the present invention, when the displacement signal x=D1 is known, the displacement signal D1 is substituted into the motor coupling equation to obtain the voltage drive signal u=V1.
进一步,将电压驱动信号V1输出至电机,以使得设备基于电压驱动信号V1进行触觉效果播放。Further, the voltage driving signal V1 is output to the motor, so that the device performs haptic effect playback based on the voltage driving signal V1.
本实施例中,上述的设备可以是任何具备通信和存储功能的设备,例如:平板电脑、手机、电子阅读器、遥控器、个人计算机(Personal Computer,PC)、笔记本电脑、车载设备、网络电视、可穿戴设备等具有网络功能的智能设备。In this embodiment, the above-mentioned device can be any device with communication and storage functions, such as: tablet computer, mobile phone, e-reader, remote control, personal computer (PC), notebook computer, in-vehicle equipment, and Internet TV , Wearable devices and other smart devices with network functions.
上述实施方式中,通过识别并记录期望的振动加速度信号为零时刻的时间戳,对原始加速度信号进行二次积分后得到位移信号,读取位移信号在记录时间戳处的数值,以得到第一数列,并对第一数列进行插值处理并通过插值,使得第一数列扩充为长度与位移信号等长的偏置曲线,最后将位移信号减去偏置曲线即可获得无偏置的位移信号,如此可以有效去除交流信号中二次积分产生的偏置。In the above embodiment, by identifying and recording the time stamp at the time when the expected vibration acceleration signal is zero, the original acceleration signal is double-integrated to obtain the displacement signal, and the value of the displacement signal at the recording time stamp is read to obtain the first The first number sequence is interpolated and through interpolation, the first number sequence is expanded into an offset curve with the same length as the displacement signal. Finally, the displacement signal is subtracted from the offset curve to obtain an unbiased displacement signal. In this way, the offset generated by the second integration in the AC signal can be effectively removed.
参阅图6,图6是本发明提供的电压驱动信号的生成设备实施例的示意框图,本实施例中的设备包括处理器310及存储器320,处理器310 与存储器320耦合,存储器320存储有计算机指令,处理器310在工作时执行计算机指令以实现上述任一实施例中的电压驱动信号的生成方法。Referring to FIG. 6, FIG. 6 is a schematic block diagram of an embodiment of a device for generating a voltage drive signal provided by the present invention. The device in this embodiment includes a processor 310 and a memory 320. The processor 310 is coupled with the memory 320, and the memory 320 stores a computer Instruction, the processor 310 executes computer instructions during work to implement the voltage driving signal generation method in any of the foregoing embodiments.
其中,处理器310还可以称为CPU(Central Processing Unit,中央处理单元)。处理器310可能是一种集成电路芯片,具有信号的处理能力。处理器310还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器,但不仅限于此。The processor 310 may also be referred to as a CPU (Central Processing Unit, central processing unit). The processor 310 may be an integrated circuit chip with signal processing capabilities. The processor 310 may also be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component . The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, but is not limited to this.
参阅图7,图7是本发明提供的计算机可读存储介质实施例的示意框图,本实施例中的计算机可读存储介质存储有计算机程序410,该计算机程序410能够被处理器执行以实现上述任一实施例中的电压驱动信号的生成方法。Referring to FIG. 7, FIG. 7 is a schematic block diagram of an embodiment of a computer-readable storage medium provided by the present invention. The computer-readable storage medium in this embodiment stores a computer program 410, which can be executed by a processor to realize the foregoing A method for generating a voltage drive signal in any embodiment.
可选的,该可读存储介质可以是U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,或者是计算机、服务器、手机、平板等终端设备。Optionally, the readable storage medium can be a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, etc., which can store The medium of the program code, or a terminal device such as a computer, server, mobile phone, or tablet.
区别于现有技术,本发明实施例提供一种电压驱动信号的生成方法及设备、存储介质,通过识别并记录期望的振动加速度信号为零时刻的时间戳,对原始加速度信号进行二次积分后得到位移信号,读取位移信号在记录时间戳处的数值,以得到第一数列,并对第一数列进行插值处理并通过插值,使得第一数列扩充为长度与位移信号等长的偏置曲线,最后将位移信号减去偏置曲线即可获得无偏置的位移信号,如此可以有效去除交流信号中二次积分产生的偏置。Different from the prior art, the embodiments of the present invention provide a method for generating a voltage drive signal, a device, and a storage medium. By identifying and recording the time stamp at the time when the expected vibration acceleration signal is zero, the original acceleration signal is double-integrated. Obtain the displacement signal, read the value of the displacement signal at the recording time stamp to obtain the first number sequence, and perform interpolation processing on the first number sequence and through interpolation, so that the first number sequence is expanded into an offset curve with the same length as the displacement signal Finally, the displacement signal is subtracted from the offset curve to obtain the displacement signal without offset, which can effectively remove the offset generated by the second integral in the AC signal.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the content of the description and drawings of the present invention, or directly or indirectly applied to other related technologies In the same way, all fields are included in the scope of patent protection of the present invention.

Claims (8)

  1. 一种电压驱动信号的生成方法,所述电压驱动信号用于驱动电机,其特征在于,所述方法包括:A method for generating a voltage drive signal, where the voltage drive signal is used to drive a motor, characterized in that the method includes:
    提供期望的振动加速度信号;Provide the desired vibration acceleration signal;
    根据所述加速度信号确定加速度为零的时间戳;Determining a time stamp at which the acceleration is zero according to the acceleration signal;
    对所述加速度信号进行二次积分以得到位移信号;Performing quadratic integration on the acceleration signal to obtain a displacement signal;
    根据所述时间戳,获取所述位移信号上与所述时间戳对应的所有位移数值,以形成第一数列;According to the time stamp, obtain all the displacement values corresponding to the time stamp on the displacement signal to form a first number sequence;
    对所述第一数列进行插值处理,以生成包含所有所述位移数值的偏置曲线;Performing interpolation processing on the first number sequence to generate an offset curve including all the displacement values;
    将所述位移信号和所述偏置曲线相减,以得到无偏置位移信号;Subtracting the displacement signal and the offset curve to obtain an unbiased displacement signal;
    利用电机机电耦合方程将所述偏置位移信号转换为用于驱动所述电机的电压驱动信号。The motor electromechanical coupling equation is used to convert the bias displacement signal into a voltage drive signal for driving the motor.
  2. 根据权利要求1所述的生成方法,其特征在于,对所述第一数列进行插值处理,以生成包含所有所述位移数值的偏置曲线包括:The generating method according to claim 1, wherein performing interpolation processing on the first number sequence to generate an offset curve including all the displacement values comprises:
    在相邻的时间戳之间插入连续单调的数值,以使得所述第一数列扩充为所述偏置曲线。A continuous monotonic value is inserted between adjacent time stamps, so that the first number sequence is expanded to the offset curve.
  3. 根据权利要求2所述的生成方法,其特征在于,所述偏置曲线的长度和所述位移信号的长度相同。The generating method according to claim 2, wherein the length of the offset curve and the length of the displacement signal are the same.
  4. 根据权利要求1所述的生成方法,其特征在于,所述方法进一步包括:The generating method according to claim 1, wherein the method further comprises:
    将所述电压驱动信号输出至所述电机,以使得设备基于所述电压驱动信号进行触觉效果播放。The voltage driving signal is output to the motor, so that the device performs haptic effect playback based on the voltage driving signal.
  5. 根据权利要求4所述的生成方法,其特征在于,所述电压驱动信号的计算公式为:The generating method according to claim 4, wherein the calculation formula of the voltage driving signal is:
    Figure PCTCN2020104643-appb-100001
    Figure PCTCN2020104643-appb-100001
    Figure PCTCN2020104643-appb-100002
    Figure PCTCN2020104643-appb-100002
    其中,m表示所述电机的动子的质量,c表示所述电机的机械阻尼,k表示所述电机的弹簧系数;BL表示机电耦合系数,R e表示所述电机的线圈电阻,L e为表示所述电机的线圈电感,i为电流,u为电压,x为位移,
    Figure PCTCN2020104643-appb-100003
    为速度,
    Figure PCTCN2020104643-appb-100004
    为加速度;其中,加速度
    Figure PCTCN2020104643-appb-100005
    由所述加速度信号提供,速度
    Figure PCTCN2020104643-appb-100006
    由所述加速度信号进行一次积分获得,位移x由所述无偏置位移信号提供。
    Where, m denotes the mass of the mover of the motor, c denotes a motor mechanical damping, k is the spring constant of the motor; BL represents the electromechanical coupling coefficient, the coil resistance R e represents a motor, L e is Represents the coil inductance of the motor, i is the current, u is the voltage, x is the displacement,
    Figure PCTCN2020104643-appb-100003
    Is the speed,
    Figure PCTCN2020104643-appb-100004
    Is acceleration; where, acceleration
    Figure PCTCN2020104643-appb-100005
    Provided by the acceleration signal, speed
    Figure PCTCN2020104643-appb-100006
    It is obtained by performing one integration of the acceleration signal, and the displacement x is provided by the unbiased displacement signal.
  6. 根据权利要求1所述的生成方法,其特征在于,所述对所述第一数列进行插值处理包括线性插值、多项式插值以及样条插值中的一种。The generating method according to claim 1, wherein the interpolation processing on the first number sequence includes one of linear interpolation, polynomial interpolation, and spline interpolation.
  7. 一种电压驱动信号的生成设备,其特征在于,所述设备包括处理器以及存储器,所述存储器存储有计算机指令,所述处理器耦合所述 存储器,所述处理器在工作时执行所述计算机指令以实现如权利要求1~6中任一项所述的生成方法。A device for generating a voltage drive signal, characterized in that the device includes a processor and a memory, the memory stores computer instructions, the processor is coupled to the memory, and the processor executes the computer during work. Instructions to implement the generating method according to any one of claims 1 to 6.
  8. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行以实现如权利要求1~6中任一项所述的生成方法。A computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the generating method according to any one of claims 1 to 6.
PCT/CN2020/104643 2020-06-24 2020-07-24 Method and device for generating voltage driving signal, and storage medium WO2021258483A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010585367.XA CN111722721B (en) 2020-06-24 2020-06-24 Method and equipment for generating voltage driving signal and storage medium
CN202010585367.X 2020-06-24

Publications (1)

Publication Number Publication Date
WO2021258483A1 true WO2021258483A1 (en) 2021-12-30

Family

ID=72568677

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/104643 WO2021258483A1 (en) 2020-06-24 2020-07-24 Method and device for generating voltage driving signal, and storage medium

Country Status (2)

Country Link
CN (1) CN111722721B (en)
WO (1) WO2021258483A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630021A (en) * 2015-12-31 2016-06-01 歌尔声学股份有限公司 Touch sense vibration control system and method of intelligent terminal
CN205581671U (en) * 2015-12-31 2016-09-14 歌尔股份有限公司 Intelligent terminal's sense of touch vibration control system
EP3650993A1 (en) * 2018-11-09 2020-05-13 Immersion Corporation Devices and methods for controlling a haptic actuator
CN111211726A (en) * 2020-01-16 2020-05-29 司宏伟 System for generating motor drive signals
CN111294014A (en) * 2018-12-10 2020-06-16 广州汽车集团股份有限公司 Signal integration deviation removing method and system and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8084968B2 (en) * 2007-09-17 2011-12-27 Sony Ericsson Mobile Communications Ab Use of an accelerometer to control vibrator performance
CN107960146A (en) * 2015-08-06 2018-04-24 株式会社山田制作所 Motor control assembly
CN107883996A (en) * 2017-11-06 2018-04-06 南京国电环保科技有限公司 A kind of data acquisition and signal processing method and data acquisition unit
CN110502111B (en) * 2019-08-09 2021-02-26 瑞声科技(新加坡)有限公司 Motor signal compensation method, electronic device, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630021A (en) * 2015-12-31 2016-06-01 歌尔声学股份有限公司 Touch sense vibration control system and method of intelligent terminal
CN205581671U (en) * 2015-12-31 2016-09-14 歌尔股份有限公司 Intelligent terminal's sense of touch vibration control system
EP3650993A1 (en) * 2018-11-09 2020-05-13 Immersion Corporation Devices and methods for controlling a haptic actuator
CN111294014A (en) * 2018-12-10 2020-06-16 广州汽车集团股份有限公司 Signal integration deviation removing method and system and electronic equipment
CN111211726A (en) * 2020-01-16 2020-05-29 司宏伟 System for generating motor drive signals

Also Published As

Publication number Publication date
CN111722721B (en) 2023-03-28
CN111722721A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
CN109643397B (en) Time-series data feature amount extraction device, time-series data feature amount extraction method, and time-series data feature amount extraction program
TWI766282B (en) Calibration method, electronic equipment and storage medium
CN114492094B (en) Soil body state data calculation method and device based on boundary surface plastic model
WO2021258483A1 (en) Method and device for generating voltage driving signal, and storage medium
CN109781341B (en) Data calibration method and device for air pressure sensor
JP2002043429A (en) Simulation method and simulation device
CN112782732B (en) Navigation signal analysis method based on particle swarm algorithm and computer readable medium
WO2012081158A1 (en) Circuit simulation method and semiconductor integrated circuit
CN116399374B (en) MEMS gyroscope sensor compensation method, device, terminal and storage medium
Saucez et al. Upwinding in the method of lines
CN116026328A (en) Construction method and compensation method of zero-bias hysteresis effect compensation model of micro inertial navigation
Preiswerk et al. State observers for the time discretization of a class of impulsive mechanical systems
CN111998870B (en) Calibration method and device of camera inertial navigation system
CN113295183B (en) Temperature compensation method and device of laser gyro, electronic equipment and storage medium
JP2009211681A (en) Coefficient calculation device, coefficient calculation method, and coefficient calculation program of constructive equation of superelastic material
CN114440866B (en) Sensor data calibration method and calibration system
CN115452101A (en) Instrument verification method, device, equipment and medium
CN102414567A (en) Correction device, probability density function measuring device, jitter measuring device, jitter separating device, electronic device, correction method, program, and recording medium
CN111443756B (en) Clock disciplining method and system for computer and equipment with hardware triggering function
CN112698368B (en) Navigation signal analysis method of navigation receiver and computer readable medium
Turner et al. Interpolation
CN117147022B (en) Force sensor nonlinear compensation method and system
Phillips Folklore theorems, implicit maps and new unit root limit theory
White Stability of optimal output least squares estimators in certain beams and plate models
JP2973048B2 (en) Temperature sensor linearization processing method

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20941549

Country of ref document: EP

Kind code of ref document: A1