Motor control method and electronic equipment
By dynamically adjusting the motor working voltage and using a voltage double module, the blur problem caused by jitter during the photo shooting process of electronic devices is solved, and power consumption is reduced, the battery life of the device is extended, and the user experience is improved.
Patent Information
- Application Number
- CN202410078246.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2025-01-03
Smart Images

Figure CN119254073A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a motor control method and an electronic device. Background Art
[0002] With the development of electronic technology, mobile phones, tablet computers and other electronic devices are generally equipped with cameras for taking pictures. However, when taking pictures in handheld scenes, the pictures are often blurred due to reasons such as device shaking. Electronic devices can perform anti-shake processing on the camera when taking pictures, but this will cause the electronic devices to generate more power consumption.
[0003] How to reduce the power consumption of electronic devices during the photo-taking process is an issue worth discussing. Summary of the invention
[0004] The present application provides a motor control method and an electronic device, which can reduce the power consumption of the electronic device during the photo-taking process.
[0005] In a first aspect, the present application provides a motor control method, which is applied to an electronic device, which includes a camera application, a motor, and a lens. The method includes: in response to a user's operation of turning on the camera application, the electronic device sets the operating voltage of the motor to a first voltage; in response to a first operation of a user changing the zoom ratio of the camera application, the electronic device moves the lens to a first position through the motor; the electronic device changes the operating voltage of the motor from the first voltage to a second voltage, which is less than the first voltage; the electronic device acquires a first image at the first position through the lens, and displays the first image in the camera application.
[0006] That is, when the camera application is turned on, the electronic device can set the power supply voltage of the motor's power supply to a first voltage, and then configure the power supply voltage of the motor's power supply based on the exposure timing of the image sensor. When in the exposure cycle, the power supply voltage of the motor's power supply is set to a second voltage, and the second voltage is less than the first voltage. When in a non-exposure cycle, the power supply voltage of the motor's power supply is set to the first voltage. After the camera is turned on, after detecting jitter or zoom, the electronic device uses a motor to push the lens to the target position to acquire an image frame. During the non-exposure cycle, when jitter or zoom is detected, the power supply inputs a first voltage to the motor. At this time, the motor's operating mode is high-speed mode. During the exposure cycle, when the electronic device detects jitter, the power supply inputs a second voltage to the motor. At this time, the motor's operating mode is low-speed mode)
[0007] By implementing the method provided in the first aspect, the electronic device can make the motor work in high-speed mode during the non-exposure period, and can quickly respond to the user's focus, zoom and other operations. During the exposure period, the motor works in low-speed mode, which can reduce the power consumption of the electronic device, extend the battery life of the electronic device, and improve the user experience.
[0008] In combination with the first aspect, in a possible implementation, the electronic device also includes a camera sensor, and before the electronic device changes the operating voltage of the motor from the first voltage to the second voltage, the method also includes: the electronic device determines that the camera sensor starts row exposure.
[0009] In this way, the electronic device can change the motor working voltage after the camera sensor starts to expose. The electronic device provides different working voltages for the motor according to the usage scenario, which reduces the power consumption of the electronic device and improves the user experience without affecting the user's use.
[0010] In combination with the first aspect, in a possible implementation, the electronic device determines that the image sensor starts to be exposed, specifically including: the electronic device receives a first trigger signal sent by a first pin of the image sensor, and the electronic device determines that the image sensor starts to be exposed.
[0011] In this way, the electronic device can change the working voltage of the motor when the line exposure starts, thereby reducing the power consumption of the electronic device during the line exposure process.
[0012] In combination with the first aspect, in a possible implementation, before the electronic device changes the operating voltage of the motor from the first voltage to the second voltage, the method further includes: the electronic device determines that the lens is in the first position within a preset time period.
[0013] In this way, the electronic device can change the motor operating voltage in advance after the lens is stabilized, further reducing the power consumption of the electronic device.
[0014] In combination with the first aspect, in a possible implementation, the electronic device also includes a Hall sensor, and the electronic device determines that the lens is in the first position within a preset time period, specifically including: the electronic device determines that the lens is in the first position within the preset time period based on the sensing data detected by the Hall sensor.
[0015] In combination with the first aspect, in a possible implementation, the electronic device also includes a driver integrated circuit, which is used to drive the motor to move, and the driver integrated circuit includes an interrupt pin. The electronic device determines that the lens is in the first position within a preset time period, specifically including: the electronic device detects a first interrupt signal output by the interrupt pin, and determines that the lens is in the first position within the preset time period.
[0016] In combination with the first aspect, in a possible implementation, after the electronic device acquires the first image frame at the first position through the lens, the method further includes: the electronic device changes the operating voltage of the motor from the second voltage to the first voltage.
[0017] In this way, the electronic device can switch the working voltage of the motor in time, so that the motor can respond quickly to different operations. During the photo-taking process, the user will not feel any response delay when performing other operations, thereby improving the user experience.
[0018] In combination with the first aspect, in a possible implementation, before the electronic device changes the operating voltage of the motor from the second voltage to the first voltage, the method further includes: the electronic device determines that the camera sensor ends row exposure.
[0019] In this way, when the user finishes taking pictures, the electronic device can switch the working voltage of the motor, so that the electronic device can respond to user operations other than taking pictures in a timely manner, reduce power consumption during the picture-taking process, and improve the user experience.
[0020] In combination with the first aspect, in a possible implementation, the electronic device determines that the camera sensor ends row exposure, specifically including: the electronic device receives a second trigger signal sent by a first pin of the camera sensor, and the electronic device determines that the camera sensor ends row exposure.
[0021] In combination with the first aspect, in a possible implementation, the electronic device determines that the camera sensor ends row exposure, specifically including: the electronic device receives an interrupt signal sent by the image signal processor, and the electronic device determines that the camera sensor ends row exposure.
[0022] In combination with the first aspect, in a possible implementation, the motor includes a voltage doubling module, which includes a voltage doubling circuit and a drive coil. After the electronic device sets the working voltage of the motor, it outputs the working voltage to the voltage doubling module; when the working voltage of the motor is set to a first voltage, the voltage doubling circuit is used to boost the first voltage input to the voltage doubling module to a third voltage and then output it to both ends of the drive coil; when the working voltage of the motor is set to a second voltage, the voltage doubling circuit is used to boost the second voltage input to the voltage doubling module to a fourth voltage and then output it to both ends of the drive coil; the drive coil is used to drive the motor to move.
[0023] In this way, the electronic device can multiply the operating voltage output to the motor, so that the electronic device can provide a smaller operating voltage to maintain the normal operation of the motor while meeting the high voltage requirements in the non-exposure mode.
[0024] In combination with the first aspect, in a possible implementation manner, the electronic device includes an application chip, and outputting the operating voltage to the voltage doubling module specifically includes: the electronic device outputs the operating voltage to the voltage doubling module through the application chip.
[0025] In combination with the first aspect, in a possible implementation manner, the electronic device includes a power amplifier, and outputting the operating voltage to the voltage doubling module specifically includes: the electronic device outputs the operating voltage to the voltage doubling module through the power amplifier.
[0026] In this way, the electronic device can use more modules to power the motor, so that the electronic device can support more camera modules, increasing the number of camera modules that the user can use simultaneously, and improving the user experience.
[0027] In combination with the first aspect, in one possible implementation, after the electronic device changes the operating voltage of the motor from the second voltage to the first voltage, the method further includes: the electronic device responds to a second operation of changing the zoom ratio of the camera application, and the electronic device moves the lens to a second position through the motor.
[0028] In this way, the electronic device can not only save power consumption during the photo-taking process, but also quickly respond to other operations of the user, thereby improving the user experience.
[0029] In a second aspect, an electronic device provided by an embodiment of the present application includes: a camera application, a motor, a lens, a processor and a memory; the motor is used to drive the lens to move in the direction of the optical axis and in a plane perpendicular to the optical axis, and the camera application runs in the processor; the motor, the lens and the memory are coupled to the processor, and the memory is used to store computer program code, which includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method of the first aspect.
[0030] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, causes the electronic device to execute the method of the first aspect.
[0031] In a fourth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device, and the chip system includes an application processor, an image sensor, a driver integrated circuit, a motor and a voltage doubling module; the application processor is used to output a variable voltage to the driver integrated circuit, the image sensor is used to perform line exposure and send a trigger signal to the application processor, the driver integrated circuit is used to drive the motor, and the voltage doubling module is used to increase the voltage applied to both ends of the drive coil of the motor; the application processor is used to call computer instructions so that the electronic device executes the method in the first aspect.
[0032] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the method described in the first aspect and any possible implementation of the first aspect.
[0033] It can be understood that the electronic device provided in the second aspect, the computer-readable storage medium provided in the third aspect, the chip system provided in the fourth aspect, and the computer program product provided in the fifth aspect are all used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1A is a schematic diagram of a scenario in which a camera application is turned on in an electronic device provided in an embodiment of the present application;
[0035] Figure 1B is a schematic diagram of a scenario in which an electronic device according to an embodiment of the present application changes a zoom ratio;
[0036] Figure 1C is a schematic diagram of a scene in which an electronic device performs focusing according to an embodiment of the present application;
[0037] Figure 1DThis is a schematic diagram of a scene in which an electronic device takes photos provided in an embodiment of the present application;
[0038] Figure 2A is a schematic diagram of a camera module of an electronic device provided in an embodiment of the present application;
[0039] Figure 2B is a schematic diagram of the camera module structure of the electronic device provided in an embodiment of the present application;
[0040] Figure 3 is a schematic diagram of a motor drive layout of an electronic device provided in an embodiment of the present application;
[0041] Figure 4A This is a schematic diagram of a voltage doubling circuit charging provided in an embodiment of the present application;
[0042] Figure 4B This is a discharge schematic diagram of a voltage doubling circuit provided in an embodiment of the present application;
[0043] Figure 4C It is a waveform timing curve of the voltage of the capacitor C1 and the coil current in the circuit during the charging and discharging process of the voltage doubling circuit provided in the embodiment of the present application;
[0044] Figure 4D This is another schematic diagram of charging of a voltage doubling circuit provided in an embodiment of the present application;
[0045] Figure 4E This is another schematic diagram of charging of a voltage doubling circuit provided in an embodiment of the present application;
[0046] Figure 5 is a flow chart of a motor control method provided in an embodiment of the present application;
[0047] Figure 6 is a schematic diagram of module interaction of a motor control method provided in an embodiment of the present application;
[0048] Figure 7 is a schematic diagram of module interaction of another motor control method provided in an embodiment of the present application;
[0049] Figure 8 is another schematic diagram of a motor drive layout of an electronic device provided in an embodiment of the present application;
[0050] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0051] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.
[0052] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0053] In an embodiment of the present application, the electronic device may include a lens, a motor, and a camera application. The lens may be used to acquire an image frame. The motor may be used to change the position of the lens so that the lens can focus and zoom. The motor may also maintain the position of the lens unchanged to achieve a lens anti-shake function. The electronic device supplies power to the lens, and when the electronic device turns on the camera application, the electronic device outputs an operating voltage to the motor so that the motor can move and push the lens.
[0054] Depending on whether the motor is used for image stabilization, it can be divided into a motor that is only used for auto focus (AF) and a motor that also has an optical image stabilization (OIS) function (also known as "optical image stabilization"). The motor drives the lens to move in the direction of the optical axis to achieve zoom, and the motor drives the lens to move in the plane perpendicular to the optical axis to achieve image stabilization.
[0055] According to the different motor driving forces, motors can be divided into: voice coil motor (VCM), shape memory alloy (SMA) motor and piezoelectric motor, etc. Among them, VCM uses the Lorentz force between the energized coil and the magnet to drive the lens movement to achieve focus or anti-shake function. SMA motor uses the unique deformation ability of memory metal to pull the lens movement to achieve focus or anti-shake function. Piezoelectric motor can control the phase difference of two AC voltages to make the piezoelectric ceramic plate reach a preset resonant motion state, and convert this resonant motion into a designed motion state (such as linear motion) through structural parts, driving the lens to move to achieve focus or anti-shake function.
[0056] The motor and its connected driver IC form the most basic motor drive system. The driver IC can output current to the motor to drive the motor to work, thereby driving the lens to move. Generally, the driver IC uses a linear current or pulse width modulated current that is not higher than the supply voltage to drive the motor.
[0057] Figure 1A-Figure 1D An exemplary scenario of an electronic device taking a photo is shown.
[0058] Figure 1A The user interface 10A of the electronic device 100 is shown as an example. Figure 1A As shown, the user interface 10A may include icons of multiple application programs, for example, an icon 101 of a camera application. In some examples, the user interface 10A may also be referred to as a desktop of the electronic device 100.
[0059] The user may click on the icon 101 , and in response to the user operation, the electronic device 100 may display the user interface 10B.
[0060] Figure 1B The user interface 10B of the electronic device 100 is shown as an example. Figure 1B As shown, the user interface 10B may include image information acquired by the lens, and the image information includes the photographed object 102. The user interface 10B may also include a plurality of controls for changing the shooting mode of the camera application, for example, a zoom ratio control 103. The user may click on the zoom ratio control 103 to change the focal length of the lens. The change in the focal length of the lens may also trigger a change in the user interface. For example, when the electronic device 100 displays the user interface 10B, the user clicks on the zoom ratio control 103 to change the focal length of the lens from one focal length to two focal lengths. In response to the operation, the electronic device 100 may display the user interface 10C.
[0061] Figure 1C The user interface 10C of the electronic device 100 is exemplarily shown. Figure 1C As shown, user interface 10C may include photographed object 104. It should be understood that photographed object 102 and photographed object 104 are the same object in the physical world. Because the focal length of the lens of electronic device 100 is changed from one focal length to two focal lengths, the size of photographed object 104 displayed in user interface 10C is about twice that of photographed object 102 in user interface 10B.
[0062] Users can also tap the capture control in the UI to take a photo.
[0063] Figure 1D The user interface 10D of the electronic device 100 is exemplarily shown. Figure 1DAs shown, the user interface 10D may include a shooting control 105. When the user clicks the shooting control 105, in response to the operation, the electronic device 100 may take a picture of the subject through the lens.
[0064] When the user Figure 1A As shown in , when the camera application is turned on, the electronic device 100 can respond to the user operation and initialize the working voltage of the motor and supply power to the motor when the camera application is turned on. After the motor receives the working voltage from the electronic device, it can move the lens by itself. Figure 1B As shown in , when the zoom ratio of the camera application is changed, the electronic device can call the motor to change the position of the lens to achieve zooming in response to the operation of changing the focal length. For example, when the electronic device is at a one-fold focal length, the position of the lens is at position 1. In response to the operation of changing the focal length to a double focal length, the electronic device 100 calls the motor to push the lens to position 2, changing the focal length of the lens to a double focal length. When the user Figure 1D When the shooting control is clicked, the electronic device 100 can acquire image information by line exposure or other methods. In the process of line exposure, the electronic device 100 can also call the motor to maintain the position of the lens at position 2 to reduce blur caused by device shaking when taking pictures.
[0065] In the present application embodiment, Figure 2A As shown, the electronic device may include a camera module 201, and the above-mentioned electronic device photographing process is performed based on the camera module 201. The specific structure of the camera module 201 can be referred to Figure 2B . Figure 2B The structural diagram of the camera module of an electronic device is shown exemplarily.
[0066] like Figure 2B As shown, the camera module 201 includes: a lens, an AF driver IC, an AF coil, a magnet, an OIS coil, an OIS driver IC, a Hall sensor, a camera sensor, and a gyroscope.
[0067] Among them, the AF coil and OIS coil can generate a magnetic field through current changes. The magnetic field interacts with the magnet to generate force and movement to push the lens. The AF driver IC can control the power supply current and direction of the AF coil. The OIS driver IC can control the power supply current and direction of the OIS coil. The Hall sensor can detect the strength of the magnetic field. The electronic device can determine the position of the lens based on the data such as the magnetic field strength detected by the Hall sensor and the data such as the magnetic field strength. The lens is responsible for focusing light and controlling the entry of light. It can focus light to the focal plane position on the camera sensor by adjusting the position and shape of the lens. The camera sensor can obtain image data through line exposure when taking pictures. The gyroscope can detect changes in the posture of the lens, including rotation, tilt, and shake.
[0068] In one possible implementation, when the electronic device is taking a photo, in response to an operation of changing the focal length, the electronic device determines the target position of the lens based on the operation of changing the focal length. Then, the electronic device 100 can call the AF driver IC to control the current size and direction in the AF coil, so that the magnetic field generated by the AF coil interacts with the magnet to generate a corresponding force to push the lens to the target position. Then, the electronic device calls the camera sensor to obtain image information through line exposure. In this process, the electronic device can also detect the shaking of the electronic device lens through a gyroscope, and call the OIS driver IC to control the OIS coil according to the shaking situation. The electronic device 100 can maintain the position of the lens unchanged through the Lorentz force generated by the interaction between the OIS coil and the magnet, thereby achieving lens anti-shake.
[0069] In the above content, the AF / OIS driver IC controls the current size and direction in the AF / OIS coil, which is the way the electronic device drives the motor. A typical motor drive solution is that the driver IC outputs a linear current to drive the VCM to drive the lens to move. Linear current refers to a current that changes continuously and linearly. Figure 3 As shown, the driver IC can be connected to the application processor (AP) through a bus (such as an I2C bus), receive power supply and control signals from the AP, and control the current of the VCM coil. There is an initial spring in the motor. When the motor is in the initial position, the Lorentz force is equal to the reaction force of the initial spring. After the linear current passes through the coil, a magnetic field is generated, which attracts or repels the magnet to generate the Lorentz force, so that the motor re-enters the force balance position to drive the motor to move. For example, if the forward current increases, the forward Lorentz force will be greater than the reaction force of the initial spring, and the lens will move in the forward direction. As the movement distance increases, the deformation of the spring increases, causing the reaction force to increase accordingly, until the two forces are balanced again, and the lens is stabilized in the new position.
[0070] In addition, the AP can also be connected to the camera sensor, and the AP can receive the signal output by the trigger (strobe) pin of the camera sensor, and the signal output by the strobe pin can also be output by the camera sensor to the driver IC. For the signal output by the strobe pin, please refer to the description in the following related content, which will not be repeated here.
[0071] In the embodiment of the present application, the motor of the electronic device 100 may include the AF motor and the OIS motor in the above content. The electronic device supplies power to the motor through the power supply, and controls the voltage output by the power supply through the power management system. When the electronic device 100 turns on the camera application, the electronic device 100 initializes the motor working voltage, that is, initializes the power supply voltage for powering the motor. At this time, the electronic device 100 does not output voltage to the motor. When the electronic device 100 detects operations such as focus and zoom, the voltage is output to the AF motor in the motor, and the lens position is quickly moved by the AF motor. When the electronic device 100 detects that the electronic device is shaking, the voltage is output to the OIS motor, and the lens is maintained stable by the OIS motor. For the convenience of description, the AF motor and the OIS motor are collectively referred to as motors in the following content. In general, the requirements for the lens movement speed of the electronic device in non-exposure and exposure scenes are different. In the non-exposure scene, the electronic device can respond to the focus, zoom and other operations input by the user, and quickly push the lens to achieve functions such as focus and zoom. The electronic device can also detect the shaking of the electronic device, maintain the stability of the lens through the motor, and achieve lens anti-shake. In the non-exposure scene, since the push of the lens at this time will not affect the final image quality, the motor needs to move quickly to push the lens to the target position as much as possible to achieve anti-shake, as the main compensation time period for achieving the displacement of the lens to the target position. In the exposure scene, if the motor still moves quickly, it will lead to poor imaging effect. Therefore, during the exposure process, the electronic device only needs the motor to move at a low speed to achieve low-speed compensation for the target position. The movement of the motor is achieved through the interaction between the coil and the magnet. For the interaction between the coil and the magnet, please refer to the description in the above content, which will not be repeated here. During the exposure process, the low-speed mode is adopted considering the imaging problem, and the electronic device does not need to provide a higher operating voltage to the motor. The electronic device can provide a lower operating voltage to the motor during the exposure process, and the main lens displacement push is achieved at a high speed during the non-exposure time.
[0072] However, in the current shooting scenarios, electronic devices usually do not distinguish between the focus, zoom, anti-shake and other scenarios in the above-mentioned non-exposure scenarios, and the exposure anti-shake and other scenarios. Regardless of focusing, zooming, anti-shake during exposure or other scenarios, the working voltage provided by the electronic device to the motor is the same. In the non-exposure scenario, in order for the motor to quickly push the lens to the target position, the electronic device 100 inputs a relatively high working voltage to the motor. In the anti-shake scenario during exposure, the motor does not require a higher working voltage to change the position of the lens. Therefore, when the working voltage input to the motor by the electronic device 100 in the exposure anti-shake scenario is the same as the working voltage input to the motor in the non-exposure scenario, it will cause a waste of power consumption of the electronic device 100.
[0073] In order to save power consumption of the electronic device 100, an embodiment of the present application provides a motor control method. In this method, the electronic device provides a variable operating voltage for the motor according to different working scenarios of the motor (e.g., non-exposure scenario, exposure scenario), so that the motor can obtain different operating voltages in different working scenarios. In a scenario where the motor needs to move at high speed, the electronic device outputs a high voltage to the motor. In a scenario where the motor needs to move at low speed, the electronic device outputs a low voltage to the motor. In this way, the power consumption of the electronic device can be saved.
[0074] In a possible implementation, the electronic device may further include a voltage doubling module. The electronic device may boost the working voltage input to the motor through the voltage doubling module. Thus, through the voltage doubling module, the electronic device may output a smaller working voltage, thereby further saving the power consumption of the electronic device.
[0075] The voltage doubling module provided in the embodiments of the present application will be described below with reference to the accompanying drawings.
[0076] In the scheme of using linear current to drive VCM, when the input voltage (such as the output voltage of the driver IC) remains unchanged, the maximum coil current is: I = Uin / Rz, where Uin represents the input voltage and RZ represents the coil impedance. From the calculation formula of the Lorentz force F = B*L*I, it can be seen that the increase in coil current will eventually lead to an increase in motor thrust. In this formula, F represents the Lorentz force, B represents the magnetic flux density, L represents the length of the wire in the magnetic field, and I represents the current in the coil.
[0077] Therefore, in a possible implementation, before the driver IC outputs current to drive the VCM, the electronic device may first amplify the current output to the VCM coil through a voltage doubling module.
[0078] The voltage doubling module may include a voltage doubling circuit and a VCM coil. Figure 3As shown, the output end of the driver IC is connected to the input end of the voltage doubler circuit, and the output end of the voltage doubler circuit is connected to the VCM coil, which can be used to multiply the output voltage of the driver IC and output it to both ends of the VCM coil load, thereby multiplying the current flowing through the VCM coil.
[0079] In the embodiment of the present application, the voltage doubling circuit can be arranged on the main board of the electronic device and electrically connected to the driver IC and the VCM coil. The voltage doubling circuit can also be integrated in the application module (such as a camera module, a button module, etc.), and can even be integrated in the VCM, for example, a voltage doubling circuit welding pad is etched on a part of the flexible printed circuit board (FPCB) built into the VCM or a metal part. The voltage doubling circuit can also be partially or fully integrated in the driver IC. Partial integration in the driver IC can refer to the integration of logic devices such as switches in the voltage doubling circuit in the IC.
[0080] Figure 4A FIG. 1 is a schematic diagram of a voltage doubling circuit. Figure 4A As shown, the voltage doubling circuit may be composed of a capacitor C1, a diode D1, a diode D2, a single-pole double-throw switch S1, and a VCM coil. Figure 4A "RZ" in the figure may represent the equivalent load of the coil. The input voltage Uin of the voltage doubler circuit may be an alternating current signal, specifically a PWM voltage signal.
[0081] The voltage doubler circuit amplifies the current output to the VCM coil by charging and discharging the capacitor C1. Figure 4A-4B Shows Figure 4A A charging and discharging schematic diagram of the voltage doubler circuit shown.
[0082] exist Figure 4A-4B In the example, switch S1 is connected to the T1 terminal, selectively turning on D1.
[0083] like Figure 4A As shown in the figure, when the input voltage signal is in the negative half cycle, the voltage polarities of the input terminals a and b are negative and positive respectively, the diode D1 is turned on, the capacitor C1 is charged, and the voltage polarity of the capacitor C1 is positive on the right and negative on the left. Soon after, the capacitor voltage is charged to be close to the input voltage. In this article, this charging process can be referred to as "one-time capacitor charging".
[0084] like Figure 4BAs shown, when the input voltage signal is switched to the positive half cycle, the voltage polarities of the input terminals a and b are positive and negative respectively, the diode D1 is not conducting, the capacitor C1 is discharged, and the voltage on the capacitor C1 is superimposed on the input voltage to form an output voltage, which supplies power to the coil, and the current flowing through the coil is approximately 2*I. In this article, this discharge process can be referred to as "one-time capacitance superimposed on input voltage discharge". For the description of I, please refer to the previous text and will not be repeated here.
[0085] Figure 4B In the embodiment, the direction of the coil current is from the first end of the coil to the second end of the coil. The first end of the coil is an end coupled to the output end a, and the second end of the coil 13 is an end coupled to the output end b.
[0086] When the input voltage signal reaches the next negative half cycle and positive half cycle, the voltage doubler circuit repeats Figure 4A The charging process shown Figure 4B The discharge process is shown.
[0087] Figure 4C The timing curves of the capacitor voltage UC1 and the coil current Icoil of the capacitor C1 during the charging and discharging process are shown.
[0088] like Figure 4C As shown, when the input voltage signal (Uin) is in the negative half cycle, the capacitor C1 is charged, and the capacitor voltage rises rapidly and then tends to be stable. In the steady state, the capacitor voltage is approximately one times the input voltage; at this time, the coil current is almost zero. When the input voltage signal switches to the positive half cycle, the capacitor C1 discharges. Since the resistance of the discharge circuit further includes the coil load, the discharge impedance is much larger than the charging impedance, so the discharge time will be significantly longer than the charging time. The capacitor voltage can still maintain nearly one times the input voltage, and it will not be significantly reduced until it has been a long time; at this time, at the beginning of the discharge, the coil current does not suddenly change, but gradually rises from zero until it reaches a steady state. In the steady state, the coil current tends to be stable, close to direct current, and its value is approximately 2*I. For the description of I, please refer to the previous text and will not be repeated here. Generally, the coil current reaches a steady state after 5 τ, τ is the time constant of the charge and discharge circuit, τ = Rcircuit*C1. Here, Rcircuit is the resistance of the charge and discharge circuit, and its value can be determined as: Rcircuit=power supply internal resistance+on-resistance of switch S1+on-resistance of diode D1 / D2.
[0089] The input voltage Uin can be a PWM signal, and its discharge duty cycle and frequency affect the duration of the coil current Icoil in a steady state. In addition, the level of the input voltage Uin affects the size of the coil current Icoil. These factors will ultimately affect the size of the average motor thrust within the cycle.
[0090] In the embodiment of the present application, the discharge duty cycle refers to the ratio of the capacitor discharge time to the PWM cycle within a PWM cycle. Figure 4A-4B In the embodiment, switch S1 turns on D1, and capacitor C1 discharges in the positive half cycle of the input voltage, so the discharge duty cycle is the ratio of the positive half cycle time of the PWM waveform to the PWM period. Figure 4D-Figure 4E In the embodiment, switch S1 selectively turns on D2, and capacitor C1 discharges in the negative half cycle of the input voltage. Therefore, the discharge duty cycle is the ratio of the negative half cycle time of the PWM waveform to the PWM period.
[0091] Figure 4D-Figure 4E Shows Figure 4A Another charging and discharging method of the voltage doubler circuit shown in FIG. Figure 4D-Figure 4E In the embodiment, switch S1 is connected to terminal T2, selectively turning on D2.
[0092] like Figure 4D As shown, when the input voltage signal is in the positive half cycle, the voltage polarities of the input terminals a and b are positive and negative respectively, the capacitor C1 is charged, the voltage polarity is positive on the left and negative on the right, and soon it is charged until the capacitor voltage is close to the input voltage, completing the "one-fold capacitor charging".
[0093] like Figure 4E As shown, when the input voltage signal is switched to the negative half cycle, the voltage polarities of the input terminals a and b are negative and positive respectively, D2 is not conducting, capacitor C1 is discharged, and the voltage on capacitor C1 is superimposed on the input voltage to form an output voltage, which supplies power to the coil. The current flowing through the coil is approximately 2*I, completing the "one times capacitance superimposed on input voltage discharge".
[0094] Figure 4E In the embodiment, the direction of the coil current is from the second end of the coil to the first end of the coil.
[0095] When the input voltage signal reaches the next positive half cycle and negative half cycle, the voltage doubler circuit repeats Figure 4D The charging process shown Figure 4E The discharge process is shown.
[0096] In addition, according to the right-hand screw rule, when current flows through the coil, the coil can generate an attractive force or a repulsive force relative to its matching magnet, thereby driving the lens or other components to be driven to move. Figure 4B The coil current and Figure 4E The coil currents shown in the figure have opposite directions, so they will generate two opposite driving forces, which can drive the lens to move in these two directions.
[0097] By applying the voltage doubling module, the electronic device can use a smaller voltage to power the motor, thus saving the power consumption of the electronic device.
[0098] A motor control method provided by an embodiment of the present application is described below with reference to the accompanying drawings.
[0099] Figure 5 FIG. 1 shows an example flow chart of the motor control method. Figure 5 As shown, the motor control method provided by the embodiment of the present application may include the following steps:
[0100] S501. In response to the operation of turning on the camera, the electronic device initializes the operating voltage of the motor to voltage 1.
[0101] When the electronic device 100 does not turn on the camera, the electronic device 100 will not supply power to the motor. After the electronic device 100 responds to the operation of turning on the camera, the working voltage of the motor, that is, the power supply voltage for powering the motor, will be initialized. When responding to the corresponding operation, the motor will be powered by the power supply and the motor will start to work.
[0102] For example, after the electronic device 100 detects a click operation on the camera application icon, the camera application is started and the camera application interface is displayed. At the same time, the motor working voltage is initialized, and the power supply voltage for the motor is set to voltage 1, and the motor is temporarily not powered.
[0103] It is understandable that when the electronic device 100 turns on the camera, the electronic device 100 can set the output voltage of the power supply to the motor to voltage 1. When the exposure has not yet started, if the camera of the electronic device 100 needs to focus or anti-shake, the power supply will input the voltage 1 to the motor. That is, when focusing or anti-shake is not required, the power supply may not supply power to the motor. In a possible implementation, the electronic device 100 can boost the voltage input to the motor through a voltage doubling module. Specifically, the electronic device 100 can first input the set motor working voltage to the voltage doubling module, and then input it to the motor after the voltage doubling module boosts it. For example, the electronic device 100 sets the working voltage of the motor to voltage 1, and inputs voltage 1 to the voltage doubling module. The voltage doubling module boosts voltage 1 to voltage 3, and outputs voltage 3 to the motor. The motor can work at voltage 3. Voltage 3 is greater than voltage 1, and the maximum movement speed that the motor can reach when working at voltage 3 is greater than the maximum movement speed when working at voltage 1. Similarly, if the working voltage required by the motor is voltage 1, the electronic device 100 can set the working voltage of the motor to voltage 5 and input voltage 5 to the voltage doubling module. The voltage doubling module can boost voltage 5 to voltage 1 and output voltage 1 to the motor. Voltage 5 is less than voltage 1. In this way, when the working voltage required by the motor remains unchanged at voltage 1, the electronic device 100 can use a smaller voltage 5 to power the motor, saving power consumption of the electronic device 100.
[0104] The motor operating voltage set by the electronic device 100 (ie, the voltage input to the voltage doubling module) can be determined according to the voltage actually required for the motor to operate, and is not limited in the embodiments of the present application.
[0105] Generally, the electronic device 100 can power the motor via the application processor AP.
[0106] In another possible implementation, the electronic device can also power the motor through a power amplifier. For details about the power supply of the motor, please refer to the following description, which will not be described here.
[0107] S502: In response to changing the zoom ratio or focus operation of the lens or detecting that the electronic device is shaking, the electronic device moves the position of the lens through a motor.
[0108] In response to changing the zoom ratio or focus of the lens or detecting the shaking of the electronic device, the electronic device supplies power to the motor through the power supply, and after the motor starts working, it can push the position of the lens. When the electronic device responds to changing the zoom ratio or focus operation of the lens, the motor will push the lens to the corresponding target lens position. For example, when the user sets the zoom ratio to zoom ratio 1 in the camera application interface, the electronic device responds to the operation of changing the zoom ratio to zoom ratio 1, confirms that the lens position corresponding to zoom ratio 1 is position 1, moves the lens to position 1 through the motor, and displays the corresponding interface when the lens is zoom ratio 1 in the camera application interface.
[0109] In this process, the motor works at voltage 1 and can move at high speed to greatly and quickly push the lens and change the position of the lens. S503. The electronic device changes the working voltage of the motor from voltage 1 to voltage 2 and acquires an image frame through the lens.
[0110] When the electronic device starts to expose and acquire image frames, there is no need for a motor to move the lens quickly. However, when the user holds the electronic device, there will be slight shaking, which will cause the acquired image frames to be blurred. Therefore, the electronic device needs to use a motor to stabilize the lens. When stabilizing, the amplitude and speed of the lens shaking are smaller than when the zoom ratio is changed. Therefore, the motor movement speed and amplitude required for stabilization during exposure are both smaller.
[0111] Therefore, before the electronic device starts to acquire image frames, the electronic device can set the operating voltage of the motor to voltage 2. Generally, before the electronic device 100 changes the operating voltage of the motor from voltage 1 to voltage 2, the electronic device 100 can also confirm that the camera sensor starts to perform line exposure. The method for the electronic device 100 to confirm that the camera sensor starts to perform line exposure may include: detecting a trigger signal 1 sent by a trigger pin. After the electronic device confirms that the camera sensor starts to perform line exposure, the power supply voltage for the motor is set to voltage 2. After the electronic device is detected to be shaking, voltage 2 is output to the motor, and the motor can operate at voltage 2, which is less than voltage 1. The motor moves at a low speed to maintain the stability of the lens.
[0112] In another possible implementation, after determining that the lens is stable, the electronic device 100 may change the working voltage of the motor from voltage 1 to voltage 2. For the content related to the electronic device 100 determining that the lens is stable, please refer to the description in the following content, which will not be repeated here.
[0113] Specifically, the electronic device 100 can input voltage 2 to the voltage doubling module. The voltage doubling module boosts voltage 2 to voltage 4 and then outputs it to the motor. The electronic device 100 can also input voltage 6 to the voltage doubling module, and the voltage doubling module boosts voltage 6 to voltage 2 and then outputs it to the motor. Wherein voltage 2 is less than voltage 4, and voltage 6 is less than voltage 2.
[0114] S504. After the electronic device acquires the image frame, it changes the operating voltage of the motor from voltage 2 to voltage 1.
[0115] After the electronic device acquires the image frame, it needs to support the motor to quickly push the lens again to respond to other user operations (such as focus, zoom, etc.), so it is necessary to change the working voltage of the motor to a higher voltage again. For example, the electronic device changes the working voltage of the motor from voltage 2 to voltage 1.
[0116] Generally, before the electronic device 100 changes the working voltage of the motor from voltage 2 to voltage 1, the electronic device 100 may also confirm that the camera sensor has finished row exposure. The method for the electronic device 100 to confirm that the camera sensor has finished row exposure may include: detecting a trigger signal 2 sent by a trigger pin, and detecting an endoffile (EOF) signal sent by an image frame signal processor.
[0117] Figure 6 FIG. 1 shows an interactive schematic diagram of a motor control method. Figure 6 As shown, the electronic device 100 may include an application processor AP and a camera module. The AP may include a power management system. The camera module may include a camera sensor, a driver integrated circuit, and a motor. The camera module may be specifically described in the above Figure 2BThe introduction in will not be repeated here.
[0118] like Figure 6 As shown, the motor control method provided in the embodiment of the present application may include the following steps:
[0119] S601a. The power management system outputs a high voltage management signal.
[0120] S601b. The driver integrated circuit applies a high current to the drive coil.
[0121] S601c. Motor moves at high speed.
[0122] The above steps S601a-S601c are the process of initializing the motor working voltage in response to the operation of opening the camera application by the electronic device 100. Among them, the power management system is used to set the working voltage of the motor and adjust the voltage output to the motor by the electronic device 100 through the voltage management signal. The driver integrated circuit is used to control and drive the motor. The driver integrated circuit can obtain the required power supply voltage from the power management system and control the operation of the motor drive coil according to the voltage management signal. The driver integrated circuit can adjust the current output to the drive coil based on the obtained power supply voltage and the voltage management signal. The driver integrated circuit can be an OIS driver IC. The OIS driver IC can receive an image stabilization (anti-shake) instruction from the electronic device 100, and control the current and direction of the motor drive coil according to the instruction, thereby changing the movement speed and direction of the motor. The electronic device 100 pushes the lens through the motor so that the lens can adjust its position in real time to offset the jitter and vibration when the user holds the electronic device, thereby achieving image stabilization.
[0123] The high voltage may be voltage 1 or voltage 3 in the above content. The high current may be the current generated when the driver integrated circuit is applied with a high voltage. When the high voltage is voltage 1, the high current may be current 1.
[0124] For example, the voltage range of the high voltage in the embodiment of the present application may be 3.1 V to 3.3 V. The embodiment of the present application does not limit the specific value range of the high voltage. S602. The camera sensor starts to expose the line.
[0125] In response to the photo-taking operation, the electronic device 100 starts row exposure with the camera sensor. Row exposure is a way for the electronic device 100 to obtain image frame information. During row exposure, pixels in the same row on a frame are exposed at the same time, and the exposure start time of different rows is different. Generally, row exposure starts from the first row at the top of the image frame and is exposed downward in sequence. The exposure time of each row is the same.
[0126] In a possible implementation, when the image sensor starts to perform line exposure, the strobe pin of the image sensor sends a trigger signal 1 to the application processor. The trigger signal 1 indicates that the image sensor starts to perform line exposure.
[0127] S603. The power management system changes the voltage management signal from a high voltage to a low voltage.
[0128] After the application processor receives the trigger signal 1, the power management system in the application processor changes the voltage management signal from high voltage to low voltage. When the power management system outputs the low voltage management signal, the power supply voltage to the motor is low voltage.
[0129] For example, the voltage range of the low voltage in the embodiment of the present application may be 1.7 V to 1.9 V. The embodiment of the present application does not limit the specific value range of the low voltage.
[0130] Exemplarily, the high voltage may be the voltage 1 mentioned above, and the low voltage may be the voltage 2 mentioned above. In response to the operation of starting the camera application, the electronic device 100 sets the motor operating voltage to voltage 1, and the power management system outputs a voltage management signal of voltage 1. Subsequently, in response to the trigger signal 1, the power management system of the electronic device 100 outputs a voltage management signal of voltage 2.
[0131] S604. The driving integrated circuit applies a low current to the driving coil.
[0132] The low current is the current generated in the driver integrated circuit after the low voltage is input into the driver integrated circuit.
[0133] For example, when the application processor inputs voltage 2 to the driver integrated circuit, the low current may be current 2. The driver integrated circuit may apply current 2 to the drive coil.
[0134] S605. The motor's motion state changes to low-speed motion to maintain a steady state.
[0135] When a low current is applied to the driving coil of the motor, the driving coil can drive the motor to move at a low speed. When the motor moves at a low speed, it can maintain its position stable when the electronic device 100 shakes, thereby achieving lens anti-shake.
[0136] By implementing the above steps S602-S605, the electronic device 100 can maintain the steady state of the lens during the line exposure process, avoid the influence of some possible jitters, and obtain clear pictures.
[0137] S606. The camera sensor ends row exposure.
[0138] When the electronic device 100 captures a frame of image, after the camera sensor has finished exposing the last line of the image frame, it will send a trigger signal 2 to the application processor through the strobe pin. The trigger signal 2 indicates that the camera processor has finished exposing the line.
[0139] S607. The power management system changes the voltage management signal from a low voltage to a high voltage.
[0140] When the power management system outputs a high voltage management signal, the power supply voltage to the motor is a high voltage.
[0141] For example, after the electronic device 100 detects the trigger signal 2 , the voltage management signal output by the power management system is changed from a voltage management signal of voltage 2 to a voltage management signal of voltage 1 .
[0142] S608. The driving integrated circuit applies a high current to the driving coil.
[0143] For example, the electronic device 100 inputs a voltage 1 to the driving integrated circuit. The driving integrated circuit generates a current 1 under the voltage 1 and applies the current 1 to the driving coil.
[0144] S609. The motor motion state is changed to high-speed motion.
[0145] For example, after the driving coil receives the current 1, the motor is driven to move again at the movement speed corresponding to the current 1, so that the movement state of the motor changes to high-speed movement.
[0146] In another possible implementation, after the camera sensor finishes the line exposure, the image signal processor generates an EOF interrupt. The electronic device 100 can detect the interrupt signal generated by the image signal processor. When the electronic device 100 detects the EOF interrupt signal, the electronic device 100 confirms that the camera processor has finished the line exposure at this time, and it is no longer necessary to perform anti-shake on the lens, and sets the working voltage of the motor to a high voltage, waiting to respond to the zoom operation that may occur next. In this implementation, the electronic device 100 can still detect the trigger signal output by the camera sensor. After detecting the trigger signal, the electronic device 100 confirms that the camera sensor starts to perform line exposure, and can set the motor working voltage to a low voltage, so that the motor moves at a low speed to achieve lens anti-shake.
[0147] For the interaction between the various modules involved in this implementation, please refer to Figure 7 , Figure 7 A schematic diagram of module interaction of the motor control method is shown.
[0148] S701a. The power management system outputs a high voltage management signal.
[0149] S701b. The driver integrated circuit applies a high current to the drive coil.
[0150] S701c. Motor moves at high speed.
[0151] In response to the operation of starting the camera application, the electronic device 100 initializes the operating voltage of the motor to a high voltage. Please refer to the description of steps S601a-S601c in the above content, which will not be repeated here.
[0152] S702a. The camera sensor starts exposure.
[0153] In response to the photo-taking operation, the electronic device 100 causes the camera sensor to start line exposure and obtain image frame data. When the camera sensor starts line exposure, it still sends a trigger signal to the application processor AP, which indicates that the camera sensor starts line exposure and the lens needs to be anti-shake operated at this time. The trigger signal can be the trigger signal 1 in the above description of step S602.
[0154] S702b. The image signal processor processes the row exposure data.
[0155] After the camera sensor obtains the exposure data of the image frame through line exposure, the exposure data is sent to the image signal processor, and the image signal processor processes the exposure data. Generally, the camera sensor sends the exposure data of one line of image frame to the image signal processor at a time, and the image signal processor processes the exposure data of one line of image frame at a time.
[0156] S703. The power management system changes the voltage management signal from a high voltage to a low voltage.
[0157] S704. The driving integrated circuit applies a low current to the driving coil.
[0158] S705. The motor's motion state changes to low-speed motion to maintain a steady state.
[0159] For steps S703 - S705 , reference may be made to the above description of steps S603 - S605 .
[0160] S706. The camera sensor ends row exposure.
[0161] After the camera sensor sends the exposure data of the last row of the image frame to the image signal processor, the row exposure ends.
[0162] S707. After the image signal processor processes the last line of exposure data, an eof interrupt is generated.
[0163] The image signal processor continuously processes the exposure data sent by the camera sensor during the line exposure process. After processing the last line of exposure data obtained by the camera sensor through line exposure, the image signal processor generates an eof interrupt, which indicates that the line of exposure data is the last line of data in this line exposure, and there is no subsequent exposure data to be processed. The image signal processor sends the eof interrupt to the application processor AP.
[0164] S708. After receiving the eof interrupt, the application processor changes the voltage management signal output by the power management system from a low voltage to a high voltage.
[0165] After receiving the EOF interrupt, the application processor confirms that the camera sensor has finished row exposure and the image signal processor has processed the last row of exposure data, so there is no need for lens stabilization. Therefore, the voltage management signal is changed to a high voltage management signal, so that the motor can move at high speed again to respond to possible zoom operations.
[0166] S709. The driving integrated circuit applies a high current to the driving coil.
[0167] S710. The motor motion state is changed to high-speed motion.
[0168] The electronic device 100 applies a high voltage to the driving integrated circuit, and the driving integrated circuit applies a high current to the driving coil, and the driving coil drives the motor to move at a high speed under the high current. For details, please refer to the description of step S608 and step S609 in the above content, which will not be repeated here.
[0169] In the above two possible implementations, the electronic device 100 can detect a trigger signal or an interrupt signal, and confirm the row exposure state of the camera sensor through the trigger signal or the interrupt, and set the working voltage of the motor according to the row exposure state. After the camera sensor starts row exposure, the working voltage of the motor is set to a low voltage, and the motor can move at a low speed to maintain the stability of the lens. After the camera sensor ends row exposure, the electronic device 100 sets the working voltage of the motor to a high voltage, and the motor can move at a high speed to focus and zoom.
[0170] It can be seen that when the camera sensor is exposed, the electronic device 100 needs to set the working voltage of the motor to a low voltage to achieve anti-shake. It should be understood that if the user wants to take a clear image frame, the user has completed operations such as focusing or zooming before the camera sensor starts to expose the line. At this time, the lens is already in the target position and will not move significantly. The target position is the lens position corresponding to the focus or zoom operation input by the user to the electronic device 100. Therefore, in another possible implementation, when the lens is stable (the movement amplitude of the lens within the preset time is less than the preset amplitude), the electronic device 100 can perform anti-shake on the lens. In this way, the electronic device 100 can set the working voltage of the motor to a low voltage earlier, further reducing the power consumption of the electronic device 100. It should be understood that in the embodiment of the present application, the lens is driven by a motor, so the movement of the lens can be equivalent to the movement of the motor, and the movement amplitude of the detection motor is the movement amplitude of the detection lens.
[0171] The method for the electronic device 100 to determine whether the lens is stable includes but is not limited to the following two methods:
[0172] Stability determination method 1: the electronic device 100 obtains the lens position through the Hall sensor.
[0173] The relationship between the Hall sensor and the lens can be referred to in the above content. Figure 2B Description. A magnet is placed near the lens. When the position of the lens changes, the position of the magnet changes accordingly, thereby changing the surrounding magnetic field environment. The Hall sensor can sense the changes in the surrounding magnetic field based on the Hall effect and generate data corresponding to the changes in the magnetic field. The electronic device 100 can continuously obtain data from the Hall sensor. When the data of the Hall sensor is stable, the electronic device 100 can determine that the lens position is stable and set the power supply (such as AP) output voltage to a low voltage mode until the next non-exposure cycle begins. During this process, if it is detected that the electronic device is shaking, the motor starts working with a low-voltage power supply, that is, the lens is pushed at a low speed to prevent shaking.
[0174] Stability determination method 2: Introduce an interrupt pin into the driver integrated circuit.
[0175] The driver integrated circuit can drive the motor to move by controlling the current in the drive coil. In the process of the driver integrated circuit driving the motor to move, the driver integrated circuit can detect the movement state of the motor through the built-in voltage detection circuit or current detection circuit. The voltage detection circuit or the current detection circuit can detect the voltage or current change of the motor and generate a feedback signal, and the driver integrated circuit can confirm the movement state of the motor based on the feedback signal. For example, when the motor is in the focusing process, the driver integrated circuit can confirm whether the motor has reached a predetermined position through the change of the feedback signal. When the driver integrated circuit confirms that the motor is stable, it generates an interrupt signal 2 through its own interrupt pin. After the electronic device 100 detects the interrupt signal 2, the output voltage of the power supply (such as AP) is set to a low voltage mode until the next non-exposure cycle begins. In this process, if it is detected that the electronic device is shaking, the motor starts to work with a low voltage power supply, that is, the lens is pushed at a low speed to prevent shaking.
[0176] Generally, when the electronic device 100 sets the working voltage of the motor, it supplies power to the motor through the application processor AP side. However, the application processor AP has restrictions on the number of modules, and the power management module built into the AP provides a limited number of power ports. When there are many camera modules, it is difficult to meet the power supply requirements. Therefore, in another possible implementation, the electronic device 100 can supply power to the motor through the power amplifier (PA) side. The PA can be a class B power amplifier, which divides the input signal into two parts, which are amplified by two amplifier tubes respectively, and alternately output to the driver integrated circuit as the power supply for the motor. PA is usually used to power the audio module. When the power management module port cannot meet the power port requirements of the multi-camera module, the electronic device 100 can use the audio power supply for power port compensation. Using PA to power the motor requires additional circuit layout design, which can be referred to. Figure 8 .
[0177] Figure 8 A schematic diagram of the layout of the electronic device 100 using a power amplifier to power a motor is shown.
[0178] The power amplifier can output a variable voltage to the driver IC. The application processor can connect to the power amplifier through the IIC bus and output a voltage management signal to the power amplifier to control the voltage output of the power amplifier. For other modules, please refer to the above content. Figure 3 The description is not repeated here.
[0179] In this way, through the motor control method provided in the embodiment of the present application, when the lens is in a non-exposure state, the electronic device sets the output voltage of the power supply that powers the motor to a high voltage mode. When the electronic device is focusing or anti-shaking, the power supply starts to input the output voltage to the motor, and the motor starts to quickly push the lens to achieve focusing or anti-shaking. When the lens is in an exposure state, the electronic device sets the output voltage of the power supply that powers the motor to a low voltage mode. When the electronic device is anti-shaking, the power supply starts to input the output voltage to the motor, and the motor starts to slowly push the lens to achieve anti-shake. In this way, in the non-exposure state and the exposure state, the output voltage mode of the power supply that powers the motor is different, which can save the power consumption of the electronic device.
[0180] Fig. 9 An electronic device 100 provided in an embodiment of the present application is shown.
[0181] like Fig. 9 As shown, the electronic device 100 may include: a processor 110, a memory 120, a motor system 130, a power management module 140, a camera 150, a button 160, a display screen 170, and a power amplifier 180. Among them:
[0182] The processor 110 may include an application processor (AP), an image signal processor (ISP). The processor 110 may also include a modem processor, a graphics processing unit (GPU), a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0183] The processor 110 may include one or more interfaces. The interface may include an integrated circuit (IC). 2 C) interface, inter-integrated circuit sound, I 2S) interface, pulse code modulation (PCM) interface, universal asynchronous receiver / transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input / output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (USB) interface, etc.
[0184] I 2 The I C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). The processor 110 may include multiple I 2 C bus. The processor 110 can be connected to the 2 The C bus couples the memory 120, the power management module 140, the camera 150, the button 160, the display screen 170, etc.
[0185] For example, the processor 110 may 2 The C bus is coupled to the camera 150 to control the driver IC in the camera 150 to adjust the level, discharge duty cycle, and frequency of the voltage signal (the aforementioned input voltage Uin is a PWM voltage signal) output to the VCM, thereby adjusting the current of the VCM coil and ultimately adjusting the motor thrust. For another example, the processor 110 can use I 2 The C bus is coupled to the camera 150 to control the controller in the camera 150 to output a switch selection signal, thereby adjusting the current direction of the VCM coil to generate a motor thrust in a specified direction.
[0186] I 2 The S interface can be used for audio communication. The processor 110 can include multiple groups of I 2 The processor 110 can use I 2 The S bus is coupled to the audio module in the electronic device 100 to realize communication between the processor 110 and the audio module. The audio module can be connected to the I 2 The S interface transmits audio signals to the wireless communication module in the electronic device 100, thereby realizing the function of answering calls through a Bluetooth headset.
[0187] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. The audio module and the wireless communication module can be coupled through the PCM bus interface. The audio module can also transmit audio signals to the wireless communication module through the PCM interface to realize the function of answering calls through Bluetooth headsets.
[0188] The UART interface is a universal serial data bus that converts the data to be transmitted between serial communication and parallel communication. The UART interface is usually used to connect the processor 110 with the wireless communication module. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module through the UART interface to implement the Bluetooth function.
[0189] The MIPI interface can be used to connect the processor 110 with peripheral devices such as a display screen and a camera 150. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like.
[0190] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or a data signal. The GPIO interface can be used to connect the processor 110 with the camera 150, a display screen, a wireless communication module, an audio module, and various sensors. The GPIO interface can also be configured as I 2 C interface, I 2 S interface, UART interface, MIPI interface, etc.
[0191] The USB interface may include: Mini USB interface, Micro USB interface, USB Type C interface, etc. The USB interface may be used to connect a charger to charge the electronic device 100, or may be used to transmit data between the electronic device 100 and a peripheral device. The interface may also be used to connect other electronic devices, such as AR devices, etc.
[0192] The memory 120 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data. The non-volatile memory can also store executable programs and store user and application data, etc., and can be loaded into the random access memory in advance for direct reading and writing by the processor 110.
[0193] The processor 110 may also be provided with a memory for storing instructions and data. The memory in the processor 110 is a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the electronic device 100.
[0194] The motor system 130 may include a driver IC, a voltage doubling circuit, and a VCM.
[0195] Among them, the voltage doubler circuit can be the aforementioned Figure 4A The voltage doubling circuit described in the embodiment supports the VCM to output motor thrust in two directions. Figure 4A The two-stage voltage doubling circuit shown is composed of only one capacitor and a diode, unlike the traditional two-stage voltage doubling circuit which requires two capacitors. Therefore, the motor thrust is increased exponentially while the design size of the motor system is saved.
[0196] The input end of the driver IC is connected to the power management module 140, and the output end is connected to the voltage doubling circuit. The output voltage of the driver IC is the input voltage Uin of the voltage doubling circuit. In the embodiment of the present application, the output voltage of the driver IC is multiplied by the voltage doubling circuit in the VCM, and then loaded to both ends of the VCM coil, thereby multiplying the VCM coil current and significantly improving the motor thrust. The output voltage signal of the driver IC can be a PWM signal. Adjusting the level, discharge duty cycle, and frequency of the output voltage signal of the driver IC can change the VCM coil current, thereby changing the motor thrust. Specifically, the driver IC can be controlled by I 2 The C bus communicates with the processor 110 (such as AP), receives the power supply adjustment signal, and then changes the level, discharge duty cycle, and frequency of its output voltage signal accordingly.
[0197] The motor system 130 may also be coupled to a controller, specifically, the gate switch S1 in the VCM voltage doubler circuit may be coupled to the controller. The controller may be used to control the selective conduction of the switch S1 in the voltage doubler circuit, thereby adjusting the current direction of the VCM coil and generating a motor thrust in a specified direction. The controller may be integrated into the processor 110, or may be integrated into other components, such as the camera 150, or may be independently provided on a printed circuit board.
[0198] The motor system 130 can be applied to one or some components of the electronic device 100, such as the camera 150, the button 160, and the display screen 170. The dotted arrows in the figure represent a hardware-implemented dependency, that is, the camera 150, the button 160, and the display screen 170 can be implemented by relying on the motor system 130.
[0199] When the motor system 130 is applied to the camera 150, the VCM generates mechanical force to drive the lens to move so as to change the zoom ratio; when the motor system 130 is applied to the button 160, the VCM generates mechanical force to drive the rebound mechanism in the button to rebound; when the motor system 130 is applied to the display screen 170 (specifically a touch screen), the VCM generates mechanical force to form force feedback to simulate force tactile sensation.
[0200] The following description will be made by taking the application of the motor system 130 to the camera 150 as an example.
[0201] The camera 150 may include: a lens, an AF VCM, an OIS VCM, a photosensitive sensor, and a controller. The camera 150 may also include: a driver IC (not shown) connected to each VCM. The driver IC and the controller may be arranged on a flexible printed circuit board (FPCB). The FPCB may also be responsible for connecting some components in the camera 150 to the processor 110, for example, transmitting the raw data output by the photosensitive sensor to the processor 110 (specifically, the ISP).
[0202] When taking a photo, the shutter of the camera 150 is opened, and light enters and shines on the photosensitive sensor. The photosensitive sensor converts the light signal into an electrical signal, and then further converts the electrical signal into a digital signal through analog digital convert (ADC) to pass it to the ISP for processing. The ISP can perform the following processing on the output data of the photosensitive sensor: auto exposure control (AEC), auto gain control (AGC), auto white balance (AWB), color correction, removal of bad pixels, etc. The ISP can also be integrated into the camera 150.
[0203] AF VCM and OIS VCM can integrate the improved voltage doubling circuit described in the above embodiments, which can multiply the coil voltage, increase the coil current, and ultimately multiply the motor thrust. AF VCM can be used to drive the lens to move in the direction of the optical axis. OIS VCM can be used to drive the lens to move in the plane perpendicular to the optical axis.
[0204] Generally, OIS requires jitter compensation in at least four directions in the plane perpendicular to the optical axis: x1, x2, y1, and y2. Among them, z1 and z2 represent the direction of the optical axis. A VCM provided in an embodiment of the present application can generate motor thrust in both directions. To this end, the OIS VCM may include at least two VCMs, one VCM is used to generate motor thrust in the two directions of x1 and x2, and the other VCM is used to generate motor thrust in the two directions of y1 and y2.
[0205] The controller can be used to control the selective conduction of the switch S1 in the voltage doubler circuit, thereby adjusting the current direction of the VCM coil and generating the motor thrust in a specified direction. 2 The C bus communicates with the processor 110 (such as AP), receives the autofocus instruction and the optical image stabilization instruction, and then outputs the corresponding switch selection signal to the control end of the switch S1 in the voltage doubling circuit, adjusts the current direction of the VCM coil to generate the motor thrust in the specified direction, and completes the autofocus and optical image stabilization goals.
[0206] The camera 150 may have only one controller for controlling the coil current direction of multiple VCMs, and thus controlling the motor thrust direction of the multiple VCMs. That is, the one controller may be electrically connected to the switch S1 in the multiple VCM voltage doubling circuits, specifically connected to the control end of the switch S1. Of course, the camera 150 may also have multiple controllers, one controller for each VCM, to independently control the motor thrust direction of each VCM.
[0207] In the camera 150, the driver ICs can be provided for the AF VCM and the OIS VCM respectively to independently power the AF VCM and the OIS VCM. The driver ICs of the AF VCM and the OIS VCM can be provided through I 2 The C bus communicates with the processor 110 (such as AP), receives the power supply adjustment signal of AFVCM and OIS VCM, and then adapts to change the level, discharge duty cycle and frequency of the output voltage signal of each driver IC, thereby changing the motor thrust.
[0208] The button 160 may be a power button, a volume button, etc. The motor system 130 may be applied to the button 160 to drive the rebound mechanism to rebound, provide significant rebound force, and improve the user's button experience.
[0209] The display screen 170 can be used to display images, videos, etc. The display screen 170 can be a touch screen with a touch panel, and the motor system 130 can be applied to the display screen 170 to generate vibration prompts (such as vibration prompts for incoming calls, alarms, etc.) or provide touch force feedback to the user.
[0210] The power management module 140 can be used to connect the battery, charging management module and processor 110 in the electronic device 100. The power management module 140 receives input from the battery and / or charging management module to power the processor 110, the memory 120, the camera 150, the display screen, the wireless communication module, etc. Specifically, the power management module 140 can be connected to the driver IC that matches each VCM in the camera 150 to control the power supply to the camera through the driver IC. The power management module 140 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. The power management module 140 can also be set in the processor 110. The power management module 140 can also be integrated with the charging management module.
[0211] The power amplifier 180 can also be used to connect the battery, the charging management module and the processor 110 in the electronic device 100. The power amplifier 180 receives input from the battery and / or the charging management module to power the processor 110, the camera 150 module, etc. Specifically, the power amplifier 180 can be connected to the driver IC matched with each VCM in the camera 150 to control the power supply to the camera through the driver IC.
[0212] The electronic device 100 may also include: a wireless communication module. The wireless communication module may provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), nearfield communication technology (NFC), infrared technology (IR), etc., which are applied to the electronic device 100. The wireless communication module may also provide wireless communication solutions including 2G / 3G / 4G / 5G, etc., which are applied to the electronic device 100. The wireless communication module receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module may also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna.
[0213] The electronic device 100 may further include: an audio module, a speaker, a receiver, a microphone, and an earphone interface.
[0214] Among them, the electronic device can realize audio functions through an audio module, a speaker, a receiver, a microphone, a headphone interface, and an application processor (AP). For example, music playback, recording, etc. The audio module is used to convert digital audio information into an analog audio signal output, and is also used to convert analog audio input into a digital audio signal. The audio module can also be used to encode and decode audio signals. The audio module can be set in the processor 110, or some functional modules of the audio module can be set in the processor 110. The speaker, also known as a "speaker", is used to convert audio electrical signals into sound signals. The electronic device can listen to music or listen to hands-free calls through the speaker. The receiver, also known as a "handset", is used to convert audio electrical signals into sound signals. When the electronic device answers a call or voice message, the voice can be answered by placing the receiver close to the human ear. The microphone, also known as a "microphone" or a "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone with the human mouth to input the sound signal into the microphone. The headphone interface is used to connect wired headphones. The headphone jack may be a USB interface, or a 3.5 mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0215] The electronic device 100 may further include sensors, such as a gyroscope, an accelerometer, a pressure sensor, a distance sensor, a proximity light sensor, an ambient light sensor, etc. Among them, the gyroscope and the accelerometer are very necessary for OIS.
[0216] Fig. 9 The illustrated structure does not constitute a specific limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0217] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0218] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0219] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0220] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Claims
1. A motor control method, the method is applied to an electronic device, the electronic device includes a camera application, a motor, and a lens, characterized in that: The method comprises: The electronic device sets the operating voltage of the motor to a first voltage in response to a user's operation of starting a camera application; In response to a first operation of a user changing a zoom ratio of the camera application or in response to detecting that the electronic device is shaking, the electronic device moves the lens to a first position through the motor; The electronic device changes the operating voltage of the motor from the first voltage to a second voltage, the second voltage being lower than the first voltage; The electronic device acquires a first image frame at the first position through the lens.
2. The method according to claim 1, characterized in that The electronic device further includes a camera sensor. Before the electronic device changes the working voltage of the motor from the first voltage to the second voltage, the method further includes: The electronic device determines that the imaging sensor starts exposure.
3. The method according to claim 2, characterized in that The electronic device determines that the camera sensor starts exposure, specifically including: The electronic device receives a first trigger signal sent by a first pin of the imaging sensor, and the electronic device determines that the imaging sensor starts to be exposed.
4. The method according to claim 1, characterized in that: Before the electronic device changes the operating voltage of the motor from the first voltage to the second voltage, the method further includes: The electronic device determines that the lens is in the first position within a preset time period.
5. The method according to claim 4, characterized in that The electronic device further includes a Hall sensor, and the electronic device determines that the lens is in the first position within a preset time period, specifically including: The electronic device determines, based on the sensing data detected by the Hall sensor, that the lens is in the first position within a preset time period.
6. The method according to claim 4, characterized in that The electronic device further includes a driver integrated circuit, the driver integrated circuit is used to drive the motor to move, the driver integrated circuit includes an interrupt pin, and the electronic device determines that the lens is in the first position within a preset time period, specifically including: The electronic device detects a first interrupt signal output by the interrupt pin and determines that the lens is in the first position within a preset time period.
7. The method according to any one of claims 1 to 6, characterized in that After the electronic device acquires the first image frame at the first position through the lens, the method further includes: The electronic device changes the operating voltage of the motor from the second voltage to the first voltage.
8. The method according to claim 7, characterized in that Before the electronic device changes the operating voltage of the motor from the second voltage to the first voltage, the method further includes: The electronic device determines that the imaging sensor ends row exposure.
9. The method according to claim 8, characterized in that The electronic device determines that the camera sensor ends row exposure, specifically including: The electronic device receives a second trigger signal sent by the first pin of the imaging sensor, and the electronic device determines that the imaging sensor ends row exposure.
10. The method according to claim 8, characterized in that The electronic device determines that the camera sensor ends row exposure, specifically including: The electronic device receives an interrupt signal sent by the image signal processor, and determines that the image sensor ends row exposure.
11. The method according to any one of claims 8 to 10, characterized in that: The motor includes a voltage doubling module, which includes a voltage doubling circuit and a driving coil. After the electronic device sets the working voltage of the motor, the working voltage is output to the voltage doubling module. When the working voltage of the motor is set to a first voltage, the voltage doubling circuit is used to boost the first voltage input to the voltage doubling module to a third voltage and then output it to both ends of the driving coil; When the working voltage of the motor is set to the second voltage, the voltage doubling circuit is used to boost the second voltage input to the voltage doubling module to a fourth voltage and then output it to both ends of the driving coil; The driving coil is used to drive the motor to move.
12. The method according to claim 11, characterized in that The electronic device includes an application chip, and the step of outputting the working voltage to the voltage doubling module specifically includes: The electronic device outputs the operating voltage to the voltage doubling module through the application chip.
13. The method according to claim 11, characterized in that The electronic device includes a power amplifier, and the step of outputting the operating voltage to the voltage doubling module specifically includes: The electronic device outputs an operating voltage to the voltage doubling module through the power amplifier.
14. The method according to claim 7, characterized in that After the electronic device changes the operating voltage of the motor from the second voltage to the first voltage, the method further includes: In response to a second operation of changing a zoom factor of the camera application, the electronic device moves the lens to a second position through the motor.
15. An electronic device, characterized in that: include: A camera application, a motor, a lens, a processor and a memory; the motor is used to drive the lens to move in the direction of the optical axis and in a plane perpendicular to the optical axis, and the camera application runs in the processor; the motor, the lens and the memory are coupled to the processor, and the memory is used to store computer program code, and the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method as described in any one of claims 1-14.
16. A computer-readable storage medium comprising computer instructions, characterized in that: When the computer instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 14.
17. A chip system, the chip system is applied to electronic equipment, characterized in that: The chip system includes an application processor, an image sensor, a driver integrated circuit, a motor and a voltage doubling module; the application processor is used to output a variable voltage to the driver integrated circuit, the image sensor is used to perform line exposure and send a trigger signal to the application processor, the driver integrated circuit is used to drive the motor, and the voltage doubling module is used to increase the voltage applied to both ends of the drive coil of the motor; the application processor is used to call computer instructions so that the electronic device executes the method as described in any one of claims 1-14.
Citation Information
Patent Citations
Interchangeable-lens digital camera
CN105075240A
A flat motor driving method and driving circuit and an electronic apparatus
CN108702109A
Motor system, voltage doubling circuit, motor control method and electronic device
CN117155186A
Photographic equipment and stroboscopic device
JP2000089304A
Imaging apparatus
JP2005159538A
