CN113708704A - Motor vibration sense control method and device, electronic equipment and storage medium - Google Patents

Motor vibration sense control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113708704A
CN113708704A CN202010443708.XA CN202010443708A CN113708704A CN 113708704 A CN113708704 A CN 113708704A CN 202010443708 A CN202010443708 A CN 202010443708A CN 113708704 A CN113708704 A CN 113708704A
Authority
CN
China
Prior art keywords
vibration intensity
target
candidate input
motor
input waveform
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.)
Granted
Application number
CN202010443708.XA
Other languages
Chinese (zh)
Other versions
CN113708704B (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010443708.XA priority Critical patent/CN113708704B/en
Publication of CN113708704A publication Critical patent/CN113708704A/en
Application granted granted Critical
Publication of CN113708704B publication Critical patent/CN113708704B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/02Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the kind of motor
    • H02P25/06Linear motors
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/02Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the kind of motor
    • H02P25/032Reciprocating, oscillating or vibrating motors
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P7/00Arrangements for regulating or controlling the speed or torque of electric DC motors
    • H02P7/02Arrangements for regulating or controlling the speed or torque of electric DC motors the DC motors being of the linear type
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/12Classification; Matching
    • G06F2218/16Classification; Matching by matching signal segments

Landscapes

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

Abstract

The disclosure relates to a motor vibration sense control method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring target vibration intensity of a motor; selecting a candidate input waveform with the vibration intensity matched with the target vibration intensity from a plurality of candidate input waveforms according to the target vibration intensity; the candidate input waveforms have different oscillation starting periods and serve as initial input waveforms; driving the motor to vibrate based on the candidate input waveform. Therefore, the oscillation starting period of the input waveform can be adjusted by selecting the input waveform in the embodiment, the effect of controlling the oscillation intensity and the oscillation period is achieved, and the accuracy of adjusting the oscillation intensity is improved.

Description

Motor vibration sense control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of control technologies, and in particular, to a method and an apparatus for controlling vibration sensation of a motor, an electronic device, and a storage medium.
Background
At present, be provided with linear motor in the electronic equipment, utilize linear motor to take turns to and stop suddenly and reach the effect of vibrations electronic equipment to can improve user experience.
In practical application, the electronic device is provided with a sliding bar in a user interface, and a user adjusts the vibration strength of the linear motor by moving the position of the sliding block on the sliding bar, namely when the sliding block moves towards one direction, the input voltage of the linear motor can be increased, and at the moment, the vibration strength of the linear motor is increased; when moving in the other direction, the input voltage of the linear motor can be reduced, and the vibration intensity of the linear motor is weakened.
However, in the related art, only the magnitude of the input voltage is adjusted, and when the vibration intensity is weakened to a certain degree, the vibration cycle is not changed, so that the vibration sense is dragged, and the user experience is affected.
Disclosure of Invention
The present disclosure provides a method and an apparatus for controlling vibration sensation of a motor, an electronic device, and a storage medium, to solve the deficiencies of the related art.
According to a first aspect of an embodiment of the present disclosure, there is provided a motor vibration sense control method including:
acquiring target vibration intensity of a motor;
selecting a candidate input waveform with the vibration intensity matched with the target vibration intensity from a plurality of candidate input waveforms according to the target vibration intensity; the plurality of candidate input waveforms have different start periods;
driving the motor to vibrate based on the candidate input waveform.
Optionally, driving the motor shake based on the candidate input waveform comprises:
when the target vibration intensity is determined to be different from the vibration intensity corresponding to the candidate input waveform, adjusting the voltage value of the candidate input waveform based on the target vibration intensity to obtain a target input waveform;
and driving the motor to vibrate based on the target input waveform so that the vibration intensity of the motor is the target vibration intensity.
Optionally, acquiring the target vibration intensity of the motor comprises:
detecting a relative position of a slider on a slider in a user interface in an electronic device;
and acquiring the vibration intensity corresponding to the relative position based on the corresponding relation between the relative position and the vibration intensity, and taking the vibration intensity as the target vibration intensity of the motor.
Optionally, selecting a candidate input waveform with a vibration intensity matching the target vibration intensity from a plurality of candidate input waveforms according to the target vibration intensity includes:
acquiring the number of oscillation starting periods in the input waveform according to the target oscillation intensity based on a preset relation between the oscillation intensity and the number of oscillation starting periods;
and selecting one candidate input waveform with the number of oscillation starting periods from a plurality of candidate input waveforms, and taking the candidate input waveform as the candidate input waveform with the vibration intensity closest to the target vibration intensity.
Optionally, each of the candidate input waveforms further includes a vibration-off period matching the vibration-on period.
Optionally, each candidate input waveform corresponds to a vibration intensity range, and there is a coincidence intensity in the vibration intensity ranges of two candidate input waveforms adjacent to each other in the number of start periods.
According to a second aspect of the embodiments of the present disclosure, there is provided a motor vibration sensing control device including:
the intensity acquisition module is used for acquiring the target vibration intensity of the motor;
the waveform acquisition module is used for selecting a candidate input waveform with the vibration intensity matched with the target vibration intensity from a plurality of candidate input waveforms according to the target vibration intensity; the plurality of candidate input waveforms have different start periods;
and the motor driving module is used for driving the motor to vibrate based on the candidate input waveform.
Optionally, the motor drive module comprises:
a target waveform obtaining unit, configured to, when it is determined that the target vibration intensity is different from the vibration intensity corresponding to the candidate input waveform, adjust a voltage value of the candidate input waveform based on the target vibration intensity to obtain a target input waveform;
and the motor driving unit is used for driving the motor to vibrate based on the target input waveform so as to enable the vibration intensity of the motor to be the target vibration intensity.
Optionally, the target intensity obtaining module includes:
a relative position detection unit for detecting the relative position of the slider on the slider in the user interface in the electronic device;
and the target intensity acquisition unit is used for acquiring the vibration intensity corresponding to the relative position based on the corresponding relation between the relative position and the vibration intensity, and taking the vibration intensity as the target vibration intensity of the motor.
Optionally, the waveform obtaining module includes:
the oscillation starting number acquisition unit is used for acquiring the number of oscillation starting periods in the input waveform according to the target oscillation intensity based on the preset relation between the oscillation intensity and the number of oscillation starting periods;
and the initial waveform selection unit is used for selecting one candidate input waveform with the number of oscillation starting periods from a plurality of candidate input waveforms and using the candidate input waveform as a candidate input waveform with the vibration intensity matched with the target vibration intensity.
Optionally, each of the candidate input waveforms further includes a vibration-off period matching the vibration-on period.
Optionally, each candidate input waveform corresponds to a vibration intensity range, and there is a coincidence intensity in the vibration intensity ranges of two candidate input waveforms adjacent to each other in the number of start periods.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing a computer program executable by the processor;
the processor is configured to execute the computer program in the memory to implement the steps of the method described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a readable storage medium having stored thereon an executable computer program which, when executed, performs the steps of the method described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
as can be seen from the above embodiments, in the embodiments of the present disclosure, the target vibration intensity of the motor can be obtained; selecting a candidate input waveform with the vibration intensity matched with the target vibration intensity from a plurality of candidate input waveforms according to the target vibration intensity; the plurality of candidate input waveforms have different start periods; driving the motor to vibrate based on the candidate input waveform. Therefore, the oscillation starting period of the input waveform can be adjusted by selecting the input waveform in the embodiment, the effect of controlling the oscillation intensity and the oscillation period is achieved, and the accuracy of adjusting the oscillation intensity is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a motor vibration control method according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of obtaining a target shock intensity according to an exemplary embodiment.
FIG. 3 is a flow diagram illustrating a method for acquiring candidate input waveforms in accordance with an exemplary embodiment.
FIG. 4 is a flow diagram illustrating a method of acquiring a target input waveform according to an exemplary embodiment.
Fig. 5(a) is a schematic diagram of input waveforms 1, respectively, shown according to an exemplary embodiment.
Fig. 5(b) corresponds to a schematic diagram of the output waveform of the motor when driven with the input waveform shown in fig. 5 (a).
Fig. 6(a) is a schematic diagram of input waveforms 2, respectively, shown according to an exemplary embodiment.
Fig. 6(b) corresponds to a schematic diagram of the output waveform of the motor when driven with the input waveform shown in fig. 6 (a).
FIG. 7 is a diagram illustrating an application scenario in accordance with an exemplary embodiment.
FIG. 8 is a block diagram illustrating a motor vibration sensing control apparatus according to an exemplary embodiment.
FIG. 9 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The following exemplary described embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure as recited in the claims below.
At present, be provided with linear motor in the electronic equipment, utilize linear motor to take turns to and stop suddenly and reach the effect of vibrations electronic equipment to can improve user experience.
In practical application, the electronic device is provided with a sliding bar in a user interface, and a user adjusts the vibration strength of the linear motor by moving the position of the sliding block on the sliding bar, namely when the sliding block moves towards one direction, the input voltage of the linear motor can be increased, and at the moment, the vibration strength of the linear motor is increased; when moving in the other direction, the input voltage of the linear motor can be reduced, and the vibration intensity of the linear motor is weakened.
However, in the related art, only the magnitude of the input voltage is adjusted, and when the vibration intensity is weakened to a certain degree, the vibration cycle is not changed, so that the vibration sense is dragged, and the user experience is affected.
In order to solve the above technical problem, an embodiment of the present disclosure provides a method for controlling vibration sensation of a motor, and the method includes adjusting vibration intensity of the motor by using input waveforms having different oscillation periods. Therefore, the vibration sensing effect of the motor can be controlled by the difference of the vibration starting period number.
Fig. 1 is a flowchart illustrating a motor vibration sense control method according to an exemplary embodiment, which may be suitable for an electronic device provided with a motor. The motor may be one of a linear motor, a voice coil motor, and a vibration motor, which is not limited herein. Referring to fig. 1, a method for controlling a vibration sensation of a motor includes steps 11 to 13, wherein:
in step 11, a target vibration intensity of the motor is acquired.
In this embodiment, a user interface may be disposed in the electronic device, and the user interface includes a slider, so that a user may move a slider on the slider to adjust the vibration intensity of the motor. Referring to FIG. 2, in step 21, the electronic device may detect the relative position of a slider on a slider bar within a user interface. For example, the maximum length of the slide bar corresponds to the maximum vibration intensity of the motor, and the ratio of the distance between the slide block and one end of the slide bar to the maximum length can be used as the relative position of the slide block. In step 22, the electronic device may obtain a preset correspondence relationship between the relative position and the vibration intensity, and obtain the vibration intensity corresponding to the relative position, and use the vibration intensity as the target vibration intensity of the motor. For example, the maximum length of the slider corresponds to a vibration intensity of 0.6G, and assuming that the relative position of the slider is 67%, the vibration intensity corresponding to the relative position can be obtained to be 0.4G.
In practical application, a user interface may be arranged in the electronic device, the user interface may include an input box, and a user may directly or indirectly input the target vibration intensity in the input box according to the prompt information, and the corresponding scheme falls within the protection scope of the present disclosure.
In step 12, selecting a candidate input waveform with vibration intensity matching the target vibration intensity from a plurality of candidate input waveforms according to the target vibration intensity; the plurality of candidate input waveforms have different start periods.
In this embodiment, a plurality of candidate input waveforms may be preset in the electronic device. Each candidate input waveform in the plurality of candidate input waveforms comprises a preset number of start-oscillation periods and a stop-oscillation period matched with the start-oscillation periods; the number of start-up periods of different candidate input waveforms is different. It can be understood that, in the case that the voltage values are the same, the greater the number of the oscillation starting periods, the greater the vibration intensity of the motor, and thus the vibration intensities of the motors corresponding to the plurality of candidate input waveforms are also different. Therefore, a preset relation between the vibration intensity and the number of the vibration starting periods can be preset in the electronic equipment. In one example, each candidate input waveform may correspond to a vibration intensity range, for example, 3 start periods correspond to a vibration intensity range of [0.6G, 0.4G ], and 2 start periods correspond to [0.4G, 0.2G ]. Therefore, a coincidence intensity exists in the vibration intensity ranges of two candidate input waveforms with adjacent oscillation starting periods, for example, the vibration intensity ranges of 3 oscillation starting periods and 2 oscillation starting periods can correspond to a coincidence intensity of 0.4G, so that sudden jump of the vibration intensity is avoided.
In this embodiment, the slider may be divided into a plurality of regions, and each region corresponds to one candidate input waveform. In this way, the electronic device may determine a candidate input waveform based on the region where the slider is located, and use the candidate input waveform as a candidate input waveform matching the target vibration intensity.
In this embodiment, referring to fig. 3, in step 31, a preset relationship between the vibration intensity and the number of the start vibration cycles may be obtained in the electronic device, and the number (N) of the start vibration cycles in the input waveform is obtained according to the target vibration intensity, that is, when the motor is driven to vibrate by how many start vibration cycles, the vibration intensity of the motor can reach the target vibration intensity. In step 32, the electronic device may select a candidate input waveform with N oscillation starting periods from a plurality of candidate input waveforms according to the number of oscillation starting periods, and use the candidate initial input waveform as the candidate input waveform with the oscillation intensity matching the target oscillation intensity. That is, the candidate input waveform has N oscillation start cycles, and the vibration intensity of the motor can be matched with the target vibration intensity, where matching means that the vibration intensity is the same as the target vibration intensity or the difference between the two is within a set range.
In step 13, the motor is driven to vibrate based on the candidate input waveform.
In this embodiment, the electronic device may drive the motor to vibrate based on the candidate input waveform, so that the vibration intensity of the motor matches the target vibration intensity, and is particularly suitable for a scenario in which the target vibration intensity is an end point of the vibration intensity range corresponding to the candidate input waveform.
It should be noted that, since there is an important vibration intensity in two candidate input waveforms with adjacent numbers of start-up periods, the selection may be as follows: one candidate input waveform is randomly selected, and the candidate input waveform with the smaller number of oscillation starting periods is selected.
In an embodiment, referring to fig. 4, in step 41, the electronic device may further compare the target vibration intensity with the vibration intensity corresponding to the candidate input waveform, and adjust the voltage value of the candidate input waveform based on the target vibration intensity to obtain the target input waveform when the target vibration intensity is different from the vibration intensity corresponding to the candidate input waveform (i.e., the difference between the target vibration intensity and the vibration intensity exceeds the set range). In step 42, the motor is driven to vibrate based on the target input waveform, so that the vibration intensity of the motor is the target vibration intensity. For example, when the vibration intensity exceeds the target vibration intensity, the voltage value may be increased by a set step size; when the vibration intensity is smaller than the target vibration intensity, the voltage value can be reduced according to the set step length until the vibration intensity of the motor is the same as the target vibration intensity, so that the target input waveform is obtained. In this way, in the subsequent process, if the user operates the electronic device, for example, clicks a button, the electronic device may drive the motor to vibrate according to the target input waveform, so that the motor vibrates to the target vibration strength.
To this end, in the embodiment of the present disclosure, the target vibration intensity of the motor may be acquired; selecting a candidate input waveform with the vibration intensity matched with the target vibration intensity from a plurality of candidate input waveforms according to the target vibration intensity; the plurality of candidate input waveforms have different start periods; driving the motor to vibrate based on the candidate input waveform. Therefore, the oscillation starting period of the input waveform can be adjusted by selecting the input waveform in the embodiment, the effect of controlling the oscillation intensity and the oscillation period is achieved, and the accuracy of adjusting the oscillation intensity is improved.
A motor vibration sense control method is described below with reference to a specific scenario. FIG. 5(a) provides a candidate input waveform 1, wherein the candidate input waveform 1 comprises 2 start periods (about 0-230 ms) and 1.5 stop periods (230-410 ms), and the output waveform of the motor is shown in FIG. 5 (b). Fig. 6(a) provides a candidate input waveform 2, the candidate input waveform 2 includes 3 start periods (about 0-350 ms) and 3 stop periods (about 350-640 ms), and the motor output waveform is as shown in fig. 6 (b).
It should be noted that, in the process of reversely driving the motor in the vibration-off period, the motor may be reversely vibrated, so that a vibration-off period is further set for 410-550 ms in fig. 5(a), and 0.5 vibration-off periods is further set for 640-700 ms in fig. 6(a), so that the effect of quickly stopping vibration of the motor can be set according to a specific scene, which is not limited herein.
In the default state, the vibration intensity of the motor is the maximum vibration intensity, such as 0.6G, and the motor is driven to vibrate by using the input waveform 2. During use, the user finds that the vibration intensity is too great, and therefore finds the control slider for the motor tremoly through the menu. The user can press the slider and move the slider closer to the starting point (position). The electronic equipment can acquire the relative position of the sliding block and determine the target vibration strength. Assuming that the target vibration intensity exceeds 0.4G (e.g. 0.45G), the electronic device still drives the motor with the input waveform 2, but the voltage value of the input waveform 2 needs to be adjusted to make the current vibration intensity reach 0.45G.
Assuming that the target vibration intensity is equal to 0.4G, either one of the input waveform 2 and the input waveform 1 may be selected. Alternatively, the start period of the two candidate input waveforms may be compared, for example, in consideration of the fact that the start period of the input waveform 1 is smaller than the start period of the input waveform 2, the input waveform 1 may be selected in the present embodiment, so as to shorten the vibration period.
Assuming that the target vibration intensity is less than 0.4G (e.g. 0.35G), the electronic device may switch from the current input waveform 2 to the input waveform 1 to drive the motor, and since the number of the start periods of the input waveform 1 is less than the number of the start periods of the input waveform 2, the vibration intensity of the motor may become small, and then adjust the voltage value of the input waveform 1, so that the vibration intensity of the motor is equal to or close to the target vibration intensity.
In other words, referring to FIG. 7, as the slider moves from right to left, the relative position of the slider may change from 100% to 1%. The input waveform 2 is used to drive the motor when the vibration intensity is between 100% and 50% (namely the target vibration intensity is more than 0.4G), and the input waveform 1 is used to drive the motor when the vibration intensity is between 50% and 1% (namely the target vibration intensity is less than 0.4G). The effect of controlling the vibration sense of the motor is achieved by different input waveforms having different number of oscillation starting periods, and if the vibration intensity of the motor corresponding to the input waveforms is not matched with the target vibration intensity, the input waveforms can be made to be the same by adjusting the voltage values of the input waveforms.
FIG. 8 is a block diagram illustrating a motor vibration sensing control apparatus according to an exemplary embodiment. Referring to fig. 8, a motor vibration sensing control apparatus includes:
an intensity obtaining module 81 for obtaining a target vibration intensity of the motor;
a waveform obtaining module 82, configured to select, according to the target vibration intensity, a candidate input waveform with a vibration intensity matching the target vibration intensity from multiple candidate input waveforms; the plurality of candidate input waveforms have different start periods;
a motor driving module 83 for driving the motor to vibrate based on the candidate input waveform.
In one embodiment, the motor drive module includes:
a target waveform obtaining unit, configured to, when it is determined that the target vibration intensity is different from the vibration intensity corresponding to the candidate input waveform, adjust a voltage value of the candidate input waveform based on the target vibration intensity to obtain a target input waveform;
and the motor driving unit is used for driving the motor to vibrate based on the target input waveform so as to enable the vibration intensity of the motor to be the target vibration intensity.
In one embodiment, the target intensity obtaining module includes:
a relative position detection unit for detecting the relative position of the slider on the slider in the user interface in the electronic device;
and the target intensity acquisition unit is used for acquiring the vibration intensity corresponding to the relative position based on the corresponding relation between the relative position and the vibration intensity, and taking the vibration intensity as the target vibration intensity of the motor.
In one embodiment, the waveform acquisition module comprises:
the oscillation starting number acquisition unit is used for acquiring the number of oscillation starting periods in the input waveform according to the target oscillation intensity based on the preset relation between the oscillation intensity and the number of oscillation starting periods;
and the initial waveform selection unit is used for selecting one candidate input waveform with the number of oscillation starting periods from a plurality of candidate input waveforms and using the candidate input waveform as a candidate input waveform with the vibration intensity matched with the target vibration intensity.
In an embodiment, each of the candidate input waveforms further includes a period of oscillation off that matches the period of oscillation on.
In one embodiment, each candidate input waveform corresponds to a vibration intensity range, and there is a coincidence intensity in the vibration intensity ranges of two candidate input waveforms adjacent to the start period number.
It can be understood that the apparatuses provided in the embodiments of the present disclosure correspond to the embodiments of the methods described above, and specific contents may refer to the contents of the embodiments of the methods, which are not described herein again.
FIG. 9 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the electronic device 900 may be a smartphone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 9, electronic device 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input/output (I/O) interface 912, a sensor component 914, a communication component 916, and an image capture component 918.
The processing component 902 generally provides for overall operation of the electronic device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more sets of processors 920 to execute computer programs. Further, processing component 902 can include one or more sets of modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the electronic device 900. Examples of such data include computer programs, contact data, phonebook data, messages, pictures, videos, etc. for any application or method operating on the electronic device 900. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 906 provides power to the various components of the electronic device 900. The power components 906 may include a power management system, one or more sets of power supplies, and other components associated with generating, managing, and distributing power for the electronic device 900. The power supply component 906 may include a power chip, and the controller may communicate with the power chip to control the power chip to turn the switching device on or off to allow the battery to supply power or not to supply power to the motherboard circuitry.
The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the target object. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a target object. The touch panel includes one or more sets of touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 900 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc.
The sensor assembly 914 includes one or more sets of sensors for providing various aspects of status assessment for the electronic device 900. For example, sensor assembly 914 may detect an open/closed state of electronic device 900, the relative positioning of components, such as a display and keypad of electronic device 900, sensor assembly 914 may also detect a change in the position of electronic device 900 or a component, the presence or absence of a target object in contact with electronic device 900, orientation or acceleration/deceleration of electronic device 900, and a change in the temperature of electronic device 900.
The communication component 916 is configured to facilitate wired or wireless communication between the electronic device 900 and other devices. The electronic device 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 900 may be implemented by one or more sets of Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components.
In an exemplary embodiment, a non-transitory readable storage medium is also provided, such as the memory 904 including instructions, that includes an executable computer program that is executable by the processor. The readable storage medium may be, among others, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A method for controlling the vibration sensation of a motor, comprising:
acquiring target vibration intensity of a motor;
selecting a candidate input waveform with the vibration intensity matched with the target vibration intensity from a plurality of candidate input waveforms according to the target vibration intensity; the plurality of candidate input waveforms have different start periods;
driving the motor to vibrate based on the candidate input waveform.
2. The method of claim 1, wherein driving the motor to vibrate based on the candidate input waveform comprises:
when the target vibration intensity is determined to be different from the vibration intensity corresponding to the candidate input waveform, adjusting the voltage value of the candidate input waveform based on the target vibration intensity to obtain a target input waveform;
and driving the motor to vibrate based on the target input waveform so that the vibration intensity of the motor is the target vibration intensity.
3. The method of claim 1, wherein obtaining a target vibration intensity of the motor comprises:
detecting a relative position of a slider on a slider in a user interface in an electronic device;
and acquiring the vibration intensity corresponding to the relative position based on the corresponding relation between the relative position and the vibration intensity, and taking the vibration intensity as the target vibration intensity of the motor.
4. The method of claim 1, wherein selecting a candidate input waveform with a vibration intensity matching the target vibration intensity from a plurality of candidate input waveforms according to the target vibration intensity comprises:
acquiring the number of oscillation starting periods in the input waveform according to the target oscillation intensity based on a preset relation between the oscillation intensity and the number of oscillation starting periods;
and selecting one candidate input waveform with the number of oscillation starting periods from a plurality of candidate input waveforms, and taking the candidate input waveform as the candidate input waveform with the vibration intensity closest to the target vibration intensity.
5. The method according to any one of claims 1 to 4, wherein each candidate input waveform of the plurality of candidate input waveforms further comprises a period of oscillation off matching the period of oscillation on.
6. The method according to any one of claims 1 to 4, wherein each candidate input waveform corresponds to a vibration intensity range, and there is a coincidence intensity in the vibration intensity ranges of two candidate input waveforms adjacent to each other in the number of start periods.
7. A motor vibration control apparatus, comprising:
the intensity acquisition module is used for acquiring the target vibration intensity of the motor;
the waveform acquisition module is used for selecting a candidate input waveform with the vibration intensity matched with the target vibration intensity from a plurality of candidate input waveforms according to the target vibration intensity; the plurality of candidate input waveforms have different start periods;
and the motor driving module is used for driving the motor to vibrate based on the candidate input waveform.
8. The apparatus of claim 7, wherein the motor drive module comprises:
a target waveform obtaining unit, configured to, when it is determined that the target vibration intensity is different from the vibration intensity corresponding to the candidate input waveform, adjust a voltage value of the candidate input waveform based on the target vibration intensity to obtain a target input waveform;
and the motor driving unit is used for driving the motor to vibrate based on the target input waveform so as to enable the vibration intensity of the motor to be the target vibration intensity.
9. The apparatus of claim 7, wherein the target intensity acquisition module comprises:
a relative position detection unit for detecting the relative position of the slider on the slider in the user interface in the electronic device;
and the target intensity acquisition unit is used for acquiring the vibration intensity corresponding to the relative position based on the corresponding relation between the relative position and the vibration intensity, and taking the vibration intensity as the target vibration intensity of the motor.
10. The apparatus of claim 7, wherein the waveform acquisition module comprises:
the oscillation starting number acquisition unit is used for acquiring the number of oscillation starting periods in the input waveform according to the target oscillation intensity based on the preset relation between the oscillation intensity and the number of oscillation starting periods;
and the initial waveform selection unit is used for selecting one candidate input waveform with the number of oscillation starting periods from a plurality of candidate input waveforms and using the candidate input waveform as a candidate input waveform with the vibration intensity matched with the target vibration intensity.
11. The apparatus according to any one of claims 7-10, wherein each of the plurality of candidate input waveforms further comprises a period of oscillation off matching the period of oscillation on.
12. The apparatus according to any one of claims 7 to 10, wherein each candidate input waveform corresponds to a vibration intensity range, and there is a coincidence intensity in the vibration intensity ranges of two candidate input waveforms adjacent to each other in the number of start periods.
13. An electronic device, comprising:
a processor;
a memory for storing a computer program executable by the processor;
the processor is configured to execute the computer program in the memory to implement the steps of the method of any of claims 1 to 6.
14. A readable storage medium having stored thereon an executable computer program, wherein the computer program when executed implements the steps of the method of any one of claims 1 to 6.
CN202010443708.XA 2020-05-22 2020-05-22 Motor shock sensation control method and device, electronic equipment and storage medium Active CN113708704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010443708.XA CN113708704B (en) 2020-05-22 2020-05-22 Motor shock sensation control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010443708.XA CN113708704B (en) 2020-05-22 2020-05-22 Motor shock sensation control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113708704A true CN113708704A (en) 2021-11-26
CN113708704B CN113708704B (en) 2024-05-28

Family

ID=78646458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010443708.XA Active CN113708704B (en) 2020-05-22 2020-05-22 Motor shock sensation control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113708704B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024108734A1 (en) * 2022-11-23 2024-05-30 瑞声开泰声学科技(上海)有限公司 Motor control method, terminal device and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040108824A1 (en) * 2002-05-31 2004-06-10 Mitsuo Ueda Motor drive control apparatus
CN102177653A (en) * 2008-10-22 2011-09-07 意美基斯技术有限公司 Vibration motor driving apparatus using a serial interface
CN103167162A (en) * 2012-10-09 2013-06-19 深圳市金立通信设备有限公司 User-defined vibration system and method of mobile phone motor
CN109379485A (en) * 2018-09-26 2019-02-22 腾讯数码(天津)有限公司 Feedback method, device, terminal and the storage medium of application program
CN109710067A (en) * 2018-12-20 2019-05-03 上海艾为电子技术股份有限公司 A kind of linear resonance device and its brake method
CN110707982A (en) * 2019-09-05 2020-01-17 Oppo(重庆)智能科技有限公司 Control method, device and equipment of electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040108824A1 (en) * 2002-05-31 2004-06-10 Mitsuo Ueda Motor drive control apparatus
CN102177653A (en) * 2008-10-22 2011-09-07 意美基斯技术有限公司 Vibration motor driving apparatus using a serial interface
CN103167162A (en) * 2012-10-09 2013-06-19 深圳市金立通信设备有限公司 User-defined vibration system and method of mobile phone motor
CN109379485A (en) * 2018-09-26 2019-02-22 腾讯数码(天津)有限公司 Feedback method, device, terminal and the storage medium of application program
CN109710067A (en) * 2018-12-20 2019-05-03 上海艾为电子技术股份有限公司 A kind of linear resonance device and its brake method
CN110707982A (en) * 2019-09-05 2020-01-17 Oppo(重庆)智能科技有限公司 Control method, device and equipment of electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄卫清 等: "一种新型非共振压电直线电机的设计", 《中国机械工程》, vol. 20, no. 14, pages 1717 - 1721 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024108734A1 (en) * 2022-11-23 2024-05-30 瑞声开泰声学科技(上海)有限公司 Motor control method, terminal device and computer storage medium

Also Published As

Publication number Publication date
CN113708704B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
EP3176776B1 (en) Luminance adjusting method and apparatus, computer program and recording medium
EP3046212B1 (en) Method and apparatus for controlling charging of terminal device
US20180123494A1 (en) Method and device for controlling vibration of motor
CN107102772B (en) Touch control method and device
CN104881104A (en) Intelligent equipment, intelligent equipment performance improvement method and intelligent equipment performance improvement device
CN112114674A (en) Vibration intensity control method and device, electronic equipment and storage medium
CN107370899B (en) Method and device for sending vibration signal
CN105288941A (en) Treadmill speed regulating method and device
EP3379524A1 (en) View angle switching method and apparatus
CN105204542A (en) Motor vibration control method and device
RU2701456C1 (en) Front assembly sliding structure, control method and device, terminal and data medium
CN104484795A (en) Information prompting method and device
CN106332415B (en) Key brightness correcting method and device
CN110399082B (en) Terminal attribute control method and device, electronic equipment and medium
CN113708704B (en) Motor shock sensation control method and device, electronic equipment and storage medium
CN104714735A (en) Page scrolling display method and device
EP3168732A1 (en) Method and device for switching keyboard style
CN107484233B (en) Terminal vibration method, terminal and computer readable storage medium
EP3848780B1 (en) Electronic device
CN109213264A (en) Electronic equipment, volume adjusting method and device, computer readable storage medium
CN103869982A (en) Action item selection method and device
CN106775541A (en) Electronic equipment and picture display process
CN105094891A (en) Method and device for effect display
CN113552936A (en) Vibration control method and device and terminal equipment
CN117251404B (en) Control method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant