Control method and electronic equipment

文档序号:1963402 发布日期:2021-12-14 浏览:34次 中文

阅读说明:本技术 一种控制方法及电子设备 (Control method and electronic equipment ) 是由 程龙 于 2021-08-30 设计创作,主要内容包括:本申请实施例提供了一种控制方法及电子设备,所述方法包括:获得振动指令;基于所述振动指令,控制电子设备的共振组件处于保护模式;基于所述振动指令,控制所述电子设备的振动马达响应所述振动指令;其中,在所述共振组件处于所述保护模式下,至少能够降低所述振动马达在响应所述振动指令的过程中对所述共振组件产生的振动影响。本申请实施例的控制方法,能够控制电子设备中的共振组件在振动马达响应振动前处于保护模式,以避免对共振组件产生振动影响,产生噪音。(The embodiment of the application provides a control method and electronic equipment, wherein the method comprises the following steps: obtaining a vibration instruction; controlling a resonant component of the electronic equipment to be in a protection mode based on the vibration instruction; controlling a vibration motor of the electronic equipment to respond to the vibration instruction based on the vibration instruction; wherein, when the resonant assembly is in the protection mode, at least the vibration influence of the vibration motor on the resonant assembly in the process of responding to the vibration instruction can be reduced. The control method of the embodiment of the application can control the resonance component in the electronic equipment to be in a protection mode before the vibration motor responds to the vibration, so that the resonance component is prevented from being influenced by the vibration and generating noise.)

1. A method of controlling, the method comprising:

obtaining a vibration instruction;

controlling a resonant component of the electronic equipment to be in a protection mode based on the vibration instruction;

controlling a vibration motor of the electronic equipment to respond to the vibration instruction based on the vibration instruction;

wherein, when the resonant assembly is in the protection mode, at least the vibration influence of the vibration motor on the resonant assembly in the process of responding to the vibration instruction can be reduced.

2. The method of claim 1, wherein the resonant assembly is a camera module; the resonant assembly of the control electronics being in a protected mode comprises:

and controlling the lens of the camera module to move to a target position based on a target driving force, wherein the target driving force is larger than a vibration force generated in the process that the vibration motor responds to the vibration instruction.

3. The method of claim 2, wherein the controlling movement of the lens of the camera module to a target position based on the target drive force comprises:

and if the vibration instruction is used for indicating the electronic equipment to generate vibration feedback of a first dimension, controlling the lens of the camera module to move to the bottom of the lens barrel or the top of the lens barrel based on the target driving force.

4. The method of claim 2, wherein the controlling movement of the lens of the camera module to a target position based on the target drive force comprises:

if the vibration instruction is used for indicating the electronic equipment to generate vibration feedback of a first dimension, controlling a lens of the camera module to move to the bottom of the lens barrel or the top of the lens barrel based on a first driving force, and lifting the first driving force to the target driving force when the lens moves to the bottom of the lens barrel or the top of the lens barrel.

5. The method of claim 3 or 4, wherein the controlling of the lens of the camera module to move to the target position based on the target drive force further comprises:

determining a current device posture of the electronic device;

determining the target position to be a bottom of the lens barrel or a top of the lens barrel based on the device pose.

6. The method of claim 2 or 5, wherein the controlling of the lens of the camera module to move to the target position based on the target driving force comprises:

and if the vibration instruction is used for indicating the electronic equipment to generate vibration feedback of a second dimension, controlling the lens of the camera module to move to the middle of the lens barrel based on the target driving force.

7. The method of claim 2, wherein the method further comprises:

continuously providing the target driving force to maintain the lens at the target position during the vibration motor of the electronic equipment responding to the vibration instruction; or

And continuously providing the target driving force during the process that the vibration motor of the electronic equipment responds to the vibration instruction and in the target time period after the vibration motor of the electronic equipment responds to the vibration instruction, so as to maintain the lens at the target position.

8. The method according to claim 7, wherein a lens in the camera module is mounted in the lens barrel through an elastic member, and when the lens is moved, the elastic member is compressed to generate a restoring force for driving the lens to return from the target position to an initial position;

the method further comprises the following steps:

and controlling to stop providing the target driving force so that the lens returns to the initial position under the acting force provided by the elastic piece.

9. The method according to claim 8, wherein the controlling to stop providing the target driving force includes:

and controlling the target driving force to gradually decrease so as to slowly reset the lens under the combined action of the elastic force of the elastic piece and the target driving force.

10. An electronic device, comprising:

a resonant assembly;

a vibration motor; and

the controller is used for obtaining a vibration instruction, controlling the resonance assembly to be in a protection mode based on the vibration instruction, and controlling the vibration motor to respond to the vibration instruction;

wherein, when the resonant assembly is in the protection mode, at least the vibration influence of the vibration motor on the resonant assembly in the process of responding to the vibration instruction can be reduced.

Technical Field

The embodiment of the application relates to the technical field of computers, in particular to a control method and electronic equipment.

Background

At present, many electronic devices all have a vibration function in order to increase user experience, for example, devices such as mobile phones all generate vibration with different frequencies when receiving information and a touch display screen or playing audio and video in cooperation with the devices so as to increase audio and video effects. Taking a mobile phone as an example, the vibration of the mobile phone is realized by arranging a vibration motor and driving the equipment to vibrate together by the vibration motor. However, in the vibration process of the mobile phone vibration motor, the camera module on the mobile phone is driven to resonate together due to the mechanical vibration conduction, and the lens in the camera module collides with the lens barrel, so that noise is generated.

The existing solutions for avoiding noise generated by collision between a lens and a lens barrel include:

a. the vibration intensity of the vibration motor is reduced, but the method also causes the use experience of the user on the equipment to be poor due to the reduction of the vibration intensity;

b. resonance is avoided through the structural design scheme who changes vibrating motor or camera module, but this kind of mode need carry out a large amount of hardware changes, and the input cost is great, brings schedule pressure.

Disclosure of Invention

The embodiment of the application provides a control method for controlling a resonance component in electronic equipment to be in a protection mode before a vibration motor responds to vibration so as to avoid generating vibration influence on the resonance component and generating noise, and also provides the electronic equipment applying the control method.

In order to solve the above technical problem, an embodiment of the present application provides a control method, where the method includes:

obtaining a vibration instruction;

controlling a resonant component of the electronic equipment to be in a protection mode based on the vibration instruction;

controlling a vibration motor of the electronic equipment to respond to the vibration instruction based on the vibration instruction;

wherein, when the resonant assembly is in the protection mode, at least the vibration influence of the vibration motor on the resonant assembly in the process of responding to the vibration instruction can be reduced.

As an embodiment, the resonance component is a camera module; the resonant assembly of the control electronics being in a protected mode comprises:

and controlling the lens of the camera module to move to a target position based on a target driving force, wherein the target driving force is larger than a vibration force generated in the process that the vibration motor responds to the vibration instruction.

As an embodiment, the controlling the lens of the camera module to move to the target position based on the target driving force includes:

and if the vibration instruction is used for indicating the electronic equipment to generate vibration feedback of a first dimension, controlling the lens of the camera module to move to the bottom of the lens barrel or the top of the lens barrel based on the target driving force.

As an embodiment, the controlling the lens of the camera module to move to the target position based on the target driving force includes:

if the vibration instruction is used for indicating the electronic equipment to generate vibration feedback of a first dimension, controlling a lens of the camera module to move to the bottom of the lens barrel or the top of the lens barrel based on a driving force, and lifting the driving force to the target driving force when the lens moves to the bottom of the lens barrel or the top of the lens barrel.

As an embodiment, the controlling the lens of the camera module to move to the target position based on the target driving force further includes:

determining a current device posture of the electronic device;

determining the target position to be a bottom of the lens barrel or a top of the lens barrel based on the device pose.

As an embodiment, the controlling the lens of the camera module to move to the target position based on the target driving force includes:

and if the vibration instruction is used for indicating the electronic equipment to generate vibration feedback of a second dimension, controlling the lens of the camera module to move to the middle of the lens barrel based on the target driving force.

As an embodiment, the method further comprises:

continuously providing the target driving force to maintain the lens at the target position during the vibration motor of the electronic equipment responding to the vibration instruction; or

And continuously providing the target driving force during the process that the vibration motor of the electronic equipment responds to the vibration instruction and in the target time period after the vibration motor of the electronic equipment responds to the vibration instruction, so as to maintain the lens at the target position.

As an embodiment, a lens in the camera module is mounted in the lens barrel through an elastic member, and when the lens is moved, the elastic member is compressed to generate a restoring force for driving the lens to return from the target position to an initial position;

the method further comprises the following steps:

and controlling to stop providing the target driving force so that the lens returns to the initial position under the acting force provided by the elastic piece.

As an embodiment, the control of stopping the supply of the target driving force includes:

and controlling the target driving force to gradually decrease so as to slowly reset the lens under the combined action of the elastic force of the elastic piece and the target driving force.

Another embodiment of the present application also provides an electronic device, including:

a resonant assembly;

a vibration motor; and

the controller is used for obtaining a vibration instruction, controlling the resonance assembly to be in a protection mode based on the vibration instruction, and controlling the vibration motor to respond to the vibration instruction;

wherein, when the resonant assembly is in the protection mode, at least the vibration influence of the vibration motor on the resonant assembly in the process of responding to the vibration instruction can be reduced.

Based on the above disclosure of the embodiment, it can be known that the embodiment of the present application has the beneficial effects that by obtaining the vibration instruction, and controlling the resonant component of the electronic device to be in the protection mode first based on the vibration instruction, and then or simultaneously controlling the vibration motor of the electronic device to respond to the vibration instruction based on the vibration instruction, when the resonant component is in the protection mode, at least, the vibration influence on the resonant component can be reduced in the process that the vibration motor responds to the vibration instruction to enable the electronic device to vibrate integrally, so that the noise generated by the resonant component due to the resonance collision between each other or with surrounding devices is avoided, and the noise reduction effect is realized.

Drawings

Fig. 1 is a flowchart of a control method in the embodiment of the present application.

Fig. 2 is a flowchart of a control method in another embodiment of the present application.

Fig. 3 is a flowchart illustrating an actual application of the control method in another embodiment of the present application.

Fig. 4 is a schematic structural diagram of an electronic device in an embodiment of the present application.

Detailed Description

Specific embodiments of the present application will be described in detail below with reference to the accompanying drawings, but the present application is not limited thereto.

It will be understood that various modifications may be made to the embodiments disclosed herein. The following description is, therefore, not to be taken in a limiting sense, but is made merely as an exemplification of embodiments. Other modifications will occur to those skilled in the art within the scope and spirit of the disclosure.

The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the disclosure and, together with a general description of the disclosure given above, and the detailed description of the embodiments given below, serve to explain the principles of the disclosure.

These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.

It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.

The above and other aspects, features and advantages of the present disclosure will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

Specific embodiments of the present disclosure are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely examples of the disclosure that may be embodied in various forms. Well-known and/or repeated functions and structures have not been described in detail so as not to obscure the present disclosure with unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present disclosure in virtually any appropriately detailed structure.

The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the disclosure.

Hereinafter, embodiments of the present application will be described in detail with reference to the accompanying drawings.

As shown in fig. 1, an embodiment of the present application provides a control method, including:

obtaining a vibration instruction;

controlling a resonant component of the electronic equipment to be in a protection mode based on the vibration instruction;

controlling a vibration motor of the electronic equipment to respond to the vibration instruction based on the vibration instruction;

and when the resonant assembly is in the protection mode, the vibration influence on the resonant assembly generated by the vibration motor in the process of responding to the vibration instruction can be at least reduced.

For example, taking an electronic device as a mobile terminal as an example, the electronic device may be a mobile phone, and may also be a device with a vibration response function, such as a notebook computer and a tablet computer. When a user uses the mobile phone to perform touch operation, or the user receives notification information and an incoming call, the mobile phone generates a vibration instruction, such as vibration event information, to be sent to a vibration motor inside the mobile phone so as to control the vibration motor to generate vibration and further drive the mobile phone to generate vibration integrally in order to improve the touch experience of the user, or to notify the user to check information and answer a call. In the mobile phone system of the mobile phone in this embodiment, after the control devices including the chip and the processor inside the mobile phone obtain the vibration instruction, the resonance component in the electronic device is controlled to be in the protection mode based on the vibration instruction. The resonant assembly is not particularly limited and may be any two or more devices associated with each other in the apparatus to be capable of resonating together under the action of the vibration motor. The specific content of the protection mode in this embodiment is not certain, that is, in this embodiment, the electronic device may have a plurality of different protection modes, and when the resonance component is controlled to be in the protection mode based on the vibration instruction, which protection mode the resonance component should be in may be determined according to the specific vibration content of the vibration instruction, such as information of the vibration type, the vibration frequency, the vibration amplitude, and the like. Moreover, when the resonant assemblies are in multiple groups, the protection modes of each group of resonant assemblies can be the same or different, and the resonant assemblies which are possibly resonated can be controlled to be in the protection mode according to the content of the vibration instruction, while the other resonant assemblies are not in the protection mode. When the system determines that the resonant assembly is in the protection mode, the vibration motor is controlled to generate vibration based on the vibration instruction, or the vibration motor can be controlled to generate vibration while the resonant assembly is controlled to be in the protection mode. So can make the resonance subassembly be in when the protection mode, or when being converted into under the protection mode promptly, the vibration motor just begins to vibrate for the resonance subassembly can reduce the vibration influence that the vibration motor produced the resonance subassembly at the in-process of responding to the vibration instruction at least under the protection mode, avoids the resonance subassembly to produce the noise because of resonance each other or with surrounding device, realizes the noise reduction effect.

In addition, the control method in the embodiment does not relate to the change of a hardware structure in the electronic equipment, and only relates to the improvement of a software layer, so that the cost is not increased, and the type selection of the vibration motor and other driving type devices, such as a focusing motor, can be decoupled, and the dependence on the type selection of the devices is avoided.

Specifically, the resonant assembly in this embodiment is a camera module, and includes a lens, a lens barrel, a focusing motor, and the like, where the lens is disposed in the lens barrel, and the focusing motor is connected to the lens for driving the lens to move in the lens barrel, and when an image is taken, the focusing motor drives the lens to move for focusing, and the like. Of course, the focus motor may be replaced by other driving devices as long as the driving of the lens can be completed under the system control. For example, the lens barrel may be provided with an electromagnetic slide rail and an electromagnetic block, which can generate magnetic forces in different directions and strengths under different currents, to push the pulley and drive the lens to move. In the present embodiment, only the focus motor is exemplarily described as a driving device (the same applies below). Furthermore, because the lens is required to move smoothly in the lens barrel, a certain gap is usually reserved between the lens and the inner wall of the lens barrel, and just because of the gap, when the vibration motor vibrates, the vibration force can be transmitted to the focusing motor, the lens and the lens barrel based on mechanical conduction, so that the lens is driven to collide with the lens barrel, and then noise is generated, so that certain abrasion or potential safety hazard can be generated on the lens, the service life of the lens is influenced, and the use experience of a user on the electronic equipment can be reduced.

In order to reduce and avoid collision between the lens and the lens barrel, when the resonance component of the control electronic device is in the protection mode in this embodiment, the method includes:

and controlling the lens of the camera module to move to a target position based on a target driving force, wherein the target driving force is larger than a vibration force generated in the process of responding to the vibration instruction by the vibration motor.

Alternatively, the system can control the focusing motor to generate a target driving force based on the vibration instruction, so that the focusing motor drives the lens in the camera module to move to a target position based on the target driving force, and the lens does not collide with the lens barrel at the target position, thereby reducing and eliminating the noise. The specific value of the target driving force is not certain, but needs to be larger than the vibration force generated in the process of responding to the vibration command by the vibration motor, i.e. the vibration force generated in the process of generating vibration by the vibration motor, so that at least the focusing motor can stably and quickly drive the lens to the target position based on the target driving force, and the lens cannot collide with the lens barrel before, during, or even after the vibration of the vibration motor.

Because the outer fringe of camera lens all has certain clearance with the inner wall of lens cone between, and the vibration mode of vibrating motor, including the vibration direction all not unique, so for the vibration of reply vibrating motor in different vibration directions, the system has adopted the following different control mode control camera lens to remove:

the first embodiment is as follows:

controlling the lens of the camera module to move to the target position based on the target driving force, including:

and if the vibration instruction is used for instructing the electronic equipment to generate vibration feedback of the first dimension, controlling the lens of the camera module to move to the bottom of the lens barrel or the top of the lens barrel based on the target driving force.

In this embodiment, if it is known based on the vibration instruction that the electronic device needs to generate vibration feedback in a first dimension, for example, the first dimension is a dimension corresponding to the x and y axes in the coordinate system, namely, the vibration direction of the electronic equipment is positioned in the plane of the x axis and the y axis, and the displacement generated by the vibration is also a parallel plane which is positioned in the plane relative to the XY axis, because the camera module is arranged in the electronic equipment (such as a mobile phone, a tablet computer and the like), therefore, the main optical axis of the lens of the camera module is vertical to the XY plane, when the vibration motor of the electronic equipment responds to the vibration instruction and generates vibration direction in the plane of the x and y axes, the lens of the lens group of the camera is suspended in the lens barrel, so that the lens can also resonate in the vibration direction (the vibration direction of the plane where the XY axes are located) and touch the inner wall of the lens barrel of the lens group to generate noise. Therefore, the direction of the target driving force in this embodiment is perpendicular to the plane of the XY axes, and the focusing motor in the camera module drives the lens to move to the top of the lens barrel or the bottom of the lens barrel based on the target driving force, so that the lens and the top or the bottom of the lens barrel are attached together, the contact surface area is increased, and further the frictional resistance is increased, so that the lens barrel and the lens can form a whole. When the vibration motor vibrates, the lens barrel and the lens do not move relatively but move together as a whole, so that the lens does not collide with the lens barrel to generate noise.

Example two:

controlling the lens of the camera module to move to the target position based on the target driving force includes:

if the vibration instruction is used for instructing the electronic equipment to generate vibration feedback of the first dimension, controlling the lens of the camera module to move to the bottom of the lens barrel or the top of the lens barrel based on the first driving force, and lifting the driving force to the target driving force when the lens moves to the bottom of the lens barrel or the top of the lens barrel.

In this embodiment, when the system determines that the vibration command requires the electronic device to generate vibration feedback in the first dimension, for example, the first dimension is also a dimension corresponding to the x and y axes in the coordinate system, that is, the vibration direction of the electronic device is located in a plane surrounded by the x and y axes. The direction of the target driving force in this embodiment is perpendicular to the plane of the XY axes, and the lens is driven by the focusing motor in the camera module to move to the top of the lens barrel or the bottom of the lens barrel based on the target driving force, so that the lens is attached to the top or the bottom of the lens barrel. When the system determines that the lens moves to the end part of the lens barrel, a target driving force is determined (namely, the target driving force is greater than the force for moving the lens to the end part of the lens barrel), the driving force of the focusing motor is adjusted based on the target driving force, the force value is increased to the force value of the target driving force, the focusing motor is controlled to apply pushing force to the lens based on the adjusted force value, the lens is tightly attached to the end part of the lens barrel, the contact friction force between the lens and the inner end face of the lens barrel is further increased, the lens and the lens barrel can be effectively ensured to be more stably and firmly integrated, and the relative motion, collision and noise generation cannot be caused under the influence of the vibration motor.

Further, with the two embodiments described above, when the system controls the lens of the camera module to move to the target position based on the target driving force, as shown in fig. 2, the method further includes:

determining the equipment posture of the current electronic equipment;

the target position is determined to be the bottom of the lens barrel or the top of the lens barrel based on the device pose.

That is, before controlling to drive the lens, a current device posture of the electronic device needs to be determined, for example, whether the electronic device is in a horizontal state or a handheld state at present, whether a camera module of the electronic device faces a desktop or deviates from the desktop, and the like.

Specifically, the electronic device may be provided with a gravity sensor, a level and other devices for assisting in determining the posture of the device, the system may obtain current gravity information of the electronic device through such devices, the gravity information includes gravity component information of the electronic device in each direction, and the system may calculate the device posture of the current electronic device based on the gravity component information, for example, in which holding posture the device is held by a user and is matched with the device posture, the electronic device is currently placed on a desktop with its front side facing upward, or placed on a desktop with its back side facing upward, and the like. Because the installation position of the camera module on the electronic equipment is fixed, the current position of the lens in the camera module is different when the electronic equipment is in different postures, for example, the gravity components of the lens in different device postures are different, which causes the lens to displace relatively closer to the top or bottom of the lens barrel without driving the focusing motor, and furthermore, because the gravity borne by the lens is different, the driving force required for driving the lens to move towards the top or the bottom of the lens barrel is different, if the camera module is disposed on the back of the electronic device, the lens is driven to move toward the top of the lens barrel with a least effort if the electronic device is placed on the desktop with the right side facing upward. Similarly, when the electronic device is in the inclined posture, the gravity component borne by the lens is different from the gravity component borne by the electronic device when the electronic device is vertically arranged on a table top or when a user holds the device in front of the table top, and the force borne by the lens is larger than the force borne by the electronic device. When the system determines the target position, the system can comprehensively determine by combining the distance between the current lens and the top and the bottom of the lens barrel and the required driving force ratio, and under the current equipment posture, the system can drive the lens to the top of the lens barrel more time-saving and labor-saving or drive the lens to the bottom of the lens barrel more time-saving and labor-saving, and determine the final target position as the position which corresponds to the driving process more time-saving and labor-saving. For example, when the lens is just paused, it may be near or directly at the top of the barrel, then the system directly determines that the top of the barrel is the target position.

Further, in practical application, when determining the target driving force or the first driving force, the system may determine the rated driving force according to a driving force required by the electronic device to drive the lens to move in a state of being set on a desktop or being held in front of a user, or based on a self weight of the lens, a connection structure between the lens barrel and the lens, a power of the focusing motor, a length of the lens barrel, i.e., a distance that the lens needs to be driven to move, and the like, and may determine the rated driving force comprehensively based on relevant historical parameters and empirical parameters, the performance of a driving device for driving the lens to move, and the rated driving force may be a specific value or a range of values. For example, when the gravity component of the electronic device or the lens or the included angle between the electronic device or the lens and the preset reference position is within the corresponding threshold range, the lens is driven to move by the rated driving force or a driving force value corresponding to the range. If the change amplitude of the posture of the device is large, and the gravity component borne by the lens is increased, different gravity compensation components can be added to the rated driving force according to the increase of the gravity component, so that the target driving force is obtained. The gravity compensation component is not only related to the gravity component borne by the lens, but also related to the distance between the current position and the target position of the lens. When the system determines the target driving force, the value of the delivered current can be determined accordingly to control the focus motor to apply the target driving force to the lens based on the current value.

Example three:

controlling the lens of the camera module to move to the target position based on the target driving force includes:

and if the vibration instruction is used for indicating the electronic equipment to generate vibration feedback of a second dimension, controlling the lens of the camera module to move to the middle of the lens barrel based on the target driving force.

In this embodiment, if it is known based on the vibration instruction that the electronic device is required to generate vibration feedback in the second dimension, for example, the second dimension is the dimension corresponding to the z-axis in the coordinate system, namely, the vibration direction of the electronic equipment is positioned in the plane of the z axis, because the camera module is installed in the electronic equipment (such as a mobile phone, a tablet computer and the like), therefore, the main optical axis of the lens of the camera module is vertical to the XY plane, when the vibration motor of the electronic equipment responds to the vibration instruction to generate the vibration direction positioned in the plane of the Z axis, if the distance between the lens of the lens group of the camera and the top or the bottom of the lens barrel is relatively short, the lens can generate resonance in the direction of the main optical axis when the electronic equipment generates vibration in the direction of the Z axis, so that noise is generated when the lens touches the top or the bottom of the lens group which is short. Therefore, the direction of the target driving force in this embodiment is perpendicular to the plane of the XY axes, and the focusing motor in the camera module is used to drive the lens to move to the middle of the lens barrel based on the target driving force, so that the amplitude of the resonance generated by the lens located in the middle of the lens barrel is smaller than the distance from the lens located in the middle of the lens barrel to any one end of the lens barrel, that is, a sufficient vibration space is reserved for the lens in the vibration direction, thereby effectively ensuring that the lens does not collide with the end of the lens barrel, and generating noise.

Example four:

controlling the lens of the camera module to move to the target position based on the target driving force includes:

and if the vibration instruction is used for indicating the electronic equipment to alternately generate vibration feedback of the first dimension and the second dimension, controlling the lens of the camera module to move to the top of the lens barrel or the bottom of the lens barrel based on the target driving force.

In this embodiment, if it is known based on the vibration instruction that the electronic device needs to generate vibration feedback alternately in the first dimension and the second dimension, for example, the vibration feedback in the first dimension is generated in the first time period, the vibration feedback in the second dimension is generated in the second time period after the first time period, and the above operations are repeated alternately, the system determines the target driving force (the specific determination method is the same as above), and drives the lens to move to the top or the bottom of the lens barrel based on the target driving force, and may select to continuously apply the driving force to the lens (detailed below) to ensure that the lens and the lens barrel can be integrated, and no relative motion is generated, and noise is generated.

Further, as shown in fig. 3, the control method in this embodiment further includes:

continuously providing a target driving force to maintain the lens at a target position in the process that a vibration motor of the electronic equipment responds to a vibration instruction; or

The target driving force is continuously provided during the vibration motor of the electronic device responding to the vibration instruction and within the target time period after the vibration motor of the electronic device responding to the vibration instruction is completed so as to maintain the lens at the target position.

That is, during the period from the beginning of the response to the vibration command to the end of the response to the vibration command of the vibration motor of the electronic device, the system needs to control the focus motor to continuously provide the target driving force for the lens, so that the lens can be always located at the target position during the vibration of the vibration motor, i.e. the current position is always kept stable, so as to ensure that the lens does not collide with the lens barrel to generate noise. In addition, in order to avoid that the vibration mode of the electronic device is an intermittent vibration mode, for example, after the vibration mode is vibrated for a period of time, the vibration mode is stopped for several seconds, even after several minutes, the vibration mode continues to vibrate, for example, when an alarm program of the electronic device runs, or when the electronic device runs a chat program, because the receiving of each piece of information generates vibration, a time interval exists between the receiving time points of each piece of information, or when the electronic device is in a call, the call is accidentally hung up, the opposite party dials back again, and the like, the system can control the focusing motor to continue to provide the template driving force for the lens when the vibration motor completes the vibration feedback, so that the focusing motor continues to be kept at the target position within the target time period, for example, within 2s, 6s, and 15s, to avoid frequent start and stop of the focusing motor. In practical application, the system may determine whether it is necessary to continue to control and apply the target driving force within a target time period after the vibration motor has responded to the current vibration feedback according to the type of the application program currently running on the electronic device and the vibration response type/vibration mode of the electronic device, where the target time period may be a fixed time period or may be set differently according to the type of the different application program currently running and the vibration response type/mode. For example, when the application program run by the electronic device is a chat-type program, the target time period can be relatively extended, for example, 10s, 20s, and the like.

Further, the lens in the camera module in this embodiment is installed in the lens barrel through an elastic member, such as a spring, and when the lens is moved, the elastic member is compressed to generate a restoring force for driving the lens to return from the target position to the initial position. In the case where the electronic device uses the camera module in the present embodiment, the target driving force for driving the lens to move, and the first driving force need to be able to overcome the restoring force, so as to ensure that the lens can be smoothly driven to move to the target position and be kept at the target position. In addition, when the electronic device uses the camera module of this embodiment, especially in the mode that the vibration motor may be intermittently or frequently started and stopped, it is further necessary to control the driving devices such as the focus motor to continue to provide the target driving force for the lens within the target time period after the vibration motor responds to the vibration feedback, so that the lens is continuously maintained at the target position, thereby avoiding frequent resetting of the lens when the lens is pulled by the elastic member due to frequent starting and stopping of the focus motor, and making the elastic member easily drive the lens to collide with the inner wall of the lens barrel, thereby generating noise.

Further, the control method in this embodiment further includes:

and controlling to stop providing the target driving force so that the lens is restored to the initial position under the acting force provided by the elastic piece.

For example, after determining that the vibration motor stops vibrating or after a target time period after the vibration is stopped, that is, after the determined time exceeds the target time period, the driving device such as the focus motor is controlled to stop providing the target driving force based on the preset strategy, or after determining that the vibration motor stops vibrating or after the target time period after the vibration is stopped, if the vibration motor does not vibrate again or the system does not receive a vibration instruction any more, the driving device such as the focus motor is controlled to stop providing the target driving force based on the preset strategy, so that the lens is restored from the current target position to the initial position under the elastic force accumulated by the elastic member.

Specifically, when the control stops the supply of the target driving force, the control includes:

and controlling the target driving force to gradually decrease so that the lens is slowly reset under the combined action of the elastic force of the elastic piece and the target driving force.

For example, the system may control a driving device such as a focus motor to gradually reduce the target driving force in a gradual-moving mode, so that the gradually reduced target driving force can suppress the influence of the elastic force on the lens, so that the lens is not rapidly reset by the elastic force, which is likely to generate impact with the lens barrel and generate noise, but the lens is slowly reset by the combined action of the gradually reduced target driving force and the elastic force, thereby ensuring that the lens does not collide with the lens barrel during and after the resetting process and generating noise.

As shown in fig. 4, another embodiment of the present application also provides an electronic device 100, including:

a resonance assembly 1;

a vibration motor 2; and

the controller 3 is used for obtaining a vibration instruction, controlling the resonance assembly 1 to be in a protection mode based on the vibration instruction, and controlling the vibration motor 2 to respond to the vibration instruction;

wherein, under the condition that the resonant assembly 1 is in the protection mode, the vibration influence of the vibration motor 2 on the resonant assembly 1 in the process of responding to the vibration instruction can be at least reduced.

The electronic device 100 in this embodiment may be a mobile terminal such as a mobile phone, or may be a device supporting a vibration function such as a tablet computer, a notebook computer, or a learning machine. In the electronic device 100 of the embodiment, the controller 3 may first control the resonant assembly 1 to be in the protection mode after obtaining the vibration instruction, and control the vibration motor 2 to generate vibration based on the vibration instruction when the resonant assembly 1 is in the protection mode, or may also control the vibration motor 2 to generate vibration while controlling the resonant assembly 1 to be in the protection mode. Therefore, when the resonance component 1 is in the protection mode, or is being converted into the protection mode, the vibration motor 2 starts to vibrate, so that the resonance component 1 can at least reduce the vibration influence of the vibration motor 2 on the resonance component 1 in the process of responding to the vibration instruction in the protection mode, the resonance component 1 is prevented from colliding with each other or surrounding devices to generate noise due to resonance, and the noise reduction effect is realized. In addition, in the process of reducing the generation of the collision noise, the electronic device 100 in this embodiment does not involve the modification of the hardware structure in the electronic device 100, but only involves the improvement of the software level, so that the cost is not increased, and the model selection of the vibration motor 2 and other driving devices can be decoupled, thereby avoiding the dependency on the model selection of the devices.

In one embodiment, the resonance component 1 is a camera module; the controller 3 can be a processor, an embedded chip or a control chip arranged in the camera module; the camera module in this embodiment includes a lens, a lens barrel, and a driving device for driving the lens to move along the lens barrel, such as a focusing motor;

when the controller 3 controls the resonant assembly 1 of the electronic device 100 to be in the protection mode, the method includes:

and controlling the lens of the camera module to move to a target position based on a target driving force, wherein the target driving force is larger than the vibration force generated in the process of responding the vibration command by the vibration motor 2.

In one embodiment, the controlling, by the controller 3, the lens of the camera module to move to the target position based on the target driving force includes:

and if the vibration instruction is used for indicating the electronic equipment 100 to generate vibration feedback of the first dimension, controlling the lens of the camera module to move to the bottom of the lens barrel or the top of the lens barrel based on the target driving force.

In one embodiment, the controlling, by the controller 3, the lens of the camera module to move to the target position based on the target driving force includes:

if the vibration instruction is used for indicating the electronic device 100 to generate vibration feedback of the first dimension, controlling the lens of the camera module to move to the bottom of the lens barrel or the top of the lens barrel based on a first driving force, and lifting the first driving force to the target driving force when the lens moves to the bottom of the lens barrel or the top of the lens barrel.

In an embodiment, the electronic device 100 in this embodiment further includes a gravity sensor for obtaining gravity component information of each direction of the device, and the gravity sensor is connected to the controller 3 to transmit the obtained information to the controller 3 to assist the controller 3 in determining the device posture of the electronic device 100;

the controlling, by the controller 3, the lens of the camera module to move to the target position based on the target driving force further includes:

determining a current device pose of the electronic device 100;

determining the target position to be a bottom of the lens barrel or a top of the lens barrel based on the device pose.

In one embodiment, the controlling the lens of the camera module to move to the target position based on the target driving force includes:

and if the vibration instruction is used for indicating the electronic equipment 100 to generate vibration feedback of a second dimension, controlling the lens of the camera module to move to the middle of the lens barrel based on the target driving force.

In an embodiment, the controller 3 is further configured to:

continuously providing the target driving force to maintain the lens at the target position during the vibration motor 2 of the electronic device 100 responding to the vibration instruction; or

Continuously providing the target driving force to maintain the lens at the target position during the response of the vibration motor 2 of the electronic device 100 to the vibration instruction and within the target time period after the response of the vibration motor 2 of the electronic device 100 to the vibration instruction is completed.

In one embodiment, a lens in the camera module is mounted in the lens barrel through an elastic member, and when the lens is moved, the elastic member is compressed to generate a restoring force for driving the lens to return to an initial position from the target position;

the controller 3 is further configured to:

and controlling to stop providing the target driving force so that the lens returns to the initial position under the acting force provided by the elastic piece.

In one embodiment, the controller 3 controls to stop providing the target driving force, including:

and controlling the target driving force to gradually decrease so as to slowly reset the lens under the combined action of the elastic force of the elastic piece and the target driving force.

An embodiment of the present application also provides a storage medium, on which a computer program is stored, which when executed by a controller implements the control method as described above. It should be understood that each solution in this embodiment has a corresponding technical effect in the foregoing method embodiments, and details are not described here.

Embodiments of the present application also provide a computer program product tangibly stored on a computer-readable medium and comprising computer-executable instructions that, when executed, cause at least one controller to perform a control method such as the embodiments described above. It should be understood that each solution in this embodiment has a corresponding technical effect in the foregoing method embodiments, and details are not described here.

It should be noted that the computer storage media of the present application can be computer readable signal media or computer readable storage media or any combination of the two. The computer readable medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access storage media (RAM), a read-only storage media (ROM), an erasable programmable read-only storage media (EPROM or flash memory), an optical fiber, a portable compact disc read-only storage media (CD-ROM), an optical storage media piece, a magnetic storage media piece, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, antenna, fiber optic cable, RF, etc., or any suitable combination of the foregoing.

It should be understood that although the present application has been described in terms of various embodiments, not every embodiment includes only a single embodiment, and such description is for clarity purposes only, and those skilled in the art will recognize that the embodiments described herein may be combined as suitable to form other embodiments, as will be appreciated by those skilled in the art.

The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种单次点击实现鼠标单击或双击的装置、方法及鼠标

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类