Driving chip control method and system, storage medium and electronic equipment
By determining whether the difference between the position command and the current moving position in the driver chip meets the preset conditions, and bypassing the integral control branch when the conditions are met, the problem of excessive power consumption of the driver chip when the lens moving position is not updated is solved, and lower power consumption and longer battery life are achieved.
Patent Information
- Application Number
- CN202411899620.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-04
AI Technical Summary
In the prior art, the drive chip is difficult to fully reduce power consumption when the motor does not need to update the lens moving position, resulting in a shortened battery life and excessive heat from the equipment.
By obtaining the difference between the position command issued by the control terminal and the current moving position, it is determined whether the preset position condition is met. When the difference value meets the condition, the integral control branch in the driving chip is bypassed to reduce the output of the driving current.
It effectively reduces the power consumption of the driver chip, extends battery life, reduces the heat of the device, and improves the user experience.
Smart Images

Figure CN119767132A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip technology, and in particular to a drive chip control method and system, storage medium and electronic device. Background Art
[0002] Motors (such as voice coil motors, VCMs, Voice Coil Motors) have the characteristics of high frequency response and high precision. They are widely used in mobile phone cameras to achieve autofocus functions. Specifically, the control end controls the driver chip to output driving current to the motor, so that the motor drives the lens to move and adjust the position of the lens to present a clear image.
[0003] In the related art, when the motor is actually used, if the moving position of the lens needs to be updated, then after the motor pushes the lens to the corresponding moving position, the control end sends a power-off command to the driver chip that provides current to the motor, so that the driver chip enters the power-off mode standby, and the current in the coil inside the motor will be turned off, and the lens is maintained in the corresponding position only by the static friction of the motor, so as to achieve the purpose of reducing power consumption. If the moving position of the lens does not need to be updated, the driver chip is in the normal working mode and continuously outputs the driving current to maintain the moving position of the lens. In this way, the power consumption of the driver chip is relatively large. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a driver chip control method and system, a storage medium and an electronic device to solve or alleviate the problem that the power consumption of the driver chip is not sufficiently reduced in the related art.
[0005] According to a first aspect of an embodiment of the present application, a driver chip control method is provided, wherein the driver chip includes at least an integral control branch, and the method includes: obtaining a position instruction sent by a control end, wherein the position instruction includes at least a target moving position of a lens; when the position instruction does not indicate updating the moving position of the lens, obtaining the current moving position of the lens sent by the control end; when the difference between the target moving position and the current moving position in the position instruction meets a preset position condition, bypassing the integral control branch in the driver chip, wherein the integral control branch is used to continuously output a driving current for updating the moving position of the lens.
[0006] In some embodiments of the present application, the driver chip also includes a proportional control branch and a differential control branch, and the driver chip control method also includes: when the position instruction indicates to update the moving position of the lens, an access instruction and a position instruction of the integral control branch are sent to the driver chip through the control end; the driver chip accesses the integral control branch based on the access instruction; the driver chip parses the position instruction to obtain the target moving position, and outputs the driving current required based on the target moving position output to the motor through the integral control branch, the proportional control branch and the differential control branch.
[0007] In some embodiments of the present application, after the driving current required based on the target moving position output is output to the motor through the integral control branch, the proportional control branch and the differential control branch, the driver chip control method also includes: judging by the control end whether the sending time of the position instruction meets the preset time, wherein the preset time indicates that the lens has moved to the target moving position within the preset time; if the sending time meets the preset time, the control end sends an integral control branch bypass instruction to the driver chip to bypass the integral control branch in the driver chip.
[0008] In some embodiments of the present application, when the difference between the target moving position and the current moving position in the position instruction meets the preset position condition, before the integral control branch in the driver chip is bypassed, the driver chip control method also includes: judging whether the difference between the target moving position and the current moving position is less than a preset threshold; if the difference between the target moving position and the current moving position is less than the preset threshold, determining that the difference between the target moving position and the current moving position meets the preset position condition, wherein the preset threshold indicates that the current moving position of the lens is the target moving position.
[0009] In some embodiments of the present application, the driver chip control method also includes: if the difference between the target moving position and the current moving position is greater than or equal to a preset threshold, determining that the difference between the target moving position and the current moving position does not meet the preset position condition; updating the issuance duration of the collected position instruction to an initial value, and controlling the driver chip to maintain a normal working state, wherein the normal working state indicates that the integral control branch of the driver chip is in a non-bypass state.
[0010] In some embodiments of the present application, after the difference between the target moving position and the current moving position in the position instruction meets the preset position condition, the driver chip control method also includes: collecting the sending time of the position instruction; judging whether the sending time is greater than the preset time; if the sending time is greater than the preset time, determining that the sending time meets the preset time condition; controlling the integral control branch in the driver chip to bypass, and controlling the differential control branch and the proportional control branch in the driver chip to access.
[0011] In some embodiments of the present application, the driver chip control method further includes: when the position instruction indicates to update the moving position of the lens, updating the duration when issuing to an initial value, and controlling the driver chip to maintain a normal working state.
[0012] According to a second aspect of an embodiment of the present application, a driver chip control system is provided, the system comprising: a first acquisition module, for acquiring a position instruction issued by a control end, wherein the position instruction at least includes a target moving position of a lens; a second acquisition module, for acquiring a current moving position of the lens sent by the control end when the position instruction does not indicate an update of the moving position of the lens; and a control module, for controlling an integral control branch in the driver chip to be bypassed when a difference between the target moving position in the position instruction and the current moving position meets a preset position condition, wherein the integral control branch is used to continuously output a driving current for updating the moving position of the lens.
[0013] According to the third aspect of the embodiments of the present application, an electronic device is provided, including: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the driver chip control method of any of the above embodiments.
[0014] According to a fourth aspect of the embodiments of the present application, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, a driver chip control method as described in any of the above embodiments is implemented.
[0015] According to the driver chip control method and system, storage medium and electronic device provided in the embodiments of the present application, when the position instruction does not indicate updating the moving position of the lens, the current moving position of the lens sent by the control end is obtained, and the difference between the current moving position and the target moving position is processed to determine whether the difference meets the preset position condition, and when it meets the preset position condition, the integral control branch that outputs a larger driving current in the driver chip is bypassed, which can reduce the power consumption of the driver chip compared to the continuous standby of the driver chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0017] Figure 1 Schematic diagram of a process of controlling a driver chip according to an embodiment of the present application;
[0018] Figure 2 is a structural schematic diagram of a driver chip control method according to an embodiment of the present application;
[0019] Figure 3A schematic diagram of a process flow of a driver chip control method in the related art;
[0020] Figure 4 is a flow chart of a driver chip control method according to another embodiment of the present application;
[0021] Figure 5 is a flow chart of a driver chip control method according to another embodiment of the present application;
[0022] Figure 6 is a structural block diagram of a driver chip control system according to an embodiment of the present application;
[0023] Figure 7 The figure is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0025] The specific implementation of the embodiments of the present application is further explained below in combination with the embodiments of the present application and the accompanying drawings.
[0026] Figure 1 The figure is a flow chart of a driver chip control method according to an embodiment of the present application.
[0027] like Figure 1 As shown, the driving chip control method includes:
[0028] S11: Acquire a position instruction sent by the control end, wherein the position instruction at least includes a target moving position of the lens.
[0029] The control end can be a device with a camera function, such as a mobile phone, camera, tablet or laptop. When the control end is a mobile phone, the position of the lens is adjusted mainly through VCM (Voice Coil Motor) during the process of taking pictures with the mobile phone to achieve the autofocus function and ensure the clarity of the taken pictures. The driver chip refers to a driver chip using a closed-loop control system. The closed-loop control system uses the deviation of the output from the expected value to control the system, which can obtain better control performance.
[0030] The main process of the driver chip controlling the voice coil motor to push the lens to move is: the control end (such as a mobile phone or other device) sends a position instruction including the target moving position of the lens to the driver chip through the I2C bus, and then the driver chip provides a driving current to the inner coil of the voice coil motor according to the position instruction, and then the voice coil motor generates a force to push the lens to move according to the driving current, so that the voice coil motor pushes the lens to the target moving position.
[0031] Among them, since the driver chip does not have an MCU module, the control end needs to read and write the driver chip through the I2C bus to control the driver chip. The voice coil motor can be a shrapnel motor, a ball motor, and a friction motor. The type of voice coil motor can be set according to the actual usage. In the process of pushing the lens to the target moving position, the driver chip needs to output the driving current to the voice coil motor multiple times, thereby generating a force to push the lens to move according to the magnetic field in the voice coil motor.
[0032] S12: When the position instruction does not indicate to update the moving position of the lens, the current moving position of the lens sent by the control end is obtained.
[0033] Specifically, the current moving position of the lens can be sensed by the Hall element. When automatically focusing, the inner coil of the voice coil motor and the permanent magnet will produce electromagnetic interaction, thereby generating an upward force to drive the lens mount and the lens module. By fixing the Hall element on the side close to the permanent magnet, the displacement of the lens caused by the voice coil motor can be sensed.
[0034] S13: When the difference between the target moving position in the position instruction and the current moving position meets the preset position condition, bypassing the integral control branch in the driving chip, wherein the integral control branch is used to continuously output a driving current for updating the moving position of the lens.
[0035] The preset position condition indicates that the current moving position of the lens is close to the target moving position. The preset position condition may be a preset threshold value. The preset threshold value may be a value close to 0, which may be adjusted according to the actual situation. The integral control branch is used to continuously output the driving current for updating the moving position of the lens. The integral control branch refers to the KI branch in the PID (Proportion, Integral, Differential) module. It can be understood that the integral control branch continuously accumulates and outputs the driving current, so the output driving current is large, which makes the power consumption of the driver chip large.
[0036] It is understandable that when the position instruction does not indicate to update the moving position of the lens, the position of the lens is usually considered to be the target moving position. However, due to environmental influences, the lens is easily disturbed by the outside world and deviates from its target moving position. When the control end detects through the Hall element that the lens deviates from its target moving position, the PID module in the driver chip will output the corresponding driving current, so that the voice coil motor pushes the lens to move back to the target moving position under the action of the driving current.
[0037] Therefore, the present application takes into account the influence of environmental factors. When the position instruction does not indicate to update the moving position of the lens, the current moving position of the lens sent by the control end is obtained, and the difference between the current moving position and the target moving position is processed to determine whether the difference meets the preset position condition. When it meets the preset position condition, the integral control branch that outputs a larger driving current in the driver chip is automatically bypassed. Compared with the continuous standby state of the driver chip (that is, the control branches in the PID module are all kept connected), the power consumption of the driver chip can be reduced.
[0038] It should be noted that when the integral control branch of the driver chip is bypassed, its proportional control branch and differential control branch remain connected, and the driver chip can output the driving current through the proportional control branch and the differential control branch, so that it can respond quickly when the control end issues the position instruction again, so that the driver chip can output the driving current in time to drive the lens to move through the voice coil motor, thereby ensuring the user's equipment usage experience.
[0039] For example, Figure 2 Schematic diagram of the structure of a driver chip control method according to an embodiment of the present application.
[0040] like Figure 2As shown, the driver chip first obtains the position instruction target sent by the control end. When the target does not indicate the update of the moving position of the lens, the current moving position of the lens generated by the push of the ball motor is sensed by the Hall element, and the current moving position is sent to the driver chip through the control end; then the driver chip calculates the difference errcode between the target moving position and the current moving position in the target, and sends the errcode to the low power consumption judgment module in the driver chip (the module is used to determine whether the integral control branch of the driver chip needs to be bypassed); then when the low power consumption judgment module determines that errcode is less than the preset threshold, it can be determined that the driver chip can enter the low power consumption state, and at this time the integral control branch KI in the PID module is controlled to be bypassed, that is, the integral control branch KI no longer outputs the driving current, and the driving current is output to the ball motor through the proportional control branch KP and the differential control branch KD. In this way, the power consumption of the driver chip can be reduced, and a smaller driving current is output to the ball motor through the proportional control branch and the differential control branch, so that the lens can be maintained at the current moving position, ensuring the user's device usage experience.
[0041] In some embodiments, the driver chip control method further includes:
[0042] When the position instruction indicates to update the moving position of the lens, the access instruction and the position instruction of the integral control branch are sent to the driver chip through the control end; the driver chip accesses the integral control branch based on the access instruction; the driver chip parses the position instruction to obtain the target moving position, and outputs the driving current required based on the target moving position output to the motor through the integral control branch, the proportional control branch and the differential control branch.
[0043] Further, in some embodiments, after outputting the driving current required based on the target moving position output to the motor through the integral control branch, the proportional control branch and the differential control branch, the method further includes:
[0044] Determining, by the control end, whether the time duration of issuing the position instruction satisfies a preset time duration, wherein the preset time duration indicates that the lens has moved to the target moving position within the preset time duration;
[0045] If the sending duration meets the preset duration, the control end sends the integral control branch bypass instruction to the driver chip to bypass the integral control branch in the driver chip. The sending duration of the position instruction is counted by a timing device, such as a timer.
[0046] For example, Figure 3 It is a flowchart of a driver chip control method in the related art.
[0047] like Figure 3 As shown, the method includes:
[0048] S31: The control end determines whether to update the moving position of the lens, if so, it goes to S32, if not, it goes to S35;
[0049] S32: Control the driver chip to enter a normal working state, and send a position instruction target including a target moving position to the driver chip;
[0050] S33: delay 30ms;
[0051] S34: Control the driver chip to enter power-off mode;
[0052] S35: The control end monitors whether the moving position difference of the camera lens is less than 100 code, wherein the moving position difference = target moving position - current moving position. If so, enter S32; if not, enter S31.
[0053] It can be seen that when the voice coil motor is actually used, if the moving position of the lens is updated, the control driver chip enters a normal working state to output a driving current to the voice coil motor so that the voice coil motor pushes the lens to move to the target moving position, and by setting a delay of 30ms, after the voice coil motor pushes the lens to move to the target moving position, the control driver chip enters a power-off mode, the current in the coil inside the voice coil motor will be turned off, and the lens is maintained in the corresponding position only by static friction, so as to achieve the purpose of reducing power consumption. However, relying only on static friction to maintain the position of the lens is prone to cause the lens position to shift under the influence of the external environment, and because the driver chip is in the power-off mode, it is impossible to control the lens to return to the position before the shift.
[0054] If the moving position of the lens is not updated, the control end will continue to monitor the moving position difference of the driver chip to determine whether to update the moving position of the lens. This increases the dependence on the control end's resources, and during the interval period of the control end's polling monitoring, the amount of light entering the aperture or lens or the focusing effect changes greatly, which reduces the user's photo-taking experience.
[0055] Therefore, in order to solve the above problems, an embodiment of the present application proposes that when the position instruction indicates to update the moving position of the lens, the driving current required based on the target moving position output is first output to the motor through the integral control branch, the proportional control branch and the differential control branch, and at the same time, the issuance duration of the position instruction is counted through a timer, so that when the issuance duration meets the preset duration, the integral control branch in the driving chip is controlled to be bypassed.
[0056] For example, Figure 4 FIG. 4 is a flow chart of a driver chip control method according to another embodiment of the present application.
[0057] like Figure 4 As shown, the method includes:
[0058] S41: The control end determines whether to update the moving position of the lens, the position command target, if yes, then enter S42, if not, then the control end does not process;
[0059] S42: The control end sends a position instruction target including a target moving position and an access instruction of the integral control branch to the drive chip;
[0060] S43: the driver chip accesses the integral control branch based on the access instruction, and parses the target to obtain the target moving position, so as to output the required driving current based on the target moving position to the voice coil motor through the integral control branch, the proportional control branch and the differential control branch;
[0061] S44: The control end determines whether the target delivery duration meets the preset duration. If so, it proceeds to S45. The preset duration can be set to 15ms, or can be adjusted according to actual needs. The specific value is not limited here.
[0062] S45: The control end sends an integral control branch bypass instruction to the drive chip to bypass the integral control branch in the drive chip.
[0063] It can be seen that compared with the technical solution of controlling the driver chip to enter the power-off mode after the lens moves to the target moving position, the present application controls the integral control branch in the driver chip to bypass after the target is sent for a preset time, thereby reducing the output current of the driver chip to reduce the power consumption of the driver chip, and does not bypass the proportional control branch and the differential control branch, so that the driver chip can output the driving current to the voice coil motor through the proportional control branch and the differential control branch, which can avoid the problem of unstable lens position due to static friction, improve the stability of the lens, and ensure the user's equipment experience. In addition, when the position instruction does not indicate to update the moving position of the lens, the control end does not perform other processing, and there is no need to continuously monitor the moving position difference of the lens, reducing the dependence on the control end resources.
[0064] In some embodiments, when the difference between the target moving position in the position instruction and the current moving position meets the preset position condition, before bypassing the integral control branch in the driver chip, the method further includes:
[0065] Determine whether the difference between the target moving position and the current moving position is less than a preset threshold;
[0066] If the difference between the target moving position and the current moving position is less than a preset threshold, it is determined that the difference between the target moving position and the current moving position meets a preset position condition, wherein the preset threshold indicates that the current moving position of the lens is the target moving position.
[0067] In other words, continue to refer to Figure 2 , the low power judgment module determines whether the difference errcode between the target moving position and the current moving position is less than the preset threshold throldcode, which can be set to 40code. If it is less than, it is determined that the difference between the target moving position and the current moving position meets the preset position condition, and the drive chip can be controlled to enter a low power state, that is, the integral control branch in the PID module is controlled to be bypassed.
[0068] Furthermore, in some embodiments, the method also includes: if the difference between the target moving position and the current moving position is greater than or equal to a preset threshold, determining that the difference between the target moving position and the current moving position does not meet the preset position condition; updating the sending duration of the collected position instruction to an initial value, and controlling the drive chip to maintain a normal working state, wherein the normal working state indicates that the integral control branch of the drive chip is in a non-bypass state.
[0069] It can be seen that if errcode is not less than the preset threshold throldcode, it is determined that the difference between the target moving position and the current moving position does not meet the preset position condition, and it is considered that the lens has not moved to the target moving position at this time. Therefore, the sending duration of the position instruction collected by the timer is updated to the initial value, and the initial value is usually set to 0, that is, the timer will not count the sending duration of the position instruction, and the driver chip should maintain a normal working state to output a driving current to the voice coil motor through the integral control branch, the proportional control branch and the differential control branch, so that it pushes the lens to move to the target moving position. In this way, the working state of the driver chip is determined by the difference between the target moving position and the current moving position of the lens, so that when the lens has moved to the target moving position, the integral control branch in the driver chip is quickly controlled to bypass, thereby reducing the power consumption of the driver chip.
[0070] In some embodiments, after the difference between the target moving position in the position instruction and the current moving position satisfies a preset position condition, the method further includes:
[0071] Collect the sending time of the position instruction; determine whether the sending time is greater than the preset time; if the sending time is greater than the preset time, determine that the sending time meets the preset time condition; control the integral control branch in the drive chip to bypass, and control the differential control branch and the proportional control branch in the drive chip to connect.
[0072] For example, Figure 5 FIG. 4 is a flow chart of a driver chip control method according to another embodiment of the present application.
[0073] like Figure 5 As shown, the method includes:
[0074] S51: The driver chip determines whether the position instruction target sent by the control terminal indicates to update the moving position of the lens. If so, it goes to S52; if not, it goes to S53;
[0075] S52: control timer to reset;
[0076] S53: the low power consumption determination module determines whether the difference errcode between the target moving position and the current moving position is less than a preset threshold throldcode, wherein the throldcode is set to 40code. If yes, the process proceeds to S54; if no, the process proceeds to S52;
[0077] S54: The driver chip controls the timer to increment automatically, and collects the time duration of the position instruction being issued, wherein the timer is used to count the time duration of the position instruction being issued;
[0078] S55: The driver chip determines whether the sending time T is greater than the preset time Throldtime. If so, it goes to S56; if not, it goes to S57, wherein the Throldtime can be set to 10ms or other values according to actual needs;
[0079] S56: Control the integral control branch to bypass, and control the differential control branch and the proportional control branch to connect, so that the driver chip enters a low power consumption mode.
[0080] S57: The driver chip maintains normal working state.
[0081] In this application, when the difference between the target moving position and the current moving position meets the preset position condition (i.e., errcode is less than throldcode), and the sending time of the position instruction meets the preset time, the integral control branch in the driver chip is controlled to be bypassed, thereby reducing the output current of the driver chip to reduce the power consumption of the driver chip, and the proportional control branch and the differential control branch are not bypassed, so that the driver chip can output the driving current to the voice coil motor through the proportional control branch and the differential control branch, which can avoid the problem of unstable lens position due to static friction, improve the stability of the lens, and ensure the user's equipment experience. In addition, this embodiment can determine whether to switch to low power mode by the driver chip itself, without the need for the control end to intervene in the conversion of low power mode.
[0082] It should be noted that the present application can control the integral control branch bypass of the driver chip to make the driver chip enter a low power consumption mode. It can also be considered that the PID parameters (pre-set in the experiment) can determine the output of the driving current. Therefore, modifying the PID parameters can reduce the output driving current, so that the driver chip enters a low power consumption mode. Or, considering that the loop gain can reflect the overall amplification or attenuation effect of the control system, therefore, adjusting the size of the loop gain can reduce the output driving current, so that the driver chip enters a low power consumption mode.
[0083] In some embodiments of the present application, the driver chip control method further includes: when the position instruction indicates to update the moving position of the lens, updating the duration when issuing to an initial value, and controlling the driver chip to maintain a normal working state.
[0084] In other words, continue to refer to Figure 5 When the position instruction indicates to update the moving position of the lens, the sending duration collected by the timer is cleared, and the driving chip is controlled to maintain a normal working state, so that the driving chip outputs a driving current to the voice coil motor through the proportional control branch, the integral control branch and the differential control branch, so that it pushes the lens to move to the target moving position.
[0085] The driver chip control method of this embodiment can be executed by any appropriate electronic device with data processing capability, including but not limited to: a server, a mobile terminal (such as a mobile phone, a PAD, etc.) and a PC, etc.
[0086] Figure 6 The figure is a structural block diagram of a driver chip control system according to an embodiment of the present application.
[0087] like Figure 6 As shown, the driver chip control system 600 can execute Figure 1 The driver chip control method is as follows: the driver chip control system 600 includes: a first acquisition module 601, which acquires the position instruction sent by the control end, wherein the position instruction at least includes the target moving position of the lens; a second acquisition module 602, which acquires the current moving position of the lens sent by the control end when the position instruction does not indicate to update the moving position of the lens; a control module 603, which controls the integral control branch in the driver chip to be bypassed when the difference between the target moving position and the current moving position in the position instruction meets the preset position condition, wherein the integral control branch is used to continuously output the driving current for updating the moving position of the lens.
[0088] In some embodiments of the present application, the driver chip also includes a proportional control branch and a differential control branch, and the driver chip control system 600 also includes: a sending module (not shown in the figure), when the position instruction indicates to update the moving position of the lens, sending the access instruction and the position instruction of the integral control branch to the driver chip through the control end; an access module (not shown in the figure), the driver chip accesses the integral control branch based on the access instruction; an output module (not shown in the figure), the driver chip parses the position instruction to obtain the target moving position, and outputs the driving current required based on the target moving position output to the motor through the integral control branch, the proportional control branch and the differential control branch.
[0089] In some embodiments of the present application, after the driving current required for the target moving position output is output to the motor through the integral control branch, the proportional control branch and the differential control branch, the driver chip control system 600 also includes: a judgment module (not shown in the figure), which judges through the control end whether the issuance time of the position instruction meets the preset time, wherein the preset time indicates that the lens has moved to the target moving position within the preset time; the control module 603 is specifically used for, if the issuance time meets the preset time, the control end sends the integral control branch bypass instruction to the driver chip to bypass the integral control branch in the driver chip.
[0090] In some embodiments of the present application, when the difference between the target moving position and the current moving position in the position instruction meets the preset position condition, before the integral control branch in the driver chip is bypassed, the judgment module (not shown in the figure) is also used to: judge whether the difference between the target moving position and the current moving position is less than a preset threshold; if the difference between the target moving position and the current moving position is less than the preset threshold, it is determined that the difference between the target moving position and the current moving position meets the preset position condition, wherein the preset threshold indicates that the current moving position of the lens is the target moving position.
[0091] In some embodiments of the present application, the driver chip control system 600 also includes: a determination module (not shown in the figure), if the difference between the target moving position and the current moving position is greater than or equal to a preset threshold, then it is determined that the difference between the target moving position and the current moving position does not meet the preset position condition; the control module 603 is also used to update the issuance duration of the collected position instruction to an initial value, and control the driver chip to maintain a normal working state, wherein the normal working state indicates that the integral control branch of the driver chip is in a non-bypass state.
[0092] In some embodiments of the present application, after the difference between the target moving position and the current moving position in the position instruction meets the preset position condition, the driver chip control system 600 also includes: an acquisition module (not shown in the figure), which acquires the issuance time of the position instruction; the judgment module (not shown in the figure) is also used to judge whether the issuance time is greater than the preset time; if the issuance time is greater than the preset time, it is determined that the issuance time meets the preset time condition; the control module 603 is specifically used to control the bypass of the integral control branch in the driver chip, and control the access of the differential control branch and the proportional control branch in the driver chip.
[0093] In some embodiments of the present application, the control module 603 is further used to: when the position instruction indicates to update the moving position of the lens, update the duration when issuing to an initial value, and control the driving chip to maintain a normal working state.
[0094] According to the driver chip control system of the embodiment of the present application, when the position instruction does not indicate updating the moving position of the lens, the current moving position of the lens sent by the control end is obtained, and the difference between the current moving position and the target moving position is processed to determine whether the difference meets the preset position condition, and when it meets the preset position condition, the integral control branch that outputs a larger driving current in the driver chip is bypassed, which can reduce the power consumption of the driver chip compared to continuous standby of the driver chip.
[0095] The driver chip control system 600 of this embodiment is used to implement the corresponding driver chip control methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail here. In addition, the functional implementation of each module in the driver chip control system 600 of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be described in detail here.
[0096] Figure 7 This is a structural block diagram of an electronic device according to an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.
[0097] like Figure 7 As shown, the electronic device 700 may include: a processor 702, a memory 703, a communication interface 704 and a communication bus 705. The processor 702, the memory 703 and the communication interface 704 communicate with each other through the communication bus 705; the memory 703 is used to store at least one executable instruction, and the executable instruction enables the processor 702 to perform the operation corresponding to the driver chip control method of any of the above embodiments.
[0098] The processor 702 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0099] The memory 703 is used to store programs, and may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0100] According to the electronic device of the embodiment of the present application, when the position instruction does not indicate updating the moving position of the lens, the current moving position of the lens sent by the control end is obtained, and the difference between the current moving position and the target moving position is processed to determine whether the difference meets the preset position condition, and when it meets the preset position condition, the integral control branch that outputs a larger driving current in the driver chip is bypassed, which can reduce the power consumption of the driver chip compared to the continuous standby of the driver chip.
[0101] An embodiment of the present application further provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the driver chip control method of any of the above embodiments is implemented.
[0102] According to the computer storage medium of the embodiment of the present application, when the position instruction does not indicate updating the moving position of the lens, the current moving position of the lens sent by the control end is obtained, and the difference between the current moving position and the target moving position is processed to determine whether the difference meets the preset position condition, and when it meets the preset position condition, the integral control branch that outputs a larger driving current in the driver chip is bypassed, which can reduce the power consumption of the driver chip compared to the continuous standby of the driver chip.
[0103] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0104] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the driver chip control method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the driver chip control method shown here, the execution of the code converts the general-purpose computer into a dedicated computer for executing the driver chip control method shown here.
[0105] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0106] The above implementation methods are only used to illustrate the embodiments of the present application, and are not intended to limit the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application, and the scope of patent protection of the embodiments of the present application should be defined by the claims. The systems, devices or modules described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions.
Claims
1. A driver chip control method, characterized in that: The driving chip at least includes an integral control branch, and the method includes: Obtaining a position instruction sent by the control end, wherein the position instruction at least includes a target moving position of the lens; When the position instruction does not indicate to update the moving position of the lens, obtaining the current moving position of the lens sent by the control end; When the difference between the target moving position in the position instruction and the current moving position meets a preset position condition, the integral control branch in the driving chip is bypassed, wherein the integral control branch is used to continuously output a driving current for updating the moving position of the lens.
2. The driver chip control method according to claim 1, characterized in that: The driving chip further includes a proportional control branch and a differential control branch, and the method further includes: When the position instruction indicates to update the moving position of the lens, the control end sends the access instruction and the position instruction of the integral control branch to the driving chip; The driving chip accesses the integral control branch based on the access instruction; The driving chip analyzes the position instruction to obtain the target moving position, and outputs the driving current required based on the target moving position to the motor through the integral control branch, the proportional control branch and the differential control branch.
3. The driving chip control method according to claim 2, characterized in that: After outputting the driving current required based on the target moving position to the motor through the integral control branch, the proportional control branch and the differential control branch, the method further includes: Determining, by the control end, whether the time duration of issuing the position instruction satisfies a preset time duration, wherein the preset time duration indicates that the lens has moved to the target moving position within the preset time duration; If the sending duration meets the preset duration, the control end sends an integral control branch bypass instruction to the driver chip to bypass the integral control branch in the driver chip.
4. The driver chip control method according to claim 1, characterized in that: When the difference between the target moving position in the position instruction and the current moving position meets the preset position condition, before bypassing the integral control branch in the driver chip, the method further includes: Determine whether the difference between the target moving position and the current moving position is less than a preset threshold; If the difference between the target moving position and the current moving position is less than a preset threshold, it is determined that the difference between the target moving position and the current moving position meets the preset position condition, wherein the preset threshold indicates that the current moving position of the lens is the target moving position.
5. The driving chip control method according to claim 4, characterized in that: The method further comprises: If the difference between the target moving position and the current moving position is greater than or equal to the preset threshold, it is determined that the difference between the target moving position and the current moving position does not meet the preset position condition; The sending time length of the collected position instruction is updated to an initial value, and the driving chip is controlled to maintain a normal working state, wherein the normal working state indicates that the integral control branch of the driving chip is in a non-bypass state.
6. The driver chip control method according to claim 1, characterized in that: After the difference between the target moving position in the position instruction and the current moving position meets a preset position condition, the method further includes: Collect the time duration of issuing the position instruction; Determine whether the sending duration is greater than a preset duration; If the sending duration is greater than the preset duration, determining that the sending duration satisfies the preset duration condition; The integral control branch in the driving chip is controlled to be bypassed, and the differential control branch and the proportional control branch in the driving chip are controlled to be connected.
7. The driver chip control method according to any one of claims 1 to 6, characterized in that: The method further comprises: When the position instruction indicates to update the moving position of the lens, the duration of the sending is updated to an initial value, and the driving chip is controlled to maintain a normal working state.
8. A drive chip control system, characterized in that: The system comprises: [AW20240009ICN1][HS2410846CCN] A first acquisition module is configured to acquire a position instruction sent by a control terminal, wherein the position instruction at least includes a target moving position of the lens; A second acquisition module, when the position instruction does not indicate to update the moving position of the lens, acquires the current moving position of the lens sent by the control end; The control module controls the integral control branch in the driving chip to be bypassed when the difference between the target moving position in the position instruction and the current moving position meets a preset position condition, wherein the integral control branch is used to continuously output a driving current for updating the moving position of the lens.
9. An electronic device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the driver chip control method according to any one of claims 1 to 7.
10. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the driver chip control method as described in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Equipment control method, medium, electronic equipment and chip
CN120416657A