CN109981938B - Camera module, control method thereof, electronic device and storage medium - Google Patents

Camera module, control method thereof, electronic device and storage medium Download PDF

Info

Publication number
CN109981938B
CN109981938B CN201711498466.9A CN201711498466A CN109981938B CN 109981938 B CN109981938 B CN 109981938B CN 201711498466 A CN201711498466 A CN 201711498466A CN 109981938 B CN109981938 B CN 109981938B
Authority
CN
China
Prior art keywords
application program
motor
control method
lens carrier
motor base
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711498466.9A
Other languages
Chinese (zh)
Other versions
CN109981938A (en
Inventor
李路路
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711498466.9A priority Critical patent/CN109981938B/en
Publication of CN109981938A publication Critical patent/CN109981938A/en
Application granted granted Critical
Publication of CN109981938B publication Critical patent/CN109981938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/54Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/55Optical parts specially adapted for electronic image sensors; Mounting thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a camera module and a control method thereof, electronic equipment and a storage medium, wherein the control method of the camera module comprises the following steps: acquiring an application program currently operated by the electronic equipment; judging whether the currently running application program comprises a preset application program or not; if so, the lens carrier is controlled to be tightly attached to the motor base or be far away from the motor base to a set position. Through the mode, the electronic equipment can vibrate when a specific application program is used, the lens cannot collide with the motor base or the side wall, on one hand, the lens is protected from being damaged, and on the other hand, abnormal sound cannot be generated due to the collision between the lens and the motor to influence the normal work of the application program of the electronic equipment.

Description

Camera module, control method thereof, electronic device and storage medium
Technical Field
The present invention relates to the field of camera control technologies, and in particular, to a camera module, a control method thereof, an electronic device, and a storage medium.
Background
All install the camera module on current electronic equipment, along with the development of technique, more and more camera modules of zooming are used in electronic equipment.
Thereby the focus of camera module is adjusted in the removal of camera module that can zoom through motor control camera lens, and when camera module was not electrified during operation, the camera lens can strike motor bottom or around when receiving the vibration, produces abnormal sound, also can cause the damage to the camera lens simultaneously, influences the accuracy of camera lens.
Disclosure of Invention
In order to solve the technical problems, the invention adopts a technical scheme that: a control method of a camera module is provided, which comprises the following steps: acquiring an application program currently operated by the electronic equipment; judging whether the currently running application program comprises a preset application program or not; if so, the lens carrier is controlled to be tightly attached to the motor base or be far away from the motor base to a set position.
In order to solve the technical problem, the invention adopts another technical scheme that: providing a camera module, this camera module includes: the camera motor comprises a motor base and a lens carrier; a lens mounted on a lens carrier; a driver for acquiring a driving instruction to control movement of the lens carrier; the driving instruction specifically controls the lens carrier to be attached to the motor base or to be away from the motor base to a set position when the application program currently running on the electronic device includes a preset application program.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided an electronic device comprising an interconnected processor, memory for storing a computer program for implementing the method as described above when executed by the processor, and a camera module.
In order to solve the technical problem, the invention adopts another technical scheme that: a computer-readable storage medium is provided for storing a computer program for implementing the method as described above when executed by a processor.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
fig. 1 is a schematic structural diagram of a camera module according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a camera motor in an embodiment of the camera module according to the present invention;
fig. 3 is a schematic flowchart of a first embodiment of a control method of a camera module according to the present invention;
fig. 4 is a schematic flowchart of a second embodiment of a control method for a camera module according to the present invention;
fig. 5 is a schematic flowchart of a control method of a camera module according to a third embodiment of the present invention;
fig. 6 is a schematic flowchart of a fourth embodiment of a control method for a camera module according to the present invention;
fig. 7 is a schematic flow chart of a current determination method in a fourth embodiment of a control method of a camera module according to the present invention;
fig. 8 is a schematic moving diagram of a lens carrier in a fourth embodiment of a method for controlling a camera module according to the present invention;
fig. 9 is a schematic flowchart of a fifth embodiment of a control method for a camera module according to the present invention;
FIG. 10 is a schematic structural diagram of an embodiment of an electronic device provided in the present invention;
FIG. 11 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided in the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first", "second", and the like in the present invention are used for distinguishing different objects, not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic equipment provided by the embodiment of the invention can be a mobile phone, a tablet personal computer, intelligent wearable equipment and the like, and generally comprises a camera module.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a camera module according to an embodiment of the present invention, where the camera module 10 includes a lens 11, a camera motor 12, and a driver 13. The camera module 10 may be disposed on a circuit board 20 of the electronic device, and the circuit board 20 may be a Flexible Printed Circuit (FPC) and is connected to a main board of the electronic device through a btb (board to board). In addition, the camera module 10 may further include other components such as a light sensor and a flash lamp, or may be a multifunctional module formed by combining with other modules such as a headphone, which will not be described herein.
The lens 11 is fixed in the camera motor 12, and can move up and down in the camera motor 12 under the driving of the driver 13 to adjust the focal length of the camera module 10.
The camera motor 12 may be a mechanical motor, an electronic touch motor, a ring-shaped ultrasonic motor, etc., which is not limited herein. Alternatively, in one embodiment, a voice coil motor may be used to achieve the position adjustment of the lens 11. A Voice Coil Motor (Voice Coil activator/Voice Coil Motor) is a device that converts electrical energy into mechanical energy and realizes linear and limited swing motion.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a camera motor in an embodiment of the camera module provided by the present invention, in which the camera motor 12 includes a magnetic shield 121, a magnet 122, an upper elastic sheet 123, a lens carrier 124, a motor coil 125, a lower elastic sheet 126, and a motor base 127. Wherein, the lens 11 is fixed on the lens carrier 124; the actuator 13 is specifically configured to obtain a driving command to control the current intensity in the coil 125, thereby controlling the movement of the lens carrier 124 in the voice coil motor.
The working principle of the voice coil motor is as follows: in a permanent magnetic field formed by the magnet 122, the extension position of the spring piece (i.e. the upper spring piece 123 and the lower spring piece 126) is controlled by changing the direct current of the motor coil 125 in the motor, so as to drive the lens carrier 124 to move back and forth, further drive the lens 11 to move back and forth, and further realize the zoom shooting of the camera.
The driving instruction received by the driver 13 specifically indicates that when the application currently running in the electronic device includes a preset application, the lens carrier 124 is controlled to be attached to the motor mount 127 or away from the motor mount 127 to a set position.
It can be understood that, since the lens carrier 124 is movable, when the camera module 10 is vibrated by external vibration, the lens carrier 124 moves in the camera motor 12 and easily hits the motor base 127 or the inner wall of the camera motor 12, which may damage the lens 11.
Specifically, when the frequency of the external vibration is consistent with the natural frequency of the camera motor 12, the vibration is particularly strong, and the damage to the lens 11 is also strongest, so that the driving instruction received by the driver 13 in this embodiment specifically indicates that the lens carrier 124 is controlled to be close to the motor base 127 or away from the motor base 127 to a set position when the application currently running in the electronic device includes a preset application. The preset application is an application in which the vibration generated during operation is consistent with the natural frequency of the camera motor 12.
The following describes a control method of the camera module by several embodiments, wherein reference may be made to fig. 2 for the description of the structure of the lens carrier, the motor base, and the like and the position thereof.
Referring to fig. 3, fig. 3 is a schematic flow chart of a first embodiment of a control method of a camera module provided by the present invention, the method including:
step 31: and acquiring the application program currently operated by the electronic equipment.
Optionally, in this embodiment, the camera module may be a camera module installed on an electronic device, for example, a front camera or a rear camera of a mobile phone. The electronic device has an application program installed therein. Continuing with the cell phone example, the installed applications may include chat-type applications, audio-type applications, video-type applications, and game-type applications. It is to be understood that the application program in the present embodiment is generally an application program having sound or vibration played out.
Specifically, the audio application is taken as an example, and can be a music playing application program, and when the application program runs, audio information is played out through a loudspeaker of the electronic equipment, and meanwhile vibration of the electronic equipment can be caused; taking the chat application as an example, the chat application can remind the user by vibrating the electronic device when receiving the message. Both of the above two methods cause vibration of the mobile phone, and if the vibration frequency is consistent with the natural frequency of the camera motor or the vibration amplitude is greater than a certain degree, resonance is caused, and the lens is damaged.
Step 32: and judging whether the currently running application program comprises a preset application program.
It can be understood that, since the lens damage caused by the resonance of the electronic device and the camera motor is the most serious, it is necessary to determine whether the vibration frequency caused by the application program during running is consistent with the natural frequency of the camera motor or whether the amplitude of the vibration is greater than the set value.
In this embodiment, all the application programs in the electronic device may be classified in advance, and the application degree in which the vibration frequency caused by the operation is consistent with the natural frequency of the camera motor or the amplitude of the vibration is greater than the set value may be defined as the preset application program.
If the determination result in step 32 is yes, step 33 is executed, and if the determination result in step 32 is no, the lens carrier is not moved.
Step 33: and controlling the lens carrier to be tightly attached to the motor base or be far away from the motor base to a set position.
On one hand, when the lens carrier and the motor base are tightly attached together, the lens carrier and the motor base are fixed together, and even if vibration occurs outside, the relative positions of the three are difficult to change, so that the lens cannot collide with the motor base.
On the other hand, when the lens carrier and the motor base are far apart, even if the lens carrier is displaced due to vibration from the outside, the small amplitude position due to the vibration does not cause the lens to hit the motor base because the distance between the lens carrier and the motor base is long.
Different from the prior art, the control method of the camera module in the embodiment includes: acquiring an application program currently operated by the electronic equipment; judging whether the currently running application program comprises a preset application program or not; if so, the lens carrier is controlled to be tightly attached to the motor base or be far away from the motor base to a set position. Through the mode, when the vibration is caused by running the application program outside, the lens cannot collide with the motor base or the side wall, on one hand, the lens is protected from being damaged, and on the other hand, abnormal sound cannot be emitted due to the collision between the lens and the motor to influence the running of the external application program.
The following describes the vibration frequency and the vibration intensity caused by the application program.
Referring to fig. 4, fig. 4 is a schematic flow chart of a second embodiment of a control method of a camera module provided by the present invention, the method including:
step 41: and acquiring the vibration frequency of the electronic equipment when each application program runs.
Step 42: and judging whether the vibration frequency is in a preset frequency range.
Wherein the preset frequency range can be set according to the natural frequency of the camera motor. For example, the frequency range may be set by plus or minus 200Hz on the basis of the camera motor natural frequency. Specifically, in one embodiment, the frequency range is 500 and 800 Hz.
When the determination result of step 42 is yes, step 43 is executed.
Step 43: the application is added to the blacklist.
It will be appreciated that steps 41-43 may be performed only once, i.e. the determination and blacklisting operations are performed on the first run of each application, while the following steps are performed directly on the second run.
Step 44: and acquiring the application program currently operated by the electronic equipment.
Step 45: and judging whether the currently running application programs are the application programs in the blacklist or not.
If the determination result in step 45 is yes, step 46 is executed.
Step 46: and controlling the lens carrier to be tightly attached to the motor base or be far away from the motor base to a set position.
It can be understood that, in this embodiment, by adding the application program whose vibration frequency meets the requirement to the blacklist in advance, when the application program runs, it is only necessary to directly determine whether the application program is an application program in the blacklist.
Referring to fig. 5, fig. 5 is a schematic flow chart of a third embodiment of a method for controlling a camera module according to the present invention, the method including:
step 51: and acquiring the vibration intensity of the electronic equipment when each application program runs.
Step 52: and judging whether the vibration intensity is greater than a preset intensity value or not.
If the determination result in step 52 is yes, step 53 is executed.
In step 52, the judgment of the vibration intensity may specifically judge the volume of the electronic device when the application program is running.
It can be understood that the volume directly affects the vibration strength of the electronic device, i.e. the vibration amplitude. For example, music playing applications are typically louder, while chat applications are typically louder.
Optionally, in a specific embodiment, it may be determined whether the volume of the application program in operation is greater than a preset volume value, where the preset volume value may be 80% of the total volume of the electronic device.
The volume of the loudspeaker of the electronic equipment can be obtained as a judgment basis. Taking a mobile phone as an example, when a user uses the mobile phone to run an application program, the user usually adjusts a fixed volume as a default volume, and when the user feels that the volume is inappropriate, the user performs corresponding adjustment. For example, the total volume of the handset is 20, and the default volume set by the user is 10.
In the present embodiment, the setting condition may be set such that the sound volume is greater than or equal to 16.
Step 53: the application is added to the blacklist.
It will be appreciated that steps 51-53 may be performed only once, i.e. the determination and blacklisting operations are performed on the first run of each application, while on the second run the following steps are performed directly.
Step 54: and acquiring the application program currently operated by the electronic equipment.
Step 55: and judging whether the currently running application programs are the application programs in the blacklist or not.
If the determination result in step 55 is yes, step 56 is executed.
Step 56: and controlling the lens carrier to be tightly attached to the motor base or be far away from the motor base to a set position.
It can be understood that, in this embodiment, by adding the application program whose vibration intensity meets the requirement to the blacklist in advance, when the application program runs, it is only necessary to directly determine whether the application program is an application program in the blacklist.
The following describes how to control the movement of the lens mount in detail through several embodiments.
Referring to fig. 6, fig. 6 is a schematic flow chart of a fourth embodiment of a method for controlling a camera module according to the present invention, the method including:
step 61: and acquiring the application program currently operated by the electronic equipment.
Step 62: and judging whether the currently running application program comprises a preset application program.
If the determination result in step 62 is yes, step 63 or step 64 is executed.
And step 63: and introducing a driving current in a first direction to the motor coil so as to enable the lens carrier to be far away from the motor base to a set position.
Step 64: and driving current in a second direction is introduced to the motor coil so that the lens carrier is tightly attached to the motor base.
Wherein the first direction drive current and the second direction drive current have opposite current directions.
After step 63 or step 64 is performed, step 65 is performed.
Step 65: and judging whether a preset application program in the currently running application programs is closed or not.
If the determination result in step 65 is yes, step 66 is executed.
And step 66: and controlling the camera motor to be powered off.
Also in conjunction with fig. 7, in an embodiment, there is provided a method for determining a first direction driving current and a second direction driving current, the method comprising:
step 71: a first distance between the motor mount and the set position is determined, and a maximum current value to move the lens carrier from the motor mount to the set position is determined.
Step 72: a second distance between the current position of the lens carrier and the motor mount is determined.
Step 73: and determining the magnitude of the first direction driving current or the second direction driving current according to the ratio of the second distance to the first distance and the maximum current value.
Referring to fig. 8 again, the first distance between the motor mount and the set position is d1, the maximum current value for moving the lens carrier from the motor mount to the set position is I, and the second distance between the current position of the lens carrier and the motor mount is d 2.
Wherein the magnitude of the first direction driving current may be determined using the following formula:
Figure BDA0001530458500000091
or
Determining the magnitude of the second direction drive current using the following equation:
Figure BDA0001530458500000092
different from the prior art, the displacement of the lens carrier is adjusted by changing the current of the motor coil in the embodiment, the structure of the camera module or the electronic device does not need to be improved, only the program executed by the controller of the camera module needs to be improved, and therefore the driving current of the motor coil is adjusted according to the running condition of the application program, when the running application program meets the set condition, the movement of the lens is controlled, the lens impact caused by vibration is avoided, on one hand, the lens is protected from being damaged, and on the other hand, the abnormal sound cannot be emitted due to the impact of the lens and the motor to influence the running of the external application program.
Referring to fig. 9, fig. 9 is a schematic flow chart of a fifth embodiment of a method for controlling a camera module according to the present invention, the method including:
step 91: and judging whether the camera module works.
It can be understood that, when the camera module is in operation, the distance between the lens carrier and the motor base is controlled by the driving current to adjust the focal length, so that even if there is vibration, the lens is not affected, and the lens and the motor are not collided. The embodiment is mainly applied to the situation that when the camera module does not work, namely when the motor is not electrified, the lens carrier is not controlled by the driving current, and can move when the vibration is strong.
And step 92: the method comprises the steps of obtaining an application program which starts a play-out mode or a vibration mode in the application programs currently running in the electronic equipment.
It will be appreciated that an application program, when running, typically includes at least three modes, a play mode, a vibrate mode and a mute mode. The camera module comprises a camera module, a sound module, a vibration module and an application program, wherein the camera module is arranged in the sound module, the sound module is arranged in the sound module, and the vibration module is arranged in the sound module.
Step 93: and judging whether the application programs of the open external mode or the vibration mode comprise preset application programs.
If the determination result in step 93 is yes, step 94 is executed.
Step 94: and controlling the lens carrier to be tightly attached to the motor base or be far away from the motor base to a set position.
In this embodiment, whether through detecting the camera work and whether the detection application can sound and vibration when the operation, avoid just carrying out the regulation of camera module as long as set for the application operation, increased more qualification in this implementation for the judgement condition to camera motor regulation is harsher, is favorable to reducing electronic equipment's consumption.
Referring to fig. 10, fig. 10 is a schematic structural diagram of an embodiment of an electronic device 100 provided in the present invention, where the electronic device 100 includes a processor 101, and a memory 102 and a camera module 103 connected to the processor 101.
Alternatively, the processor 101 may be a main control chip of the electronic device, such as a baseband chip, and the camera module 103 may be a variable focus camera module including a voice coil motor. Specifically, the camera module 103 may include a lens, a camera motor, and a driver. The lens is fixed in the camera motor and can move up and down in the camera motor under the driving of the driver so as to adjust the focal length of the camera module.
Wherein the driver is connected to the processor 101 for receiving a driving command sent by the processor 101 to control the movement of the lens carrier.
Optionally, in a specific embodiment, the voice coil motor may include a magnetic shield, a magnet, an upper spring, a lens carrier, a motor coil, a lower spring, and a motor base. Wherein, the lens is fixed on the lens carrier; the driver is specifically configured to obtain a driving command to control the current intensity in the coil, thereby controlling the movement of the lens carrier in the voice coil motor.
In particular, the memory 102 is used for storing a computer program, and the processor 101 is used for implementing the following steps when executing the computer program: acquiring an application program currently operated by the mobile terminal; judging whether the currently running application program comprises a preset application program or not; if so, the lens carrier is controlled to be tightly attached to the motor base or be far away from the motor base to a set position.
Optionally, the processor 101 is further configured to obtain a vibration frequency of the mobile terminal when each application program runs; judging whether the vibration frequency is within a preset frequency range; and if so, adding the application program into a blacklist. And
acquiring the vibration intensity of the mobile terminal when each application program runs; judging whether the vibration intensity is greater than a preset intensity value or not; and if so, adding the application program into a blacklist. And
judging whether the currently running application programs are the application programs in the blacklist or not; if so, the lens carrier is controlled to be tightly attached to the motor base or be far away from the motor base to a set position.
Optionally, the processor 101 is further configured to determine a first distance between the motor base and the set position, and a maximum current value for moving the lens carrier from the motor base to the set position; determining a second distance between the current position of the lens carrier and the motor mount; and determining the magnitude of the first direction driving current or the second direction driving current according to the ratio of the second distance to the first distance and the maximum current value.
Wherein the magnitude of the first direction driving current may be determined using the following formula:
Figure BDA0001530458500000111
or determining the magnitude of the second direction driving current by using the following formula:
Figure BDA0001530458500000112
wherein, the audio information is volume, and the setting condition is that the volume is more than 80% of the total volume. Or the audio information is the audio frequency, and the setting condition is that the size of the audio frequency is 500-800 Hz.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided by the present invention, the computer-readable storage medium 110 is used for storing a computer program 111, and the computer program 111, when executed by a processor, is used for implementing the following method steps:
acquiring an application program currently operated by the mobile terminal; judging whether the currently running application program comprises a preset application program or not; if so, the lens carrier is controlled to be tightly attached to the motor base or be far away from the motor base to a set position.
The storage medium 110 may be a server, a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.
It is to be understood that, for the method steps performed by the processor in the electronic device and the method steps implemented by the computer program stored in the computer-readable storage medium when being executed, reference may be made to the method in the foregoing embodiments, and details are not described herein.
In the embodiments provided in the present invention, it should be understood that the disclosed method and apparatus can be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (15)

1. A control method of a camera module is characterized by comprising the following steps:
acquiring the vibration frequency of the electronic equipment when each application program in the electronic equipment runs;
judging whether the vibration frequency is within a preset frequency range;
if so, adding the application program into a blacklist;
acquiring an application program currently operated by the electronic equipment;
judging whether the currently running application program is the application program in the blacklist or not;
if so, controlling the lens carrier to be tightly attached to the motor base or to be far away from the motor base to a set position.
2. The control method according to claim 1,
the preset frequency range is 500-800 Hz.
3. The control method according to claim 1,
the method further comprises the following steps:
acquiring the vibration intensity of the electronic equipment when each application program runs;
judging whether the vibration intensity is greater than a preset intensity value or not;
and if so, adding the application program into a blacklist.
4. The control method according to claim 3,
the step of obtaining the vibration intensity of the electronic device when each application program runs is specifically as follows:
acquiring the volume of the electronic equipment when each application program runs;
the step of judging whether the vibration intensity is greater than a preset intensity value specifically comprises the following steps:
and judging whether the volume is greater than a preset volume value.
5. The control method according to claim 4,
the preset volume value is 80% of the total volume of the electronic equipment.
6. The control method according to claim 1,
the step of controlling the lens carrier to cling to the motor base or be far away from the motor base to a set position comprises the following steps:
leading a first-direction driving current to a motor coil so as to enable the lens carrier to be far away from the motor base to the set position; or
Driving current in a second direction is conducted to the motor coil, so that the lens carrier is tightly attached to the motor base;
wherein the first direction drive current and the second direction drive current have opposite current directions.
7. The control method according to claim 6,
the method further comprises the following steps:
determining a first distance between the motor mount and the set position, and a maximum current value to move the lens carrier from the motor mount to the set position;
determining a second distance between the current position of the lens carrier and the motor mount;
and determining the magnitude of the first direction driving current or the second direction driving current according to the ratio of the second distance to the first distance and the maximum current value.
8. The control method according to claim 7,
the step of determining the magnitude of the first direction driving current or the second direction driving current according to the ratio of the second distance to the first distance and the current value includes:
determining a magnitude of the first direction drive current using the following equation:
Figure FDA0002619416640000021
or
Determining the magnitude of the second direction drive current using the following equation:
Figure FDA0002619416640000022
9. the control method according to claim 1,
the step of acquiring the application program currently running by the electronic device includes:
acquiring an application program which starts a play-out mode or a vibration mode in application programs currently running by the electronic equipment;
judging whether the application programs of the open external mode or the vibration mode comprise the application programs in the blacklist or not;
and if so, executing the step of controlling the lens carrier to be tightly attached to the motor base or be far away from the motor base to a set position.
10. The control method according to claim 1,
after the step of controlling the lens carrier to cling to the motor base or to be far away from the motor base to a set position, the method further comprises the following steps:
judging whether the application programs included in the blacklist in the currently running application programs are closed or not;
and if so, controlling the camera motor to be powered off.
11. The control method according to claim 1,
before the step of acquiring the application program currently running by the electronic device, the method further includes:
judging whether the camera module works or not;
and if not, executing the step of acquiring the application program currently operated by the electronic equipment.
12. The utility model provides a camera module which characterized in that includes:
the camera motor comprises a motor base and a lens carrier;
a lens mounted on the lens carrier;
a driver for acquiring a driving instruction to control movement of the lens carrier;
the driving instruction specifically controls the lens carrier to be attached to the motor base or be away from the motor base to a set position when the application program currently operated by the electronic equipment comprises the application program in the blacklist;
the method for acquiring the blacklist of the application program comprises the following steps:
acquiring the vibration frequency of the electronic equipment when each application program in the electronic equipment runs;
judging whether the vibration frequency is within a preset frequency range;
and if so, adding the application program into a blacklist.
13. The camera module of claim 12,
the camera motor further comprises a motor coil, and the lens carrier is arranged in the motor coil;
the driver is further used for executing the control method according to any one of claims 6 to 8 when acquiring the corresponding driving instruction.
14. An electronic device comprising a processor, a memory and a camera module connected to each other, wherein the memory is configured to store a computer program, which when executed by the processor, is configured to implement the control method according to any one of claims 1 to 11.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium is used for storing a computer program which, when being executed by a processor, is used for implementing a control method according to any one of claims 1-11.
CN201711498466.9A 2017-12-28 2017-12-28 Camera module, control method thereof, electronic device and storage medium Active CN109981938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711498466.9A CN109981938B (en) 2017-12-28 2017-12-28 Camera module, control method thereof, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711498466.9A CN109981938B (en) 2017-12-28 2017-12-28 Camera module, control method thereof, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN109981938A CN109981938A (en) 2019-07-05
CN109981938B true CN109981938B (en) 2020-11-20

Family

ID=67075707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711498466.9A Active CN109981938B (en) 2017-12-28 2017-12-28 Camera module, control method thereof, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN109981938B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933206B (en) * 2019-11-28 2021-04-16 Oppo广东移动通信有限公司 Electronic device
CN111372164B (en) * 2020-02-26 2021-09-10 瑞声科技(新加坡)有限公司 Method for eliminating false vibration, storage medium and electronic equipment
CN113364387A (en) * 2021-06-22 2021-09-07 广东湾区智能终端工业设计研究院有限公司 Voice coil motor control method and device and storage medium
CN113489839B (en) * 2021-07-30 2022-10-21 Oppo广东移动通信有限公司 Event reminding method and device, storage medium and electronic equipment
CN114727010B (en) * 2022-02-28 2023-08-22 荣耀终端有限公司 Control method, equipment and storage medium of camera
CN114827406A (en) * 2022-04-07 2022-07-29 北京瞰瞰智能科技有限公司 Electronic equipment noise elimination method, storage medium and camera
CN114885084A (en) * 2022-06-07 2022-08-09 维沃移动通信有限公司 Camera module and electronic equipment
CN116074615B (en) * 2023-03-07 2023-09-08 荣耀终端有限公司 Camera control method and device and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009282399A (en) * 2008-05-23 2009-12-03 Olympus Corp Ultrasonic motor driving device
CN105915776A (en) * 2016-06-30 2016-08-31 江西盛泰光学有限公司 DAC controlled focusing camera module
CN106680963A (en) * 2017-03-24 2017-05-17 维沃移动通信有限公司 Fixing method for moveable motor device and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009282399A (en) * 2008-05-23 2009-12-03 Olympus Corp Ultrasonic motor driving device
CN105915776A (en) * 2016-06-30 2016-08-31 江西盛泰光学有限公司 DAC controlled focusing camera module
CN106680963A (en) * 2017-03-24 2017-05-17 维沃移动通信有限公司 Fixing method for moveable motor device and mobile terminal

Also Published As

Publication number Publication date
CN109981938A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN109981938B (en) Camera module, control method thereof, electronic device and storage medium
CN107734228B (en) Camera module, control method thereof and electronic equipment
US9667870B2 (en) Method for controlling camera operation based on haptic function and terminal supporting the same
EP2770705B1 (en) Application control method and apparatus for mobile terminal, earphone device and application control system
EP2429155A1 (en) Mobile electronic device and sound playback method thereof
CN108646971B (en) Screen sounding control method and device and electronic device
EP3213321B1 (en) Variable rate adaptive active noise cancellation
CN110312038B (en) Information prompting method and device, electronic equipment and computer readable storage medium
CN104375811A (en) Method and device for processing sound effects
CN110931048B (en) Voice endpoint detection method, device, computer equipment and storage medium
CN108958697B (en) Screen sounding control method and device and electronic device
CN109040919B (en) Sound production method, sound production device, electronic device and computer readable medium
CN108810764B (en) Sound production control method and device and electronic device
CN109739465A (en) Audio-frequency inputting method and mobile terminal
CN108111729A (en) A kind of camera module, control method and mobile terminal
CN106998521A (en) speaker control method, device and terminal device
CN108322597A (en) Electronic equipment and its control method and device
CN109189360B (en) Screen sounding control method and device and electronic device
CN102420905A (en) Method and device for controlling mobile phone to play music by using gravity sensor
KR20150144702A (en) Haptically enabled device with motion controlling haptics
US9774289B2 (en) Method for driving vibrating motor
CN111787452A (en) TWS earphone, TWS earphone control method, TWS earphone control device and computer readable storage medium
CN108958631B (en) Screen sounding control method and device and electronic device
CN110545387A (en) shooting method and terminal equipment
KR20150069740A (en) Mobile terminal and operation method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant