CN115550477A - Terminal device, motor control method and device, and storage medium - Google Patents

Terminal device, motor control method and device, and storage medium Download PDF

Info

Publication number
CN115550477A
CN115550477A CN202110736354.2A CN202110736354A CN115550477A CN 115550477 A CN115550477 A CN 115550477A CN 202110736354 A CN202110736354 A CN 202110736354A CN 115550477 A CN115550477 A CN 115550477A
Authority
CN
China
Prior art keywords
motor
determining
vibration
data
pressure data
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
CN202110736354.2A
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.)
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 CN202110736354.2A priority Critical patent/CN115550477A/en
Publication of CN115550477A publication Critical patent/CN115550477A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Apparatuses For Generation Of Mechanical Vibrations (AREA)

Abstract

The disclosure relates to a terminal device, a motor control method and device, and a storage medium. The device includes: a motor; a pressure sensor for detecting pressure data of pressure generated by vibration of the motor; and the processing component is connected with the motor and the pressure sensor and used for determining the resonant frequency of the motor according to the pressure data and controlling the motor to vibrate at the resonant frequency after a vibration reminding event is detected. By the device, the detection precision of the resonance frequency can be improved.

Description

Terminal device, motor control method and device, and storage medium
Technical Field
The present disclosure relates to the field of control technologies, and in particular, to a terminal device, a motor control method and apparatus, and a storage medium.
Background
In the current life, people are increasingly unable to leave terminal equipment such as mobile phones, the mobile phones become a part of life, people depend on the mobile phones more and more seriously, and meanwhile, the requirements on the mobile phones are higher and higher. A motor is generally provided in a terminal such as a mobile phone, and a rotor of the motor in the motor rotates to provide a driving force to the terminal, so as to drive the terminal to vibrate and generate a vibration touch.
The motor, as the sense of touch experience, people are also more and more critical. Every mobile phone manufacturer will want to optimize the motor to achieve better tactile experience, wherein it is critical how to accurately determine the resonant frequency of the motor.
Disclosure of Invention
The disclosure provides a terminal device, a motor control method and device, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a terminal device, including:
a motor;
a pressure sensor for detecting pressure data of pressure generated by vibration of the motor;
and the processing component is connected with the motor and the pressure sensor and used for determining the resonant frequency of the motor according to the pressure data and controlling the motor to vibrate at the resonant frequency after detecting a vibration reminding event.
In some embodiments, the terminal device further comprises:
the elastic piece is arranged between the motor and the pressure sensor;
a motor housing;
the pressure sensor is arranged between the elastic piece and the motor shell and used for detecting pressure data of pressure acting on the elastic piece when the motor vibrates.
In some embodiments, the elastic member comprises elastic foam.
In some embodiments, the motor comprises a linear motor.
According to a second aspect of the embodiments of the present disclosure, there is provided a motor control method applied to the terminal device of the first aspect, the method including:
acquiring pressure data when a motor vibrates;
determining a resonant frequency of the motor from the pressure data;
and driving the motor to vibrate according to the resonance frequency in response to detecting a vibration reminding event.
In some embodiments, said determining a resonant frequency of said motor from said pressure data comprises:
determining peak data corresponding to different vibration periods of the motor according to the pressure data;
determining time information corresponding to different peak data according to the peak data corresponding to different vibration periods;
and determining the resonant frequency of the motor according to the time information corresponding to the different peak data.
In some embodiments, the determining the resonant frequency of the motor according to the time information corresponding to the different peak data includes:
determining the time difference corresponding to the adjacent peak data according to the time information corresponding to the different peak data;
determining an average time difference according to the time difference corresponding to the adjacent peak data;
and determining the resonance frequency according to the average time difference.
In some embodiments, the acquiring pressure data while the motor is vibrating includes:
and responding to the detected starting-up instruction of the terminal equipment, and acquiring pressure data when the motor vibrates.
In some embodiments, the acquiring pressure data while the motor is vibrating includes:
and acquiring pressure data of the motor during vibration after the preset time of starting vibration of the motor.
According to a third aspect of the embodiments of the present disclosure, there is provided a motor control apparatus applied to the terminal device of the first aspect, the apparatus including:
an acquisition module configured to acquire pressure data when the motor vibrates;
a determination module configured to determine a resonant frequency of the motor based on the pressure data;
a driving module configured to drive the motor to vibrate according to the resonant frequency in response to detecting a vibration alert event.
In some embodiments, the determining module is further configured to determine peak data corresponding to different vibration periods of the motor based on the pressure data; determining time information corresponding to different peak data according to the peak data corresponding to different vibration periods; and determining the resonant frequency of the motor according to the time information corresponding to the different peak data.
In some embodiments, the determining module is further configured to determine a time difference corresponding to adjacent peak data according to time information corresponding to different peak data; determining an average time difference according to the time difference corresponding to the adjacent peak data; and determining the resonance frequency according to the average time difference.
In some embodiments, the obtaining module is further configured to obtain the pressure data when the motor vibrates in response to detecting a power-on instruction of the terminal device.
In some embodiments, the obtaining module is further configured to obtain the pressure data when the motor vibrates after a preset time period after the motor starts vibrating.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a motor control device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the motor control method as described in the second aspect above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a storage medium including:
the instructions in the storage medium, when executed by a processor of a terminal device, enable the terminal device to perform the motor control method as described in the second aspect above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the pressure data collected by the pressure sensor is used to determine the resonant frequency of the motor, so that the motor vibrates at the resonant frequency, on one hand, since the pressure data collected by the pressure sensor is directly generated by the vibration of the motor, the above manner is also a direct detection manner, the detection precision of the resonant frequency can be improved, and a user can feel the best vibration sense; on the other hand, the direct detection can be realized by only one pressure sensor, so that the hardware cost can be reduced.
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 schematic diagram illustrating a method for detecting a resonant frequency by detecting a back electromotive force according to an embodiment of the present disclosure.
Fig. 2 is a diagram of a terminal device according to an embodiment of the disclosure.
Fig. 3 is a specific structural example diagram of a motor in the embodiment of the present disclosure.
Fig. 4 is a diagram illustrating a partial structure of a terminal device in an embodiment of the present disclosure.
Fig. 5 is a flowchart of a motor control method according to an embodiment of the disclosure.
Fig. 6 is a flowchart illustrating a motor control method according to an embodiment of the disclosure.
FIG. 7 is a diagram illustrating an exemplary periodic variation of pressure data according to an embodiment of the disclosure
FIG. 8 is a diagram illustrating a motor control apparatus according to an exemplary embodiment.
Fig. 9 is a block diagram of a terminal device shown in an embodiment of the present disclosure.
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 implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminal equipment generates vibration touch feeling through motor vibration, the motor vibrates based on a certain frequency when vibrating, and when the vibration frequency of the motor reaches a resonance frequency, a user can feel the optimal vibration touch feeling. However, since the resonant frequency of the motor may not be a theoretically ideal value due to the quality of parts, materials, assembly processes, use maintenance, and the like, the resonant frequency of the motor needs to be calibrated.
In the related art, when the resonance frequency is corrected, one way is that after the device is turned on, the CPU first outputs several driving signals, and then releases the driving signals to detect the resonance frequency by detecting the back electromotive force. Fig. 1 is a schematic diagram illustrating a resonant frequency detection method by detecting back emf according to an embodiment of the present disclosure, where as shown in fig. 1, a CPU sends a square wave drive, there is a time of driving stop between two square waves, detects the back emf of a motor during the driving stop time, and fits the resonant frequency by calculating a timestamp of the back emf at a zero crossing point, for example, by calculating a time difference between times corresponding to back emf at different zero crossing points to fit the resonant frequency. The mode belongs to an indirect detection mode, the detection precision is poor, and the motor is difficult to achieve the best vibration sense.
The other mode is that Hall chips are arranged on two sides of the motor, and when the motor attenuates and vibrates, the Hall chips are used for detecting the position of the magnetic steel so as to determine the resonance frequency. This kind of mode belongs to the mode of direct detection, nevertheless need place two hall chips in terminal equipment, and the cost is higher.
Based on this, the present disclosure provides a terminal device to improve the detection accuracy of the resonant frequency on the basis of considering the cost. Fig. 2 is a diagram of a terminal device shown in an embodiment of the present disclosure, and as shown in fig. 2, the terminal device 100 includes:
a motor 101;
a pressure sensor 102 for detecting pressure data of pressure generated by vibration of the motor 101;
and the processing component 103 is connected with the motor 101 and the pressure sensor 102, and is configured to determine a resonance frequency of the motor 101 according to the pressure data, and control the motor 101 to vibrate at the resonance frequency after detecting a vibration reminding event.
In the embodiment of the present disclosure, the terminal device 100 may be an electronic device such as a mobile phone, a tablet computer, a game machine, or a wearable device.
The terminal device 100 includes a motor 101 therein, and the end user can feel a vibration touch feeling by vibration of the motor 101. The motor works based on the principle of electromagnetic induction: the coil of the motor is placed in the magnetic field, and when the processing component 103 of the terminal detects that vibration needs to be generated, the control circuit of the terminal drives current to flow into the coil, so that the coil is acted by lorentz force, and the motor 101 vibrates. The motor 101 vibrates to generate an urging force, thereby driving the terminal to vibrate to generate a vibration touch.
In one embodiment, the motor 101 comprises a linear motor.
The linear motor is vibrated in a back-and-forth linear motion mode, a positive and negative alternating magnetic field is generated by passing high-frequency alternating current through two coils in the motor, and then vibration is generated by repeated suction and repulsion.
As described above, the user can feel the optimum vibration when the vibration frequency of the motor reaches the resonance frequency. In this regard, the terminal device 100 of the present disclosure further includes a pressure sensor 102, and the terminal device 100 detects pressure data of pressure generated by vibration of the motor 101 through the pressure sensor 102 and determines an actual resonance frequency of the motor from the pressure data.
In one embodiment, the motor 101 and the pressure sensor 102 are in direct contact, such that the force of the motor 101 vibrating acts on the pressure sensor 102, thereby allowing the pressure sensor 102 to detect pressure data. For example, the pressure sensor 102 is located below the motor 101, and thus the motor 101 moving downward applies pressure to the pressure sensor 102 when the motor 101 vibrates up and down.
After determining the resonant frequency of the motor 101 according to the pressure data, the processing component 103 in the terminal device 100 may control the motor 101 to vibrate at the resonant frequency when the vibration reminding event is detected. The Processing Unit 103 may be, for example, a Central Processing Unit (CPU) in the terminal, or may be a Micro Control Unit (MCU).
In the embodiment of the present disclosure, the vibration reminding event is, for example, an event such as an incoming call reminding, an alarm clock reminding, and an information push reminding, and further, for example, an event that an explosion scene is displayed in a game application of the terminal. In game application, besides the traditional experience of users through sound, pictures and the like, users can feel real vibration tactility through the vibration of a motor in the terminal. In addition, in applications such as navigation, the user may be prompted about the type of intersection, the turning direction, and the like by a vibration touch.
It should be noted that, the timing for the terminal device 100 to detect the pressure data of the pressure generated by the vibration of the motor 101 and determine the resonant frequency may be triggered after the terminal device 100 is powered on, or triggered at preset time intervals, for example, the pressure data is detected at one time every month and the resonant frequency is determined again. In the embodiment of the present disclosure, the reason for driving the motor to vibrate by correcting the resonance frequency may also be that a vibration reminding event is detected, for example, the terminal device determines the resonance frequency by triggering vibration due to the vibration reminding event at the previous time, so that the terminal device vibrates according to the newly determined resonance frequency after the vibration reminding event is detected at the next time, thereby improving the vibration experience of the user.
The resonance frequency of the motor is determined by using the pressure data acquired by the pressure sensor, so that the motor vibrates at the resonance frequency, on one hand, the pressure data acquired by the pressure sensor is directly generated by the vibration of the motor, and the mode is also a direct detection mode, so that the detection precision of the resonance frequency can be improved and a user can feel the optimal vibration sense compared with an indirect detection mode for detecting the resonance frequency by detecting back electromotive force; on the other hand, this openly only needs a pressure sensor can realize direct detection, for the mode that need set up two hall chips, also can reduce the hardware cost.
In one embodiment, the motor 101 and the pressure sensor 102 may be spaced apart from each other, and the force generated by the vibration of the motor 101 is transmitted to the pressure sensor 102 through the spacer layer, so that the pressure sensor 102 can detect the pressure data.
In this embodiment, the terminal device further includes:
an elastic member 104 provided between the motor 101 and the pressure sensor 102;
a motor housing 105;
the pressure sensor 102 is disposed between the elastic member 104 and the motor housing 105, and is configured to detect pressure data of a pressure acting on the elastic member 104 when the motor 101 vibrates.
In this embodiment, an elastic member 104 is further disposed between the motor 101 and the pressure sensor 102, the elastic member 104 is a spacer layer between the motor 101 and the pressure sensor 102, and the pressure detected by the pressure sensor 102 is a pressure acting on the elastic member 104 when the motor 101 vibrates. Since the damping is increased by the elasticity of the elastic member 104, the transient effect of the vibration of the motor 101 on the pressure applied to the elastic member 104 is better, and correspondingly, the characteristics of the pressure data detected by the pressure sensor 102 are more obvious. This feature obviously means that the detected pressure data has a relatively obvious pressure maximum value and pressure minimum value during the up-and-down vibration of the motor 101.
In one embodiment, the elastic member 104 may be an elastic foam. Fig. 3 is a specific structural example diagram of a motor assembly according to an embodiment of the present disclosure, and as shown in fig. 3, the motor assembly is composed of a motor housing, magnetic steel, a spring, and the like, the motor housing and the magnetic steel constitute a motor housing assembly, the mass block and the spring constitute a spring assembly, the lock ring, the bushing, the circuit board and the film constitute a circuit board assembly, the spring assembly, the circuit board assembly, and the cover plate are combined to form a mass block assembly, and the motor housing assembly is placed on the mass block assembly to form the motor assembly. After the motor assembly receives the driving signal, the magnetic steel vibrates back and forth through the elasticity of the spring. Fig. 4 is a diagram illustrating a partial structure of a terminal device in an embodiment of the present disclosure. As shown in fig. 4, the pressure sensor is located between the motor housing and the foam, the motor vibrates back and forth in the direction indicated by the arrow (the motor housing is stationary), when the motor vibrates upwards, pressure acting on the foam is generated, and the pressure sensor located below the foam can detect corresponding pressure data.
It is understood that, in the embodiment of the present disclosure, by adding the elastic member 104 (e.g., elastic foam) between the pressure sensor 102 and the motor 101, damping can be increased to improve the detection accuracy of the resonance frequency; in addition, noise generated during vibration of the motor 101 can be reduced.
Fig. 5 is a flowchart of a motor control method in the embodiment of the disclosure, and as shown in fig. 5, the method includes the following steps:
s11, acquiring pressure data of the motor during vibration;
s12, determining the resonant frequency of the motor according to the pressure data;
and S13, responding to the detected vibration reminding event, and driving the motor to vibrate according to the resonance frequency.
In the embodiment of the present disclosure, the motor control method is applied to the electronic device, and in step S11, the electronic device may obtain pressure data when the motor vibrates, for example, pressure data generated by an upward motion or a downward motion when the motor vibrates up and down is obtained by the pressure sensor.
In step S12, the electronic device may obtain the resonant frequency of the motor based on the periodic characteristics of the vibration after acquiring the pressure data. Taking the above fig. 4 as an example, when the motor vibrates upward from the initial position, the pressure data detected by the pressure sensor gradually increases, and when the motor stops moving upward, the pressure data reaches the maximum value. When the motor falls back down to the initial position, the pressure data gradually decreases to 0. When the motor continues to move downwards from the initial position, the pressure data are still 0, and the motor continues to vibrate upwards after moving downwards to return to the initial position, and the change trend of the pressure data is periodically repeated. Fig. 6 is a diagram illustrating an example of periodic variation of pressure data according to an embodiment of the disclosure, and as shown in fig. 6, the above-mentioned periodic variation of pressure data is as shown in fig. 6, where points o1, o2, o3, and o4 are shown as maximum values of pressure data, and points t1, t2, t3, and t4 are time information corresponding to peak values.
In step S13, the electronic device drives the motor to vibrate according to the determined resonance frequency, that is, after detecting the vibration reminding event, according to the resonance frequency.
It can be understood that, the present disclosure obtains the pressure data when the motor vibrates, and determines the resonant frequency of the motor according to the pressure data, so that the electronic device controls the motor to vibrate at the resonant frequency when detecting the vibration reminding event, and the user can feel the best vibration feeling through the direct detection mode with higher detection precision on the basis of not increasing the hardware cost.
In one embodiment, said determining a resonant frequency of said motor from said pressure data comprises:
determining peak value data corresponding to different vibration periods of the motor according to the pressure data;
determining time information corresponding to different peak data according to the peak data corresponding to different vibration periods;
and determining the resonant frequency of the motor according to the time information corresponding to the different peak data.
As previously described in fig. 6, the pressure data shows a tendency of periodic variation with the periodic vibration of the motor, and thus the present disclosure can determine peak data corresponding to different vibration periods of the motor from the pressure data and determine the resonant frequency of the motor from time information corresponding to the peak data.
In this embodiment, when the resonant frequency of the motor is determined based on the time information corresponding to the peak data, the resonant frequency of the motor may be determined based on the time information of part of the peak data, or may be determined based on the time information of all the peak data. Taking the example of determining the resonant frequency of the motor from the time information of the partial peak data, for example, the time difference may be calculated from the time information (t 1 and t 2) corresponding to the first two peak data, and the reciprocal of the time difference may be determined as the resonant frequency of the motor.
It is understood that, in this embodiment, it is simple and effective to determine the resonance frequency based on the time information corresponding to the peak data in the pressure data.
In one embodiment, the determining the resonant frequency of the motor according to the time information corresponding to the different peak data includes:
determining the time difference corresponding to the adjacent peak data according to the time information corresponding to different peak data;
determining an average time difference according to the time differences corresponding to different adjacent peak data;
and determining the resonance frequency according to the average time difference.
In this embodiment, after the time differences corresponding to the adjacent peak data are determined based on the time information of all the peak data, the resonance frequency of the motor is determined based on the average of the time differences, which is closer to the actual vibration condition of the motor, and thus the resonance frequency is more accurate.
In one embodiment, the acquiring pressure data when the motor vibrates includes:
and responding to the detected starting-up instruction of the terminal equipment, and acquiring pressure data when the motor vibrates.
In this embodiment, after the terminal device detects the power-on instruction, the motor is triggered to vibrate, so that the terminal device can determine the resonance frequency before detecting the vibration reminding event, and thus, after detecting the vibration reminding event, a better vibration sense can be provided according to the resonance frequency.
In one embodiment, the acquiring pressure data of the motor during vibration includes:
and acquiring pressure data when the motor vibrates after the preset vibration starting time of the motor.
The driving force for starting the vibration of the motor is actively applied by the terminal equipment, and the vibration of the motor is attenuated along with the time, so that the pressure data generated at the initial stage of the vibration of the motor cannot truly reflect the vibration condition of the motor. In contrast, in this embodiment, after the motor starts vibrating for a preset time, that is, after the motor attenuates vibration, the pressure data is detected, so that the detection result is closer to the actual vibration condition of the motor, and the detection accuracy of the resonant frequency can be improved. The preset time duration is a value set by a research and development worker according to experience, and the preset time durations corresponding to the motors with different powers may be different, which does not limit the embodiment of the present disclosure.
Fig. 7 is a flowchart illustrating a motor control method according to an embodiment of the disclosure, and as shown in fig. 7, the motor control method includes the following steps:
s21, placing the pressure sensor under the foam, and attaching the pressure sensor to the inner wall of the motor shell.
In this embodiment, the position structure of the pressure sensor and the motor can refer to the structure shown in fig. 4.
And S22, sending a pulse signal to start the motor to vibrate.
In this embodiment, the central processing module of the terminal device sends a pulse signal to start the motor.
And S23, when the motor attenuates and vibrates, the pressure sensor collects pressure data, and the position of the magnetic steel is detected through the pressure sensor.
In this embodiment, when the motor damps the oscillation, the pressure sensor collects the pressure data, that is, after the preset time period of the oscillation starting of the motor, the pressure sensor obtains the pressure data of the motor during the oscillation. Because the pressure detected by the pressure sensor is the acting force of the vibration of the motor, and the vibration of the motor is caused by the back and forth vibration of the magnetic steel in the motor, the pressure data detected by the pressure sensor reflects the position of the magnetic steel.
And S24, converting the time for the magnetic steel to determine the position back and forth into the resonance frequency.
In the embodiment of the disclosure, the time for the magnetic steel to determine the position back and forth can be determined by detecting the peak value of the pressure data, and the resonant frequency of the motor can be determined according to the time information corresponding to different peak value data.
In the embodiment, the pressure data acquired by the pressure sensor is used for determining the resonant frequency of the motor, on one hand, the pressure data acquired by the pressure sensor is directly generated by the vibration of the motor, and the mode is also a direct detection mode, so that the detection precision of the resonant frequency can be improved, and a user can feel the optimal vibration sense; on the other hand, the direct detection can be realized by only one pressure sensor, so that the hardware cost can be reduced.
FIG. 8 is a diagram illustrating a motor control apparatus according to an exemplary embodiment. Referring to fig. 8, the apparatus includes:
an acquisition module 201 configured to acquire pressure data when the motor vibrates;
a determination module 202 configured to determine a resonant frequency of the motor from the pressure data;
a driving module 203 configured to drive the motor to vibrate according to the resonant frequency in response to detecting a vibration alert event.
In some embodiments, the determining module 202 is further configured to determine peak data corresponding to different vibration periods of the motor according to the pressure data; determining time information corresponding to different peak data according to the peak data corresponding to different vibration periods; and determining the resonant frequency of the motor according to the time information corresponding to the different peak data.
In some embodiments, the determining module 202 is further configured to determine a time difference corresponding to adjacent peak data according to time information corresponding to different peak data; determining an average time difference according to the time difference corresponding to the adjacent peak data; and determining the resonance frequency according to the average time difference.
In some embodiments, the obtaining module 201 is further configured to obtain the pressure data when the motor vibrates in response to detecting a power-on instruction of the terminal device.
In some embodiments, the obtaining module 201 is further configured to obtain the pressure data when the motor vibrates after a preset time period when the motor vibrates.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 9 is a block diagram illustrating a terminal apparatus 800 according to an example embodiment. For example, the device 800 may be a mobile phone, a mobile computer, etc.
Referring to fig. 9, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 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.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. 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 user. The touch panel includes one or more 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. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 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 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi,2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 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 apparatus 800 may be implemented by one or more 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 for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a terminal device, enable the terminal device to perform a motor control method, the method comprising:
acquiring pressure data when a motor vibrates;
determining a resonant frequency of the motor from the pressure data;
and driving the motor to vibrate according to the resonance frequency in response to detecting a vibration reminding event.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention 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 in 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 that have been 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 (16)

1. A terminal device, characterized in that the terminal device comprises:
a motor;
a pressure sensor for detecting pressure data of pressure generated by vibration of the motor;
and the processing component is connected with the motor and the pressure sensor and used for determining the resonant frequency of the motor according to the pressure data and controlling the motor to vibrate at the resonant frequency after a vibration reminding event is detected.
2. The terminal device according to claim 1, wherein the terminal device further comprises:
an elastic member disposed between the motor and the pressure sensor; a motor housing;
the pressure sensor is arranged between the elastic piece and the motor shell and used for detecting pressure data of pressure acting on the elastic piece when the motor vibrates.
3. The terminal device of claim 2, wherein the resilient member comprises resilient foam.
4. The terminal device of claim 1, wherein the motor comprises a linear motor.
5. A motor control method applied to the terminal device of any one of claims 1 to 4, the method comprising:
acquiring pressure data when a motor vibrates;
determining a resonant frequency of the motor from the pressure data;
in response to detecting a vibration alert event, driving the motor to vibrate according to the resonant frequency.
6. The method of claim 5, wherein determining the resonant frequency of the motor from the pressure data comprises:
determining peak data corresponding to the motor in different vibration periods according to the pressure data;
determining time information corresponding to different peak data according to the peak data corresponding to different vibration periods;
and determining the resonant frequency of the motor according to the time information corresponding to the different peak data.
7. The method of claim 6, wherein determining the resonant frequency of the motor based on the time information corresponding to the different peak data comprises:
determining the time difference corresponding to the adjacent peak data according to the time information corresponding to different peak data;
determining an average time difference according to the time difference corresponding to the adjacent peak data;
and determining the resonance frequency according to the average time difference.
8. The method of claim 5, wherein said obtaining pressure data while the motor is vibrating comprises:
and responding to the detected starting-up instruction of the terminal equipment, and acquiring pressure data when the motor vibrates.
9. The method of claim 5, wherein said obtaining pressure data while the motor is vibrating comprises:
and acquiring pressure data of the motor during vibration after the preset time of starting vibration of the motor.
10. A motor control apparatus, applied to the terminal device according to any one of claims 1 to 4, the apparatus comprising:
an acquisition module configured to acquire pressure data when the motor vibrates;
a determination module configured to determine a resonant frequency of the motor from the pressure data;
a driving module configured to drive the motor to vibrate according to the resonant frequency in response to detecting a vibration alert event.
11. The apparatus of claim 10,
the determining module is further configured to determine peak data corresponding to different vibration periods of the motor according to the pressure data; determining time information corresponding to different peak data according to the peak data corresponding to different vibration periods; and determining the resonant frequency of the motor according to the time information corresponding to the different peak data.
12. The apparatus of claim 11,
the determining module is further configured to determine a time difference corresponding to adjacent peak data according to time information corresponding to different peak data; determining an average time difference according to the time difference corresponding to the adjacent peak data; and determining the resonance frequency according to the average time difference.
13. The apparatus of claim 10,
the obtaining module is further configured to obtain pressure data of the motor during vibration in response to detecting a starting instruction of the terminal device.
14. The apparatus of claim 10,
the obtaining module is further configured to obtain pressure data of the motor during vibration after a preset time period of starting vibration of the motor.
15. A motor control apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the motor control method of any one of claims 5 to 9.
16. A non-transitory computer readable storage medium, instructions in which, when executed by a processor of a terminal device, enable the terminal device to perform the motor control method of any one of claims 5 to 9.
CN202110736354.2A 2021-06-30 2021-06-30 Terminal device, motor control method and device, and storage medium Pending CN115550477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110736354.2A CN115550477A (en) 2021-06-30 2021-06-30 Terminal device, motor control method and device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110736354.2A CN115550477A (en) 2021-06-30 2021-06-30 Terminal device, motor control method and device, and storage medium

Publications (1)

Publication Number Publication Date
CN115550477A true CN115550477A (en) 2022-12-30

Family

ID=84705872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110736354.2A Pending CN115550477A (en) 2021-06-30 2021-06-30 Terminal device, motor control method and device, and storage medium

Country Status (1)

Country Link
CN (1) CN115550477A (en)

Similar Documents

Publication Publication Date Title
KR101933642B1 (en) Method and apparatus for triggering execution of operation instruction
CN107370899B (en) Method and device for sending vibration signal
EP2684344B1 (en) Electronic apparatus use environment detecting method, electronic apparatus performance optimizing method and electronic apparatus
US11457437B2 (en) Method and apparatus for configuring information, base station and user equipment
JP2022514994A (en) Electronic devices and their control methods, devices, readable storage media
CN109375967A (en) Application Program Interface display methods and device, mobile terminal and storage medium
CN105204542A (en) Motor vibration control method and device
CN113300664B (en) Method, device and medium for determining motor driving signal
CN114125095A (en) Terminal device, vibration noise control method, device and medium
CN113835518A (en) Vibration control method and device, vibration device, terminal and storage medium
CN105323318B (en) Amending method, device and the equipment of parameter
CN115550477A (en) Terminal device, motor control method and device, and storage medium
CN111752370A (en) Vibration control method and device of motor, terminal and storage medium
JP2015116508A (en) Housing vibration equipment and electrical equipment comprising vibration equipment
CN106254131A (en) More newly-installed method and device
KR102364324B1 (en) Electronic device
CN109271292A (en) Power consumption information acquisition method and device
CN112689051B (en) Audio playing control method and device, mobile terminal and storage medium
CN112532789B (en) Ring tone processing method and device, terminal and storage medium
CN113885693A (en) Touch feedback module and method, electronic equipment and computer storage medium
CN106569931B (en) It is expected that the method and device that starting duration is reminded
CN112748436B (en) Electronic device, distance detection method and device, and storage medium
CN106170038B (en) Recording method and device
CN115348351B (en) Magnetic field detection method, device, terminal and storage medium
CN212278455U (en) Audio output module and electronic equipment

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