Terminal device, motor control method and apparatus, and storage medium
By using a pressure sensor in the terminal device to detect the pressure data generated by motor vibration, the problems of low accuracy and high cost of motor resonance frequency detection are solved, achieving high-precision resonance frequency detection and optimal vibration experience, while reducing hardware costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2021-06-30
- Publication Date
- 2026-07-31
AI Technical Summary
In existing technologies, the accuracy of motor resonant frequency detection is poor, making it difficult to achieve optimal vibration, and the high cost of Hall chip detection increases hardware costs.
A pressure sensor is used to detect the pressure data generated by motor vibration. The resonant frequency of the motor is determined by the pressure data. After a vibration alert event is detected, the motor is controlled to vibrate at the resonant frequency. Elastic components are used to enhance detection accuracy and reduce hardware costs.
It improves the accuracy of resonant frequency detection, allowing users to experience optimal vibration, while reducing hardware costs.
Smart Images

Figure CN115550477B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of control technology, and in particular to a terminal device, a motor control method and apparatus, and a storage medium. Background Technology
[0002] In today's life, people are becoming increasingly inseparable from mobile phones and other terminal devices. Mobile phones have become an integral part of life, and people's dependence on them is becoming more and more serious. At the same time, their demands on mobile phones are also getting higher and higher. Mobile phones and other terminals are usually equipped with motors. The rotation of the motor rotor provides driving force to the terminal, thereby causing the terminal to vibrate and produce a tactile vibration.
[0003] As tactile feedback becomes increasingly important, people are becoming more discerning about motors. Every mobile phone manufacturer tries its best to optimize motors to achieve a better tactile experience, and accurately determining the motor's resonant frequency is crucial. Summary of the Invention
[0004] This disclosure provides a terminal device, a motor control method and apparatus, and a storage medium.
[0005] According to a first aspect of the present disclosure, a terminal device is provided, comprising:
[0006] motor;
[0007] A pressure sensor is used to detect pressure data generated by the vibration of the motor.
[0008] A processing component, connected to the motor and the pressure sensor, is used to determine the resonant frequency of the motor based on the pressure data, and to control the motor to vibrate at the resonant frequency after detecting a vibration alert event.
[0009] In some embodiments, the terminal device further includes:
[0010] An elastic element is disposed between the motor and the pressure sensor;
[0011] Motor housing;
[0012] The pressure sensor is disposed between the elastic element and the motor housing, and is used to detect the pressure data of the pressure acting on the elastic element when the motor vibrates.
[0013] In some embodiments, the elastic element includes elastic foam.
[0014] In some embodiments, the motor includes a linear motor.
[0015] According to a second aspect of the present disclosure, a motor control method is provided, applied in the terminal device of the first aspect described above, the method comprising:
[0016] Acquire pressure data during motor vibration;
[0017] Based on the pressure data, the resonant frequency of the motor is determined;
[0018] In response to the detection of a vibration alert event, the motor is driven to vibrate according to the resonant frequency.
[0019] In some embodiments, determining the resonant frequency of the motor based on the pressure data includes:
[0020] Based on the pressure data, determine the peak data of the motor corresponding to different vibration cycles;
[0021] Based on the peak data corresponding to different vibration cycles, determine the time information corresponding to different peak data;
[0022] The resonant frequency of the motor is determined based on the time information corresponding to the different peak data.
[0023] In some embodiments, determining the resonant frequency of the motor based on the time information corresponding to different peak data includes:
[0024] Based on the time information corresponding to different peak data, determine the time difference between adjacent peak data;
[0025] The average time difference is determined based on the time difference between adjacent peak data.
[0026] The resonant frequency is determined based on the average time difference.
[0027] In some embodiments, acquiring the pressure data during motor vibration includes:
[0028] In response to the detection of a power-on command from the terminal device, pressure data during motor vibration is acquired.
[0029] In some embodiments, acquiring the pressure data during motor vibration includes:
[0030] After a preset time since the motor started to vibrate, pressure data during the motor vibration is acquired.
[0031] According to a third aspect of the present disclosure, a motor control device is provided, applied in the terminal device of the first aspect described above, the device comprising:
[0032] The acquisition module is configured to acquire pressure data during motor vibration.
[0033] The module is configured to determine the resonant frequency of the motor based on the pressure data.
[0034] The drive module is configured to drive the motor to vibrate according to the resonant frequency in response to the detection of a vibration alert event.
[0035] In some embodiments, the determining module is further configured to determine, based on the pressure data, peak data corresponding to different vibration cycles of the motor; determine time information corresponding to different peak data based on the peak data corresponding to different vibration cycles; and determine the resonant frequency of the motor based on the time information corresponding to different peak data.
[0036] In some embodiments, the determining module is further configured to determine the time difference between adjacent peak data based on the time information corresponding to different peak data; determine the average time difference based on the time difference between adjacent peak data; and determine the resonance frequency based on the average time difference.
[0037] In some embodiments, the acquisition module is further configured to acquire pressure data when the motor vibrates in response to detecting a power-on command of the terminal device.
[0038] In some embodiments, the acquisition module is further configured to acquire pressure data during motor vibration after a preset time since the motor starts to vibrate.
[0039] According to a fourth aspect of the present disclosure, a motor control device is provided, comprising:
[0040] processor;
[0041] Memory used to store processor-executable instructions;
[0042] The processor is configured to execute the motor control method as described in the second aspect above.
[0043] According to a fifth aspect of the present disclosure, a storage medium is provided, comprising:
[0044] When the instructions in the storage medium are executed by the processor of the terminal device, the terminal device is able to perform the motor control method as described in the second aspect above.
[0045] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0046] In the embodiments of this disclosure, the resonant frequency of the motor is determined by pressure data collected by a pressure sensor, so that the motor vibrates at the resonant frequency. On the one hand, since the pressure data collected by the pressure sensor is directly generated by the motor vibration, the above method is also a direct detection method, which can improve the detection accuracy of the resonant frequency and allow the user to feel the best vibration. On the other hand, this disclosure only requires one pressure sensor to achieve direct detection, which can also reduce hardware costs.
[0047] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0048] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0049] Figure 1 This is a schematic diagram illustrating a principle of detecting resonant frequency by detecting back electromotive force, as shown in an embodiment of this disclosure.
[0050] Figure 2 This is a diagram of a terminal device shown in an embodiment of this disclosure.
[0051] Figure 3 This is a structural example diagram of the motor in an embodiment of this disclosure.
[0052] Figure 4 This is a partial structural example diagram of a terminal device according to an embodiment of the present disclosure.
[0053] Figure 5 This is a flowchart of a motor control method according to an embodiment of the present disclosure.
[0054] Figure 6 This is a flowchart illustrating a motor control method according to an embodiment of the present disclosure.
[0055] Figure 7 This is an example diagram illustrating the periodic variation of pressure data in an embodiment of this disclosure.
[0056] Figure 8 This is a diagram illustrating a motor control device according to an exemplary embodiment.
[0057] Figure 9 This is a block diagram of a terminal device shown in an embodiment of the present disclosure. Detailed Implementation
[0058] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0059] Terminal devices generate tactile vibrations through motor vibrations. When a motor vibrates, it operates at a specific frequency. The optimal vibration sensation is achieved when the motor's vibration frequency reaches its resonant frequency. However, due to variations in component quality, materials, assembly processes, and usage and maintenance, the motor's resonant frequency may not be the theoretically ideal value, thus requiring calibration.
[0060] In related technologies, one method for correcting the resonant frequency is that after the device is powered on, the CPU first outputs several drive signals, and then releases the drive signals to detect the resonant frequency by detecting the back electromotive force. Figure 1 This is a schematic diagram illustrating a principle for detecting resonant frequency by detecting back electromotive force, as shown in an embodiment of this disclosure. Figure 1 As shown, the CPU sends a square wave drive, with a pause between two square waves. During this pause, the back electromotive force (EMF) of the motor is detected. The resonant frequency is then fitted by calculating the timestamps of the back EMF at zero-crossing points. For example, the resonant frequency can be fitted by calculating the time difference between the timestamps corresponding to the back EMF at different zero-crossing points. This method is an indirect detection method, resulting in poor detection accuracy and difficulty in achieving optimal motor vibration.
[0061] Another approach is to place Hall effect chips on both sides of the motor. When the motor oscillates at a damped rate, the Hall effect chips detect the position of the magnets to determine the resonant frequency. This method is a direct detection method; however, it requires two Hall effect chips in the terminal device, which is costly.
[0062] Based on this, the present disclosure provides a terminal device to improve the detection accuracy of resonant frequency while taking cost into account. Figure 2 This is a diagram of a terminal device shown in an embodiment of this disclosure, such as... Figure 2 As shown, the terminal device 100 includes:
[0063] Motor 101;
[0064] Pressure sensor 102 is used to detect pressure data generated by the vibration of motor 101;
[0065] The processing component 103 is connected to the motor 101 and the pressure sensor 102, and is used to determine the resonant frequency of the motor 101 based on the pressure data, and control the motor 101 to vibrate at the resonant frequency after detecting a vibration alert event.
[0066] In the embodiments of this disclosure, the terminal device 100 may be an electronic device such as a mobile phone, tablet computer, game console, or wearable device.
[0067] The terminal device 100 includes a motor 101, through which the terminal user can feel a tactile vibration. The motor operates based on the principle of electromagnetic induction: the motor's coil is placed in a magnetic field, and when the terminal's processing component 103 detects the need for vibration, the terminal's control circuit drives current into the coil, causing the coil to experience a Lorentz force, which in turn causes the motor 101 to vibrate. The vibration of the motor 101 generates a driving force, thereby causing the terminal to vibrate and producing a tactile vibration.
[0068] In one embodiment, the motor 101 includes a linear motor.
[0069] The vibration mode of a linear motor is a back-and-forth linear motion. A high-frequency alternating current passes through the two coils of the motor, generating alternating positive and negative magnetic fields, which then generate vibration through repeated attraction and repulsion.
[0070] As mentioned above, the user can feel the optimal vibration when the motor's vibration frequency reaches the resonant frequency. To this end, the terminal device 100 of this disclosure also includes a pressure sensor 102. The terminal device 100 uses the pressure sensor 102 to detect pressure data generated by the vibration of the motor 101, and determines the actual resonant frequency of the motor based on the pressure data.
[0071] In one embodiment, the motor 101 and the pressure sensor 102 are in direct contact, so the force of the motor 101 vibrating acts on the pressure sensor 102, thereby enabling the pressure sensor 102 to detect pressure data. For example, the pressure sensor 102 is located below the motor 101, so when the motor 101 vibrates up and down, the downward-moving motor 101 applies pressure to the pressure sensor 102.
[0072] After determining the resonant frequency of the motor 101 based on the pressure data, the processing component 103 in the terminal device 100 can control the motor 101 to vibrate at the resonant frequency when a vibration alert event is detected. The aforementioned processing component 103 may be, for example, a central processing unit (CPU) in the terminal, or a microcontroller unit (MCU).
[0073] In the embodiments of this disclosure, vibration alert events include, for example, incoming call alerts, alarm clock alerts, and push notifications, as well as events such as displaying an explosion scene in a game application on the terminal. In game applications, in addition to obtaining an experience through traditional methods such as sound and visuals, users can also feel a realistic tactile vibration through the vibration of the motor in the terminal. Furthermore, in applications such as navigation, tactile vibration can also be used to indicate to the user the type of intersection, turning direction, etc.
[0074] It should be noted that the timing for the terminal device 100 to detect the pressure data generated by the vibration of the motor 101 and determine the resonant frequency can be triggered after the terminal device 100 is powered on, or it can be triggered at preset intervals, such as triggering the detection of pressure data and re-determining the resonant frequency once a month. In the embodiments of this disclosure, the reason for driving the motor to vibrate for resonant frequency correction can also be the detection of a vibration alert event. For example, the terminal device may determine the resonant frequency based on the previous vibration triggered by a vibration alert event, so that the next time a vibration alert event is detected, the motor vibrates according to the newly determined resonant frequency, thereby improving the user's vibration experience.
[0075] This disclosure utilizes pressure data collected by a pressure sensor to determine the resonant frequency of a motor, enabling the motor to vibrate at the resonant frequency. On one hand, since the pressure data collected by the pressure sensor is directly generated by the motor vibration, the above method is also a direct detection method. Therefore, compared with the indirect detection method of detecting the resonant frequency by detecting the back electromotive force, it can improve the detection accuracy of the resonant frequency, allowing the user to feel the best vibration. On the other hand, this disclosure only requires one pressure sensor to achieve direct detection, which can also reduce hardware costs compared with the method of setting two Hall chips.
[0076] In one embodiment, the motor 101 and the pressure sensor 102 may also be arranged at intervals. The force exerted by the motor 101 when it vibrates is transmitted to the pressure sensor 102 through the spacer layer, so that the pressure sensor 102 can detect pressure data.
[0077] In this embodiment, the terminal device further includes:
[0078] An elastic element 104 is disposed between the motor 101 and the pressure sensor 102;
[0079] Motor housing 105;
[0080] The pressure sensor 102 is disposed between the elastic member 104 and the motor housing 105, and is used to detect the pressure data of the pressure acting on the elastic member 104 when the motor 101 vibrates.
[0081] In this embodiment, an elastic element 104 is also provided between the motor 101 and the pressure sensor 102. The elastic element 104 serves as a spacer layer between the motor 101 and the pressure sensor 102. The pressure detected by the pressure sensor 102 is the pressure exerted on the elastic element 104 when the motor 101 vibrates. Because the elasticity of the elastic element 104 increases damping, the transient effect of the pressure exerted on the elastic element 104 by the vibration of the motor 101 is better. Correspondingly, the characteristics of the pressure data detected by the pressure sensor 102 are more pronounced. This pronounced characteristic means that during the up-and-down vibration of the motor 101, the detected pressure data has relatively obvious maximum and minimum pressure values.
[0082] In one embodiment, the elastic element 104 may be elastic foam. Figure 3 This is a specific structural example diagram of the motor assembly in an embodiment of this disclosure, such as... Figure 3 As shown, the motor assembly consists of a motor housing, magnets, and springs. The motor housing and magnets form the motor housing assembly, the mass block and springs form the spring assembly, the locking ring, bushing, circuit board, and film form the circuit board assembly, and the spring assembly, circuit board assembly, and cover plate combine to form the mass block assembly. Placing the motor housing assembly on top of the mass block assembly forms the motor assembly. After receiving a drive signal, the motor assembly causes the magnets to vibrate back and forth due to the elasticity of the springs. Figure 4 This is a partial structural example diagram of a terminal device according to an embodiment of this disclosure. For example... Figure 4 As shown, 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 remains stationary). When the motor vibrates upward, it generates pressure on the foam, and the pressure sensor located below the foam can detect the corresponding pressure data.
[0083] It is understood that, in the embodiments of this disclosure, by adding an elastic element 104 (such as elastic foam) between the pressure sensor 102 and the motor 101, the damping can be increased, thereby improving the detection accuracy of the resonant frequency; in addition, the noise generated during the vibration of the motor 101 can be reduced.
[0084] Figure 5 This is a flowchart of a motor control method according to an embodiment of this disclosure, as follows: Figure 5 As shown, the method includes the following steps:
[0085] S11. Obtain pressure data during motor vibration;
[0086] S12. Determine the resonant frequency of the motor based on the pressure data;
[0087] S13. In response to detecting a vibration alert event, drive the motor to vibrate according to the resonant frequency.
[0088] In the embodiments of this disclosure, the motor control method is applied to the aforementioned electronic device. In step S11, the electronic device acquires pressure data when the motor vibrates, for example, by acquiring pressure data generated when the motor vibrates up and down, or moves upward or downward, through a pressure sensor.
[0089] In step S12, after acquiring the pressure data, the electronic device can obtain the resonant frequency of the motor based on the periodic characteristics of the vibration. (As described above...) Figure 4 For example, when the motor vibrates upward from its initial position, the pressure data detected by the pressure sensor gradually increases, reaching its maximum value when the motor stops moving upward. When the motor falls back to its initial position, the pressure data gradually decreases to 0. When the motor continues to move downward from its initial position, the pressure data remains 0 until the motor returns to its initial position and then continues to vibrate upward, periodically repeating the aforementioned trend of pressure data change. Figure 6 This is an example diagram illustrating the periodic variation of pressure data in an embodiment of this disclosure, such as... Figure 6 As shown, the above-mentioned periodic changes in pressure data are as follows: Figure 6 As shown, points o1, o2, o3, and o4 represent the maximum values of the pressure data, while t1, t2, t3, and t4 represent the time information corresponding to the peak values.
[0090] In step S13, the electronic device can drive the motor to vibrate according to the determined resonant frequency after detecting a vibration alert event.
[0091] It is understood that this disclosure obtains pressure data when the motor vibrates and determines the resonant frequency of the motor based on the pressure data, so that when the electronic device detects a vibration alert event, it controls the motor to vibrate at the resonant frequency. This allows users to experience the best vibration sensation without increasing hardware costs, through the above-mentioned direct detection method with high detection accuracy.
[0092] In one embodiment, determining the resonant frequency of the motor based on the pressure data includes:
[0093] Based on the pressure data, determine the peak data corresponding to different vibration cycles of the motor;
[0094] Based on the peak data corresponding to different vibration cycles, determine the time information corresponding to different peak data;
[0095] The resonant frequency of the motor is determined based on the time information corresponding to the different peak data.
[0096] As mentioned above Figure 6As shown, the pressure data exhibits a periodic variation trend with the periodic vibration of the motor. Therefore, this disclosure can determine the peak data corresponding to different vibration cycles of the motor based on the pressure data, and determine the resonant frequency of the motor based on the time information corresponding to the peak data.
[0097] In this embodiment, when determining the motor's resonant frequency based on the time information corresponding to the peak data, the motor's resonant frequency can be determined based on the time information of a portion of the peak data, or it can be determined based on the time information of all the peak data. Taking determining the motor's resonant frequency based on the time information of a portion of the peak data as an example, for instance, the time difference can be calculated based on the time information (t1 and t2) corresponding to the first two peak data, and the reciprocal of the time difference can be determined as the motor's resonant frequency.
[0098] It is understandable that in this embodiment, the resonant frequency is determined based on the time information corresponding to the peak data in the pressure data, which is simple and effective.
[0099] In one embodiment, determining the resonant frequency of the motor based on the time information corresponding to different peak data includes:
[0100] Based on the time information corresponding to different peak data, determine the time difference between adjacent peak data;
[0101] The average time difference is determined based on the time difference corresponding to different adjacent peak data.
[0102] The resonant frequency is determined based on the average time difference.
[0103] In this embodiment, after determining the time difference between adjacent peak data based on the time information of all peak data, the resonant frequency of the motor is determined based on the average of the time differences, which is closer to the actual vibration of the motor and therefore the resonant frequency is more accurate.
[0104] In one embodiment, acquiring the pressure data during motor vibration includes:
[0105] In response to the detection of a power-on command from the terminal device, pressure data during motor vibration is acquired.
[0106] In this embodiment, after the terminal device detects the power-on command, it triggers the motor to vibrate, so that the terminal device can determine the resonant frequency before detecting the vibration reminder event. Therefore, after detecting the vibration reminder event, it can provide a better vibration sensation based on the resonant frequency.
[0107] In one embodiment, acquiring the pressure data during motor vibration includes:
[0108] After a preset time since the motor started to vibrate, pressure data during the motor vibration is acquired.
[0109] Since the driving force for motor vibration is actively applied by the terminal device, and the motor vibration decays over time, the pressure data generated in the initial stage of motor vibration cannot accurately reflect the motor's vibration status. Therefore, in this embodiment, pressure data is detected only after a preset vibration time has elapsed, i.e., after the motor vibration has decayed. This makes the detection results closer to the actual vibration of the motor, thus improving the accuracy of resonant frequency detection. The preset time is a value set by the developers based on experience; different motors with different power ratings may have different preset times, and this embodiment does not impose any limitations on this.
[0110] Figure 7 This is a flowchart illustrating a motor control method according to an embodiment of the present disclosure, as shown below. Figure 7 As shown, the motor control method includes the following steps:
[0111] S21. Place the pressure sensor under the foam and attach the pressure sensor to the inner wall of the motor housing.
[0112] In this embodiment, the positional structure of the pressure sensor and the motor can be referred to Figure 4 The structure shown.
[0113] S22. Send a pulse signal to start the motor.
[0114] In this embodiment, the central processing module of the terminal device sends a pulse signal to start the motor.
[0115] S23. When the motor oscillates at a slower pace, the pressure sensor collects pressure data and detects the position of the magnet.
[0116] In this embodiment, when the motor's oscillations decay, the pressure sensor collects pressure data. Specifically, after a preset time since the motor started oscillating, the pressure sensor acquires the pressure data during motor vibration. Since the pressure detected by the pressure sensor is the force of the motor's vibration, and the motor's vibration is caused by the back-and-forth vibration of the magnets inside the motor, the pressure data detected by the pressure sensor also reflects the position of the magnets.
[0117] S24. The time it takes for the magnet to move back and forth to determine its position is converted into the resonant frequency.
[0118] In the embodiments of this disclosure, the time it takes for the magnet to determine its position back and forth can be determined by detecting the peak value of the pressure data. Based on the time information corresponding to different peak values, the resonant frequency of the motor can be determined.
[0119] In this embodiment, the resonant frequency of the motor is determined by pressure data collected by a pressure sensor. On the one hand, since the pressure data collected by the pressure sensor is directly generated by the vibration of the motor, the above method is also a direct detection method, which can improve the detection accuracy of the resonant frequency and allow the user to feel the best vibration. On the other hand, this disclosure only requires one pressure sensor to achieve direct detection, which can also reduce hardware costs.
[0120] Figure 8 This is a diagram illustrating a motor control device according to an exemplary embodiment. (Refer to...) Figure 8 The device includes:
[0121] Module 201 is configured to acquire pressure data during motor vibration.
[0122] The determining module 202 is configured to determine the resonant frequency of the motor based on the pressure data;
[0123] The drive module 203 is configured to drive the motor to vibrate according to the resonant frequency in response to the detection of a vibration alert event.
[0124] In some embodiments, the determining module 202 is further configured to determine, based on the pressure data, peak data corresponding to different vibration cycles of the motor; determine time information corresponding to different peak data based on the peak data corresponding to different vibration cycles; and determine the resonant frequency of the motor based on the time information corresponding to different peak data.
[0125] In some embodiments, the determining module 202 is further configured to determine the time difference corresponding to adjacent peak data based on the time information corresponding to different peak data; determine the average time difference based on the time difference corresponding to adjacent peak data; and determine the resonance frequency based on the average time difference.
[0126] In some embodiments, the acquisition module 201 is further configured to acquire pressure data when the motor vibrates in response to detecting a power-on command of the terminal device.
[0127] In some embodiments, the acquisition module 201 is further configured to acquire pressure data during motor vibration after a preset time period following the start of motor vibration.
[0128] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0129] Figure 9 This is a block diagram illustrating a terminal device 800 according to an exemplary embodiment. For example, device 800 may be a mobile phone, mobile computer, etc.
[0130] Reference Figure 9 The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0131] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0132] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of this data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 storage, flash memory, magnetic disk, or optical disk.
[0133] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 800.
[0134] 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0135] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0136] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0137] Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. 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, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0138] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as Wi-Fi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. 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.
[0139] 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, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0140] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of the device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0141] A non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor of a terminal device, the terminal device is enabled to perform a motor control method, the method comprising:
[0142] Acquire pressure data during motor vibration;
[0143] Based on the pressure data, the resonant frequency of the motor is determined;
[0144] In response to the detection of a vibration alert event, the motor is driven to vibrate according to the resonant frequency.
[0145] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0146] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A terminal device, characterized in that, The terminal device includes: motor; A motor housing, within which the motor vibrates; A pressure sensor is located on the inner wall of the motor housing; An elastic element is disposed between the motor and the pressure sensor; The pressure sensor is disposed between the elastic element and the motor housing, and is used to detect the pressure data of the pressure acting on the elastic element when the motor vibrates; A processing component, connected to the motor and the pressure sensor, is used to determine the resonant frequency of the motor based on pressure data after a preset duration of motor vibration, and to control the motor to vibrate at the resonant frequency after a vibration alert event is detected.
2. The terminal device according to claim 1, characterized in that, The elastic element includes elastic foam.
3. The terminal device according to claim 1, characterized in that, The motor includes a linear motor.
4. A motor control method, characterized in that, The method, applied to the terminal device according to any one of claims 1 to 3, comprises: Acquire pressure data during motor vibration; wherein the pressure data includes pressure data after a preset duration of motor vibration. Based on the pressure data, the resonant frequency of the motor is determined; In response to the detection of a vibration alert event, the motor is driven to vibrate according to the resonant frequency.
5. The method according to claim 4, characterized in that, Determining the resonant frequency of the motor based on the pressure data includes: Based on the pressure data, determine the peak data of the motor corresponding to different vibration cycles; Based on the peak data corresponding to different vibration cycles, determine the time information corresponding to different peak data; The resonant frequency of the motor is determined based on the time information corresponding to the different peak data.
6. The method according to claim 5, characterized in that, Determining the resonant frequency of the motor based on the time information corresponding to different peak data includes: Based on the time information corresponding to different peak data, determine the time difference between adjacent peak data; The average time difference is determined based on the time difference between adjacent peak data. The resonant frequency is determined based on the average time difference.
7. The method according to claim 4, characterized in that, The acquisition of pressure data during motor vibration includes: In response to the detection of a power-on command from the terminal device, pressure data during motor vibration is acquired.
8. A motor control device, characterized in that, The device is applied to the terminal device according to any one of claims 1 to 3, the device comprising: The acquisition module is configured to acquire pressure data during motor vibration; wherein the pressure data includes pressure data after a preset duration of motor vibration. The module is configured to determine the resonant frequency of the motor based on the pressure data. The drive module is configured to drive the motor to vibrate according to the resonant frequency in response to the detection of a vibration alert event.
9. The apparatus according to claim 8, characterized in that, The determining module is further configured to determine, based on the pressure data, peak data corresponding to different vibration cycles of the motor; determine time information corresponding to different peak data based on the peak data corresponding to different vibration cycles; and determine the resonant frequency of the motor based on the time information corresponding to different peak data.
10. The apparatus according to claim 9, characterized in that, The determining module is further configured to determine the time difference between adjacent peak data based on the time information corresponding to different peak data; determine the average time difference based on the time difference between adjacent peak data; and determine the resonance frequency based on the average time difference.
11. The apparatus according to claim 8, characterized in that, The acquisition module is further configured to acquire pressure data when the motor vibrates in response to detecting a power-on command from the terminal device.
12. A motor control device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the motor control method as described in any one of claims 4 to 7.
13. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the terminal device, the terminal device is able to perform the motor control method as described in any one of claims 4 to 7.