WO2023246057A1 - Linear motor driving method and device, and storage medium - Google Patents

Linear motor driving method and device, and storage medium Download PDF

Info

Publication number
WO2023246057A1
WO2023246057A1 PCT/CN2022/142377 CN2022142377W WO2023246057A1 WO 2023246057 A1 WO2023246057 A1 WO 2023246057A1 CN 2022142377 W CN2022142377 W CN 2022142377W WO 2023246057 A1 WO2023246057 A1 WO 2023246057A1
Authority
WO
WIPO (PCT)
Prior art keywords
waveform
audio
linear motor
data
type
Prior art date
Application number
PCT/CN2022/142377
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 WO2023246057A1 publication Critical patent/WO2023246057A1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10009Improvement or modification of read or write signals
    • G11B20/10305Improvement or modification of read or write signals signal quality assessment
    • G11B20/10453Improvement or modification of read or write signals signal quality assessment physical shape of recording marks, e.g. their length, width, depth or contour
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers

Definitions

  • This article relates to the field of spatial positioning, especially a linear motor driving method, device and storage medium.
  • Tactile experience has widely penetrated into various devices in technological activities, such as controllers, game consoles, mobile phones, game consoles, tablets, etc.
  • Tactile actuators using linear motors as carriers can obtain customized tactile experiences by designing their specific waveforms, which greatly enriches user perception.
  • linear motors have improved users' entertainment experience.
  • Using audio signals to directly drive linear motors can directly experience a richer and more immersive vibration experience; linear motors are only sensitive to a certain frequency range, but audio data contains complex Frequency component, when the audio data is directly used to drive a linear motor, the vibration frequency component that is not suitable for the linear motor will be loaded onto the linear motor.
  • the consequence is that the ultra-low frequency data part of the audio data makes the linear motor more likely to get hot, and the high-frequency data part And the UHF frequency data part makes the linear motor only produce sound without vibration. If low-pass filtering or band-pass filtering is used to process audio data, all frequency components of the filtered audio will be directly filtered out, and the linear motor can no longer be driven to vibrate.
  • the audio frequency of an electric drill is generally above 1Khz. If the audio data of the electric drill directly drives the linear motor, the linear motor cannot vibrate. If low-pass filtering is used to filter the audio data of the electric drill and the audio data of the electric drill is directly reset to zero, the filtered result will still not be able to drive the linear motor.
  • This application provides a linear motor driving method, device and storage medium.
  • the method processes and converts audio data in the time domain, so that the audio frequency diversity can be retained after conversion of the audio data to effectively drive the linear motor.
  • This application provides a linear motor driving method, which method includes:
  • process the audio data to obtain the backbone waveform of the audio data, where the backbone waveform is the waveform with the largest area among all waveforms of the audio data;
  • the linear motor is driven according to the main waveform of the audio data.
  • processing the audio data based on the time domain audio waveform and the operating frequency to obtain the backbone waveform of the audio data includes:
  • time-domain audio waveforms of different areas are converted into sinusoidal waveforms corresponding to the audio data
  • the backbone waveform is determined.
  • obtaining the time domain audio waveform of audio data includes:
  • an audio waveform in the time domain which is a waveform formed by discrete data points composed of time and audio waveform intensity; where the x-axis represents the time of the audio waveform data point, and the y-axis represents the intensity of the audio waveform data point;
  • determining the half-cycle range of effective audio waveform data for driving the linear motor according to the operating frequency of the linear motor includes:
  • a lower limit of a half cycle of valid audio waveform data for driving the linear motor is determined based on the second frequency.
  • dividing the acquired time-domain audio waveform data into types according to the determined half-cycle range of the valid audio waveform data includes:
  • the audio waveform that passes through the intensity 0 axis and whose time range is between the upper half-cycle limit and the lower half-cycle limit is defined as the second type of waveform
  • the audio waveform that continues on the intensity 0 axis is defined as the fourth type of waveform.
  • calculating the area of a graph surrounded by each type of time-domain audio waveform and the x-axis representing time includes:
  • For the first type of waveform divide the audio waveform into multiple waveform segments according to the upper limit of the half cycle; calculate the area of the graph surrounded by each waveform segment and the x-axis representing time;
  • the area of the fourth type waveform is 0.
  • converting time-domain audio waveforms of different areas into sinusoidal waveforms corresponding to the audio data according to the calculated areas and preset conversion rules including:
  • the amplitude of the sine wave form For the first type of waveform and the second type of waveform, calculate the amplitude of the sine wave form according to the determined duration and area; according to the amplitude and duration, each waveform or waveform segment is restored to a half-cycle sine wave;
  • the duration of the third type waveform and the fourth type waveform is combined and calculated. If the combined duration range is between the lower limit and the upper limit of the half cycle, the amplitude and duration are calculated. Restore each third type waveform to a half-cycle sine wave; if the combined duration range is smaller than the second half-cycle definition, convert both the third and fourth type waveforms into straight lines with an intensity of 0.
  • the reduction to a half-cycle sine wave includes:
  • the area of the graph surrounded by the x-axis representing time is negative, and it is restored to a half-cycle sine wave below the x-axis.
  • This application also provides a linear motor driving device, which includes: an acquisition module, a processing module and a driving module;
  • the acquisition module is used to acquire the time domain audio waveform of the audio data used to drive the linear motor and the operating frequency of the linear motor to be driven;
  • the processing module is configured to process the audio data based on the time domain audio waveform and the operating frequency, and obtain the backbone waveform of the audio data.
  • the backbone waveform is the entire waveform of the audio data. The largest waveform in the medium area;
  • the driving module is used to drive the linear motor according to the main waveform of the audio data.
  • This application also provides a linear motor driving device, which includes: a memory and a processor; wherein the memory is used to save a linear motor driving program, and the processor is used to read and execute the program for the linear motor.
  • the driver program executes the method described in any one of the above embodiments.
  • the present application also provides a computer storage medium in which computer-executable instructions are stored, and the computer-executable instructions are used to execute the linear motor driving method described in any one of the embodiments.
  • this application provides a linear motor driving method, device and storage medium.
  • the method includes: acquiring the time domain audio waveform of the audio data used to drive the linear motor and the work of the linear motor to be driven. Frequency; based on the time domain audio waveform and the operating frequency, process the audio data to obtain the backbone waveform of the audio data, and the backbone exploits the waveform with the largest area among all the waveforms of the audio data; according to The main waveform of the audio data drives the linear motor.
  • the method processes and converts audio data in the time domain, so that the diversity of audio frequencies can be retained after conversion of the audio data to effectively drive the linear motor.
  • Figure 1 is a flow chart of a linear motor driving method according to an embodiment of the present application
  • Figure 2 is a schematic diagram of audio waveforms in some exemplary embodiments
  • Figure 3 is a schematic diagram of a partially amplified audio waveform in some exemplary embodiments
  • Figure 4 is a schematic diagram of dividing time-domain audio waveform data into first type waveforms in some exemplary embodiments
  • Figure 5 is a schematic diagram of dividing time domain audio waveform data into a second type of waveform in some exemplary embodiments.
  • Figure 6 is a schematic diagram of dividing time domain audio waveform data into a third type of waveform in some exemplary embodiments
  • Figure 7 is a schematic diagram of dividing time domain audio waveform data into a fourth type of waveform in some exemplary embodiments.
  • Figure 8A is a rendering of the first type of waveform before conversion in some exemplary embodiments.
  • Figure 8B is a rendering of the first type of waveform after conversion in some exemplary embodiments.
  • Figure 9A is a rendering of the second type of waveform before conversion in some exemplary embodiments.
  • Figure 9B is a rendering of the second type of waveform after conversion in some exemplary embodiments.
  • Figure 10A is a diagram of the effects before third type and fourth type waveform conversion in some exemplary embodiments.
  • Figure 10B is a diagram showing the effects after conversion of third type and fourth type waveforms in some exemplary embodiments.
  • Figure 11 is a schematic diagram of positive and negative half-cycle sine waves restored according to the positive and negative areas of the waveform in some exemplary embodiments;
  • Figure 12 is a schematic diagram of area calculation of waveform data in some exemplary embodiments.
  • Figure 13A is a rendering of audio data before conversion in some exemplary embodiments
  • Figure 13B is a rendering of audio data after conversion in some exemplary embodiments.
  • Figure 14 is a schematic diagram of the linear motor driving device according to the embodiment of the present application.
  • Figure 15 is a schematic diagram of a linear motor driving device according to an embodiment of the present application.
  • Linear motors can vibrate using input analog signals (such as analog signals connected to headphones) and waveforms (such as square waves, sine waves), or they can use dedicated vibration drivers to vibrate.
  • a dedicated vibration driver generally supports analog signals, digital signals (connected through I2C ⁇ SPI ⁇ UART, etc.), and PWM signal input methods.
  • the vibration signal source is audio data
  • the audio data must be analog signals or converted into analog signals. You can It converts specific external audio signals into analog signals (such as audio input from Bluetooth, audio input from an audio interface (such as 3.55mm port)).
  • An embodiment of the present disclosure provides a linear motor driving method, as shown in Figure 1.
  • the method includes steps S110-S130:
  • the audio signal when used to directly drive the linear motor, a rich and more immersive vibration experience can be directly experienced, thereby improving the user's entertainment experience.
  • Implementation of obtaining the time-domain audio waveform of audio data The audio waveform is original audio data, and the audio data contains complex frequency components.
  • the sensitive or effective working frequency of each linear motor is different. First, the sensitive or effective working frequency of the linear motor to be driven must be obtained, and the invalid frequencies of the audio data are removed based on the obtained sensitive or effective working frequency.
  • obtaining the time domain audio waveform includes: obtaining the audio waveform in the time domain, where the audio waveform is a waveform formed by discrete data points composed of time and audio waveform intensity; where the x-axis represents The time of the audio waveform data point, the y-axis represents the intensity of the audio waveform data point; the x-axis is used as the intensity 0 axis of the audio waveform data point, and adjacent audio discrete data points are connected to form an audio waveform.
  • the horizontal axis is the x-axis and the vertical axis is the y-axis; taking the x-axis as the intensity 0 axis of the audio waveform data points, connecting each adjacent discrete data point is a continuous upward, downward or The audio waveform that returns the x-axis (0-axis).
  • the audio waveform shown in Figure 2 the audio waveform is partially enlarged and displayed, as shown in Figure 3.
  • processing the audio data based on the time domain audio waveform and the operating frequency to obtain the backbone waveform of the audio data includes: determining based on the operating frequency of the linear motor The half-cycle range of the effective audio waveform data that drives the linear motor; classify the acquired time-domain audio waveform into types according to the determined half-cycle range of the effective audio waveform data;
  • determining the half-cycle range of effective audio waveform data for driving the linear motor according to the operating frequency of the linear motor includes: determining the effective frequency range for driving the linear motor to be the first frequency to the second frequency; The upper limit of the half period of the effective audio waveform data for driving the linear motor is determined according to the first frequency; the lower limit of the half period of the effective audio waveform data for driving the linear motor is determined according to the second frequency.
  • the sensitive frequency range of the linear motor to be driven is 80HZ-200HZ, that is, the first frequency is 80HZ and the second frequency is 200HZ.
  • the upper limit of the half period of the effective audio waveform data for driving the linear motor is determined according to the first frequency to be 6.25 ms, and the lower limit of the half period of the effective audio waveform data for driving the linear motor is determined according to the second frequency to be 2.5 ms.
  • the acquired time-domain audio waveform data is divided into types according to the determined half-cycle range of the valid audio waveform data, including: audio that passes through the intensity 0 axis and whose time range is greater than the upper limit of the half-cycle
  • the waveform is defined as the first type of waveform; the audio waveform that passes through the intensity 0 axis and the time range is between the upper limit of the half cycle and the lower limit of the half cycle is defined as the second type waveform; the audio waveform that passes through the intensity 0 axis and the time range is less than the second half
  • the periodic audio waveform is defined as the third type of waveform; the audio waveform that continues on the intensity 0 axis is defined as the fourth type of waveform.
  • the time domain audio waveform data will be divided into types, which will pass through the intensity 0
  • the audio waveform that crosses the intensity 0 axis and has a time range greater than 6.25ms is defined as the first type of waveform, as shown in Figure 4; the audio waveform that passes through the intensity 0 axis and the time range is between 2.5ms-6.25ms is defined as the second type of waveform.
  • the audio waveform that passes through the intensity 0 axis and the time range is less than 2.5ms is defined as the third type of waveform, as shown in Figure 6; the audio waveform that continues on the intensity 0 axis is defined as the fourth type of waveform, As shown in Figure 7.
  • calculating the area of a graph surrounded by each type of time-domain audio waveform and the x-axis representing time includes: for the first type of waveform, dividing the audio waveform according to the upper half-cycle limit Divide multiple waveform segments; calculate the area of the graph surrounded by each waveform segment and the x-axis representing time; for the second type of waveform and the third type of waveform, calculate the time domain audio waveform surrounded by the x-axis representing time. The resulting graphic area is; the area of the fourth type waveform is 0.
  • converting time domain audio waveforms of different areas into corresponding sinusoidal waveforms for driving linear motors according to the calculated areas and preset conversion rules includes: converting the first type of waveform and second type waveforms, calculate the amplitude of the sine wave form based on the determined duration and area; restore each waveform or waveform segment to a half-cycle sine wave based on the amplitude and duration; for the third type waveform and the fourth type For waveforms, the durations of the third type waveform and the fourth type waveform are combined and calculated. If the combined duration range is between the lower limit and the upper limit of the half cycle, each third type waveform is restored to a half cycle based on the amplitude and duration.
  • Periodic sine wave if the combined duration range is smaller than the second half-cycle definition, the third and fourth types of waveforms will be converted into straight lines with an intensity of 0. For example: start processing the waveform from the beginning of the audio. For the first type of waveform, truncate it every 6.25ms, and then calculate the area of each segment of the audio waveform and the x-axis. Before conversion, as shown in Figure 8A, the conversion The final effect is shown in Figure 8B; for the second type of waveform, the area can be calculated directly, and the amplitude in the form of a sine wave is calculated based on the determined duration and area; each waveform or waveform segment is restored to a half cycle based on the amplitude and duration.
  • the sine wave is shown in Figure 9A before conversion, and the effect after conversion is shown in Figure 9B; for the third type waveform and the fourth type waveform, the effect before conversion is shown in Figure 10A, and the effect after conversion is shown in Figure 10B.
  • the reduction to a half-cycle sine wave includes: when the time domain audio waveform is above the x-axis, the area of the graph surrounded by the x-axis representing time is positive, and the reduction is A half-cycle sine wave above the x-axis; when the time-domain audio waveform is below the x-axis, the area of the graph surrounded by the x-axis representing time is negative, and it returns to a half-cycle sine wave below the x-axis.
  • the area of each waveform is the area between the waveform and the x-axis. Once the area and duration are known, it can be restored according to the half cycle of the sine waveform. A positive area is restored to a positive period, and a negative area Restore to a negative cycle, as shown in Figure 11.
  • the following steps may be used for the area method of a graph surrounded by each type of time-domain audio waveform and the x-axis representing time:
  • the first step Calculate the basic graphic area: x ⁇ [0,1], sinx ⁇ 0,
  • the second step assumes that the audio waveform sampling rate is 12000hz, 16bit (value range -32768 ⁇ 32767), and an original waveform (n points in total, each point corresponds to the value f(n))) interval area for:
  • the third step is to calculate the average area between every two points according to the following formula:
  • the fourth step is to calculate the proportional coefficient k:
  • Step 1000/n, i ⁇ [0,n];
  • the fifth step is to restore the calculation formula of each point value of the waveform as:
  • the Val set is the restored waveform, and connecting all the waveforms is the processed audio waveform that can drive the linear motor.
  • the diversity of audio frequencies can be retained after the audio data is converted.
  • Figure 13A before the audio data is converted and as shown in Figure 13B after the audio data is converted. It shows that from the comparison between Figure 13A and Figure 13B, the waveform after conversion is completely equal in time to the waveform before conversion, and the converted audio can be directly driven by the linear motor.
  • the embodiment of the present disclosure also provides a linear motor driving device.
  • the device includes: an acquisition module 1410, a processing module 1420 and a driving module 1430;
  • the acquisition module 1410 is used to acquire the time domain audio waveform of the audio data used to drive the linear motor and the operating frequency of the linear motor to be driven;
  • the processing module 1420 is configured to process the audio data based on the time domain audio waveform and the operating frequency, and obtain the backbone waveform of the audio data.
  • the backbone waveform is the entire waveform of the audio data. The largest waveform in the medium area;
  • the driving module 1430 is used to drive the linear motor according to the main waveform of the audio data.
  • the embodiment of the present disclosure also provides a linear motor driving device.
  • the device includes: a memory 1510 and a processor 1520; wherein the memory is used to save a linear motor driving program, and the processor uses After reading and executing the program for linear motor driving, the linear motor driving method described in any one of the above embodiments is executed.
  • Embodiments of the present disclosure also provide a computer storage medium in which computer-executable instructions are stored, and the computer-executable instructions are used to execute the linear motor driving method described in any one of the embodiments.
  • computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage devices, or may Any other medium used to store the desired information and that can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

A linear motor driving method and device, and a storage medium. The method comprises: obtaining a time domain audio waveform for driving the audio data of the linear motor and a working frequency of the linear motor to be driven; processing the audio data on the basis of the time domain audio waveform and the working frequency to obtain a stem waveform of the audio data, wherein the stem waveform has the largest area among all waveforms of the audio data; and driving the linear motor according to the stem waveform of the audio data.

Description

线性马达驱动方法、装置及存储介质Linear motor driving method, device and storage medium
本申请要求申请日为2022年6月20日、申请号为“202210701423.0”、专利名称为“线性马达驱动方法、装置及存储介质”的中国发明专利申请的优先权,其全部内容在此引入作为参考。This application claims priority for the Chinese invention patent application with the filing date of June 20, 2022, the application number "202210701423.0", and the patent name "Linear Motor Driving Method, Device and Storage Medium", the entire content of which is hereby incorporated as refer to.
技术领域Technical field
本文涉及空间定位领域,尤指一种线性马达驱动方法、装置及存储介质。This article relates to the field of spatial positioning, especially a linear motor driving method, device and storage medium.
背景技术Background technique
触觉体验已经广泛渗透到了科技活动中的各种设备,如手柄、游戏机、手机、游戏机、平板电脑等。以线性马达为载体的触觉致动器,通过设计其特定波形,可以获得定制化的触觉体验,极大程度地丰富了用户感知。Tactile experience has widely penetrated into various devices in technological activities, such as controllers, game consoles, mobile phones, game consoles, tablets, etc. Tactile actuators using linear motors as carriers can obtain customized tactile experiences by designing their specific waveforms, which greatly enriches user perception.
线性马达的普及使用户的娱乐体验得到了提升,使用音频信号直接驱动线性马达可以直接体验到震感丰富更加沉浸式的震动体验;线性马达只对某个频率区间比较敏感,但音频数据包含复杂的频率成分,当音频数据直接用来驱动线性马达会出现不适合线性马达震动频率成分加载到线性马达上,引起的后果是音频数据中特低频数据部分使线性马达更容易发烫,高频数据部分和特高频频率数据部分使线性马达只发出声音不震动。如果采用低通滤波的方式或者带通滤波的方式处理音频数据,会存在滤波后的音频所有频率成分直接被滤除,就不能再驱动线性马达震动,比如说电钻的音频频率一般在1Khz以上,若该电钻的音频数据直接驱动线性马达,该线性马达是无法震动的。若采用低通滤波对电钻的音频数据进行滤波,把电钻的音频数据直接归零,滤波后的结果仍然无法驱动线性马达。The popularity of linear motors has improved users' entertainment experience. Using audio signals to directly drive linear motors can directly experience a richer and more immersive vibration experience; linear motors are only sensitive to a certain frequency range, but audio data contains complex Frequency component, when the audio data is directly used to drive a linear motor, the vibration frequency component that is not suitable for the linear motor will be loaded onto the linear motor. The consequence is that the ultra-low frequency data part of the audio data makes the linear motor more likely to get hot, and the high-frequency data part And the UHF frequency data part makes the linear motor only produce sound without vibration. If low-pass filtering or band-pass filtering is used to process audio data, all frequency components of the filtered audio will be directly filtered out, and the linear motor can no longer be driven to vibrate. For example, the audio frequency of an electric drill is generally above 1Khz. If the audio data of the electric drill directly drives the linear motor, the linear motor cannot vibrate. If low-pass filtering is used to filter the audio data of the electric drill and the audio data of the electric drill is directly reset to zero, the filtered result will still not be able to drive the linear motor.
发明内容Contents of the invention
本申请提供了一种线性马达驱动方法、装置及存储介质,该方法在时域对音频数据进行处理和转换,使得该音频数据转换后可以保留音频频率的多样性,以有效驱动线性马达。This application provides a linear motor driving method, device and storage medium. The method processes and converts audio data in the time domain, so that the audio frequency diversity can be retained after conversion of the audio data to effectively drive the linear motor.
本申请提供了一种线性马达驱动方法,所述方法包括:This application provides a linear motor driving method, which method includes:
获取用于驱动所述线性马达的音频数据的时域音频波形和待驱动的线性马达的工作频率;Obtain the time domain audio waveform of the audio data used to drive the linear motor and the operating frequency of the linear motor to be driven;
基于所述时域音频波形和所述工作频率,对所述音频数据进行处理,获取所述音频数据的主干波形,所述主干波形是在所述音频数据的全部波形中面积最大波形;Based on the time domain audio waveform and the operating frequency, process the audio data to obtain the backbone waveform of the audio data, where the backbone waveform is the waveform with the largest area among all waveforms of the audio data;
根据所述音频数据的主干波形,对所述线性马达进行驱动。The linear motor is driven according to the main waveform of the audio data.
一种示例性的实施例中,所述基于所述时域音频波形和所述工作频率,对所述音频数据进行处理,获取所述音频数据的主干波形;包括:In an exemplary embodiment, processing the audio data based on the time domain audio waveform and the operating frequency to obtain the backbone waveform of the audio data includes:
根据所述线性马达的工作频率确定驱动线性马达的有效音频波形数据的半周期范围;Determine the half-cycle range of effective audio waveform data for driving the linear motor according to the operating frequency of the linear motor;
根据所确定的有效音频波形数据的半周期范围对所获取的时域音频波形划分类型;Classify the acquired time-domain audio waveform into types according to the determined half-cycle range of the valid audio waveform data;
基于所述划分,分别计算每种类型的时域音频波形与表示时间的x轴所围绕而成的图形的面积;Based on the division, calculate the area of the graph surrounded by each type of time domain audio waveform and the x-axis representing time;
根据所计算出的面积和预设转换规则,将不同面积的时域音频波形分别转换为与音频数据相应的正弦波形;According to the calculated area and preset conversion rules, time-domain audio waveforms of different areas are converted into sinusoidal waveforms corresponding to the audio data;
根据所述正弦波形,确定所述主干波形。Based on the sine waveform, the backbone waveform is determined.
一种示例性的实施例中,所述获取音频数据的时域音频波形,包括:In an exemplary embodiment, obtaining the time domain audio waveform of audio data includes:
获取时域上的音频波形,所述音频波形是由时间与音频波形强度构成的离散数据点形成的波形;其中,x轴代表音频波形数据点的时间,y轴代表音频波形数据点的强度;Obtain an audio waveform in the time domain, which is a waveform formed by discrete data points composed of time and audio waveform intensity; where the x-axis represents the time of the audio waveform data point, and the y-axis represents the intensity of the audio waveform data point;
将x轴作为音频波形数据点的强度0轴,把相邻音频离散数据点连接起来,形成时域音频波形。Taking the x-axis as the intensity 0 axis of the audio waveform data points, connect adjacent audio discrete data points to form a time domain audio waveform.
一种示例性的实施例中,所述根据所述线性马达工作频率确定驱动线性马达的有效音频波形数据的半周期范围,包括:In an exemplary embodiment, determining the half-cycle range of effective audio waveform data for driving the linear motor according to the operating frequency of the linear motor includes:
确定驱动线性马达工作的有效频率范围为第一频率到第二频率;Determine the effective frequency range for driving the linear motor to operate from the first frequency to the second frequency;
根据所述第一频率确定驱动线性马达的有效音频波形数据的半周期的上限;Determine an upper limit of a half cycle of effective audio waveform data for driving the linear motor based on the first frequency;
根据所述第二频率确定驱动线性马达的有效音频波形数据的半周期的下限。A lower limit of a half cycle of valid audio waveform data for driving the linear motor is determined based on the second frequency.
一种示例性的实施例中,所述根据所确定的有效音频波形数据的半周期范围对所获取的时域音频波形数据划分类型,包括:In an exemplary embodiment, dividing the acquired time-domain audio waveform data into types according to the determined half-cycle range of the valid audio waveform data includes:
将穿过强度0轴且时间范围大于半周期上限的音频波形定义为第一类型波形;Define audio waveforms that pass through the intensity 0 axis and have a time range greater than the upper limit of the half cycle as the first type of waveform;
将穿过强度0轴且时间范围位于半周期上限和半周期下限之间的音频波形定义为第二类型波形;The audio waveform that passes through the intensity 0 axis and whose time range is between the upper half-cycle limit and the lower half-cycle limit is defined as the second type of waveform;
将穿过强度0轴且时间范围小于第二半周期的音频波形定义为第三类型波形;Define the audio waveform that passes through the intensity 0 axis and has a time range smaller than the second half cycle as the third type of waveform;
将持续在强度0轴的音频波形定义为第四类型波形。The audio waveform that continues on the intensity 0 axis is defined as the fourth type of waveform.
一种示例性的实施例中,所述分别计算每种类型的时域音频波形与表示时间的x轴所围绕而成的图形的面积,包括:In an exemplary embodiment, calculating the area of a graph surrounded by each type of time-domain audio waveform and the x-axis representing time includes:
对于第一类型波形,将该音频波形按照半周期上限划分多个波形段;分别计算每个波形段与表示时间的x轴所围绕而成的图形的面积;For the first type of waveform, divide the audio waveform into multiple waveform segments according to the upper limit of the half cycle; calculate the area of the graph surrounded by each waveform segment and the x-axis representing time;
对于第二类型波形和第三类型波形计算时域音频波形与表示时间的x轴所围绕而成的图形面积;For the second type of waveform and the third type of waveform, calculate the graphic area surrounded by the time domain audio waveform and the x-axis representing time;
第四类型波形面积为0。The area of the fourth type waveform is 0.
一种示例性的实施例中,所述根据所计算出的面积和预先设置的转换规则,将不同面积的时域音频波形分别转换为与音频数据相应的正弦波形,包括:In an exemplary embodiment, converting time-domain audio waveforms of different areas into sinusoidal waveforms corresponding to the audio data according to the calculated areas and preset conversion rules, including:
对第一类型波形和第二类型波形类波形,根据所确定的时长和面积计算出正弦波形式的振 幅;根据振幅和时长分别将各波形或波形段还原为半周期正弦波;For the first type of waveform and the second type of waveform, calculate the amplitude of the sine wave form according to the determined duration and area; according to the amplitude and duration, each waveform or waveform segment is restored to a half-cycle sine wave;
对第三类型波形和第四类型波形类波形,将第三类型波形和第四类型波形的时长进行合并计算,若合并后的时长范围位于半周期的下限和上限之间时,根据振幅和时长将各第三类型波形还原为半周期正弦波;若合并后的时长范围小于第二半周期定义时,将第三、第四类型波形均转换成强度为0的直线。For the third type waveform and the fourth type waveform, the duration of the third type waveform and the fourth type waveform is combined and calculated. If the combined duration range is between the lower limit and the upper limit of the half cycle, the amplitude and duration are calculated. Restore each third type waveform to a half-cycle sine wave; if the combined duration range is smaller than the second half-cycle definition, convert both the third and fourth type waveforms into straight lines with an intensity of 0.
一种示例性的实施例中,所述还原为半周期正弦波,包括:In an exemplary embodiment, the reduction to a half-cycle sine wave includes:
时域音频波形在x轴上方时,与表示时间的x轴所围绕而成的图形的面积为正,还原为在x轴上方的半周期正弦波;When the time-domain audio waveform is above the x-axis, the area of the graph surrounded by the x-axis representing time is positive, and it is restored to a half-cycle sine wave above the x-axis;
时域音频波形在x轴下方时,与表示时间的x轴所围绕而成的图形的面积为负,还原为在x轴下方的半周期正弦波。When the time domain audio waveform is below the x-axis, the area of the graph surrounded by the x-axis representing time is negative, and it is restored to a half-cycle sine wave below the x-axis.
本申请还提供了一种线性马达驱动装置,所述装置包括:获取模块、处理模块和驱动模块;This application also provides a linear motor driving device, which includes: an acquisition module, a processing module and a driving module;
所述获取模块,用于获取用于驱动所述线性马达的音频数据的时域音频波形和待驱动的线性马达的工作频率;The acquisition module is used to acquire the time domain audio waveform of the audio data used to drive the linear motor and the operating frequency of the linear motor to be driven;
所述处理模块,用于基于所述时域音频波形和所述工作频率,对所述音频数据进行处理,获取所述音频数据的主干波形,所述主干波形是在所述音频数据的全部波形中面积最大波形;The processing module is configured to process the audio data based on the time domain audio waveform and the operating frequency, and obtain the backbone waveform of the audio data. The backbone waveform is the entire waveform of the audio data. The largest waveform in the medium area;
所述驱动模块,用于根据所述音频数据的主干波形,对所述线性马达进行驱动。The driving module is used to drive the linear motor according to the main waveform of the audio data.
本申请还提供了一种线性马达驱动装置,所述装置包括:存储器和处理器;其中,所述存储器用于保存线性马达驱动的程序,所述处理器用于读取执行所述用于线性马达驱动的程序,执行上述实施例中任一项所述的方法。This application also provides a linear motor driving device, which includes: a memory and a processor; wherein the memory is used to save a linear motor driving program, and the processor is used to read and execute the program for the linear motor. The driver program executes the method described in any one of the above embodiments.
本申请还一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行实施例中任一项所述的线性马达驱动方法。The present application also provides a computer storage medium in which computer-executable instructions are stored, and the computer-executable instructions are used to execute the linear motor driving method described in any one of the embodiments.
与相关技术相比,本申请提供一种线性马达驱动方法、装置和存储介质,所述方法包括:获取用于驱动所述线性马达的音频数据的时域音频波形和待驱动的线性马达的工作频率;基于所述时域音频波形和所述工作频率,对所述音频数据进行处理,获取所述音频数据的主干波形,所述主干剥削在所述音频数据的全部波形中面积最大波形;根据所述音频数据的主干波形,对所述线性马达进行驱动。通过本发明的技术方案,该方法在时域对音频数据进行处理和转换,使得该音频数据转换后可以保留音频频率的多样性,以有效驱动线性马达。Compared with related technologies, this application provides a linear motor driving method, device and storage medium. The method includes: acquiring the time domain audio waveform of the audio data used to drive the linear motor and the work of the linear motor to be driven. Frequency; based on the time domain audio waveform and the operating frequency, process the audio data to obtain the backbone waveform of the audio data, and the backbone exploits the waveform with the largest area among all the waveforms of the audio data; according to The main waveform of the audio data drives the linear motor. Through the technical solution of the present invention, the method processes and converts audio data in the time domain, so that the diversity of audio frequencies can be retained after conversion of the audio data to effectively drive the linear motor.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的其他优点可通过在说明书以及附图中所描述的方案来实现和获得。Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the application. Other advantages of the application can be realized and obtained by the solutions described in the specification and drawings.
附图说明Description of the drawings
附图用来提供对本申请技术方案的理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. They are used to explain the technical solution of the present application together with the embodiments of the present application and do not constitute a limitation of the technical solution of the present application.
图1为本申请实施例的一种线性马达驱动方法流程图;Figure 1 is a flow chart of a linear motor driving method according to an embodiment of the present application;
图2为一些示例性实施例中音频波形示意图;Figure 2 is a schematic diagram of audio waveforms in some exemplary embodiments;
图3为一些示例性实施例中音频波形局部放大波形示意图;Figure 3 is a schematic diagram of a partially amplified audio waveform in some exemplary embodiments;
图4为一些示例性实施例中将时域音频波形数据划分为第一类型波形示意图;Figure 4 is a schematic diagram of dividing time-domain audio waveform data into first type waveforms in some exemplary embodiments;
图5为一些示例性实施例中将时域音频波形数据划分为第二类型波形示意图Figure 5 is a schematic diagram of dividing time domain audio waveform data into a second type of waveform in some exemplary embodiments.
图6为一些示例性实施例中将时域音频波形数据划分为第三类型波形示意图;Figure 6 is a schematic diagram of dividing time domain audio waveform data into a third type of waveform in some exemplary embodiments;
图7为一些示例性实施例中将时域音频波形数据划分为第四类型波形示意图;Figure 7 is a schematic diagram of dividing time domain audio waveform data into a fourth type of waveform in some exemplary embodiments;
图8A为一些示例性实施例中第一类型波形转换前效果图;Figure 8A is a rendering of the first type of waveform before conversion in some exemplary embodiments;
图8B为一些示例性实施例中第一类型波形转换后效果图;Figure 8B is a rendering of the first type of waveform after conversion in some exemplary embodiments;
图9A为一些示例性实施例中第二类型波形转换前效果图;Figure 9A is a rendering of the second type of waveform before conversion in some exemplary embodiments;
图9B为一些示例性实施例中第二类型波形转换后效果图;Figure 9B is a rendering of the second type of waveform after conversion in some exemplary embodiments;
图10A为一些示例性实施例中第三类型和第四类型波形转换前效果图;Figure 10A is a diagram of the effects before third type and fourth type waveform conversion in some exemplary embodiments;
图10B为一些示例性实施例中第三类型和第四类型波形转换后效果图;Figure 10B is a diagram showing the effects after conversion of third type and fourth type waveforms in some exemplary embodiments;
图11为一些示例性实施例中根据波形的面积正负还原为半周期正弦波正周期和负周期的示意图;Figure 11 is a schematic diagram of positive and negative half-cycle sine waves restored according to the positive and negative areas of the waveform in some exemplary embodiments;
图12为一些示例性实施例中波形数据的面积计算示意图;Figure 12 is a schematic diagram of area calculation of waveform data in some exemplary embodiments;
图13A为一些示例性实施例中音频数据转换前效果图;Figure 13A is a rendering of audio data before conversion in some exemplary embodiments;
图13B为一些示例性实施例中音频数据转换后效果图;Figure 13B is a rendering of audio data after conversion in some exemplary embodiments;
图14为本申请实施例的线性马达驱动装置示意图;Figure 14 is a schematic diagram of the linear motor driving device according to the embodiment of the present application;
图15为本申请实施例的线性马达驱动装置示意图。Figure 15 is a schematic diagram of a linear motor driving device according to an embodiment of the present application.
具体实施方式Detailed ways
本申请描述了多个实施例,但是该描述是示例性的,而不是限制性的,并且对于本领域的普通技术人员来说显而易见的是,在本申请所描述的实施例包含的范围内可以有更多的实施例和实现方案。尽管在附图中示出了许多可能的特征组合,并在具体实施方式中进行了讨论,但是所公开的特征的许多其它组合方式也是可能的。除非特意加以限制的情况以外,任何实施例的任何特征或元件可以与任何其它实施例中的任何其他特征或元件结合使用,或可以替代任何其它实施例中的任何其他特征或元件。This application describes multiple embodiments, but the description is illustrative rather than restrictive, and it is obvious to those of ordinary skill in the art that within the scope of the embodiments described in this application, There are many more examples and implementations. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are possible. Unless expressly limited, any feature or element of any embodiment may be used in combination with, or may be substituted for, any other feature or element of any other embodiment.
本申请包括并设想了与本领域普通技术人员已知的特征和元件的组合。本申请已经公开的实施例、特征和元件也可以与任何常规特征或元件组合,以形成由权利要求限定的独特的发明方案。任何实施例的任何特征或元件也可以与来自其它发明方案的特征或元件组合,以形成另一个由权利要求限定的独特的发明方案。因此,应当理解,在本申请中示出和/或讨论的任何特征可以单独地或以任何适当的组合来实现。因此,除了根据所附权利要求及其等同替换所做的限制以外,实施例不受其它限制。此外,可以在所附权利要求的保护范围内进行各种修改和改变。This application includes and contemplates combinations with features and elements known to those of ordinary skill in the art. The embodiments, features and elements that have been disclosed in this application may also be combined with any conventional features or elements to form unique inventive solutions as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive solutions to form another unique inventive solution as defined by the claims. Therefore, it should be understood that any feature shown and/or discussed in this application may be implemented individually or in any suitable combination. Accordingly, the embodiments are not to be limited except by those appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
此外,在描述具有代表性的实施例时,说明书可能已经将方法和/或过程呈现为特定的步骤序列。然而,在该方法或过程不依赖于本文所述步骤的特定顺序的程度上,该方法或过程不应限于所述的特定顺序的步骤。如本领域普通技术人员将理解的,其它的步骤顺序也是可能的。因此,说明书中阐述的步骤的特定顺序不应被解释为对权利要求的限制。此外,针对该方法和/或过程的权利要求不应限于按照所写顺序执行它们的步骤,本领域技术人员可以容易地理解,这些顺序可以变化,并且仍然保持在本申请实施例的精神和范围内。Additionally, in describing representative embodiments, the specification may have presented methods and/or processes as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of steps described herein, the method or process should not be limited to the specific order of steps described. As one of ordinary skill in the art will appreciate, other sequences of steps are possible. Therefore, the specific order of steps set forth in the specification should not be construed as limiting the claims. Furthermore, claims directed to the method and/or process should not be limited to steps performing them in the order written, as those skilled in the art can readily understand that these orders may be varied and still remain within the spirit and scope of the embodiments of the present application. Inside.
线性马达可以使用输入模拟信号(如耳机上接入的模拟信号)和波形(如方波、正弦波)振动,也可以采用专用振动驱动器振动。专用的振动驱动,一般支持模拟信号、数字信号(通过I2C\SPI\UART等方式连接)、PWM信号输入方式,振动信号源为音频数据时,音频数据须是模拟信号或转换成模拟信号,可以是将具体的外部音频信号转换成模拟信号(如从蓝牙输入音频、从音频接口(如3.55mm口)输入音频)。Linear motors can vibrate using input analog signals (such as analog signals connected to headphones) and waveforms (such as square waves, sine waves), or they can use dedicated vibration drivers to vibrate. A dedicated vibration driver generally supports analog signals, digital signals (connected through I2C\SPI\UART, etc.), and PWM signal input methods. When the vibration signal source is audio data, the audio data must be analog signals or converted into analog signals. You can It converts specific external audio signals into analog signals (such as audio input from Bluetooth, audio input from an audio interface (such as 3.55mm port)).
本公开实施例提供了一种线性马达驱动方法,如图1所示,所述方法包括步骤S110-S130:An embodiment of the present disclosure provides a linear motor driving method, as shown in Figure 1. The method includes steps S110-S130:
S110.获取用于驱动所述线性马达的音频数据的时域音频波形和待驱动的线性马达的工作频率;S110. Obtain the time domain audio waveform of the audio data used to drive the linear motor and the operating frequency of the linear motor to be driven;
S120.基于所述时域音频波形和所述工作频率,对所述音频数据进行处理,获取所述音频数据的主干波形,所述主干波形是在所述音频数据的全部波形中面积最大波形;S120. Based on the time domain audio waveform and the operating frequency, process the audio data to obtain the backbone waveform of the audio data, where the backbone waveform is the waveform with the largest area among all waveforms of the audio data;
S130.根据所述音频数据的主干波形,对所述线性马达进行驱动。S130. Drive the linear motor according to the main waveform of the audio data.
在本实施例中,使用音频信号直接驱动线性马达时,可以直接体验到震感丰富更加沉浸式的震动体验;使用户的娱乐体验得到了提升。实现获取音频数据的时域音频波形,该音频波形是原始的音频数据,该音频数据包含复杂的频率成分。每个线性马达敏感或者有效的工作频率不同,首先要获取待驱动的线性马达敏感或者有效的工作频率,根据所获取的敏感或者有效的工作频率进行音频数据的去除无效频率。In this embodiment, when the audio signal is used to directly drive the linear motor, a rich and more immersive vibration experience can be directly experienced, thereby improving the user's entertainment experience. Implementation of obtaining the time-domain audio waveform of audio data. The audio waveform is original audio data, and the audio data contains complex frequency components. The sensitive or effective working frequency of each linear motor is different. First, the sensitive or effective working frequency of the linear motor to be driven must be obtained, and the invalid frequencies of the audio data are removed based on the obtained sensitive or effective working frequency.
一种示例性的实施例中,获取时域音频波形,包括:获取时域上的音频波形,所述音频波形是由时间与音频波形强度构成的离散数据点形成的波形;其中,x轴代表音频波形数据点的时间,y轴代表音频波形数据点的强度;将x轴作为音频波形数据点的强度0轴,把相邻音频离散数据点连接起来,形成音频波形。如图2所示,横轴是x轴,纵轴是y轴;将x轴作为音频波形数据点的强度0轴,把每个相邻离散数据点连接起来就是一个不断上穿,下穿或归位x轴(0轴)的音频波形。针对图2所示的音频波形,将该音频波形局部放大显示,如图3所示。In an exemplary embodiment, obtaining the time domain audio waveform includes: obtaining the audio waveform in the time domain, where the audio waveform is a waveform formed by discrete data points composed of time and audio waveform intensity; where the x-axis represents The time of the audio waveform data point, the y-axis represents the intensity of the audio waveform data point; the x-axis is used as the intensity 0 axis of the audio waveform data point, and adjacent audio discrete data points are connected to form an audio waveform. As shown in Figure 2, the horizontal axis is the x-axis and the vertical axis is the y-axis; taking the x-axis as the intensity 0 axis of the audio waveform data points, connecting each adjacent discrete data point is a continuous upward, downward or The audio waveform that returns the x-axis (0-axis). For the audio waveform shown in Figure 2, the audio waveform is partially enlarged and displayed, as shown in Figure 3.
一种示例性的实施例中,基于所述时域音频波形和所述工作频率,对所述音频数据进行处理,获取所述音频数据的主干波形,包括:根据所述线性马达的工作频率确定驱动线性马达的有效音频波形数据的半周期范围;根据所确定的有效音频波形数据的半周期范围对所获取的时域音频波形划分类型;In an exemplary embodiment, processing the audio data based on the time domain audio waveform and the operating frequency to obtain the backbone waveform of the audio data includes: determining based on the operating frequency of the linear motor The half-cycle range of the effective audio waveform data that drives the linear motor; classify the acquired time-domain audio waveform into types according to the determined half-cycle range of the effective audio waveform data;
基于所述划分,分别计算每种类型的时域音频波形与表示时间的x轴所围绕而成的图形的面积;根据所计算出的面积和预设转换规则,将不同面积的时域音频波形分别转换为与音频数据相应的正弦波形;根据所述正弦波形,确定所述主干波形。Based on the division, calculate the area of the graph surrounded by each type of time domain audio waveform and the x-axis representing time; according to the calculated area and the preset conversion rules, convert the time domain audio waveforms of different areas into Convert to sine waveforms corresponding to the audio data respectively; determine the backbone waveform according to the sine waveforms.
一种示例性的实施例中,根据所述线性马达工作频率确定驱动线性马达的有效音频波形数 据的半周期范围,包括:确定驱动线性马达工作的有效频率范围为第一频率到第二频率;根据所述第一频率确定驱动线性马达的有效音频波形数据的半周期的上限;根据所述第二频率确定驱动线性马达的有效音频波形数据的半周期的下限。在本实施例中,待驱动线性马达敏感的频率范围是80HZ-200HZ,即第一频率为80HZ,第二频率为200HZ。根据第一频率确定驱动线性马达的有效音频波形数据的半周期的上限为6.25ms,根据第二频率确定驱动线性马达的有效音频波形数据的半周期的下限为2.5ms。In an exemplary embodiment, determining the half-cycle range of effective audio waveform data for driving the linear motor according to the operating frequency of the linear motor includes: determining the effective frequency range for driving the linear motor to be the first frequency to the second frequency; The upper limit of the half period of the effective audio waveform data for driving the linear motor is determined according to the first frequency; the lower limit of the half period of the effective audio waveform data for driving the linear motor is determined according to the second frequency. In this embodiment, the sensitive frequency range of the linear motor to be driven is 80HZ-200HZ, that is, the first frequency is 80HZ and the second frequency is 200HZ. The upper limit of the half period of the effective audio waveform data for driving the linear motor is determined according to the first frequency to be 6.25 ms, and the lower limit of the half period of the effective audio waveform data for driving the linear motor is determined according to the second frequency to be 2.5 ms.
一种示例性的实施例中,根据所确定的有效音频波形数据的半周期范围对所获取的时域音频波形数据划分类型,包括:将穿过强度0轴且时间范围大于半周期上限的音频波形定义为第一类型波形;将穿过强度0轴且时间范围位于半周期上限和半周期下限之间的音频波形定义为第二类型波形;将穿过强度0轴且时间范围小于第二半周期的音频波形定义为第三类型波形;将持续在强度0轴的音频波形定义为第四类型波形。在本实施例中,若所确定的有效音频波形数据的半周期的上限为6.25ms,有效音频波形数据的半周期的下限为2.5ms,对时域音频波形数据划分类型,将穿过强度0轴且时间范围大于6.25ms的音频波形定义为第一类型波形,如图4所示;将穿过强度0轴且时间范围位于2.5ms-6.25ms之间的音频波形定义为第二类型波形,如图5所示;将穿过强度0轴且时间范围小于2.5ms的音频波形定义为第三类型波形,如图6所示;将持续在强度0轴的音频波形定义为第四类型波形,如图7所示。In an exemplary embodiment, the acquired time-domain audio waveform data is divided into types according to the determined half-cycle range of the valid audio waveform data, including: audio that passes through the intensity 0 axis and whose time range is greater than the upper limit of the half-cycle The waveform is defined as the first type of waveform; the audio waveform that passes through the intensity 0 axis and the time range is between the upper limit of the half cycle and the lower limit of the half cycle is defined as the second type waveform; the audio waveform that passes through the intensity 0 axis and the time range is less than the second half The periodic audio waveform is defined as the third type of waveform; the audio waveform that continues on the intensity 0 axis is defined as the fourth type of waveform. In this embodiment, if the determined upper limit of the half-cycle of the valid audio waveform data is 6.25ms and the lower limit of the half-cycle of the valid audio waveform data is 2.5ms, the time domain audio waveform data will be divided into types, which will pass through the intensity 0 The audio waveform that crosses the intensity 0 axis and has a time range greater than 6.25ms is defined as the first type of waveform, as shown in Figure 4; the audio waveform that passes through the intensity 0 axis and the time range is between 2.5ms-6.25ms is defined as the second type of waveform. As shown in Figure 5; the audio waveform that passes through the intensity 0 axis and the time range is less than 2.5ms is defined as the third type of waveform, as shown in Figure 6; the audio waveform that continues on the intensity 0 axis is defined as the fourth type of waveform, As shown in Figure 7.
一种示例性的实施例中,分别计算每种类型的时域音频波形与表示时间的x轴所围绕而成的图形的面积,包括:对于第一类型波形,将该音频波形按照半周期上限划分多个波形段;分别计算每个波形段与表示时间的x轴所围绕而成的图形的面积;对于第二类型波形和第三类型波形计算时域音频波形与表示时间的x轴所围绕而成的图形面积;第四类型波形面积为0。In an exemplary embodiment, calculating the area of a graph surrounded by each type of time-domain audio waveform and the x-axis representing time includes: for the first type of waveform, dividing the audio waveform according to the upper half-cycle limit Divide multiple waveform segments; calculate the area of the graph surrounded by each waveform segment and the x-axis representing time; for the second type of waveform and the third type of waveform, calculate the time domain audio waveform surrounded by the x-axis representing time. The resulting graphic area is; the area of the fourth type waveform is 0.
一种示例性的实施例中,根据所计算出的面积和预先设置的转换规则,将不同面积的时域音频波形分别转换为用于驱动线性马达的相应正弦波形,包括:对第一类型波形和第二类型波形类波形,根据所确定的时长和面积计算出正弦波形式的振幅;根据振幅和时长分别将各波形或波形段还原为半周期正弦波;对第三类型波形和第四类型波形类波形,将第三类型波形和第四类型波形的时长进行合并计算,若合并后的时长范围位于半周期的下限和上限之间时,根据振幅和时长将各第三类型波形还原为半周期正弦波;若合并后的时长范围小于第二半周期定义时,将第三、第四类型波形均转换成强度为0的直线。例如:从音频的起始开始处理波形,对于第一类型的波形,对其进行每超过6.25ms就截断,然后计算每一段的音频波形与x轴的面积,转换前如图8A所示,转换后效果如图8B所示;对于第二类型的波形,可以直接计算面积,根据所确定的时长和面积计算出正弦波形式的振幅;根据振幅和时长分别将各波形或波形段还原为半周期正弦波,转换前如图9A所示,转换后效果如图9B所示;对第三类型波形和第四类型波形类波形,转换前如图10A所示,转换后效果如图10B所示。In an exemplary embodiment, converting time domain audio waveforms of different areas into corresponding sinusoidal waveforms for driving linear motors according to the calculated areas and preset conversion rules includes: converting the first type of waveform and second type waveforms, calculate the amplitude of the sine wave form based on the determined duration and area; restore each waveform or waveform segment to a half-cycle sine wave based on the amplitude and duration; for the third type waveform and the fourth type For waveforms, the durations of the third type waveform and the fourth type waveform are combined and calculated. If the combined duration range is between the lower limit and the upper limit of the half cycle, each third type waveform is restored to a half cycle based on the amplitude and duration. Periodic sine wave; if the combined duration range is smaller than the second half-cycle definition, the third and fourth types of waveforms will be converted into straight lines with an intensity of 0. For example: start processing the waveform from the beginning of the audio. For the first type of waveform, truncate it every 6.25ms, and then calculate the area of each segment of the audio waveform and the x-axis. Before conversion, as shown in Figure 8A, the conversion The final effect is shown in Figure 8B; for the second type of waveform, the area can be calculated directly, and the amplitude in the form of a sine wave is calculated based on the determined duration and area; each waveform or waveform segment is restored to a half cycle based on the amplitude and duration. The sine wave is shown in Figure 9A before conversion, and the effect after conversion is shown in Figure 9B; for the third type waveform and the fourth type waveform, the effect before conversion is shown in Figure 10A, and the effect after conversion is shown in Figure 10B.
一种示例性的实施例中,所述还原为半周期正弦波,包括:时域音频波形在x轴上方时,与表示时间的x轴所围绕而成的图形的面积为正,还原为在x轴上方的半周期正弦波;时域音频波形在x轴下方时,与表示时间的x轴所围绕而成的图形的面积为负,还原为在x轴下方的半周期正弦波。本实施例中,对于每种波形的面积就是波形与x轴之间的面积,得知面积 和时长就可以将其按照正弦波形的半周期进行还原,面积为正还原为正周期,面积为负还原为负周期,如图11所示。In an exemplary embodiment, the reduction to a half-cycle sine wave includes: when the time domain audio waveform is above the x-axis, the area of the graph surrounded by the x-axis representing time is positive, and the reduction is A half-cycle sine wave above the x-axis; when the time-domain audio waveform is below the x-axis, the area of the graph surrounded by the x-axis representing time is negative, and it returns to a half-cycle sine wave below the x-axis. In this embodiment, the area of each waveform is the area between the waveform and the x-axis. Once the area and duration are known, it can be restored according to the half cycle of the sine waveform. A positive area is restored to a positive period, and a negative area Restore to a negative cycle, as shown in Figure 11.
一种示例性的实施例中,关于每种类型的时域音频波形与表示时间的x轴所围绕而成的图形的面积方法可以采用如下步骤:In an exemplary embodiment, the following steps may be used for the area method of a graph surrounded by each type of time-domain audio waveform and the x-axis representing time:
第一步:计算基础图形面积:x∈[0,1],sinx≥0,The first step: Calculate the basic graphic area: x∈[0,1], sinx≥0,
S_sinx=∫[0,1]sinπxdx=-cosπx|[0,1]=2/πS_sinx=∫[0,1]sinπxdx=-cosπx|[0,1]=2/π
第二步,如图12所示,假设音频波形采样率12000hz,16bit(值范围-32768~32767),一段原始波形(共n个点,每个点对应的值f(n)))区间面积为:The second step, as shown in Figure 12, assumes that the audio waveform sampling rate is 12000hz, 16bit (value range -32768~32767), and an original waveform (n points in total, each point corresponds to the value f(n))) interval area for:
S_wave=∫[0,n]f(n)dnS_wave=∫[0,n]f(n)dn
第三步,根据下面公式计算平均每两个点间面积:The third step is to calculate the average area between every two points according to the following formula:
S_ave=S_wave/(n-1)S_ave=S_wave/(n-1)
第四步,计算比例系数为k:The fourth step is to calculate the proportional coefficient k:
k=S_ave/S_sinxk=S_ave/S_sinx
第五步,根据x=0:0.001:1;生成1000个点,再根据y=10000*sinπx,得到一个1000个点的数组sindata[],作为查表使用;The fifth step is to generate 1000 points according to x=0:0.001:1; and then according to y=10000*sinπx, get an array sindata[] of 1000 points, which can be used as a lookup table;
当还原波形时,采用比例系数k、波形的点总数n,计算步长数When restoring the waveform, use the proportion coefficient k and the total number of points of the waveform n to calculate the number of steps.
Step=1000/n,i∈[0,n];Step=1000/n, i∈[0,n];
第五步,还原波形的每个点值计算公式为:The fifth step is to restore the calculation formula of each point value of the waveform as:
Val=k*sindata[Step*i]/10000Val=k*sindata[Step*i]/10000
Val集合是还原后的波形,将所有的波形连接起来是处理后的可驱动线性马达音频波形。The Val set is the restored waveform, and connecting all the waveforms is the processed audio waveform that can drive the linear motor.
本申请的实施例,通过在时域对音频数据进行处理和转换,使得该音频数据转换后可以保留音频频率的多样性,音频数据转换前如图13A所示,音频数据转换后如图13B所示,从图13A与13B对比来看,转换后波形与转换前的波形在时间上完全相等,可以将转换后的音频直接驱动线性马达。In embodiments of the present application, by processing and converting audio data in the time domain, the diversity of audio frequencies can be retained after the audio data is converted. As shown in Figure 13A before the audio data is converted, and as shown in Figure 13B after the audio data is converted. It shows that from the comparison between Figure 13A and Figure 13B, the waveform after conversion is completely equal in time to the waveform before conversion, and the converted audio can be directly driven by the linear motor.
本公开实施例还提供了一种线性马达驱动装置,如图14所示,所述装置包括:获取模块1410、处理模块1420和驱动模块1430;The embodiment of the present disclosure also provides a linear motor driving device. As shown in Figure 14, the device includes: an acquisition module 1410, a processing module 1420 and a driving module 1430;
所述获取模块1410用于获取用于驱动所述线性马达的音频数据的时域音频波形和待驱动的线性马达的工作频率;The acquisition module 1410 is used to acquire the time domain audio waveform of the audio data used to drive the linear motor and the operating frequency of the linear motor to be driven;
所述处理模块1420用于基于所述时域音频波形和所述工作频率,对所述音频数据进行处理,获取所述音频数据的主干波形,所述主干波形是在所述音频数据的全部波形中面积最大波形;The processing module 1420 is configured to process the audio data based on the time domain audio waveform and the operating frequency, and obtain the backbone waveform of the audio data. The backbone waveform is the entire waveform of the audio data. The largest waveform in the medium area;
所述驱动模块1430用于根据所述音频数据的主干波形,对所述线性马达进行驱动。The driving module 1430 is used to drive the linear motor according to the main waveform of the audio data.
本公开实施例还提供了一种线性马达驱动装置,如图15所示,所述装置包括:存储器1510和处理器1520;其中,所述存储器用于保存线性马达驱动的程序,所述处理器用于读取执行所述用于线性马达驱动的程序,执行上述实施例中任一项所述的线性马达驱动方法。The embodiment of the present disclosure also provides a linear motor driving device. As shown in Figure 15, the device includes: a memory 1510 and a processor 1520; wherein the memory is used to save a linear motor driving program, and the processor uses After reading and executing the program for linear motor driving, the linear motor driving method described in any one of the above embodiments is executed.
本公开实施例还提供了还一种计算机存储介质,所述计算机存储介质中存储有计算机可执 行指令,所述计算机可执行指令用于执行实施例中任一项所述的线性马达驱动方法。Embodiments of the present disclosure also provide a computer storage medium in which computer-executable instructions are stored, and the computer-executable instructions are used to execute the linear motor driving method described in any one of the embodiments.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art can understand that all or some steps, systems, and functional modules/units in the devices disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may consist of several physical components. Components execute cooperatively. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is known to those of ordinary skill in the art, the term computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage devices, or may Any other medium used to store the desired information and that can be accessed by a computer. Additionally, it is known to those of ordinary skill in the art that communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Claims (11)

  1. 一种线性马达驱动方法,其特征在于,所述方法包括:A linear motor driving method, characterized in that the method includes:
    获取用于驱动所述线性马达的音频数据的时域音频波形和待驱动的线性马达的工作频率;Obtain the time domain audio waveform of the audio data used to drive the linear motor and the operating frequency of the linear motor to be driven;
    基于所述时域音频波形和所述工作频率,对所述音频数据进行处理,获取所述音频数据的主干波形,所述主干波形是在所述音频数据的全部波形中面积最大波形;Based on the time domain audio waveform and the operating frequency, process the audio data to obtain the backbone waveform of the audio data, where the backbone waveform is the waveform with the largest area among all waveforms of the audio data;
    根据所述音频数据的主干波形,对所述线性马达进行驱动。The linear motor is driven according to the main waveform of the audio data.
  2. 根据权利要求1所述的线性马达驱动方法,其特征在于,所述基于所述时域音频波形和所述工作频率,对所述音频数据进行处理,获取所述音频数据的主干波形;包括:The linear motor driving method according to claim 1, characterized in that, based on the time domain audio waveform and the operating frequency, the audio data is processed to obtain the backbone waveform of the audio data; including:
    根据所述线性马达的工作频率确定驱动线性马达的有效音频波形数据的半周期范围;Determine the half-cycle range of effective audio waveform data for driving the linear motor according to the operating frequency of the linear motor;
    根据所确定的有效音频波形数据的半周期范围对所获取的时域音频波形划分类型;Classify the acquired time-domain audio waveform into types according to the determined half-cycle range of the valid audio waveform data;
    基于所述划分,分别计算每种类型的时域音频波形与表示时间的x轴所围绕而成的图形的面积;Based on the division, calculate the area of the graph surrounded by each type of time domain audio waveform and the x-axis representing time;
    根据所计算出的面积和预设转换规则,将不同面积的时域音频波形分别转换为与音频数据相应的正弦波形;According to the calculated area and preset conversion rules, time-domain audio waveforms of different areas are converted into sinusoidal waveforms corresponding to the audio data;
    根据所述正弦波形,确定所述主干波形。Based on the sine waveform, the backbone waveform is determined.
  3. 根据权利要求2所述的线性马达驱动方法,其特征在于,所述获取音频数据的时域音频波形,包括:The linear motor driving method according to claim 2, wherein the obtaining the time domain audio waveform of the audio data includes:
    获取时域上的音频波形,所述音频波形是由时间与音频波形强度构成的离散数据点形成的波形;其中,x轴代表音频波形数据点的时间,y轴代表音频波形数据点的强度;Obtain an audio waveform in the time domain, which is a waveform formed by discrete data points composed of time and audio waveform intensity; where the x-axis represents the time of the audio waveform data point, and the y-axis represents the intensity of the audio waveform data point;
    将x轴作为音频波形数据点的强度0轴,把相邻音频离散数据点连接起来,形成时域音频波形。Taking the x-axis as the intensity 0 axis of the audio waveform data points, connect adjacent audio discrete data points to form a time domain audio waveform.
  4. 根据权利要求2所述的线性马达驱动方法,其特征在于,所述根据所述线性马达工作频率确定驱动线性马达的有效音频波形数据的半周期范围,包括:The linear motor driving method according to claim 2, wherein determining the half-cycle range of effective audio waveform data for driving the linear motor according to the linear motor operating frequency includes:
    确定驱动线性马达工作的有效频率范围为第一频率到第二频率;Determine the effective frequency range for driving the linear motor to operate from the first frequency to the second frequency;
    根据所述第一频率确定驱动线性马达的有效音频波形数据的半周期的上限;Determine an upper limit of a half cycle of effective audio waveform data for driving the linear motor based on the first frequency;
    根据所述第二频率确定驱动线性马达的有效音频波形数据的半周期的下限。A lower limit of a half cycle of valid audio waveform data for driving the linear motor is determined based on the second frequency.
  5. 根据权利要求3所述的线性马达驱动方法,其特征在于,The linear motor driving method according to claim 3, characterized in that:
    所述根据所确定的有效音频波形数据的半周期范围对所获取的时域音频波形数据划分类型,包括:Classifying the acquired time-domain audio waveform data into types according to the determined half-cycle range of the valid audio waveform data includes:
    将穿过强度0轴且时间范围大于半周期上限的音频波形定义为第一类型波形;Define audio waveforms that pass through the intensity 0 axis and have a time range greater than the upper limit of the half cycle as the first type of waveform;
    将穿过强度0轴且时间范围位于半周期上限和半周期下限之间的音频波形定义为第二类型波形;The audio waveform that passes through the intensity 0 axis and whose time range is between the upper half-cycle limit and the lower half-cycle limit is defined as the second type of waveform;
    将穿过强度0轴且时间范围小于第二半周期的音频波形定义为第三类型波形;Define the audio waveform that passes through the intensity 0 axis and has a time range smaller than the second half cycle as the third type of waveform;
    将持续在强度0轴的音频波形定义为第四类型波形。The audio waveform that continues on the intensity 0 axis is defined as the fourth type of waveform.
  6. 根据权利要求5所述的线性马达驱动方法,其特征在于,The linear motor driving method according to claim 5, characterized in that:
    所述分别计算每种类型的时域音频波形与表示时间的x轴所围绕而成的图形的面积,包括:The calculation of the area of the graph surrounded by each type of time domain audio waveform and the x-axis representing time includes:
    对于第一类型波形,将该音频波形按照半周期上限划分多个波形段;分别计算每个波形段与表示时间的x轴所围绕而成的图形的面积;For the first type of waveform, divide the audio waveform into multiple waveform segments according to the upper limit of the half cycle; calculate the area of the graph surrounded by each waveform segment and the x-axis representing time;
    对于第二类型波形和第三类型波形计算时域音频波形与表示时间的x轴所围绕而成的图形面积;For the second type of waveform and the third type of waveform, calculate the graphic area surrounded by the time domain audio waveform and the x-axis representing time;
    第四类型波形面积为0。The area of the fourth type waveform is 0.
  7. 根据权利要求6所述的线性马达驱动方法,其特征在于,所述根据所计算出的面积和预先设置的转换规则,将不同面积的时域音频波形分别转换为与音频数据相应的正弦波形,包括:The linear motor driving method according to claim 6, wherein the time domain audio waveforms of different areas are converted into sinusoidal waveforms corresponding to the audio data according to the calculated area and preset conversion rules, include:
    对第一类型波形和第二类型波形类波形,根据所确定的时长和面积计算出正弦波形式的振幅;根据振幅和时长分别将各波形或波形段还原为半周期正弦波;For the first type of waveform and the second type of waveform, calculate the amplitude in the form of a sine wave based on the determined duration and area; restore each waveform or waveform segment to a half-cycle sine wave based on the amplitude and duration;
    对第三类型波形和第四类型波形类波形,将第三类型波形和第四类型波形的时长进行合并计算,若合并后的时长范围位于半周期的下限和上限之间时,根据振幅和时长将各第三类型波形还原为半周期正弦波;若合并后的时长范围小于第二半周期定义时,将第三、第四类型波形均转换成强度为0的直线。For the third type waveform and the fourth type waveform, the duration of the third type waveform and the fourth type waveform is combined and calculated. If the combined duration range is between the lower limit and the upper limit of the half cycle, the amplitude and duration are calculated. Restore each third type waveform to a half-cycle sine wave; if the combined duration range is smaller than the second half-cycle definition, convert both the third and fourth type waveforms into straight lines with an intensity of 0.
  8. 根据权利要求7所述的线性马达驱动方法,其特征在于,所述还原为半周期正弦波,包括:The linear motor driving method according to claim 7, wherein the reduction to a half-cycle sine wave includes:
    时域音频波形在x轴上方时,与表示时间的x轴所围绕而成的图形的面积为正,还原为在x轴上方的半周期正弦波;When the time-domain audio waveform is above the x-axis, the area of the graph surrounded by the x-axis representing time is positive, and it is restored to a half-cycle sine wave above the x-axis;
    时域音频波形在x轴下方时,与表示时间的x轴所围绕而成的图形的面积为负,还原为在x轴下方的半周期正弦波。When the time domain audio waveform is below the x-axis, the area of the graph surrounded by the x-axis representing time is negative, and it is restored to a half-cycle sine wave below the x-axis.
  9. 一种线性马达驱动装置,其特征在于,所述装置包括:获取模块、处理模块和驱动模块;A linear motor driving device, characterized in that the device includes: an acquisition module, a processing module and a driving module;
    所述获取模块,用于获取用于驱动所述线性马达的音频数据的时域音频波形和待驱动的线性马达的工作频率;The acquisition module is used to acquire the time domain audio waveform of the audio data used to drive the linear motor and the operating frequency of the linear motor to be driven;
    所述处理模块,用于基于所述时域音频波形和所述工作频率,对所述音频数据进行处理,获取所述音频数据的主干波形,所述主干波形是在所述音频数据的全部波形中面积最大波形;The processing module is used to process the audio data based on the time domain audio waveform and the operating frequency, and obtain the backbone waveform of the audio data. The backbone waveform is the entire waveform of the audio data. The largest waveform in the medium area;
    所述驱动模块,用于根据所述音频数据的主干波形,对所述线性马达进行驱动。The driving module is used to drive the linear motor according to the main waveform of the audio data.
  10. 一种线性马达驱动装置,其特征在于,所述装置包括:存储器和处理器;其中,所述存储器用于保存线性马达驱动的程序,所述处理器用于读取执行所述用于线性马达驱动的程序,执行权利要求1-8任一项所述的方法。A linear motor driving device, characterized in that the device includes: a memory and a processor; wherein the memory is used to save a linear motor driving program, and the processor is used to read and execute the linear motor driving program. A program that performs the method described in any one of claims 1-8.
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1~8中任一项所述的线性马达驱动方法。A computer storage medium in which computer-executable instructions are stored, and the computer-executable instructions are used to execute the linear motor driving method according to any one of claims 1 to 8.
PCT/CN2022/142377 2022-06-20 2022-12-27 Linear motor driving method and device, and storage medium WO2023246057A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210701423.0A CN115223599A (en) 2022-06-20 2022-06-20 Linear motor driving method, linear motor driving apparatus, and storage medium
CN202210701423.0 2022-06-20

Publications (1)

Publication Number Publication Date
WO2023246057A1 true WO2023246057A1 (en) 2023-12-28

Family

ID=83608539

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/142377 WO2023246057A1 (en) 2022-06-20 2022-12-27 Linear motor driving method and device, and storage medium

Country Status (2)

Country Link
CN (1) CN115223599A (en)
WO (1) WO2023246057A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115223599A (en) * 2022-06-20 2022-10-21 北京凌宇智控科技有限公司 Linear motor driving method, linear motor driving apparatus, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278355A (en) * 2014-06-13 2016-01-27 中兴通讯股份有限公司 Method and device for using audio to control motor vibration
CN109887528A (en) * 2019-02-15 2019-06-14 上海艾为电子技术股份有限公司 Motor is with the method and device of audio frequency vibration, storage medium and electronic equipment
CN112114674A (en) * 2020-09-29 2020-12-22 北京小米移动软件有限公司 Vibration intensity control method and device, electronic equipment and storage medium
CN112269895A (en) * 2020-11-06 2021-01-26 Oppo广东移动通信有限公司 Vibration control method and device and computer readable storage medium
CN115223599A (en) * 2022-06-20 2022-10-21 北京凌宇智控科技有限公司 Linear motor driving method, linear motor driving apparatus, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278355A (en) * 2014-06-13 2016-01-27 中兴通讯股份有限公司 Method and device for using audio to control motor vibration
CN109887528A (en) * 2019-02-15 2019-06-14 上海艾为电子技术股份有限公司 Motor is with the method and device of audio frequency vibration, storage medium and electronic equipment
CN112114674A (en) * 2020-09-29 2020-12-22 北京小米移动软件有限公司 Vibration intensity control method and device, electronic equipment and storage medium
CN112269895A (en) * 2020-11-06 2021-01-26 Oppo广东移动通信有限公司 Vibration control method and device and computer readable storage medium
CN115223599A (en) * 2022-06-20 2022-10-21 北京凌宇智控科技有限公司 Linear motor driving method, linear motor driving apparatus, and storage medium

Also Published As

Publication number Publication date
CN115223599A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
WO2023246057A1 (en) Linear motor driving method and device, and storage medium
TWI489451B (en) Music playing system and method based on speech emotion recognition
US9576445B2 (en) Systems and methods for generating haptic effects associated with an envelope in audio signals
CN105355213B (en) A kind of method and device of directional recording
EP3413174B1 (en) Signal processing method for active pen, active pen, and touch screen
CN105549729A (en) Method for operating sensor panel and electronic device for supporting the same
US20120131462A1 (en) Handheld device and user interface creating method
CN106782613B (en) Signal detection method and device
US20200004562A1 (en) Application Display Method and Apparatus, and Electronic Terminal
JP2017510885A (en) Touch screen controller and method for charger noise reduction using noise shaping
US10901507B2 (en) Bioelectricity-based control method and apparatus, and bioelectricity-based controller
CN107861622A (en) Touch-control feedback method, equipment, computer-readable recording medium and computer installation
US11133024B2 (en) Biometric personalized audio processing system
CN109840064A (en) Level of sound volume is controlled based on user profiles
KR20180097382A (en) Method and apparatus for providing vibration in electronic device
US20130136277A1 (en) Volume controller, volume control method and electronic device
CN107920152A (en) Vehicle microphone caused by HVAC is responded to buffet
CN109814867A (en) A kind of dummy model method of construction and system
CN106465003A (en) Speaker
US10222862B2 (en) Method to sense force exertion on handheld device for behavior setting and input for quick response
KR101951168B1 (en) Audio breast pump and operation method
CN103455607B (en) Method for automatically converting waveform image file into preset waveform data file
CN105843584A (en) Method and device for adjusting recording volume
US20140059549A1 (en) Application recognition system and method
CN109003633A (en) Audio-frequency processing method, device and electronic equipment

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

Country of ref document: EP

Kind code of ref document: A1