Ball motor tilt processing method, device and ball motor
By setting independent power supply coils on both sides of the carrier and determining the target calibration DAC value, the problem of carrier inclination in the plane ball motor is solved, effective correction of carrier motion is achieved, and the imaging quality of the camera module is improved.
Patent Information
- Application Number
- CN202311305972.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-08
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2043-10-08
AI Technical Summary
The balls in the plane ball motor have no solid track to limit them, resulting in the carrier that may have tilt problems during movement, affecting the imaging quality of the camera module.
By setting the first coil and the second coil independently powered on both sides of the carrier, for each first calibration DAC value, a target calibration DAC value is determined among the plurality of second calibration DAC values, so that the inclination angle between the first moving component and the second moving component is minimized, thereby generating a correction mapping relationship to indicate the DAC value of the driving chip to achieve inclination correction during the movement of the carrier.
The tilt correction during the carrier movement is effectively realized, ensuring that the carrier moves in the preset direction, and improving the imaging quality of the camera module.
Smart Images

Figure CN118473285B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a tilt processing method and device for a ball motor and a ball motor. Background Art
[0002] As users' demand for taking photos of terminal devices continues to increase, the number of camera modules of terminal devices is also increasing. The camera module may include a lens and a voice coil motor, wherein the voice coil motor can drive the lens to move so as to achieve automatic focusing of the lens.
[0003] At present, there is a ball-type voice coil motor, also known as a ball motor, in which the ball motor uses balls to guide the carrier carrying the lens to move along the motor axis, and can be applied to large-sized camera modules. However, for a planar ball motor, the balls in the ball motor have no physical track to limit their position, so during the movement of the carrier in the ball motor, the carrier may tilt in a non-preset direction, thereby affecting the final imaging quality of the camera module. Summary of the invention
[0004] The embodiments of the present application provide a method and device for processing the tilt of a ball motor, and a ball motor, which are applied in the field of terminal technology.
[0005] In the first aspect, the embodiment of the present application proposes a method for processing the tilt of a ball bearing motor. The ball bearing motor includes a carrier for carrying a lens, the carrier includes a first moving part and a second moving part, the first moving part is equipped with at least one first coil and a first driving chip for supplying power to the first coil, and the second moving part is equipped with at least one second coil and a second driving chip for supplying power to the second coil; the method includes:
[0006] For any one of a plurality of first calibrated digital-to-analog converter DAC values of the first driver chip, inputting a first instruction corresponding to the first calibrated DAC value into the first driver chip, wherein the first instruction is used to instruct the first driver chip to supply power to the first coil according to the first calibrated DAC value, so as to control the first moving component to move a distance corresponding to the first calibrated DAC value;
[0007] Determine a target calibration DAC value among the plurality of second calibration DAC values of the second driving chip, the second driving chip is used to supply power to the second coil according to the target calibration DAC value, so as to control the second moving part to move a distance corresponding to the target calibration DAC value, wherein the target calibration DAC value minimizes the inclination angle between the second moving part after moving and the first moving part after moving;
[0008] A correction mapping relationship is generated according to the target calibration DAC values corresponding to the first calibration DAC values, where the correction mapping relationship is used to reflect the corresponding relationship between the DAC value of the first driver chip and the DAC value of the second driver chip.
[0009] In this implementation, for each first calibration DAC value, a target calibration DAC value is determined from a plurality of second calibration DAC values so that the tilt angle between the first moving component after movement and the second moving component after movement is minimized, and then a correction mapping relationship is generated according to the target drive DAC values corresponding to each of the first calibration DAC values, thereby instructing the first moving component and the second moving component to determine the DAC value of the first drive chip and the DAC value of the second drive chip according to the correction mapping relationship during the actual movement process, thereby effectively realizing the tilt correction during the movement of the carrier.
[0010] In some implementations, determining a target calibration DAC value from among a plurality of second calibration DAC values of the second driver chip includes:
[0011] For any one of the plurality of second calibration DAC values of the second driver chip, inputting a second instruction corresponding to the second calibration DAC value into the second driver chip, wherein the second instruction is used to instruct the second driver chip to supply power to the second coil according to the second calibration DAC value, so as to control the second moving component to move a distance corresponding to the second calibration DAC value;
[0012] acquiring a tilt angle between a second moving component moved in response to the second calibration DAC value and the first moving component moved in response to the first calibration DAC value;
[0013] Among the inclination angles corresponding to the second calibration DAC values, the second calibration DAC value with the smallest inclination angle is determined as the target calibration DAC value.
[0014] In this implementation, by determining the corresponding tilt angle for each second calibration DAC value, and then determining the second calibration DAC value with the smallest tilt angle as the target calibration DAC value corresponding to the first calibration DAC value currently being processed, the target calibration DAC value can be accurately and effectively determined, and it is ensured that the tilt angle corresponding to the target calibration DAC value is the smallest.
[0015] In some implementations, the method further includes:
[0016] Performing Hall calibration on a first Hall element in the first driving chip to determine a first Hall mapping relationship corresponding to the first Hall element, where the first Hall mapping relationship is used to indicate a corresponding relationship between a voltage value of the first Hall element and a moving distance of the first moving component;
[0017] A Hall calibration is performed on the second Hall element in the second driving chip to determine a second Hall mapping relationship corresponding to the second Hall element, where the second Hall mapping relationship is used to indicate a corresponding relationship between a voltage value of the second Hall element and a moving distance of the second moving component.
[0018] In some implementations, the first calibrated DAC value of the first driver chip corresponds to the first voltage of the first Hall element, and the distance corresponding to the first calibrated DAC value is the moving distance corresponding to the first voltage in the first Hall mapping relationship;
[0019] The second calibrated DAC value of the second driving chip corresponds to the second voltage of the second Hall element, and the distance corresponding to the second calibrated DAC value is the moving distance corresponding to the second voltage in the second Hall mapping relationship.
[0020] In this implementation, by performing Hall calibration on the first Hall element and the second Hall element respectively before the calibration process, the corresponding relationship between each calibration DAC value and the corresponding moving distance can be clarified.
[0021] In some implementations, the method further includes:
[0022] In response to an automatic focusing instruction, setting the DAC value of the first driving chip to a first application DAC value, so as to control the first moving component to move a distance corresponding to the first application DAC value;
[0023] Obtaining a target application DAC value corresponding to the first application DAC value in the correction mapping relationship;
[0024] The DAC value of the second driving chip is set to the target application DAC value to control the second moving component to move a distance corresponding to the target application DAC value.
[0025] In some implementations, the first moving component and the second moving component are integrally formed; or, the first moving component and the second moving component are connected in a preset manner;
[0026] The first moving component and the second moving component move together as a whole to control the movement of the carrier in the first direction.
[0027] In this implementation, the tilt correction of the carrier movement can be effectively achieved during the automatic focusing process of the ball motor.
[0028] In a second aspect, an embodiment of the present application provides a method for correcting the tilt of a ball motor. The method comprises:
[0029] In response to an automatic focusing instruction, setting the DAC value of the first driving chip to a first application DAC value, so as to control the first moving component to move a distance corresponding to the first application DAC value;
[0030] Obtaining a target application DAC value corresponding to the first application DAC value in a correction mapping relationship, wherein the correction mapping relationship is determined according to the method described in the first aspect;
[0031] The DAC value of the second driving chip is set to the target application DAC value to control the second moving component to move a distance corresponding to the target application DAC value.
[0032] In a third aspect, an embodiment of the present application provides a device for processing the tilt of a ball motor. The device includes:
[0033] a sending module, configured to input, for any one of a plurality of first calibrated digital-to-analog converter DAC values of the first driver chip, a first instruction corresponding to the first calibrated DAC value to the first driver chip, wherein the first instruction is configured to instruct the first driver chip to supply power to the first coil according to the first calibrated DAC value, so as to control the first moving component to move a distance corresponding to the first calibrated DAC value;
[0034] a determination module, configured to determine a target calibration DAC value among a plurality of second calibration DAC values of the second driving chip, wherein the second driving chip is configured to supply power to the second coil according to the target calibration DAC value, so as to control the second moving part to move a distance corresponding to the target calibration DAC value, wherein the target calibration DAC value minimizes an inclination angle between the second moving part after moving and the first moving part after moving;
[0035] The processing module is used to generate a correction mapping relationship according to the target calibration DAC values corresponding to the first calibration DAC values, wherein the correction mapping relationship is used to reflect the corresponding relationship between the DAC value of the first driver chip and the DAC value of the second driver chip.
[0036] In some implementations, the determining module is specifically configured to:
[0037] For any one of the plurality of second calibration DAC values of the second driver chip, inputting a second instruction corresponding to the second calibration DAC value into the second driver chip, wherein the second instruction is used to instruct the second driver chip to supply power to the second coil according to the second calibration DAC value, so as to control the second moving component to move a distance corresponding to the second calibration DAC value;
[0038] acquiring a tilt angle between a second moving component moved in response to the second calibration DAC value and the first moving component moved in response to the first calibration DAC value;
[0039] Among the inclination angles corresponding to the second calibration DAC values, the second calibration DAC value with the smallest inclination angle is determined as the target calibration DAC value.
[0040] In some implementations, the processing module is further configured to:
[0041] Performing Hall calibration on a first Hall element in the first driving chip to determine a first Hall mapping relationship corresponding to the first Hall element, where the first Hall mapping relationship is used to indicate a corresponding relationship between a voltage value of the first Hall element and a moving distance of the first moving component;
[0042] A Hall calibration is performed on the second Hall element in the second driving chip to determine a second Hall mapping relationship corresponding to the second Hall element, where the second Hall mapping relationship is used to indicate a corresponding relationship between a voltage value of the second Hall element and a moving distance of the second moving component.
[0043] In some implementations, the first calibrated DAC value of the first driver chip corresponds to the first voltage of the first Hall element, and the distance corresponding to the first calibrated DAC value is the moving distance corresponding to the first voltage in the first Hall mapping relationship;
[0044] The second calibrated DAC value of the second driving chip corresponds to the second voltage of the second Hall element, and the distance corresponding to the second calibrated DAC value is the moving distance corresponding to the second voltage in the second Hall mapping relationship.
[0045] In some implementations, the processing module is further configured to:
[0046] In response to an automatic focusing instruction, setting the DAC value of the first driving chip to a first application DAC value, so as to control the first moving component to move a distance corresponding to the first application DAC value;
[0047] Obtaining a target application DAC value corresponding to the first application DAC value in the correction mapping relationship;
[0048] The DAC value of the second driving chip is set to the target application DAC value to control the second moving component to move a distance corresponding to the target application DAC value.
[0049] In some implementations, the first moving component and the second moving component are integrally formed; or, the first moving component and the second moving component are connected in a preset manner;
[0050] The first moving component and the second moving component move together as a whole to control the movement of the carrier in the first direction.
[0051] In a fourth aspect, an embodiment of the present application provides a device for correcting the tilt of a ball motor. The device comprises:
[0052] a processing module, configured to, in response to an automatic focusing instruction, set the DAC value of the first driving chip to a first application DAC value, so as to control the first moving component to move a distance corresponding to the first application DAC value;
[0053] An acquisition module, configured to acquire a target application DAC value corresponding to the first application DAC value in a correction mapping relationship, wherein the correction mapping relationship is determined according to the method described in the first aspect;
[0054] The processing module is further configured to set the DAC value of the second driving chip to the target application DAC value, so as to control the second moving component to move a distance corresponding to the target application DAC value.
[0055] In a fifth aspect, an embodiment of the present application provides a ball motor, comprising: a carrier for carrying a lens, the carrier comprising a first moving part and a second moving part, at least one first coil and a first driving chip for supplying power to the first coil being installed on the first moving part, and at least one second coil and a second driving chip for supplying power to the second coil being installed on the second moving part.
[0056] In some implementations, the first coil is used to control the movement of the first moving part after being powered on; the second coil is used to control the movement of the second moving part after being powered on;
[0057] The first moving component and the second moving component move together as a whole to control the movement of the carrier in the first direction.
[0058] In some implementations, the first moving component and the second moving component are integrally formed; or, the first moving component and the second moving component are connected in a preset manner.
[0059] In some implementations, the carrier includes a through hole for placing the lens, and the through hole is located between the first moving component and the second moving component;
[0060] The ball motor further includes a base, and the first moving component and the second moving component are symmetrically arranged above the base.
[0061] In a sixth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;
[0062] The memory stores computer-executable instructions;
[0063] The processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the methods described in the first and second aspects above.
[0064] In a seventh aspect, an embodiment of the present application provides a terminal device, which may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.
[0065] The terminal device includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the method of the first aspect or the second aspect.
[0066] The terminal device in the present application may include the ball motor described in the fifth aspect above.
[0067] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method of the first aspect and the second aspect is implemented.
[0068] In a ninth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run, the computer executes the methods of the first and second aspects.
[0069] In a tenth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute the method described in the first aspect and the second aspect.
[0070] It should be understood that the second to tenth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 A schematic diagram of the carrier movement direction provided in an embodiment of the present application;
[0072] Figure 2 A schematic diagram of the tilt of the carrier movement provided in the embodiment of the present application;
[0073] Figure 3 Schematic diagram of the ball motor provided in the embodiment of the present application Figure 1 ;
[0074] Figure 4 Schematic diagram of the ball motor provided in the embodiment of the present application Figure 2 ;
[0075] Figure 5 Schematic diagram of the ball motor provided in the embodiment of the present application Figure 3 ;
[0076] Figure 6 A flow chart of a method for processing the tilt of a ball motor provided in an embodiment of the present application;
[0077] Figure 7 A schematic diagram of the tilt angle provided in the embodiment of the present application;
[0078] Figure 8 The process of the tilt processing method of the rolling motor provided in the embodiment of the present application Figure 2 ;
[0079] Fig. 9 A schematic diagram for implementing the determination of a target calibration DAC value provided in an embodiment of the present application;
[0080] Fig.10 A flow chart of a method for correcting the tilt of a ball motor provided in an embodiment of the present application;
[0081] Fig.11 A schematic diagram of a correction mapping relationship provided in an embodiment of the present application;
[0082] Fig.12 A schematic diagram of the structure of a tilt processing device for a ball motor provided in an embodiment of the present application;
[0083] Fig.13 A schematic diagram of the structure of a tilt correction device for a ball motor provided in an embodiment of the present application;
[0084] Fig.14 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0085] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0086] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0087] It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the display interface provided in the embodiment of the present application is only an example, and the display interface can also include more or less content.
[0088] In order to better understand the technical solution of the present application, the relevant technologies involved in the present application are further introduced in detail below.
[0089] As users' demand for taking photos on terminal devices continues to increase, the number of camera modules in terminal devices is also increasing. A camera module may include an image sensor, a lens, and a voice coil motor, where a voice coil motor is also called a voice coil motor (VCM). The main principle of a voice coil motor is to use a permanent magnetic field to control the position of the spring or the mover by changing the size of the coil current in the motor, thereby driving the lens to move and achieve automatic focus of the lens.
[0090] In terms of structure, voice coil motors are mainly divided into shrapnel type, ball type and friction type. The ball type voice coil motor is also called a ball motor. The ball motor uses balls to guide the carrier that carries the lens to move along the axis of the motor and can be used in large-size camera modules.
[0091] The working principle of the ball motor is first explained below. Generally, the ball motor includes a carrier, a coil, a driving chip, a magnet, a ball, and a plane that carries the ball. Among them, the carrier is used to carry the lens, and the driving chip is used to input the driving current to the coil. This ball motor with the ball placed on a plane can also be called a planar ball motor.
[0092] When a user uses a terminal device to take a photo, the camera module turns on the auto focus (AF) function. Specifically, the driver chip of the camera module responds to the auto focus instruction and inputs a driving current to the coil inside the ball motor. Then, the coil generates a magnetic induction force through electromagnetic induction. The direction of the magnetic induction force is related to the direction of the driving current.
[0093] For example, when the driving chip inputs a driving current in a first direction to the coil, the direction of the magnetic induction force is opposite to the direction of the magnetic attraction and reset force of the magnet inside the ball motor. The magnetic induction force overcomes the magnetic attraction and reset force of the magnet and the friction between the ball and the plane inside the ball motor, thereby driving the carrier to move in a specific direction, and the movement of the carrier drives the lens to move.
[0094] When the driving chip inputs a driving current in a second direction to the coil, the second direction is opposite to the first direction, and the direction of the magnetic induction force is the same as the direction of the magnetic attraction reset force of the magnet. The magnetic induction force and the magnetic attraction reset force of the magnet together overcome the friction between the ball and the plane, thereby driving the carrier to move in a direction opposite to the above-mentioned specific direction. The movement of the carrier drives the lens to move, thereby achieving automatic focus.
[0095] Among them, the role of the ball is that on the one hand, the rolling method of the ball can reduce the friction between the carrier and the base, making it easier for the carrier to move; on the other hand, the rolling direction of the ball will also affect the moving direction of the carrier.
[0096] Based on the above introduction, it can be determined that the ball motor can affect the magnetic field by changing the coil current. Under the action of the magnetic field force, the carrier is driven to move in a specific direction. The specific movement direction of the carrier depends on the setting of the coil and the magnet. Specifically, the setting of the coil and the magnet will affect the direction of the magnetic field force, which can determine the movement direction of the carrier.
[0097] Assuming that for a planar ball motor with two-axis motion (taking Z-axis motion and X-axis motion as an example), two sets of coils and magnets can be set respectively, one set of coils and magnets is used to drive the carrier to move in the Z-axis direction, and the other set of coils and magnets is used to drive the carrier to move in the X-axis direction.
[0098] In the actual implementation process, for the two-axis motion planar ball motor, the two coordinate axis directions in which the two axes move can be selected and set according to actual needs. For example, it can be the Z-axis motion and X-axis motion described above, or it can also be the Z-axis motion and Y-axis motion described above, or it can also be the X-axis motion and Y-axis motion, and this embodiment does not limit this. And the X-axis, Y-axis, and Z-axis currently introduced can be understood as the three coordinate axes in the world coordinate system.
[0099] For example, if the two-axis motion is Z-axis motion and X-axis motion, refer to Figure 1 To understand, Figure 1 A schematic diagram of the carrier movement direction provided in an embodiment of the present application.
[0100] exist Figure 1 The figure shows a top view of the carrier 101, that is, the lens is Figure 1 The form shown is carried in a carrier, so that it moves along the Z-axis direction or along the X-axis direction driven by the carrier to realize the operation of a two-axis motion planar ball motor.
[0101] At the same time, Figure 1 The position of the balls in the ball motor is schematically given (taking 4 balls as an example), assuming that the 4 balls are distributed at the four corners corresponding to the carrier, and the balls are located under the carrier to assist the carrier in moving.
[0102] In the present application, a rolling plane is provided for the ball, and the ball can move in any direction within the rolling plane. Take the ball 102 in the upper left corner as an example, where the ball 102 moves in any direction within the rolling plane 103, and the specific moving direction depends on the specific magnetic field force direction.
[0103] However, the direction of the magnetic field line is usually not a straight line, but a curved state. At the same time, the ball in the ball motor in this application moves on a plane, and there is no physical track to limit the ball. This may cause the carrier to move under the action of the magnetic field force. Figure 1 The carrier may move in the direction indicated by the arrow A in FIG. That is, the carrier may move obliquely on the plane formed by the Z axis and the X axis.
[0104] Among them, the movement of the carrier is tilted, which will cause the lens to tilt accordingly, which will affect the final imaging quality of the camera module, thereby causing problems such as blurred corners of the image or poor lens focus.
[0105] In response to the technical problems introduced above, the present application proposes the following technical concept: by respectively setting a first coil and a second coil on both sides of the carrier, wherein the first coil and the second coil are powered independently, different currents can be set for the coils on both sides of the carrier, thereby applying different forces to the two sides of the carrier, thereby correcting the tilt that occurs during the movement of the carrier.
[0106] For example, you can refer to Figure 2 Understand the principles of the technical concept of this application, Figure 2 A tilted schematic diagram of the movement of a carrier provided in an embodiment of the present application.
[0107] like Figure 2 As shown, assuming that a first coil and a second coil are respectively arranged on both sides of the carrier, the carrier may move Figure 2 If the tilt is shown by the arrow A in FIG, the current of the first coil and the second coil can be controlled respectively, so that the magnetic field force corresponding to the side where the first coil is installed is smaller than the magnetic field force corresponding to the side where the second coil is installed, thereby correcting the tilt shown by the arrow A and ensuring that the carrier moves along the Z-axis direction as much as possible.
[0108] Combine the following Figure 3 The ball motor provided in this application is described. Figure 3 Schematic diagram of the ball motor provided in the embodiment of the present application Figure 1 .
[0109] like Figure 3 As shown, the ball motor includes a carrier for carrying the lens, and a through hole for placing the lens in the carrier. In the actual implementation process, the lens is located in the through hole in the carrier and moves along with the carrier.
[0110] Furthermore, the carrier in this embodiment includes a first movable part and a second movable part, at least one first coil and a first driving chip are installed on the first movable part, and at least one second coil and a second driving chip are installed on the second movable part, so that the first coil and the second coil are independently powered.
[0111] Specifically, the first driving chip is used to supply power to the first coil to control the movement of the first moving part; the second driving chip is used to supply power to the second coil to control the movement of the second moving part.
[0112] However, it should be noted that, although the first coil and the second coil can be powered independently to control the movement of the first movable part and the second movable part respectively, in this embodiment, the first movable part and the second movable part move together as a whole to control the movement of the carrier in the first direction. It can also be understood that the first coil and the second coil are coils that drive the carrier to move in the first direction, wherein the first direction can be any one of the Z-axis direction, X-axis direction, and Y-axis direction described above.
[0113] Among them, the first movable part and the second movable part can be integrally formed to jointly constitute a carrier; or, the first movable part and the second movable part can also be connected in a preset manner, wherein the preset manner can be, for example, welding, riveting, etc., so that the first movable part and the second movable part move together as a whole, which can also be understood as the carrier moving as a whole when moving.
[0114] Reference Figure 3 It can also be determined that the through hole in the carrier is located between the first moving part and the second moving part, wherein the ball motor also includes a base, and the first moving part and the second moving part are symmetrically arranged above the base. Exemplarily, the structures of the first moving part and the second moving part can be the same, but they are symmetrically placed above the base.
[0115] Exemplarily, the first movable part and the second movable part can be actually divided with respect to the carrier, wherein the first movable part and the second movable part together constitute the carrier. Alternatively, the first movable part and the second movable part can also be understood as virtual concepts written to describe the installation method of the coil and the movement method of the carrier, that is, in the actual implementation process, it is not necessary to specifically divide the first movable part and the second movable part in the carrier, as long as the first coil and the first driving chip described above, as well as the second coil and the second driving chip are installed on both sides of the carrier in the manner described in this embodiment. The two sides of the carrier can also be understood as the two sides obtained by dividing the carrier by the first dividing plane, wherein the first dividing plane is perpendicular to the base of the ball motor, and the first dividing plane passes through the central axis of the through hole in the carrier.
[0116] The first movable part and the second movable part in this embodiment can also be understood as dividing the carrier by the first dividing plane, the part of the carrier on one side of the first dividing plane serves as the first movable part, and the part of the carrier on the other side of the first dividing plane serves as the second movable part.
[0117] In order to better understand the way the lens is carried in the carrier, the following Figure 4 The ball motor provided in this application is further introduced. Figure 4 Schematic diagram of the ball motor provided in the embodiment of the present application Figure 2 .
[0118] like Figure 4 As shown, the ball motor includes a first moving part and a second moving part, which can be understood as Figure 4 The dashed line shown divides the carrier, so that the parts of the carrier located on both sides of the dashed line are respectively represented as a first moving part and a second moving part.
[0119] Figure 4 In the illustrated case, the first moving part and the second moving part are integrally formed. Based on the above introduction, it can be determined that in one implementation, the carrier is actually a complete whole, and the first moving part and the second moving part are just concepts introduced to illustrate this solution. Figure 4 The dotted line shown in FIG. 1 does not exist in the actual ball motor, and is drawn in the current embodiment to illustrate the first moving part and the second moving part.
[0120] Reference Figure 4 The first moving part is provided with a first coil and a first driving chip, and the second moving part is provided with a second coil and a second driving chip. The first moving part and the second moving part are symmetrically arranged above the base to form a carrier together, and the space between the first moving part and the second moving part forms a through hole of the carrier for placing the lens.
[0121] and in Figure 3 and Figure 4 The positions of the four balls are indicated in the figure, which are located at the four corners corresponding to the carrier and move on their corresponding planes.
[0122] Above Figure 3 and Figure 4The diagrams are all implementations in which a first coil is installed at the middle position of the first moving part, and a second coil is installed at the middle position of the second moving part. In the actual implementation process, multiple first coils can be set on the first moving part, and multiple second coils can be set on the second moving part. The multiple first coils on the first moving part can be understood as being connected in series, and the first drive chip is used to supply power to the series connection of each first coil, and the multiple second coils on the second moving part can be understood as being connected in series, and the second drive chip is used to supply power to the series connection of each second coil, that is to say, as long as the power supply of the first coil and the second coil is independent.
[0123] For example, you can refer to Figure 5 Understand how to implement multiple coils on a moving part. Figure 5 Schematic diagram of the ball motor provided in the embodiment of the present application Figure 3 .
[0124] like Figure 5 As shown, first coils can be respectively arranged at both ends of the first moving part, wherein the two first coils on the first moving part are connected in series with the first driving chip, so that the first driving chip can uniformly supply power to the two first coils. Also, second coils can be respectively arranged at both ends of the second moving part, wherein the two second coils on the second moving part are connected in series with the second driving chip, so that the second driving chip can uniformly supply power to the two second coils. At the same time, the power supply of the first coil and the second coil is independent, so the differential control of the first moving part and the second moving part can be guaranteed.
[0125] It is understandable that when a larger number of coils are provided on the moving part, the plurality of coils can be distributed on the moving part, so as to better balance the force conditions of the moving control of the moving part, so as to achieve more stable and precise moving control.
[0126] Based on the contents of the above embodiments, the method provided by the present application is described in detail below. It should be noted that the present application provides a method for processing the tilt of a ball motor, which can calibrate the tilt of the ball motor before the terminal device is put into use, thereby determining the correction mapping relationship of the ball motor. And the present application also provides a method for correcting the tilt of a ball motor, in which the tilt of the ball motor can be corrected based on the correction mapping relationship.
[0127] Therefore, the implementation of these two sets of methods will be explained separately below. First, the tilt processing method of the ball motor will be explained. It can be understood that the calibration processing for the tilt of the ball motor is completed before the ball motor leaves the factory. Therefore, the executor of the tilt processing method of the ball motor can be a server, processor, chip and other processing equipment with data processing functions. It can be a processing equipment independent of the outside of the ball motor, or it can also be a processing equipment integrated inside the ball motor. This embodiment does not impose any special restrictions on this.
[0128] Combine the following Figure 6 and Figure 7 To explain, Figure 6 This is a flow chart of a method for processing the tilt of a ball motor provided in an embodiment of the present application. Figure 7 A schematic diagram of the tilt angle provided for an embodiment of the present application.
[0129] like Figure 6 As shown, the method includes:
[0130] S601. For any one of a plurality of first calibrated DAC values of a first driver chip, a first instruction corresponding to the first calibrated DAC value is input to the first driver chip, wherein the first instruction is used to instruct the first driver chip to supply power to the first coil according to the first calibrated DAC value, so as to control the first moving component to move a distance corresponding to the first calibrated DAC value.
[0131] In this embodiment, a plurality of calibration DAC (Digital to Analog Convertor) values may be set for the driver chip. Here, the DAC value is first briefly introduced.
[0132] The ball motor can generate different thrusts through different current values, thereby pushing the carrier to drive the lens to move different distances. In this embodiment, two driver chips are provided in the ball motor, so for any driver chip, different thrusts can be generated to the corresponding moving parts through different current values. In addition, because the circuit in the driver chip is a digital circuit, when configuring the current size of the driver chip, it can be indicated by the DAC value. Among them, the DAC value can indicate the current size of the driver chip, and there is a corresponding relationship between the current size and the moving distance of the moving part. Therefore, it can be understood that in this embodiment, there is a direct corresponding relationship between the DAC value and the moving distance of the moving part.
[0133] Assuming that the current range of the first driver chip is 0~10 mA, and assuming that 10 bits are used to express the DAC value, then the DAC value in the range of 0~1023 can be used to uniformly represent the current range of 0~10 mA. For example, when the DAC value is 0 code, it can be understood that the current of the first driver chip is 0 mA, and when the DAC value is 1023 code, it can be understood that the current of the first driver chip is 10 mA. And correspondingly, when the DAC value is 0 code, it indicates that the corresponding moving part does not move (it can be understood as being in the near focus position), and when the DAC value is 1023 code, it indicates that the corresponding moving part moves the farthest distance (it can be understood as being in the far focus position). Therefore, it can also be understood that the DAC value is used to indicate the motor push position, that is, how far the moving part is pushed forward.
[0134] In the actual implementation process, the current range of the driver chip and the number of bits of the DAC value used to express the current can be selected according to actual needs. For example, 12 bits can be used to express the DAC value, and then a DAC value ranging from 0 to 2047 is used to more finely and evenly express the current of 0 to 10 mA.
[0135] In this embodiment, a plurality of first calibration DAC values may be set for the first driver chip. Exemplarily, among the plurality of first calibration DAC values of the first driver chip, the difference between any two adjacent first calibration DAC values is the first step length.
[0136] Take the DAC value range of 0~1023 as an example. For example, if the first step length is 1code, then the first multiple calibration DAC values of the first driver chip are 0code, 1code, 2code, ..., 1023code. For another example, if the first step length is 10code, then the first multiple calibration DAC values of the first driver chip are 0code, 10code, 20code, ..., 1020code, etc., where code can be understood as the expression unit corresponding to the DAC value.
[0137] In the actual implementation process, the specific selection of the first step length can be set according to actual needs. When multiple first calibration DAC values are determined according to the first step length, it can be understood that starting from 0code, each first calibration DAC value is determined in sequence according to the first step length, until a first calibration DAC value plus the first step length is greater than 1023code, then the current first calibration DAC value is the last first calibration DAC value.
[0138] In the calibration process of this embodiment, it is necessary to control the first moving part and the second moving part to move to corresponding degrees in response to different calibration DAC values, so as to determine a pair of calibration DAC values with the smallest tilt angle. In addition, the processing for each first calibration DAC value in this embodiment is similar, so any first calibration DAC value is taken as an example for description below.
[0139] Exemplarily, for any first calibration DAC value, a first instruction corresponding to the first calibration DAC value can be generated, and then the first instruction corresponding to the first calibration DAC value is input to the first driver chip, wherein the first instruction is used to instruct the first driver chip to supply power to the first coil according to the first calibration DAC value. Therefore, the first driver chip responds to the first instruction and supplies power to the first coil according to the first calibration DAC value. Then, the first coil is energized to generate a corresponding magnetic field, and under the influence of the magnetic field force, it drives the first moving component to move a distance corresponding to the first calibration DAC value.
[0140] There is a certain correspondence between the first calibration DAC value and the moving distance of the first moving part. For example, when the first calibration DAC value is 1 code, the first moving part moves 3 microns under the action of the magnetic field force, and the moving direction of the first moving part depends on the setting of the magnet and the coil. In short, the first moving part will move under the action of the magnetic field force. The correspondence between the first calibration DAC value and the moving distance of the first moving part may depend on the actual conditions of the coil, the magnet and the first moving part.
[0141] S602. Determine a target calibration DAC value from among a plurality of second calibration DAC values of the second driver chip. The second driver chip is configured to supply power to the second coil according to the target calibration DAC value to control the second movable component to move a distance corresponding to the target calibration DAC value. The target calibration DAC value minimizes an inclination angle between the moved second movable component and the moved first movable component.
[0142] In this embodiment, a plurality of second calibration DAC values are also provided for the second driver chip. Exemplarily, among the plurality of second calibration DAC values of the second driver chip, the difference between any two adjacent second calibration DAC values is the second step length.
[0143] Similar to the above description, taking the DAC value range of 0~1023 as an example, for example, if the second step length is 1code, then the multiple second calibration DAC values of the second driver chip are 0code, 1code, 2code, ..., 1023code in sequence. For another example, if the second step length is 10code, then the multiple second calibration DAC values of the second driver chip are 0code, 10code, 20code, ..., 1020code in sequence, and so on.
[0144] In the actual implementation process, the specific selection of the second step length can be set according to actual needs. When determining multiple second calibration DAC values according to the second step length, it can be understood that starting from 0code, each second calibration DAC value is determined in sequence according to the second step length until a second calibration DAC value plus the second step length is greater than 1023code, then the current second calibration DAC value is the last second calibration DAC value.
[0145] In this embodiment, the second driving chip can be controlled to supply power to the second coil accordingly according to the plurality of second calibration DAC values, so that the second moving component moves accordingly, and then the target calibration DAC value is determined among the plurality of second calibration DAC values.
[0146] The second driving chip can supply power to the second coil according to the target calibration DAC value, and the second coil generates a magnetic field after being energized to drive the second moving part to move a distance corresponding to the target calibration DAC value. The target calibration DAC value in this embodiment is the one that minimizes the inclination angle between the moved second moving part and the moved first moving part among the multiple second calibration DAC values.
[0147] In a possible implementation, the tilt angle between the first moving part after moving and the second moving part after moving can be determined by laser ranging. More specifically, the tilt angle is the angle between the line connecting the center point of the first moving part after moving and the center point of the second moving part after moving, and the straight line perpendicular to the first direction. In a possible implementation, when the connecting line and the straight line perpendicular to the first direction intersect to form two complementary angles, the acute angle therein can be understood as the tilt angle.
[0148] For example, you can refer to Figure 7 To understand the tilt angle, Figure 7 As shown, assuming that the first moving part responds to the first calibration DAC value, under the action of the magnetic field force corresponding to the first calibration DAC value, it moves from the position indicated by 701 to the position indicated by 703. And, assuming that the second moving part responds to the second calibration DAC value, under the action of the magnetic field force corresponding to the second calibration DAC value, it moves from the position indicated by 702 to the position indicated by 704.
[0149] Reference Figure 7 , where P is the center point of the first moving part, Q is the center point of the second moving part, and the line connecting the center point P of the first moving part after moving and the center point Q of the second moving part after moving is Figure 7Also, assuming that the first moving part and the second moving part move together to achieve the movement of the carrier in the first direction, wherein the first direction can be Figure 7 The Z-axis direction shown in FIG. 1 , then the straight line perpendicular to the first direction can be Figure 7 The angle between the line PQ connecting the center point P of the first moving part after moving and the center point Q of the second moving part after moving and the line L1 perpendicular to the first direction is Figure 7 The α shown, therefore Figure 7 The α in φ indicates the tilt angle between the first moving part after moving and the second moving part after moving.
[0150] Based on the above introduction, it can be determined that the current ideal state is that the carrier moves along the Z axis, but due to the influence of the magnetic field lines, the carrier may Figure 7 In order to correct the tilt shown by arrow A, the current strategy is to control the distance that the first moving part moves forward to be shorter than the distance that the second moving part moves forward, thereby correcting the tilt in the direction shown by arrow A.
[0151] Figure 7 What is illustrated is a situation where correction is not complete, that is, there is still a certain inclination angle between the first movable part and the second movable part. The purpose of the current correction is to make the inclination angle between the first movable part and the second movable part as small as possible, so that the first movable part after movement and the second movable part after movement are located on the same horizontal line perpendicular to the first direction as much as possible, so as to ensure the movement of the carrier in the first direction.
[0152] Therefore, in this embodiment, it is necessary to determine the corresponding inclination angles for the plurality of second calibration DAC values, and then determine the second calibration DAC value with the smallest inclination angle as the target calibration DAC value.
[0153] S603 , generating a calibration mapping relationship according to the target calibration DAC values corresponding to the first calibration DAC values, where the calibration mapping relationship is used to reflect the correspondence between the DAC value of the first driver chip and the DAC value of the second driver chip.
[0154] In this embodiment, for any first calibration DAC value, a corresponding target calibration DAC value will be determined. Therefore, a correction mapping relationship can be generated according to the target calibration DAC value corresponding to each first calibration DAC value. The correction mapping relationship is used to reflect the correspondence between the DAC value of the first driver chip and the DAC value of the second driver chip.
[0155] For example, assuming that the range of DAC values is 0~1023, if the first step length corresponding to the multiple first calibration DAC values of the first driver chip is 1code, it can be ensured that the corresponding target calibration DAC value is determined for each DAC value in the range of 0~1023. In this case, the correction mapping relationship can be directly generated.
[0156] However, if the first step length corresponding to the multiple first calibration DAC values of the first driver chip is greater than 1code, it means that the corresponding target calibration DAC value is currently determined only for some DAC values in the range of 0~1023. For example, if the first step length is 10code, it means that only DAC values such as 0code, 10code, 20code, etc. have corresponding target calibration DAC values, so the corresponding DAC values such as 1code, 2code, etc. are actually not determined. The corresponding target calibration DAC value. In this case, for every two adjacent first calibration DAC values, according to the target calibration DAC value corresponding to each of the two first calibration DAC values, a linear mapping process can be performed on the multiple DAC values contained between the two first calibration DAC values, so as to determine the target calibration DAC value corresponding to each DAC value in the range of 0~1023. For example, for the two first calibration DAC values of 0code and 10code, the DAC values of 1code, 2code, 3code, ..., 9code can be linearly mapped according to the target calibration DAC value corresponding to 0code and the target calibration DAC value corresponding to 10code, so as to determine the target calibration DAC value corresponding to each DAC value that has not been calibrated.
[0157] After the correction mapping relationship is generated, the movement of the first moving part and the second moving part can be processed according to the correction mapping relationship. For example, when the DAC value of the first driving chip is determined to be a certain specific value X, the correction mapping relationship can be read to determine the value Y corresponding to the specific value X in the correction mapping relationship, and then the value X is used as the DAC value of the first driving chip, and the value Y is used as the DAC value of the second driving chip, and then the first moving part and the second moving part are driven to move accordingly, so that the inclination between the first moving part after movement and the second moving part after movement can be minimized, thereby effectively ensuring that the carrier moves along the first direction as much as possible.
[0158] The tilt processing method of the ball motor provided in the embodiment of the present application includes: for any one of the multiple first calibration digital-to-analog converter DAC values of the first driver chip, inputting a first instruction corresponding to the first calibration DAC value to the first driver chip, the first instruction is used to instruct the first driver chip to power the first coil according to the first calibration DAC value to control the first moving part to move the distance corresponding to the first calibration DAC value. Among the multiple second calibration DAC values of the second driver chip, the target calibration DAC value is determined, and the second driver chip is used to power the second coil according to the target calibration DAC value to control the second moving part to move the distance corresponding to the target calibration DAC value, and the target calibration DAC value minimizes the tilt angle between the moved second moving part and the moved first moving part. According to the target calibration DAC value corresponding to each of the first calibration DAC values, a correction mapping relationship is generated, and the correction mapping relationship is used to reflect the corresponding relationship between the DAC value of the first driver chip and the DAC value of the second driver chip. By setting multiple first calibration DAC values for the first moving part, and then for each first calibration DAC value, the first driver chip powers the first coil according to the first calibration DAC value to control the first moving part to move the corresponding distance. And, a plurality of second calibration DAC values are also set for the second moving part, and the second calibration DAC values are also used to drive the second moving part to move a corresponding distance. Afterwards, for each first calibration DAC value, a target calibration DAC value is determined from the plurality of second calibration DAC values, so that the tilt angle between the first moving part after moving and the second moving part after moving is minimized, and then a correction mapping relationship is generated according to the target drive DAC values corresponding to each of the first calibration DAC values, thereby indicating that the DAC value of the first driving chip and the DAC value of the second driving chip are determined according to the correction mapping relationship during the actual movement of the first moving part and the second moving part, so that the tilt correction of the carrier during movement can be effectively realized.
[0159] Based on the above introduction, the following Figure 8 and Fig. 9 The implementation method of determining the target calibration DAC value from the plurality of second calibration DAC values is further introduced in detail. Figure 8 The process of the tilt processing method of the rolling motor provided in the embodiment of the present application Figure 2 , Fig. 9 A schematic diagram of an implementation of determining a target calibration DAC value provided in an embodiment of the present application.
[0160] like Figure 8 As shown, the method includes:
[0161] S801. For any one of the multiple second calibration DAC values of the second driver chip, input a second instruction corresponding to the second calibration DAC value to the second driver chip, wherein the second instruction is used to instruct the second driver chip to supply power to the second coil according to the second calibration DAC value to control the second moving component to move a distance corresponding to the second calibration DAC value.
[0162] In this embodiment, the processing for each second calibration DAC value is similar, so any second calibration DAC value is taken as an example for description below.
[0163] Exemplarily, for any second calibration DAC value, a second instruction corresponding to the second calibration DAC value can be generated, and then the second instruction corresponding to the second calibration DAC value is input to the second driver chip, wherein the second instruction is used to instruct the second driver chip to supply power to the second coil according to the second calibration DAC value. Therefore, the second driver chip responds to the second instruction and supplies power to the second coil according to the second calibration DAC value. Then, the second coil is energized to generate a corresponding magnetic field, and under the influence of the magnetic field force, it drives the second moving component to move the distance corresponding to the second calibration DAC value.
[0164] There is also a certain correspondence between the second calibration DAC value and the moving distance of the second moving part. For example, when the second calibration DAC value is 1 code, the second moving part moves 5 microns under the action of the magnetic field force, and the moving direction of the second moving part depends on the setting of the magnet and the coil. In short, the second moving part will move under the action of the magnetic field force. The correspondence between the second calibration DAC value and the moving distance of the second moving part may depend on the actual situation of the coil, the magnet and the first moving part.
[0165] S802: Acquire a tilt angle between a second moving component that moves in response to a second calibration DAC value and a first moving component that moves in response to a first calibration DAC value.
[0166] After the second moving component moves in response to the second instruction corresponding to the second calibration DAC value, and after the first moving component moves in response to the first instruction corresponding to the first calibration DAC value, the tilt angle between the moved second moving component and the moved first moving component can be obtained.
[0167] The meaning of the tilt angle has been introduced in the above embodiment. When determining the tilt angle, for example, it can be measured by laser, or the tilt angle can be measured in any possible way, and this embodiment does not limit this.
[0168] S803 . Among the inclination angles corresponding to the second calibration DAC values, determine the second calibration DAC value with the smallest inclination angle as the target calibration DAC value.
[0169] After the corresponding inclination angles are determined for the respective second calibration DAC values, the second calibration DAC value with the smallest inclination angle may be determined as the target calibration DAC value.
[0170] For example, you can refer to Fig. 9 To further understand, Fig. 9 As shown in (a), it is assumed that the first coil and the second coil are coils driving the carrier to move in the Z-axis direction. However, due to the influence of the magnetic field, the carrier may tilt as shown by arrow A on the XZ plane.
[0171] Assume that the target calibration DAC value is currently determined for the first calibration DAC value having a value of 1code, and Fig. 9 The tilt angles corresponding to three possible second calibration DAC values are shown in FIG.
[0172] like Fig. 9 As shown in (b), assuming that the second calibration DAC value is 1code, it means that the DAC values of the first driver chip and the second driver chip are the same. In this case, the tilt angle is, for example, Fig. 9 The angle α1 shown in (b) is, for example, 30 degrees. It can be understood that, in the current case, the carrier actually tilts in the direction indicated by the arrow A.
[0173] As well as Fig. 9 As shown in (c), assuming that the second calibration DAC value is 5code, it means that the DAC value of the second driver chip is greater than the DAC value of the first driver chip. In this case, the tilt angle is, for example, Fig. 9 The angle α2 shown in (c) is, for example, 0 degrees. It can be understood that, in the current case, the tilt of the carrier in the direction indicated by the arrow A is actually effectively corrected.
[0174] As well as Fig. 9 As shown in (d), assuming that the second calibration DAC value is 10code, it means that the DAC value of the second driver chip is greater than the DAC value of the first driver chip. In this case, the tilt angle is, for example, Fig. 9 The angle α3 shown in (d) is, for example, 15 degrees. It can be understood that, in the current case, the tilt of the carrier in the direction indicated by the arrow A is actually corrected, but the correction force is too large, resulting in a tilt in another direction.
[0175] So for the current Fig. 9From the three second calibration DAC values shown, it can be determined that 5code is the second calibration DAC value corresponding to the smallest tilt angle, and therefore it can be determined that the target calibration DAC value corresponding to the first calibration DAC value 1code is 5code.
[0176] In actual implementation, when setting the second step size for the second calibration DAC value, in order to ensure that the second calibration DAC value with the smallest tilt angle is found as much as possible, the second step size can be set smaller, that is, the second calibration DAC value is set as detailed as possible.
[0177] In the tilt processing method of the ball motor provided in the embodiment of the present application, multiple second calibration DAC values of the second driver chip are processed separately to instruct the second driver chip to supply power to the second coil according to each second calibration DAC value to control the second moving part to move a corresponding distance, and then the corresponding tilt angle is determined for each second calibration DAC value, and then the second calibration DAC value with the smallest tilt angle is determined as the target calibration DAC value corresponding to the first calibration DAC value currently being processed, so that the target calibration DAC value can be determined accurately and effectively, and the tilt angle corresponding to the target calibration DAC value is guaranteed to be the smallest.
[0178] Based on the above embodiments, it can be determined that, for the first driver chip, there is a certain correspondence between the first calibrated DAC value and the moving distance of the first moving component. And for the second driver chip, there is also a certain correspondence between the second calibrated DAC value and the moving distance of the second moving component. This correspondence is described below.
[0179] A first Hall element is integrated in the first driver chip, wherein the Hall element can sense the magnetic field strength. Before formal calibration, for example, Hall calibration can be performed on the first Hall element in the first driver chip, wherein the Hall calibration is to determine the correspondence between the voltage value of the first Hall element and the moving position of the first moving part, thereby obtaining the first Hall mapping relationship of the first Hall element.
[0180] For example, starting from the initial position of the first moving part, the initial position is recorded as 0 microns, and then the first moving part is driven to move forward a certain distance (the moving direction depends on the influence of the magnetic field) by supplying power to the first coil, and then the voltage value of the first Hall element at this time is recorded, so as to establish a corresponding relationship between the voltage value of the first Hall element and the moving position of the first moving part. For example, when the first moving part moves forward 10 microns, the voltage value of the first Hall element is 2 V. Similar processing is performed for multiple moving distances of the first moving part, so as to obtain the first Hall mapping relationship of the first Hall element.
[0181] The first calibration DAC value of the first driver chip corresponds to the first voltage of the first Hall element, where there is a clear correspondence between voltage and current. Therefore, according to the first Hall mapping relationship, the correspondence between the first calibration DAC value and the moving distance of the first moving component can be clearly defined. Exemplarily, for any first calibration DAC value, the distance corresponding to the first calibration DAC value is the moving distance corresponding to the first voltage in the first Hall mapping relationship. The first voltage is the voltage of the first Hall element corresponding to the first calibration DAC value.
[0182] In addition, a second Hall element is integrated in the second driver chip. Similarly, before formal calibration, for example, Hall calibration can be performed on the second Hall element in the second driver chip, wherein the Hall calibration is to determine the correspondence between the voltage value of the second Hall element and the moving position of the second movable part, thereby obtaining the second Hall mapping relationship of the second Hall element.
[0183] For example, starting from the initial position of the second moving part, the initial position is recorded as 0 microns, and then the second moving part is driven to move forward a certain distance (the moving direction depends on the influence of the magnetic field) by supplying power to the second coil, and then the voltage value of the second Hall element at this time is recorded, so as to establish a corresponding relationship between the voltage value of the second Hall element and the moving position of the second moving part. For example, when the second moving part moves forward 10 microns, the voltage value of the second Hall element is 2 V. Similar processing is performed for multiple moving distances of the second moving part, so as to obtain the second Hall mapping relationship of the second Hall element.
[0184] The second calibration DAC value of the second driver chip corresponds to the second voltage of the second Hall element, where there is a clear correspondence between voltage and current. Therefore, according to the second Hall mapping relationship, the correspondence between the second calibration DAC value and the moving distance of the second moving part can be clearly defined. Exemplarily, for any second calibration DAC value, the distance corresponding to the second calibration DAC value is the moving distance corresponding to the second voltage in the second Hall mapping relationship. The second voltage is the voltage of the second Hall element corresponding to the second calibration DAC value.
[0185] Therefore, in this embodiment, by performing Hall calibration on the first Hall element and the second Hall element respectively before the calibration process, the first Hall mapping relationship corresponding to the first Hall element and the second Hall mapping relationship corresponding to the second Hall element can be determined. Then, based on the first Hall mapping relationship and the second Hall mapping relationship, the correspondence between each calibrated DAC value and the corresponding moving distance can be clarified, which can play an effective role in determining the position of the moving part and driving the moving part to move.
[0186] Based on the above embodiments, Fig.10 and Fig.11 In the actual application process of the ball motor, the implementation method of the tilt correction of the ball motor is described. The execution subject of the current embodiment can be, for example, a terminal device that carries the ball motor, or it can also be a processing unit such as a processor or chip in the terminal device. Any component in the terminal device that can be used to perform data processing can be used as the execution subject of this embodiment, and there is no special restriction on the specific execution subject.
[0187] Fig.10 This is a flow chart of a method for correcting the tilt of a ball motor provided in an embodiment of the present application. Fig.11 A schematic diagram of a correction mapping relationship provided in an embodiment of the present application.
[0188] like Fig.10 As shown, the method includes:
[0189] S1001 . In response to an automatic focusing instruction, set a DAC value of a first driving chip to a first application DAC value to control a first moving component to move a distance corresponding to the first application DAC value.
[0190] Based on the introduction of the above embodiments, it can be determined that the ball motor can be used for automatic focusing. Therefore, when the ball motor is required to provide the automatic focusing function, an automatic focusing instruction can be generated, and then in response to the automatic focusing instruction, the DAC value of the first driver chip in the ball motor is set to the first application DAC value. Exemplarily, the first application DAC value can be carried in the automatic focusing instruction, and the function of the automatic focusing instruction can be to instruct the first driver chip to set the DAC value to the first application DAC value.
[0191] After the first driving chip sets the DAC value to the first application DAC value, power is supplied to the first coil, thereby driving the first moving component to move a distance corresponding to the first application DAC value.
[0192] S1002. Obtain a target application DAC value corresponding to the first application DAC value in a correction mapping relationship.
[0193] And in order to achieve tilt correction in this embodiment, the DAC value of the second driver chip can be determined according to the correction mapping relationship, so that the second driver chip cooperates with the DAC value of the first driver chip to achieve tilt correction during the movement of the carrier.
[0194] Therefore, the target application DAC value corresponding to the first application DAC value can be obtained in the correction mapping relationship. It can be understood that the correction mapping relationship is used to reflect the correspondence between the DAC value of the first driver chip and the DAC value of the second driver chip. Therefore, the first application DAC value is used as the DAC value of the first driver chip, and the corresponding DAC value of the second driver chip is determined in the correction mapping relationship, thereby obtaining the corresponding target application DAC value.
[0195] For example, you can refer to Fig.11 For example, assume Fig.11 The straight line shown in is the correction mapping relationship currently introduced. Fig.11 The horizontal axis represents the DAC value of the first driver chip, and the vertical axis represents the DAC value of the second driver chip. Assuming that the first application DAC value of the current first driver chip is 1code, then from the correction mapping relationship, it can be determined that the target application DAC value corresponding to the first application DAC value is 5code, so the DAC value of the second driver chip can be determined to be 5code.
[0196] In the actual implementation process, the correction mapping relationship can be Fig.11 The straight line (or curve) shown may be in the form of a function or a table. The present embodiment does not limit the specific expression of the correction mapping relationship, which may be selected according to actual needs, as long as the correction mapping relationship can effectively reflect the corresponding relationship between the DAC value of the first driver chip and the DAC value of the second driver chip.
[0197] S1003 , setting the DAC value of the second driving chip to the target application DAC value, so as to control the second moving component to move a distance corresponding to the target application DAC value.
[0198] Because the correction mapping relationship is obtained through the various processes introduced in the above embodiments, the DAC value of the second driver chip is set to the target application DAC value, wherein the target application DAC value and the first application DAC value correspond to each other in the correction mapping relationship. Therefore, after the second coil is energized to drive the second moving part to move the distance corresponding to the target application DAC value, it can be ensured that the tilt angle between the first moving part and the second moving part is very small, thereby effectively realizing the tilt correction of the carrier movement.
[0199] The tilt processing method of the ball motor provided in the embodiment of the present application determines the first application DAC value of the first driving chip according to the automatic focusing instruction, then determines the target application DAC value corresponding to the first application DAC value in the correction mapping relationship, and then sets the target application DAC value to the DAC value of the second driving chip, and then drives the first moving part to move accordingly according to the first application DAC value, and drives the second moving part to move accordingly according to the target application DAC value, thereby ensuring that the tilt angle between the first moving part after movement and the second moving part after movement is very small, thereby effectively correcting the tilt problem of the carrier movement.
[0200] The above has described the tilt processing method of the ball motor and the tilt correction method of the ball motor in the embodiment of the present application. The following is a description of the device for executing the above method provided by the embodiment of the present application. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided by the embodiment of the present application can execute the steps in the above list sorting method.
[0201] Fig.12 This is a schematic diagram of the structure of the tilt processing device of the ball motor provided in the embodiment of the present application. Fig.12 As shown, the device 120 includes: a sending module 1201, a determining module 1202, and a processing module 1203;
[0202] a sending module 1201, configured to input, for any one of a plurality of first calibrated digital-to-analog converter DAC values of the first driver chip, a first instruction corresponding to the first calibrated DAC value to the first driver chip, wherein the first instruction is configured to instruct the first driver chip to supply power to the first coil according to the first calibrated DAC value, so as to control the first moving component to move a distance corresponding to the first calibrated DAC value;
[0203] a determination module 1202, configured to determine a target calibration DAC value among a plurality of second calibration DAC values of the second driving chip, wherein the second driving chip is configured to supply power to the second coil according to the target calibration DAC value, so as to control the second moving part to move a distance corresponding to the target calibration DAC value, wherein the target calibration DAC value minimizes an inclination angle between the second moving part after moving and the first moving part after moving;
[0204] The processing module 1203 is used to generate a correction mapping relationship according to the target calibration DAC values corresponding to the first calibration DAC values, wherein the correction mapping relationship is used to reflect the correspondence between the DAC value of the first driver chip and the DAC value of the second driver chip.
[0205] In some implementations, the determining module 1202 is specifically configured to:
[0206] For any one of the plurality of second calibration DAC values of the second driver chip, inputting a second instruction corresponding to the second calibration DAC value into the second driver chip, wherein the second instruction is used to instruct the second driver chip to supply power to the second coil according to the second calibration DAC value, so as to control the second moving component to move a distance corresponding to the second calibration DAC value;
[0207] acquiring a tilt angle between a second moving component moved in response to the second calibration DAC value and the first moving component moved in response to the first calibration DAC value;
[0208] Among the inclination angles corresponding to the second calibration DAC values, the second calibration DAC value with the smallest inclination angle is determined as the target calibration DAC value.
[0209] In some implementations, the processing module 1203 is further configured to:
[0210] Performing Hall calibration on a first Hall element in the first driving chip to determine a first Hall mapping relationship corresponding to the first Hall element, where the first Hall mapping relationship is used to indicate a corresponding relationship between a voltage value of the first Hall element and a moving distance of the first moving component;
[0211] A Hall calibration is performed on the second Hall element in the second driving chip to determine a second Hall mapping relationship corresponding to the second Hall element, where the second Hall mapping relationship is used to indicate a corresponding relationship between a voltage value of the second Hall element and a moving distance of the second moving component.
[0212] In some implementations, the first calibrated DAC value of the first driver chip corresponds to the first voltage of the first Hall element, and the distance corresponding to the first calibrated DAC value is the moving distance corresponding to the first voltage in the first Hall mapping relationship;
[0213] The second calibrated DAC value of the second driving chip corresponds to the second voltage of the second Hall element, and the distance corresponding to the second calibrated DAC value is the moving distance corresponding to the second voltage in the second Hall mapping relationship.
[0214] In some implementations, the processing module 1203 is further configured to:
[0215] In response to an automatic focusing instruction, setting the DAC value of the first driving chip to a first application DAC value, so as to control the first moving component to move a distance corresponding to the first application DAC value;
[0216] Obtaining a target application DAC value corresponding to the first application DAC value in the correction mapping relationship;
[0217] The DAC value of the second driving chip is set to the target application DAC value to control the second moving component to move a distance corresponding to the target application DAC value.
[0218] In some implementations, the first moving component and the second moving component are integrally formed; or, the first moving component and the second moving component are connected in a preset manner;
[0219] The first moving component and the second moving component move together as a whole to control the movement of the carrier in the first direction.
[0220] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar and will not be described in detail in this embodiment.
[0221] Fig.13 This is a schematic diagram of the structure of the tilt correction device of the ball motor provided in the embodiment of the present application. Fig.13 As shown, the device 130 includes: a processing module 1301, an acquisition module 1302;
[0222] The processing module 1301 is used for setting the DAC value of the first driving chip to a first application DAC value in response to an automatic focusing instruction, so as to control the first moving component to move a distance corresponding to the first application DAC value;
[0223] An acquisition module 1302 is used to acquire a target application DAC value corresponding to the first application DAC value in a correction mapping relationship, wherein the correction mapping relationship is determined according to the method described in the above embodiment;
[0224] The processing module 1301 is further configured to set the DAC value of the second driving chip to the target application DAC value, so as to control the second moving component to move a distance corresponding to the target application DAC value.
[0225] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar and will not be described in detail in this embodiment.
[0226] The ball motor tilt processing method and the ball motor tilt correction method provided in the embodiments of the present application can be applied to electronic devices with communication functions. The electronic devices include terminal devices, and the specific device form of the terminal device can refer to the above related descriptions.
[0227] An embodiment of the present application provides an electronic device, Fig.14 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0228] like Fig.14 As shown, the electronic device 140 includes: a processor 1401 and a memory 1402; the memory 1402 stores computer-executable instructions; the processor 1401 executes the computer-executable instructions stored in the memory 1402, so that the electronic device 140 executes the above method.
[0229] When the memory 1402 is independently provided, the electronic device further includes a bus 1403 for connecting the memory 1402 and the processor 1401 .
[0230] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.
[0231] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.
[0232] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.
[0233] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.
[0234] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0235] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for processing the tilt of a ball motor, characterized in that: The ball motor includes a carrier for carrying a lens, the carrier includes a first moving part and a second moving part, the first moving part is equipped with at least one first coil and a first driving chip for supplying power to the first coil, and the second moving part is equipped with at least one second coil and a second driving chip for supplying power to the second coil; The method comprises: For any one of the plurality of first calibration digital-to-analog converter DAC values of the first driver chip, inputting a first instruction corresponding to the first calibration digital-to-analog converter DAC value into the first driver chip, wherein the first instruction is used to instruct the first driver chip to supply power to the first coil according to the first calibration digital-to-analog converter DAC value, so as to control the first moving component to move a distance corresponding to the first calibration digital-to-analog converter DAC value; Determine a target calibration DAC value among a plurality of second calibration digital-to-analog converter DAC values of the second driver chip, and the second driver chip is used to supply power to the second coil according to the target calibration DAC value to control the second moving part to move a distance corresponding to the target calibration DAC value, wherein the target calibration DAC value minimizes an inclination angle between the second moving part after moving and the first moving part after moving; A correction mapping relationship is generated according to the target calibration DAC values corresponding to each of the first calibration digital-to-analog converter DAC values, wherein the correction mapping relationship is used to reflect the correspondence between the DAC value of the first driver chip and the DAC value of the second driver chip, and the correspondence is used to minimize the inclination angle between the first moving component after movement and the second moving component after movement.
2. The method according to claim 1, characterized in that The step of determining a target calibration DAC value from among a plurality of second calibration digital-to-analog converter DAC values of the second driver chip comprises: For any one of the plurality of second calibrated digital-to-analog converter DAC values of the second driver chip, inputting a second instruction corresponding to the second calibrated digital-to-analog converter DAC value into the second driver chip, wherein the second instruction is used to instruct the second driver chip to supply power to the second coil according to the second calibrated digital-to-analog converter DAC value, so as to control the second moving component to move a distance corresponding to the second calibrated digital-to-analog converter DAC value; Acquire a tilt angle between a second moving component moved in response to the second calibration digital-to-analog converter DAC value and the first moving component moved in response to the first calibration digital-to-analog converter DAC value; Among the inclination angles corresponding to the second calibration digital-to-analog converter DAC values, the second calibration digital-to-analog converter DAC value with the smallest inclination angle is determined as the target calibration DAC value.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Performing Hall calibration on a first Hall element in the first driving chip to determine a first Hall mapping relationship corresponding to the first Hall element, where the first Hall mapping relationship is used to indicate a corresponding relationship between a voltage value of the first Hall element and a moving distance of the first moving component; A Hall calibration is performed on the second Hall element in the second driving chip to determine a second Hall mapping relationship corresponding to the second Hall element, where the second Hall mapping relationship is used to indicate a corresponding relationship between a voltage value of the second Hall element and a moving distance of the second moving component.
4. The method according to claim 3, characterized in that A first calibrated digital-to-analog converter DAC value of the first driving chip corresponds to a first voltage of the first Hall element, and a distance corresponding to the first calibrated digital-to-analog converter DAC value is a moving distance corresponding to the first voltage in the first Hall mapping relationship; The second calibrated digital-to-analog converter DAC value of the second driver chip corresponds to the second voltage of the second Hall element, and the distance corresponding to the second calibrated digital-to-analog converter DAC value is the moving distance corresponding to the second voltage in the second Hall mapping relationship.
5. The method according to any one of claim 4, characterized in that: The method further comprises: In response to an automatic focusing instruction, setting the DAC value of the first driving chip to a first application DAC value, so as to control the first moving component to move a distance corresponding to the first application DAC value; Obtaining a target application DAC value corresponding to the first application DAC value in the correction mapping relationship; The DAC value of the second driving chip is set to the target application DAC value to control the second moving component to move a distance corresponding to the target application DAC value.
6. The method according to any one of claim 5, characterized in that: The first moving part and the second moving part are integrally formed; or, the first moving part and the second moving part are connected in a preset manner; The first moving component and the second moving component move together as a whole to control the movement of the carrier in the first direction.
7. A method for correcting the tilt of a ball motor, characterized in that the ball motor includes a carrier for carrying a lens, the carrier includes a first moving part and a second moving part, the first moving part is equipped with a first coil and a first driving chip for supplying power to the first coil, and the second moving part is equipped with a second coil and a second driving chip for supplying power to the second coil; The method comprises: In response to an automatic focusing instruction, setting the DAC value of the first driving chip to a first application DAC value, so as to control the first moving component to move a distance corresponding to the first application DAC value; Obtaining a target application DAC value corresponding to the first application DAC value in a correction mapping relationship, wherein the correction mapping relationship is determined according to the method according to any one of claims 1 to 6; The DAC value of the second driving chip is set to the target application DAC value to control the second moving component to move a distance corresponding to the target application DAC value.
8. A ball motor, characterized in that: include: A carrier for carrying a lens, the carrier comprising a first movable part and a second movable part, the first movable part being mounted with at least one first coil and a first driving chip for supplying power to the first coil, the second movable part being mounted with at least one second coil and a second driving chip for supplying power to the second coil; the ball motor being used to implement the method described in any one of claims 1 to 7 above.
9. The ball motor according to claim 8, characterized in that: The first coil is used to control the movement of the first moving part after being energized; the second coil is used to control the movement of the second moving part after being energized; The first moving component and the second moving component move together as a whole to control the movement of the carrier in the first direction.
10. The ball motor according to claim 8 or 9, characterized in that: The first moving component and the second moving component are integrally formed; or, the first moving component and the second moving component are connected in a preset manner.
11. The ball motor according to claim 10, characterized in that: The carrier comprises a through hole for placing the lens, and the through hole is located between the first moving component and the second moving component; The ball motor further includes a base, and the first moving component and the second moving component are symmetrically arranged above the base.
12. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the method according to any one of claims 1 to 7.
13. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
14. A computer program product, characterized in that The method comprises a computer program, which, when being executed, enables a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Driving device for realizing automatic focusing and shake prevention of camera
CN110708452A
Motor control method and electronic equipment
CN114554072A
Focusing driving assembly and camera module
CN115718354A