CN116077925A - Vibration feedback method and device and electronic equipment - Google Patents

Vibration feedback method and device and electronic equipment Download PDF

Info

Publication number
CN116077925A
CN116077925A CN202310113740.5A CN202310113740A CN116077925A CN 116077925 A CN116077925 A CN 116077925A CN 202310113740 A CN202310113740 A CN 202310113740A CN 116077925 A CN116077925 A CN 116077925A
Authority
CN
China
Prior art keywords
driving
parameter
vibration
vibration mode
motor
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202310113740.5A
Other languages
Chinese (zh)
Inventor
吴孝红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Awinic Technology Co Ltd
Original Assignee
Shanghai Awinic Technology Co Ltd
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 Shanghai Awinic Technology Co Ltd filed Critical Shanghai Awinic Technology Co Ltd
Priority to CN202310113740.5A priority Critical patent/CN116077925A/en
Publication of CN116077925A publication Critical patent/CN116077925A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/25Output arrangements for video game devices
    • A63F13/28Output arrangements for video game devices responding to control signals received from the game device for affecting ambient conditions, e.g. for vibrating players' seats, activating scent dispensers or affecting temperature or light
    • A63F13/285Generating tactile feedback signals via the game input device, e.g. force feedback

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure relates to the field of electronic devices, and in particular, to a vibration feedback method and apparatus, and an electronic device. The method comprises the following steps: detecting a request for indicating to switch to a target vibration mode to play audio, and switching to the target vibration mode; collecting first audio data; performing preset processing on the collected first audio data in a target vibration mode, and determining first driving parameters corresponding to the first audio data, wherein the first driving parameters at least comprise first amplitude parameters; acquiring a second driving parameter corresponding to the target vibration mode, wherein the second driving parameter at least comprises a corresponding preset vibration duration and a second amplitude parameter; determining a third driving parameter for driving the motor to vibrate based on the first driving parameter and the second driving parameter, wherein the third driving parameter at least comprises a preset vibration duration and a third amplitude parameter determined based on the first amplitude parameter and the second amplitude parameter; and driving the motor to vibrate by adopting the determined third driving parameter.

Description

Vibration feedback method and device and electronic equipment
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a vibration feedback method and apparatus, and an electronic device.
Background
With the continuous development of electronic equipment technology, electronic equipment such as smart phones and the like are widely popularized and applied, and users can realize entertainment and office through different software. When using an electronic device, a user may not be able to bring the user with an immersive sensation by merely visually and audibly perceiving a picture and sound. Therefore, the electronic equipment needs to generate vibration at the same time, and the combination of pictures and sounds can bring more immersive use experience to the user.
However, the existing vibration scheme faces different vibration situations, only can match the unified preset vibration frequency and vibration amplitude to vibrate, and the adaptive vibration frequency and vibration amplitude cannot be determined by combining the vibration mode preference selected by the user and the frequency change of the music, so that the use experience of some users is poor. Therefore, how to provide a scheme capable of performing vibration feedback in combination with the vibration mode preference distinction selected by the user is a problem to be solved at present.
Disclosure of Invention
The embodiment of the application provides a vibration feedback method, a vibration feedback device and electronic equipment. The vibration feedback method can be used for vibration feedback by combining vibration mode distinction preferred by users.
In a first aspect, embodiments of the present application provide a vibration feedback method, including: detecting a request for indicating to switch to a target vibration mode to play audio, and switching to the target vibration mode; collecting first audio data; performing preset processing on the collected first audio data in a target vibration mode, and determining first driving parameters corresponding to the first audio data, wherein the first driving parameters at least comprise first amplitude parameters; acquiring a second driving parameter corresponding to the target vibration mode, wherein the second driving parameter at least comprises a corresponding preset vibration duration and a second amplitude parameter; determining a third driving parameter for driving the motor to vibrate based on the first driving parameter and the second driving parameter, wherein the third driving parameter at least comprises a preset vibration duration and a third amplitude parameter determined based on the first amplitude parameter and the second amplitude parameter; and driving the motor to vibrate by adopting the determined third driving parameter.
It can be appreciated that it is detected that the user selects a target vibration mode that matches the current scene, and switches to the target vibration mode. It can be appreciated that the user can select a vibration mode that is more closely matched to the current scene based on the use requirements in the current scene. For example, in a party scene the user may select "dynamic mode". First audio data is collected, and the first audio data can be an audio data stream which is outputted after being decoded by a decoder by audio files in various formats. Wherein the first audio data comprises at least an amplitude parameter. And executing preset processing on the collected first audio data in the target vibration mode, determining a first driving parameter corresponding to the first audio data, and acquiring a corresponding preset duration and a second amplitude parameter based on the switched target vibration mode. And obtaining a third driving parameter for driving the motor to vibrate based on the first driving parameter and the second driving parameter.
In a possible implementation of the first aspect, the method further includes: the target vibration mode is obtained by any one of the following means: receiving an operation of selecting a target vibration mode by a user through a vibration mode selection control on electronic equipment, and detecting a request for indicating to switch to the target vibration mode; and receiving an operation of selecting a target vibration mode on a man-machine interaction interface displayed by the electronic equipment by a user, and detecting a request for indicating to switch to the target vibration mode.
In a possible implementation of the first aspect, the method further includes: the target vibration mode is a first vibration mode, and the preset processing is performed on the collected first audio data in the target vibration mode, including: acquiring second audio data; dividing the second audio data into a plurality of audio units which are continuous in time sequence; and filtering the plurality of audio units to obtain first audio data.
In a possible implementation of the first aspect, the method further includes: filtering a plurality of audio units, comprising: and performing low-pass filtering processing on the plurality of audio units to obtain first audio data.
In a possible implementation of the first aspect, the method further includes: determining a first driving parameter corresponding to the first audio data, comprising: acquiring a corresponding peak point in an audio waveform diagram corresponding to each audio unit; determining the maximum value of peak points according to the corresponding peak point in the audio waveform diagram corresponding to each audio unit; determining a first driving parameter corresponding to the first audio data as the maximum value in the peak point; wherein the maximum value of the peaks is used to indicate the maximum value of the amplitude in the first audio data.
Illustratively, the peak point of each audio unit of the first audio data may be determined, for example, by sampling the data [ k ] of the current frame, the data [ k-1] of the previous frame, and the data [ k+1] of the subsequent frame; if data [ k-1] < data [ k ] > data [ k+1] and data [ k ] >3000, then data [ k ] is considered to be the peak point, data [ k ] is stored into the storage location designated by the control module, and this point is counted as peak [1]. The next peak point is determined according to the method, and is sequentially peak [2], peak [3] and the like, wherein the peak point can be three or more. And further obtaining the maximum value of the amplitude value in the first audio according to the comparison result of the peak value points.
In a possible implementation of the first aspect, the method further includes: obtaining a second driving parameter corresponding to the target vibration mode, including: acquiring a second driving parameter corresponding to the first vibration mode; and determining a first vibration duration corresponding to the first vibration mode as a preset vibration duration.
In a possible implementation of the first aspect, the method further includes: the second driving parameters further include the number of waveforms of the driving waveforms, and acquiring the second driving parameters corresponding to the first vibration mode includes: and determining the number of periods of the first driving waveform corresponding to the preset driving waveform in the first vibration mode as the first number of periods of the first driving waveform in the second driving parameter. Wherein the first period number is the number of periods of the alternating current driving signal corresponding to the driving waveform.
In a possible implementation of the first aspect, the method further includes: determining a third driving parameter for driving the motor vibration, comprising: the first amplitude parameter is used as a third amplitude parameter in the third driving parameters; determining a preset vibration duration as a first vibration duration based on the second driving parameter; and determining a first period number in the first driving waveform based on the second driving parameter, wherein the waveform number in the first period number is a product value of a first vibration duration and a vibration frequency, and the vibration frequency is a natural frequency of the motor.
In a possible implementation of the first aspect, the method further includes: the first driving waveform comprises a plurality of waveforms with different amplitude parameters and same vibration frequency, wherein the first driving waveform starts from the second waveform, and the amplitude parameters are sequentially reduced by the ratio of the first amplitude parameters to the number of the first waveforms compared with the amplitude parameters of the previous waveform.
In a possible implementation of the first aspect, the method further includes: the target vibration mode is a second vibration mode, and the preset processing is performed on the collected first audio data in the target vibration mode, and the determination of the first driving parameter corresponding to the first audio data includes: acquiring first audio data; comparing the absolute value of the amplitude of the first audio data with a predetermined value; counting the number of the absolute values of the amplitude values in the first audio data, which are larger than a preset value; calculating to obtain the percentage of the number of absolute values of the amplitude values in the first audio data which are larger than a preset value in the first audio data; comparing the percentage with a preset percentage; and determining a first driving parameter according to the comparison result.
In a possible implementation of the first aspect, the method further includes: comparing the percentage to a preset percentage, comprising: determining a third driving parameter for driving the motor to vibrate according to the comparison result and the second driving parameter; wherein, the comparison result is that the percentage is larger than the preset percentage.
In a possible implementation of the first aspect, the method further includes: determining a third driving parameter for driving the motor vibration, comprising: determining a first preset amplitude corresponding to the second vibration mode as a second amplitude parameter, wherein the first preset amplitude is used for indicating the maximum amplitude of the vibration of the driving motor; and determining a second vibration duration corresponding to the second vibration mode as a preset vibration duration.
In a possible implementation of the first aspect, the method further includes: the second driving parameters further include a waveform number of the driving waveforms, and acquiring the second driving parameters corresponding to the second vibration mode includes: and determining the number of periods of the second driving waveform corresponding to the preset driving waveform in the second vibration mode as the second number of periods of the second driving waveform in the second driving parameter. Wherein the second period number is the number of periods of the alternating current driving signal corresponding to the driving waveform.
In a possible implementation of the first aspect, the method further includes: determining a third driving parameter for driving the motor vibration, comprising: taking the second amplitude parameter as a third amplitude parameter in the third driving parameters; determining a preset vibration duration as a second vibration duration based on the second driving parameter, wherein the vibration duration is a period corresponding to a single waveform in the second driving waveform; a second number of periods in the second drive waveform is determined based on the second drive parameter, wherein the second number of periods in the second drive waveform is one period.
In a possible implementation of the first aspect, the method further includes: the second drive waveform includes at least one waveform: the amplitude parameter of the second driving waveform is a third amplitude parameter, and the vibration frequency is the natural frequency of the motor.
In a possible implementation of the first aspect, the method further includes: driving the motor to vibrate using the determined third driving parameter, comprising: converting and/or amplifying the third driving parameter to determine a vibration voltage for driving the motor to vibrate; the motor is driven to vibrate according to the vibration voltage.
In a second aspect, embodiments of the present application provide a vibration feedback device, the device comprising: the control device comprises a control module, a motor driving module, a motor and a first control; the first control is used for detecting a request for indicating to switch to a target vibration mode to play audio; the control module is used for acquiring a request sent by the first control, switching to a target vibration mode and acquiring first audio data; performing preset processing on the collected first audio data based on the target vibration mode, and determining first driving parameters corresponding to the first audio signal, wherein the first driving parameters at least comprise first amplitude parameters; the second driving parameters are used for obtaining second driving parameters corresponding to the target vibration modes, and the second driving parameters at least comprise corresponding preset vibration duration and second amplitude parameters; determining a third driving parameter for driving the motor to vibrate based on the first driving parameter and the second driving parameter, wherein the third driving parameter at least comprises a vibration duration, and a third amplitude parameter and a number of driving waveforms determined based on the first amplitude parameter and the second amplitude parameter; a motor driving module for driving the motor to vibrate using the determined third driving parameter; and a motor for vibrating according to the control of the motor driving module.
In a possible implementation manner of the second aspect, the apparatus further includes: the vibration feedback device further includes: the human-computer interaction interface is used for detecting a request for indicating to switch to a target vibration mode to play audio; the human-computer interaction interface is used for receiving operation of selecting a target vibration mode on the human-computer interaction interface displayed by the electronic equipment by a user, and detecting a request for indicating to switch to the target vibration mode. In a possible implementation manner of the second aspect, the apparatus further includes: the first control comprises at least one first control, wherein the first control has a one-to-one correspondence with the target vibration mode.
In a possible implementation manner of the second aspect, the apparatus further includes: a method for detecting a request to instruct a switch to a target vibration mode to play audio, comprising: based on the user operation combination detected by the first control, detecting a request for playing the audio, wherein the request is used for indicating to switch to a target vibration mode, and the user operation combination comprises single or multiple operations of the first control by a user.
In a possible implementation manner of the second aspect, the apparatus further includes: for driving motor vibrations using a determined third driving parameter, comprising: the motor drive module converts and/or amplifies the third drive parameter to determine a vibration voltage for driving the motor to vibrate.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; one or more memories; the one or more memories store one or more programs that, when executed by the one or more processors, cause the electronic device to perform the vibration feedback method provided in the first aspect and various possible implementations described above.
Drawings
Fig. 1 is a flow chart of a prior art vibration feedback scheme.
Fig. 2 shows a flow diagram of a vibration feedback method according to an embodiment of the present application.
Fig. 3 shows a waveform diagram of unfiltered audio data in accordance with an embodiment of the present application.
Fig. 4 shows a waveform diagram of filtered audio data according to an embodiment of the present application.
Fig. 5 shows a schematic diagram of peak points of audio data according to an embodiment of the present application.
Fig. 6 shows a motor driving waveform diagram corresponding to one audio data according to an embodiment of the present application.
Fig. 7 illustrates a motor driving waveform diagram corresponding to another one of the audio data according to an embodiment of the present application.
Fig. 8 illustrates a waveform diagram of varying scrambled audio data, according to an embodiment of the present application.
Fig. 9 shows waveforms of audio data of successive shots of a shooting game according to an embodiment of the present application.
Fig. 10 shows an enlarged waveform of audio data of a point marked 1 among consecutive shots of a shooting game according to an embodiment of the present application.
Fig. 11 shows an enlarged waveform of audio data of a point marked with 2 among consecutive shots of a shooting game according to an embodiment of the present application.
Fig. 12 shows an enlarged waveform of audio data of a point marked with 3 among consecutive shots of a shooting game according to an embodiment of the present application.
Fig. 13 shows a motor driving waveform diagram of a shooting game for continuously shooting one point according to an embodiment of the present application.
Fig. 14 shows a schematic structural diagram of a vibration feedback device according to an embodiment of the present application.
Fig. 15 shows a schematic structural view of another vibration feedback device according to an embodiment of the present application.
Fig. 16 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application.
Detailed Description
The following detailed description of the present application will be made with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. Based on the embodiments herein, all other embodiments that a person skilled in the art would obtain without making any inventive effort are within the scope of protection of the present application.
In order to facilitate understanding of the schemes in the embodiments of the present application, the following description first explains terms in the embodiments of the present application.
(1) Micro control unit (Microcontroller Unit, MCU): the CPU frequency and specification of CPU are properly reduced, and the interfaces of Memory (Memory), counter (Timer), universal serial bus (Universal Serial Bus, USB), A/D conversion, universal asynchronous receiver transmitter (Universal Asynchronous Receiver Transmitter, UART), programmable logic controller (Programmable Logic Controller, PLC), direct Memory access (Direct Memory Access, DAM) and LCD driving circuit are integrated on a single chip to form a chip-level computer for different application occasions to realize different combination control.
(2) Analog-to-digital converter (Analog To Digital Converter, ADC): generally refers to an electronic component that converts an analog signal to a digital signal. A typical analog-to-digital converter converts an input voltage signal into an output digital signal. Since digital signals themselves have no practical meaning, only one relative size is represented. Therefore, any analog-to-digital converter needs a reference analog quantity as a conversion standard, and the most common reference standard is the maximum convertible signal size. And the number of digits output indicates the magnitude of the input signal relative to the reference signal.
(3) Digital-to-analog converters, also known as D/a converters, are devices that convert digital quantities into analog. The D/a converter consists essentially of 4 parts, namely a weighted resistor network, an operational amplifier, a reference power supply and an analog switch. Analog-to-digital converters are typically used in analog-to-digital converters.
(4) Random access memory (Random Access Memory, RAM): the random access memory, also called the main memory, is an internal memory that exchanges data directly with the CPU. It can be read and written at any time and is fast, usually as a temporary data storage medium for an operating system or other program in operation.
(5) Low Pass filtering (Low-Pass Filter): is a filtering mode. The rule of low-pass filtering is that low-frequency signals can normally pass through, while high-frequency signals exceeding a set critical value are blocked and weakened. But the amplitude of the blocking, weakening of the high frequency signal may vary depending on the frequency of the different signals and the different filtering procedures. Sometimes also referred to as High-frequency Cut Filter (High-Cut Filter) or highest Cut Filter (Treble-Cut Filter). In this application, the set threshold may be an amplitude parameter of the first audio data corresponding to the maximum amplitude parameter of the motor.
(6) User Interface (UI): is the medium of interaction and information exchange between the system and the user, which enables the conversion between the internal form of the information and the human acceptable form. The user interface is designed to be interactive communication related software between the user and the hardware, so that the user can conveniently and effectively operate the hardware to achieve bidirectional interaction, the work expected to be completed by the hardware is completed, the user interface is widely defined and comprises a man-machine interaction and a graphic user interface, and the user interface exists in the field of information communication between human beings and machines.
Fig. 1 shows a flow chart of a prior art vibration feedback scheme. The main execution body of each step in the existing vibration feedback scheme can be a game handle, and the electronic equipment can be a mobile phone and the like.
As shown in fig. 1, the process includes the steps of:
101: and acquiring scene information of the current electronic equipment.
It will be appreciated that the gamepad can obtain current context information. The scene information includes various information such as current picture information and/or sound information of the electronic equipment.
102: detecting that the current electronic equipment comprises a vibration event, and detecting an event coordinate of the current vibration event.
It can be understood that the game handle detects that the current game handle contains a plurality of event information, screens the event information, and determines the event information meeting the preset condition as a vibration event, wherein the preset condition can be preset when the electronic equipment leaves the factory or can be preset by a user. A coordinate system is established in a display interface in the electronic equipment in advance, and further the event coordinates of the current vibration event on the display interface are obtained, namely the position of the event triggering the motor is obtained.
103: and matching the corresponding motor identification according to the event coordinates of the current vibration event.
It can be understood that the game handle determines the position of the area in the display interface of the electronic device according to the event coordinates of the current vibration event, wherein the display interface of the electronic device is divided into four areas, and each area corresponds to a different motor identifier in the game handle. Different areas correspond to different motor identifications and numbers of motors in the gamepad. Wherein the motor identification may be motor 1, motor 2, motor 3, motor 4, etc.
Further, a motor identification is determined based on the location of the region in the electronic device of the event coordinates of the current vibration event.
104: and controlling motor vibration corresponding to the motor identification by adopting the vibration effect corresponding to the vibration event.
It will be appreciated that, based on the determination results of steps 101 to 104 described above, the motor corresponding to the motor identification is controlled to vibrate with a matching vibration effect. Specifically, according to a predefined vibration effect library, corresponding vibration effects are matched for the determined vibration event. The event coordinates where the vibration events are located are different, and the corresponding vibration effects are also different.
It can be understood that in the existing vibration feedback scheme, a vibration event contained in scene information in a display interface of the current electronic device is detected by implementing a corresponding relationship between a preset vibration effect and an event coordinate. Further acquiring event coordinates corresponding to the vibration event, and determining the region positions of the event coordinates in the display interface of the electronic equipment, wherein different region positions correspond to different motor identifications. Further, a motor identifier is determined according to the position of the area of the current vibration event in the electronic equipment, and the motor corresponding to the motor identifier is controlled to vibrate with a matched vibration effect.
Specifically, according to a predefined vibration effect library, corresponding vibration effects are matched for the determined vibration event. The event coordinates where the vibration events are located are different, and the corresponding vibration effects are also different.
The existing vibration feedback scheme solves the problem of single vibration effect, but the existing scheme can only achieve the purpose of multiple vibration effects by presetting different vibration effects, so that the preference of a user to different vibration modes can not be detected, and further vibration feedback can not be performed by combining the vibration mode distinction of the preference of the user.
In order to solve the above problems, the present application provides a vibration feedback method applied to an electronic device. Specifically, the method comprehensively determines what vibration frequency and frequency change the electronic equipment adopts to control the motor vibration in the target vibration mode by detecting the target vibration mode to be switched and combining the frequency distribution characteristics of the collected audio signals. The target vibration mode may be one selected from a plurality of preset vibration modes, and the target vibration mode may be, for example, a vibration mode that a user instructs to switch, that is, a vibration mode selected by the user, or a vibration mode that the electronic device identifies a scene match based on a scene perception capability, or the like, which is not limited herein.
It will be appreciated that the vibration feedback method provided herein may be applicable to electronic devices including, but not limited to, cell phones, personal computers (personal computer, PCs) (including laptop computers, desktop computers, tablet computers, etc.), servers, wearable devices, mobile email devices, car equipment, portable gaming devices, as described above.
The following describes in detail a specific implementation procedure of the vibration feedback method provided in the embodiment of the present application with reference to fig. 2.
Fig. 2 shows a flow diagram of a vibration feedback method according to an embodiment of the present application. It will be appreciated that the subject of execution of the steps in the method may be a vibration feedback device or apparatus that implements the vibration feedback method of the present application. The structure of the specific vibration feedback device or apparatus will be described in detail below, and will not be described in detail herein.
As shown in fig. 2, the process includes the steps of:
201: and detecting a request for indicating to switch to the target vibration mode to play audio, and switching to the target vibration mode.
Illustratively, a request to play audio is detected that indicates a switch to a target vibration mode. It can be appreciated that the user can select a vibration mode that is more closely matched to the current scene based on the use requirements in the current scene. For example, in a party scene the user may select "dynamic mode". In other embodiments, the electronic device may also perform scene sensing recognition according to some preset scene information, so as to automatically select a vibration mode that is more matched with the current scene, and so on. The user can select a required vibration mode through preset vibration mode selection controls on the electronic equipment, wherein the number of the vibration mode selection controls can be K, and each vibration mode selection control can correspond to different vibration modes. In other embodiments, the vibration mode selection control may be set to only 1, and the user may select the target vibration mode through different pressing times. For example, pressing once may select a first vibration mode and pressing twice may select a second vibration mode. When the current vibration mode is in the last vibration mode, the user presses the vibration mode selection control and then switches to the first vibration mode, and then the target vibration mode is selected according to the current scene. The target vibration mode may also be selected by the time the vibration mode selection control is pressed, without limitation.
In other embodiments, the user may select a vibration mode corresponding to the current scene through a UI interface in the upper computer or a vibration mode selection interface provided by the application software. The host computer may be a software module in the electronic device, which is used to provide a vibration mode option for the user, or may be another electronic device connected to the electronic device, in some embodiments, the host computer may be a mobile phone, and the electronic device connected to the host computer may be a sound box or a game pad, for example, which is not limited herein.
It can be appreciated that detecting a vibration mode selected by a user corresponding to a current scene, determining the vibration mode selected by the user, and performing vibration mode switching.
202: and acquiring first audio data based on the switched target vibration mode.
The first audio data may be an audio data stream outputted after being parsed by a decoder from audio files of various formats, for example. Wherein the first audio data comprises at least an amplitude parameter.
It will be appreciated that different vibration modes correspond to different acquisition rates, first audio data is acquired based on the switched target vibration mode, and the acquired first audio data is converted into a digital signal.
203: and executing preset processing on the collected first audio data in the target vibration mode, and determining a first driving parameter corresponding to the first audio data.
It is understood that the first driving parameter includes at least a first amplitude parameter. In addition, in order to bring better vibration effect to the user, different audio data processing modes can be preset for different vibration modes on the electronic equipment. For example, the audio data processing mode preset for the first vibration mode may be different from the audio data processing mode preset for the second vibration mode.
Specifically, when the target vibration mode is the first vibration mode, the collected first audio data is divided into a plurality of continuous audio units, and the plurality of continuous audio units are subjected to low-pass filtering processing once. And obtaining the peak value of each audio unit after filtering, and comparing the peak values of the audio units to obtain the maximum value of the peak value of each audio unit, wherein the maximum value of the peak value is used as a first driving parameter.
And when the target vibration mode is the second vibration mode, comparing the acquired first audio data with a preset value, and counting the number of absolute values of the audio data which are larger than the preset value in the first audio data, so as to calculate the percentage of the number of the absolute values of the audio data which are larger than the preset value in the first audio data. And further comparing the calculated percentage with a preset percentage, and judging that the first audio data need to vibrate when the calculated percentage is larger than the preset percentage. The predetermined value and the preset percentage can be adjusted according to actual situations and requirements, and are not limited herein.
204: and acquiring a second driving parameter corresponding to the target vibration mode, and determining a third driving parameter for driving the motor to vibrate based on the first driving parameter and the second driving parameter.
The second driving parameter includes at least a preset vibration duration and a second amplitude parameter corresponding to the target vibration mode. The third driving parameter at least comprises a preset vibration duration corresponding to the target vibration mode and a third amplitude parameter determined based on the first amplitude parameter and the second amplitude parameter.
It will be appreciated that different vibration modes correspond to different periods of vibration. When the target vibration mode is the first vibration mode, a first sine wave of a motor driving waveform is generated in combination with a natural frequency FO of the motor according to a maximum value of peak values of each audio unit. And then, calculating to obtain a complete motor driving waveform according to the preset vibration duration, and generating motor driving data, namely a third driving parameter. In order to obtain better vibration feedback effect, the vibration sense is gradually reduced from strong to weak until the vibration sense is reduced to zero. Furthermore, between two consecutive audio units, the motor needs to remain stationary, so no motor drive data needs to be generated. The vibration duration corresponding to the first vibration mode may be adjusted according to the requirement, which is not limited herein.
In this application, the second vibration mode is suitable for changing audio data having no regularity or abrupt change. When the collected first audio data is judged to need to vibrate, a motor driving waveform is generated according to the maximum amplitude and the natural frequency F0 which can be born by the motor. In order to obtain a better vibration feedback effect, in the second vibration mode, the preset vibration duration of the driving motor may be a sine period.
It will be appreciated that motor drive data, i.e. the third drive parameter, may be derived from the generated motor drive waveform and motor vibration duration.
205: and driving the motor to vibrate by adopting the determined third driving parameter.
It can be understood that the intensity of the motor vibration is controlled by the voltage across the motor. Therefore, the motor driving module in the electronic equipment converts or amplifies the generated motor driving data, namely converts or amplifies the third driving parameter to obtain a voltage value for driving the motor to vibrate, so that the motor is driven to vibrate according to the obtained voltage value. It will be appreciated that the different modes of vibration correspond to one or more of the motors, and that when the motors are driven to vibrate, it may be that the one or more motors are driven to vibrate together.
Specific implementations of the first vibration mode and the second vibration mode in the above steps 201 to 205 to achieve different vibration feedback effects will be described in detail below. It should be understood that the first vibration mode and the second vibration mode are only illustrated by way of example, and are not limited to the number of vibration modes in the present application. In other embodiments, other vibration modes may be included, without limitation.
The first vibration mode, which in other embodiments may be, for example, a mild mode or a musical mode, etc. In the embodiment of the present application, the acquisition rate of the first vibration mode is equal to 12K, that is, 12000 points per second. In other embodiments, the acquisition rate may be adjusted according to actual requirements, which is not limited herein. The control module of the electronic equipment collects the audio data, divides the collected first audio data into a plurality of continuous audio units, performs low-pass filtering processing on each of the plurality of continuous audio units once, and removes high-frequency signals. The specific low-pass filtering formula is as follows:
y[k]=1.8521*y[k-1]-0.8623*k[k-2]+0.0026*x[k]+0.0051*x[k-1]+0.0026*x[k-2]
wherein, y [ k ] is the first audio data output by the kth time, y [ k-1] is the first audio data output by the kth-1 time, and y [ k-2] is the first audio data output by the kth-2 time; x k is the first audio data of the kth input, x k-1 is the first audio data of the kth-1 input, x k-2 is the first audio data of the kth-2 input; coefficients 1.8521, 0.8623 … in the formula can be adjusted according to the requirements in actual implementation scenes, and the coefficients are not limited herein. The filtered first audio data is shown with reference to fig. 4, wherein the abscissa of the waveform diagram of the audio data shown in fig. 4 represents the sampling time, which may be in milliseconds (ms), e.g. 500ms, 1000ms, etc.; the ordinate indicates the audio amplitude in decibels (dB), such as 1.5X10 dB 4dB, etc. Accordingly, the waveform of the audio data shown in FIG. 3 may also be in dB in abscissa and in ms in ordinate.
Further, the peak point of each audio unit of the first audio data may be determined, for example, by sampling the data [ k ] of the current frame, the data [ k-1] of the previous frame, and the data [ k+1] of the next frame; if data [ k-1] < data [ k ] > data [ k+1] and data [ k ] >3000, then data [ k ] is considered to be the peak point, data [ k ] is stored into the storage location designated by the control module, and this point is counted as peak [1]. The next peak point is determined according to the method, and is sequentially peak [2], peak [3] and the like, wherein the peak point can be three or more, and the method is not limited. For example, the peak point of an audio unit shown in fig. 5, it can be seen from fig. 5 that when peak [1] < peak [2] > peak [3], peak [2] is determined as the highest point of the audio unit, and is also the maximum peak point of the audio unit. It will be appreciated that the waveform diagram of fig. 5 may be an enlarged schematic of a portion of the waveform diagram of fig. 4, and that the ordinate unit of the waveform diagram of fig. 5 may also be decibels (dB).
Further, a sine wave having a frequency equal to the natural frequency F0 of the motor and having a magnitude equal to the maximum peak point of the first audio data, i.e., peak [2], is generated. In the embodiment of the application, in order to meet the corresponding vibration situation, the use experience sense of the user is improved, the vibration sense is gradually reduced from strong to weak, the reduction is zero finally, and the whole vibration process lasts 300ms. As shown in FIG. 6, the maximum amplitude of the motor driving waveform is about 2.1X10-4 dB, and the frequency is 170 Hz. In the present embodiment, one sinusoidal waveform has a duration of about 1000/170ms, which is about 5.882ms, and 300ms has about 51 sinusoidal waveforms. In order to better obtain strong to weak vibration feeling, the amplitude of each sine wave from the second sine wave is 2.1X10-4/51 of the last amplitude.
In other embodiments, the corresponding motor driving waveform may also be generated according to the actual maximum peak point of the collected first audio data and the natural frequency of the motor. The motor driving waveform of the next audio data is continuously generated according to the method of generating motor driving waveform described above, as in FIG. 7, with a maximum amplitude of 1.7X10-4 dB and a gradually decreasing sinusoidal waveform with a frequency of 170 HZ. For better vibration feedback, the first vibration mode is between two consecutive audio data, and the motor needs to remain stationary, and no data need be input to the motor drive module.
It will be appreciated that the abscissas of the waveforms of the motor drive data shown in fig. 6 and 7 described above both represent audio amplitude values in dB, and the ordinates represent frequency in Hz.
Further, the control module of the electronic device sends the generated motor driving data to the motor driving module. It can be understood that the intensity of the motor vibration sense is controlled by the voltages at the two ends of the motor, so that the motor driving module in the electronic device converts or amplifies the generated motor driving data to obtain a voltage value for driving the motor to vibrate, thereby driving the motor to vibrate according to the obtained voltage value. It will be appreciated that in the first vibration mode, the amplitude of each sine wave in the generated drive waveform is different. Therefore, after the motor driving module is converted or amplified, the amplitude of the obtained voltage waveform for driving the motor to vibrate is also different, so that the vibration effect from strong to weak can be realized.
As can be seen from fig. 8, the first audio data change at this time is relatively complex and irregular, and is not suitable for the audio data processing manner of the first vibration mode. Therefore, in order to obtain a better vibration effect, the user can select the second vibration mode. In other embodiments, the second vibration mode may be, for example, a dynamic mode or a game mode, without limitation. The vibration mode does not filter the acquired first audio data.
It can be appreciated that in the second vibration mode, the electronic device may collect the first audio data according to a preset collection amount of the first audio data. And when the percentage of the absolute value of the collected first audio data which is larger than the preset value in the collected first audio data exceeds the preset percentage, judging that the first audio data has rhythm points needing to vibrate. A motor driving waveform is generated based on the maximum amplitude that the motor can withstand and the natural frequency F0. In order to obtain a better vibration feedback effect, in the second vibration mode, the vibration duration of the driving motor may be one sinusoidal period.
The motor driving waveform is a sine wave with the amplitude of the audio data corresponding to the maximum amplitude which can be born by the motor and the frequency of the sine wave being the natural frequency F0 of the motor. In order to bring better vibration experience to the user, in the second vibration mode, only the motor can be driven to vibrate by one sine waveform for each rhythm point of vibration.
Fig. 9 shows a first audio data diagram of a shooting game in continuous shooting.
As shown in FIG. 9, points labeled 1, 2, 3 may represent successive shots of a certain shot-like game that are detected.
According to the first audio data map shown in fig. 9, the control module in the electronic device may preset that the first audio data is collected once for 1024 first audio data points, the time required for collecting once is about 20.33ms, the collection rate of the second vibration mode is 48K, that is, 48000 times per second, and the specified and predetermined amplitude is 2.8x104db, which is 85% of the maximum amplitude that can be borne when the motor vibrates. In other embodiments, the predetermined value may be adjusted according to the needs of the user.
Fig. 10 is a first audio data plot of fig. 9 with the point labeled 1 enlarged, and fig. 11 and 12 are corresponding first audio data plots of fig. 9 with the points labeled 2 and 3 enlarged. As can be seen from the above-described fig. 10 to 12, each first audio data rhythm point requiring vibration is composed of a plurality of first audio data. Therefore, when one rhythm point appears, the first audio data of each rhythm point can be collected independently, and when the absolute value of the collected first audio data is larger than the preset value and the number of the collected first audio data exceeds 20 percent of the collected first audio data, the point that the first audio data appears and needs to vibrate is judged. The abscissa of the waveform diagrams of the audio data shown in fig. 8 to 12 represents the audio amplitude in dB, and the ordinate represents the sampling time in ms.
Therefore, based on the above determination result, a motor driving waveform in dB on the abscissa and Hz on the ordinate is generated, for example, a motor driving waveform having an amplitude of 3.2767×10≡4dB and a frequency F0 of 170HZ is shown in FIG. 13. In order to obtain a better vibration effect, in the second vibration mode in the embodiment of the application, the motor driving module only drives the motor to vibrate by one sine wave, and the vibration duration is 1000/170ms and is equal to 5.882ms. Further, the control module sends the generated motor driving data to the motor driving module. The motor driving module converts or amplifies the generated motor driving data to obtain a voltage value for driving the motor to vibrate, so that the motor is driven to vibrate according to the obtained voltage value.
Fig. 14 shows a schematic structural diagram of a vibration feedback device according to an embodiment of the present application.
As shown in fig. 14, the apparatus includes one or more vibration mode selection controls, a speaker, a control module MCU, a motor drive module, and one or more motors. When only one key is pressed, different vibration modes are selected through different key times, for example, a first vibration mode is selected by pressing, a second vibration mode is selected by pressing, when the current vibration mode is in the last vibration mode, a user firstly switches to the first vibration mode after pressing the key, and then the corresponding vibration mode is selected according to the requirement. The vibration mode selected by the user can also be determined by the time of pressing the function key for a long time, without limitation.
When the control module MCU detects that the vibration mode selection control is pressed, the current vibration mode is switched to be the vibration mode corresponding to the pressed vibration mode selection control. The ADC peripheral equipment of the control module MCU monitors the loudspeaker in real time, and when the loudspeaker is detected to be started, first audio data are acquired based on the current vibration mode, wherein the acquisition modes and the acquisition rates corresponding to different vibration modes are different. The collected first audio data is further stored in a designated storage location in the control module MCU, which may be a RAM, for example. The control module MCU processes the first audio data according to a first audio data processing method corresponding to the current vibration mode to generate motor driving data for driving the motor to vibrate, the motor driving data comprise motor driving waveforms and motor vibration time length, and the control module MCU sends the generated motor driving data to the motor driving module through a 12C/12S/DAC/GPIO pin. The further motor driving module converts or amplifies the generated motor driving data to obtain a voltage value for driving the motor to vibrate, so that the driving motor vibrates according to the obtained voltage value. The audio data processing modes and the motor vibration modes of the different vibration modes are described in detail with reference to fig. 3 to 13, and are not described in detail herein.
Fig. 15 shows a schematic structural view of another vibration feedback device according to an embodiment of the present application.
As shown in fig. 15, the apparatus includes a host computer, a communication module, a speaker, a control module MCU, a motor driving module, and one or more motors. In this embodiment of the present application, the upper computer may be a software module in the vibration feedback device, and is configured to provide a display screen of an option of vibration mode selection. In some embodiments, the host computer may be, for example, a mobile phone, and the vibration feedback device may be, for example, a game pad connected to the mobile phone, which is not limited herein.
It can be appreciated that the user can select a vibration mode corresponding to the current scenario according to a UI interface of the upper computer or vibration mode options provided by the application software. And the upper computer sends the selected result to the vibration feedback device through the communication module, and the external communication module of the control module MCU receives vibration mode selection information sent by the upper computer. The communication module in the upper computer and the communication module of the vibration feedback device can adopt wired or wireless communication.
The control module MCU switches the current vibration mode to the vibration mode selected by the user based on the received vibration mode selection information. The ADC peripheral equipment of the control module MCU monitors the loudspeaker in real time, and when the loudspeaker is detected to be started, first audio data are acquired based on the current vibration mode, wherein the acquisition modes and the acquisition rates corresponding to different vibration modes are different. The collected first audio data is further stored in a designated storage location in the control module MCU, which may be a RAM, for example. The control module MCU processes the first audio data according to a first audio data processing method corresponding to the current vibration mode to generate motor driving data for driving the motor to vibrate, the motor driving data comprise motor driving waveforms and motor vibration time length, and the control module MCU sends the generated motor driving data to the motor driving module through a 12C/12S/DAC/GPIO pin. The further motor driving module converts or amplifies the generated motor driving data to obtain a voltage value for driving the motor to vibrate, so that the driving motor vibrates according to the obtained voltage value. The audio data processing modes and the motor vibration modes of the different vibration modes are described in detail with reference to fig. 3 to 13, and are not described in detail herein.
Fig. 16 illustrates a schematic structural diagram of an electronic device 100, according to some embodiments of the present application.
As shown in fig. 16, electronic device 100 includes one or more processors 101, a system Memory 102, a Non-Volatile Memory (NVM) 103, a communication interface 104, an input/output (I/O) device 105, and system control logic 106 for coupling processor 101, system Memory 102, non-Volatile Memory 103, communication interface 104, and input/output (I/O) device 105. Wherein:
the processor 101 may include one or more processing units, for example, data processing units or processing circuits, which may include a central processor CPU (Central Processing Unit), an image processor GPU (Graphics Processing Unit), a digital signal processor DSP (Digital Signal Processor), a microprocessor MCU (Micro-programmed Control Unit), an AI (Artificial Intelligence ) processor, or a programmable logic device FPGA (Field Programmable Gate Array), a Neural Network Processor (NPU), etc., may include one or more single-core or multi-core processors. In some embodiments, processor 101 may be configured to execute instructions to perform the functions associated with the data processing unit, the tagging unit, and the data storage unit described above.
The system Memory 102 is a volatile Memory such as Random-Access Memory (RAM), double data rate synchronous dynamic Random Access Memory (Double Data Rate Synchronous Dynamic Random Access Memory, DDR SDRAM), or the like. The system memory is used to temporarily store data and/or instructions, for example, in some embodiments, the system memory 102 may be used to store instructions for the data processing unit 21, the marking unit 22, and the data storage unit 12, as well as to store original data objects and change data objects.
Nonvolatile memory 103 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions. In some embodiments, the nonvolatile memory 103 may include any suitable nonvolatile memory such as flash memory and/or any suitable nonvolatile storage device, for example, a Hard Disk Drive (HDD), compact Disc (CD), digital versatile Disc (Digital Versatile Disc, DVD), solid State Drive (SSD), and the like. In some embodiments, the nonvolatile memory 103 may also be a removable storage medium, such as a Secure Digital (SD) memory card or the like. In other embodiments, the nonvolatile memory 103 may be used to store instructions of the data processing unit 21, the marking unit 22, and the data storage unit 12, and may also be used to store original data objects and change data objects.
In particular, the system memory 102 and the nonvolatile memory 103 may each include: a temporary copy and a permanent copy of instruction 107. The instructions 107 may include: execution by at least one of the processors 101 causes the electronic device 100 to implement the vibration feedback method provided by the embodiments of the present application.
The communication interface 104 may include a transceiver to provide a wired or wireless communication interface for the electronic device 100 to communicate with any other suitable device via one or more networks. In some embodiments, the communication interface 104 may be integrated with other components of the electronic device 100, e.g., the communication interface 104 may be integrated in the processor 101. In some embodiments, the electronic device 100 may communicate with other devices through the communication interface 104, for example, the electronic device 100 may establish a communication connection with the electronic device 200 through the communication interface 104 to transmit the collected first audio data and transmit the motor drive data to the electronic device 200 through the communication connection.
Input/output (I/O) devices 105 may include input devices such as a keyboard, mouse, etc., output devices such as a display, etc., through which a user may interact with electronic device 100.
The system control logic 106 may include any suitable interface controller to provide any suitable interface with other modules of the electronic device 100. For example, in some embodiments, the system control logic 106 may include one or more memory controllers to provide an interface to the system memory 102 and the non-volatile memory 103.
It is to be understood that the configuration of the electronic device 100 shown in fig. 16 is merely an example, and in other embodiments, the electronic device 100 may include more or fewer components than shown, or may combine certain components, or may split certain components, or may have a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The embodiment of the application also provides a program product for realizing the vibration feedback method provided by each embodiment.
Embodiments of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the present application may be implemented as computer modules or module code executing on a programmable system including at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Module code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (Digital Signal Processor, DSP), microcontroller, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or microprocessor.
The module code may be implemented in a high level modular language or an object oriented programming language for communication with a processing system. The module code may also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in the present application are not limited in scope to any particular programming language. In either case, the language may be a compiled or interpreted language.
In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such a particular arrangement and/or ordering may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims (22)

1. A vibration feedback method, comprising:
detecting a request for indicating to switch to a target vibration mode to play audio, and switching to the target vibration mode;
collecting first audio data;
performing preset processing on the collected first audio data in the target vibration mode, and determining first driving parameters corresponding to the first audio data, wherein the first driving parameters at least comprise first amplitude parameters;
acquiring a second driving parameter corresponding to the target vibration mode, wherein the second driving parameter at least comprises a corresponding preset vibration duration and a second amplitude parameter;
determining a third driving parameter for driving the motor to vibrate based on the first driving parameter and the second driving parameter, wherein the third driving parameter at least comprises the preset vibration duration and a third amplitude parameter determined based on the first amplitude parameter and the second amplitude parameter;
and driving the motor to vibrate by adopting the determined third driving parameter.
2. The method of claim 1, wherein the target vibration mode is obtained by any one of:
receiving an operation of selecting the target vibration mode by a user through a vibration mode selection control on electronic equipment, and detecting a request for indicating to switch to the target vibration mode;
And receiving an operation of selecting the target vibration mode on a man-machine interaction interface displayed by the electronic equipment by a user, and detecting a request for indicating to switch to the target vibration mode.
3. The method according to claim 2, wherein the target vibration mode is a first vibration mode, and the performing a preset process on the first audio data collected in the target vibration mode includes:
acquiring second audio data;
dividing the second audio data into a plurality of audio units that are continuous in time sequence;
and filtering the plurality of audio units to obtain the first audio data.
4. A method according to claim 3, wherein said filtering said plurality of audio units comprises: and performing low-pass filtering processing on the plurality of audio units to obtain the first audio data.
5. The method of claim 4, wherein the determining a first drive parameter corresponding to the first audio data comprises:
acquiring a corresponding peak point in an audio waveform diagram corresponding to each audio unit;
determining the maximum value of peak points according to the corresponding peak points in the audio waveform diagram corresponding to each audio unit;
Determining a first driving parameter corresponding to the first audio data as the maximum value of the peak points;
wherein a maximum of the peaks is used to indicate a maximum of the magnitudes in the first audio data.
6. The method of claim 5, wherein the obtaining the second driving parameter corresponding to the target vibration mode comprises:
acquiring a second driving parameter corresponding to the first vibration mode;
and determining a first vibration duration corresponding to the first vibration mode as the preset vibration duration.
7. The method of claim 6, wherein the second drive parameters further comprise a waveform number of drive waveforms, and the acquiring the second drive parameters corresponding to the first vibration mode comprises:
and determining the number of the periods of the drive waveform corresponding to the first vibration mode to be the first number of the periods of the first drive waveform in the second drive parameter, wherein the first number of the periods is the number of the periods of the alternating current drive signal corresponding to the drive waveform.
8. The method of claim 7, wherein determining a third drive parameter for driving motor vibration comprises:
The first amplitude parameter is used as a third amplitude parameter in a third driving parameter;
determining the preset vibration duration as a first vibration duration based on the second driving parameter;
and determining a first period number in a first driving waveform based on the second driving parameter, wherein the first period number is a product value of the first vibration duration and a vibration frequency, and the vibration frequency is a natural frequency of the motor.
9. The method of claim 8, wherein the first drive waveform comprises a plurality of waveforms having different amplitude parameters and the same vibration frequency, wherein the first drive waveform starts with a second waveform and the amplitude parameters are sequentially reduced by a ratio of the first amplitude parameter to the number of first waveforms than the amplitude parameters of a previous waveform.
10. The method of claim 1, wherein the target vibration mode is a second vibration mode and,
the performing preset processing on the collected first audio data in the target vibration mode, and determining a first driving parameter corresponding to the first audio data includes:
comparing the amplitude of the first audio data with a predetermined value;
Counting the number of the first audio data with amplitude values larger than a preset value;
calculating to obtain the percentage of the number of absolute values of the amplitude values in the first audio data which are larger than a preset value in the first audio data;
comparing the percentage with a preset percentage;
and determining the first driving parameter according to the comparison result.
11. The method of claim 10, wherein said comparing said percentage with a preset percentage comprises:
determining a third driving parameter for driving the motor to vibrate according to the comparison result and the second driving parameter; wherein the comparison result is that the percentage is greater than the preset percentage.
12. The method of claim 10, wherein determining a third drive parameter for driving motor vibration comprises:
determining a first preset amplitude corresponding to the second vibration mode as the second amplitude parameter, wherein the first preset amplitude is used for indicating the maximum amplitude of the vibration of the driving motor;
and determining a second vibration duration corresponding to the second vibration mode as the preset vibration duration.
13. The method of claim 10, wherein the second driving parameters further comprise a waveform number of driving waveforms, and the obtaining the second driving parameters corresponding to the second vibration mode comprises:
And determining the number of the periods of the second driving waveform corresponding to the second vibration mode as the second number of the periods of the second driving waveform in the second driving parameter, wherein the second number of the periods is the number of the periods of the alternating current driving signal corresponding to the driving waveform.
14. The method of claim 13, wherein determining a third drive parameter for driving motor vibration comprises:
taking the second amplitude parameter as a third amplitude parameter in a third driving parameter;
determining the preset vibration duration as a second vibration duration based on the second driving parameter, wherein the vibration duration is a period corresponding to a single waveform in a second driving waveform;
and determining a second period number in a second driving waveform based on the second driving parameter, wherein the second period number in the second driving waveform is one period.
15. The method of claim 14, wherein the second drive waveform comprises at least one waveform: the amplitude parameter of the second driving waveform is a third amplitude parameter, and the vibration frequency is the natural frequency of the motor.
16. The method of claim 1, wherein driving the motor to vibrate using the determined third drive parameter comprises:
Converting and/or amplifying the third driving parameter to determine a vibration voltage for driving the motor to vibrate;
and driving the motor to vibrate according to the vibration voltage.
17. A vibration feedback device, comprising: the control device comprises a control module, a motor driving module, a motor and a first control; the first control is used for detecting a request for indicating to switch to a target vibration mode to play audio;
the control module is used for acquiring the request sent by the first control, switching to the target vibration mode and acquiring first audio data;
performing preset processing on the collected first audio data based on the target vibration mode, and determining first driving parameters corresponding to the first audio signal, wherein the first driving parameters at least comprise first amplitude parameters;
the second driving parameters are used for obtaining second driving parameters corresponding to the target vibration modes, and the second driving parameters at least comprise corresponding preset vibration duration and second amplitude parameters;
determining a third driving parameter for driving the motor to vibrate based on the first driving parameter and the second driving parameter, wherein the third driving parameter at least comprises the vibration duration, and a third amplitude parameter and a number of driving waveforms determined based on the first amplitude parameter and the second amplitude parameter;
A motor driving module for driving the motor to vibrate using the determined third driving parameter;
and the motor is used for vibrating according to the control of the motor driving module.
18. The apparatus of claim 17, wherein the vibration feedback apparatus further comprises:
the human-computer interaction interface is used for detecting a request for indicating to switch to a target vibration mode to play audio;
the man-machine interaction interface is used for receiving an operation of selecting the target vibration mode on the man-machine interaction interface displayed by the electronic equipment by a user, and detecting a request for indicating to switch to the target vibration mode.
19. The apparatus of claim 17, wherein the first control comprises at least one first control, wherein the first control has a one-to-one correspondence with the target vibration mode.
20. The apparatus of claim 17, wherein the means for detecting a request to instruct switching to the target vibration mode to play audio comprises:
and detecting a request for playing the audio, which indicates to switch to the target vibration mode, based on the user operation combination detected by the first control, wherein the user operation combination comprises single or multiple operations of the first control by a user.
21. The apparatus of claim 17, wherein the means for driving motor vibration using the determined third driving parameter comprises
The motor driving module converts and/or amplifies the third driving parameter to determine a vibration voltage for driving the motor to vibrate.
22. An electronic device, comprising: one or more processors; one or more memories; the one or more memories stores one or more programs that, when executed by the one or more processors, cause the electronic device to perform the vibration feedback method of any of claims 1-16.
CN202310113740.5A 2023-02-14 2023-02-14 Vibration feedback method and device and electronic equipment Pending CN116077925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310113740.5A CN116077925A (en) 2023-02-14 2023-02-14 Vibration feedback method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310113740.5A CN116077925A (en) 2023-02-14 2023-02-14 Vibration feedback method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116077925A true CN116077925A (en) 2023-05-09

Family

ID=86206262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310113740.5A Pending CN116077925A (en) 2023-02-14 2023-02-14 Vibration feedback method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116077925A (en)

Similar Documents

Publication Publication Date Title
US10431057B2 (en) Method, system, and device for converting audio signal to one or more haptic effects
EP2624099B1 (en) Method and system for sound to haptic effect conversion using waveform
JP6985339B2 (en) Scene-based vibration feedback method and mobile device
JP5306491B2 (en) Electronic device using haptic feedback and method for providing haptic feedback
US9454881B2 (en) Haptic warping system
KR101427993B1 (en) Method for converting audio signal to haptic signal and apparatus for performing the same
EP2487557A2 (en) Sound to haptic effect conversion system using amplitude value
CN111381707A (en) Haptic signal conversion system
US20180246591A1 (en) Method of controlling a mobile device
CN104932681A (en) Automatic tuning of haptic effects
CN107145221A (en) A kind of information processing method and electronic equipment
JP2012220547A (en) Sound volume control device, sound volume control method, and content reproduction system
CN116077925A (en) Vibration feedback method and device and electronic equipment
JP7167920B2 (en) Display control device, display control method and program
CN113453048A (en) Audio and video tactile feedback setting method, audio and video playing method and computer equipment
EP3979044A1 (en) Information processing device, information processing method, and program
CN116775021A (en) Method for creating haptic effects in real time through gestures and related devices
CN118659686A (en) Vibration control method, storage medium, electronic device, and program product
CN105824428A (en) Audio reading method
CN104008003A (en) Information processing method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination