Equipment control method, medium, electronic equipment and chip
Through closed-loop control, the motion parameters of the voice coil motor are detected, the steady-state conditions are judged and the driving current is reduced, which solves the problem of high power consumption after the focus of the voice coil motor is stable, and the stability and power consumption of the lens focus are reduced.
Patent Information
- Application Number
- CN202510750994.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-08-01
AI Technical Summary
The voice coil motor in the smart device has a large driving current after the lens focus is stable, resulting in an increase in power consumption and affecting the lens focus stability.
The closed-loop control method is used to detect the movement parameters of the voice coil motor, determine whether the steady-state conditions are met, and gradually reduce the driving current after the conditions are met to ensure the stability of the lens focus.
It reduces the power consumption of the voice coil motor, improves the stability of the lens focus, reduces power consumption while ensuring the stability of the lens.
Smart Images

Figure CN120416657A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technologies, and particularly to a device control method, a medium, an electronic device, and a chip. Background Art
[0002] In the continuous process of innovation and replacement of intelligent devices, users' requirements for the quality of the photographing and videographing functions in intelligent devices are also increasing day by day. Taking smartphones as an example, an important function of smartphones is the photographing and videographing functions. The quality of the photographing and videographing functions plays an extremely important role in the customer evaluation, total sales volume, and market response of a smartphone.
[0003] The camera module of a smartphone usually includes a lens and a voice coil motor (VCM). The voice coil motor is used to control the movement of the lens to adjust the focal position of the lens, so as to achieve a specific shooting effect. With the popularization of the auto focus (AF) technology, most current smartphones have the auto focus function. The key factor determining the clarity of the image of a smartphone is the performance of the auto focus function. Among them, the auto focus function mainly consists of two parts: focus position calculation and voice coil motor control. Focus position calculation refers to determining the best focal position by analyzing specific attributes such as the image gradient information of the captured image. Voice coil motor control refers to the process of continuously adjusting the position of the voice coil motor to adjust the focal position of the lens to achieve precise focusing.
[0004] In the actual application process, during the movement of the mover of the voice coil motor, in addition to being affected by the spring force and the damping force, it is also hindered by the frictional force. When the lens is in a stable focus state, the mover of the voice coil motor should be in a stationary state. However, due to the existence of the frictional resistance, after reaching the steady-state position, the drive system still continuously provides a certain amount of current to overcome the frictional resistance and maintain the stationary position of the mover. The larger the frictional force, the larger the drive current. Therefore, a large drive current exists after the lens is in a stable focus state, resulting in a large power consumption. Summary of the Invention
[0005] Embodiments of this application provide a device control method, a medium, an electronic device, and a chip, which can adopt a closed-loop control method to reduce the drive current of a movable component, can reduce the power consumption generated by the movable component, and can ensure the stability of the movement control of the movable component, such as reducing the power consumption of the voice coil motor and ensuring the stability of the lens focus.
[0006] In a first aspect, an embodiment of the present application provides a device control method for an electronic device. The electronic device includes a movable component, a signal generation module, a state detection module, a control module, and a power consumption reduction module. The movable component is connected to the control module and the state detection module. The power consumption reduction module is connected to the state detection module and the control module. The signal generation module is connected to the control module and the state detection module. The method includes: The signal generation module sends a motion control instruction of the movable component to the control module; the control module controls the movement of the movable component in response to the motion control instruction; during the movement of the movable component, the state detection module sends the motion parameters of the movable component to the power consumption reduction module; the power consumption reduction module determines that the movable component meets the steady-state condition based on the motion parameters and sends a first power consumption control instruction to the control module; the control module reduces the drive current of the movable component in a closed-loop control manner based on the first power consumption control instruction.
[0007] Thus, the motion parameters of the movable component can be the motion parameters of the mover in the movable component, and these motion parameters can reflect the motion state of the movable component. Therefore, by detecting the motion parameters of the movable component, the working state of the movable component can be determined. Furthermore, it can be judged whether the movable component meets the stable condition through the detected motion parameters, that is, whether the working state of the movable component enters the steady state. And after the present application determines that the movable component meets the stable condition, the drive current of the movable component can be reduced in a closed-loop control manner, that is, the drive current of the movable component is controlled to gradually decay through a feedback mechanism. In this way, the power consumption of the electronic device can be reduced by reducing the drive current, and the gradual decay of the drive circuit can ensure that the working state of the movable component remains in the steady state, that is, ensure the stability of the motion control of the movable component.
[0008] In a possible implementation of the above first aspect, the method further includes: when the power consumption reduction module determines that the movable component does not meet the steady-state condition, it sends a second power consumption control instruction to the control module; the control module continues to control the movement of the movable component based on the second power consumption control instruction until the movable component meets the steady-state condition.
[0009] In a possible implementation of the above first aspect, the motion parameters include at least one of the following: the moving position of the movable component, the moving speed of the movable component, and the drive current of the movable component.
[0010] In a possible implementation of the above first aspect, the power consumption reduction module determines whether the movable component meets the steady-state condition according to the motion parameters, including: the power consumption reduction module obtains the steady-state thresholds corresponding to at least one motion parameter, where different types of motion parameters correspond to different steady-state thresholds; the power consumption reduction module calculates the steady-state evaluation indexes of each motion parameter in the first time period; the power consumption reduction module determines whether the movable component meets the steady-state condition according to the steady-state evaluation indexes and steady-state thresholds of each motion parameter in the first time period; where the steady-state condition includes: the steady-state evaluation indexes of at least one motion parameter are less than the corresponding steady-state thresholds.
[0011] In a possible implementation of the above first aspect, the steady-state evaluation index includes variance and / or absolute value.
[0012] In a possible implementation of the above first aspect, the power consumption reduction module calculates the steady-state evaluation indexes of each motion parameter in the first time period, including: the power consumption reduction module collects N values of each motion parameter in the first time period at a preset frequency; the power consumption reduction module calculates the steady-state evaluation indexes of each motion parameter in the first time period according to the N values of each motion parameter in the first time period.
[0013] In a possible implementation of the above first aspect, the electronic device further includes: a working component, the movable component is connected to the working component and controls the movement of the working component; the motion control instruction is also used to instruct to adjust the position of the working component to a set position, and the steady-state condition is that when the movable component controls the working component to reach the set position.
[0014] In a possible implementation of the above first aspect, the control module reduces the driving current of the movable component in a closed-loop control manner based on the first power consumption control instruction, including: the control module obtains the first driving current of the movable component based on the first power consumption control instruction; the control module calculates the first driving current to determine the feedback parameter corresponding to the first driving current; the control module determines the closed-loop control parameter according to the position error and the feedback parameter; the control module outputs a second driving current to the movable component based on the closed-loop control parameter, so that the second driving current is lower than the first driving current, where the position error refers to the error between the set position and the feedback position of the working component.
[0015] In a possible implementation of the above first aspect, the control module calculates the first driving current to determine the feedback parameter corresponding to the first driving current, including: the control module calculates the first driving current according to a preset feedback function to determine the feedback parameter corresponding to the first driving current; where the feedback function is:
[0016] y[n]=b1I[n]+b2I[n-1]+…+b pI[n - p + 1] - a1y[n - 1] - a2y[n - 2] - … - a q y[n - q], where y[n] represents the value of the feedback parameter output by the feedback function at time n, I[n] represents the drive current at time n, b1, b2, …, b p , a1, a2, …, a q are the scaling factors between the input data and the output data in the feedback function, n is a positive integer, and when the time at time n is the time corresponding to the first drive current, I[n] is the first drive current, y[n] is the value of the feedback parameter corresponding to the first drive current, and n, p, q are positive integers.
[0017] In a possible implementation of the above first aspect, the control module is a proportional-integral-derivative controller or a fuzzy controller.
[0018] In a possible implementation of the above first aspect, the electronic device includes a shooting module, the shooting includes a lens and a voice coil motor for controlling the movement of the lens, the movable component is the voice coil motor, the working component is the lens, and the working position is the focal position of the lens.
[0019] In a possible implementation of the above first aspect, the movable component satisfies a preset friction condition, and the preset friction condition is used to indicate that the friction force during the movement process of the movable component is large.
[0020] In a second aspect, the present application provides an electronic device, which includes a movable component, a signal generation module, a state detection module, a control module, and a power consumption reduction module. The movable component is connected to the control module and the state detection module, the power consumption reduction module is connected to the state detection module and the control module, and the signal generation module is connected to the control module and the state detection module. And the signal generation module is used to send a motion control instruction of the movable component to the control module;
[0021] The control module is used to control the movement of the movable component in response to the motion control instruction; the state detection module is used to send the motion parameters of the movable component to the power consumption reduction module during the movement of the movable component; the power consumption reduction module is used to judge whether the movable component satisfies the steady-state condition according to the motion parameters, and when it is judged that the movable component satisfies the steady-state condition, send a first power consumption control instruction to the control module; the control module is used to reduce the drive current of the movable component in a closed-loop control manner based on the first power consumption control instruction.
[0022] In a third aspect, the present application provides a readable medium, on which instructions are stored, and when the instructions are executed on an electronic device, the electronic device is caused to execute the device control method in the above first aspect and any one of its possible implementation manners.
[0023] Fourth aspect, the present application provides an electronic device, including: a memory for storing instructions executed by one or more processors of the electronic device, and a processor, which is one of the processors of the electronic device, for executing the device control method in the first aspect and any possible implementation thereof.
[0024] Fifth aspect, the present application provides a chip, which includes a circuit for executing the device control method in the first aspect and any possible implementation thereof. For example, the circuit is the control circuit in the following text.
[0025] Among them, for the beneficial effects achieved by the solutions in the above second aspect to fifth aspect, reference can be made to the beneficial effects of the above first aspect, and details are not described herein. Description of the Drawings
[0026] Figure 1 According to some embodiments of the present application, a schematic structural diagram of an electronic device 01 is shown;
[0027] Figure 2 According to some embodiments of the present application, a schematic structural diagram of a control circuit 10 is shown;
[0028] Figure 3 According to some embodiments of the present application, a schematic structural diagram of a control circuit 10 in a shooting scenario is shown;
[0029] Figure 4A According to some embodiments of the present application, a schematic flowchart of a device control method is shown;
[0030] Figure 4B According to some embodiments of the present application, a schematic flowchart of a device control method is shown;
[0031] Figure 5 According to some embodiments of the present application, a schematic flowchart of a device control method in a shooting scenario is shown;
[0032] Figure 6 According to some embodiments of the present application, a schematic flowchart framework diagram of a device control method is shown;
[0033] Figure 7 According to some embodiments of the present application, a schematic flowchart of the steady-state detection stage of a movable component is shown;
[0034] Figure 8 According to some embodiments of the present application, a schematic flowchart of the steady-state detection stage of a movable component is shown;
[0035] Figure 9According to some embodiments of the present application, a schematic flow diagram of the power adjustment stage of a movable component is shown;
[0036] Figure 10 According to some embodiments of the present application, a schematic diagram of a closed-loop control scenario is shown;
[0037] Figure 11 According to some embodiments of the present application, a closed-loop control scenario diagram based on a PID controller is shown;
[0038] Figure 12 According to some embodiments of the present application, a schematic diagram of the current waveform of the closed-loop power consumption reduction of a PID controller based on a set feedback function is shown;
[0039] Figure 13 According to some embodiments of the present application, a schematic diagram of the amplitude-frequency response comparison of a controller is shown;
[0040] Figure 14 According to some embodiments of the present application, a schematic diagram of the structure of an electronic device 01 is shown;
[0041] Figure 15 According to some embodiments of the present application, a block diagram of a system on chip (SoC) is shown. Detailed implementation manners
[0042] Illustrative embodiments of the present application include, but are not limited to, audio processing methods, media, and electronic devices.
[0043] First, some terms or concepts involved in the present application are explained.
[0044] The voice coil motor mainly includes components such as a mover, a stator, and a spring. The mover is the movable part in the voice coil motor, which is used to be affected by a force in a magnetic field and generate motion. The stator is the stationary part in the voice coil motor, which generates a stable magnetic field for the mover to move in. The spring is usually used to support the mover to ensure its stable position during movement. Specifically, the mover is mainly composed of a voice coil winding and a winding bracket (or called a carrier). The voice coil winding is a coil wound by thin wires, and when current passes through it, it will generate an electromagnetic force in the magnetic field. The winding bracket is used to support and fix the voice coil winding to ensure that it can move stably in the magnetic field. And by changing the magnitude and direction of the current in the voice coil winding, the movement speed, acceleration, and displacement of the mover can be precisely controlled.
[0045] The steady state of the voice coil motor refers to the situation where when the voice coil motor reaches the target position and remains stable, the controller maintains a stable input current, the interaction force between the magnetic field generated by the voice coil motor and the magnet reaches equilibrium, and the voice coil motor remains stationary or in a uniform motion state. In this application, when the voice coil motor enters the steady state, it mainly means that the voice coil motor reaches the target position and remains stationary. For example, the voice coil motor controls the lens to move to the focus position and remains stationary.
[0046] The autofocus technology controls the position of the lens element through a voice coil motor to achieve focusing. Specifically, in the scenario of automatic lens focusing, by changing the magnitude of the driving current (such as direct current) in the coil inside the motor, the stretching position of the spring is controlled, and then the lens is driven to move up and down to achieve the purpose of focusing.
[0047] As can be seen from the background technology, for current electronic devices such as smartphones with photographing and video recording functions, due to the large friction force during the movement of the mover of the voice coil motor, there is a large driving current after the lens focusing is stable, resulting in a large power consumption.
[0048] In order to reduce the power consumption of the device, the embodiments of this application provide a device control method for controlling the movement of a movable component such as a voice coil motor in an electronic device. The electronic device includes a movable component, a signal generation module, a state detection module, a controller, and a power consumption reduction module. The movable component is connected to the control module and the state detection module, the power consumption reduction module is connected to the state detection module and the control module, and the signal generation module is connected to the control module and the state detection module. Specifically, the method includes: the signal generation module sends a movement control instruction of the movable component to the control module; the control module controls the movement of the movable component in response to the movement control instruction; the state detection module sends the movement parameters of the movable component to the power consumption reduction module during the movement of the movable component; the power consumption reduction module determines that the movable component meets the steady state condition according to the movement parameters and sends a first power consumption control instruction to the control module; the control module reduces the driving current of the movable component in a closed-loop control manner based on the first power consumption control instruction.
[0049] Among them, the motion parameters of the movable component can be the motion parameters of the mover in the movable component, and these motion parameters can reflect the motion state of the movable component. Therefore, by detecting the motion parameters of the movable component in real time, for example, detecting the motion parameters of the movable component within a certain period of time such as the first time period in real time, the real-time working state of the movable component can be determined. Furthermore, it is possible to determine whether the movable component meets the stable condition based on the motion parameters, that is, to determine whether the working state of the movable component enters the steady state. Moreover, after this application determines that the movable component meets the stable condition, a closed-loop control method can be adopted to reduce the driving current of the movable component, that is, to control the gradual attenuation of the driving current of the movable component through a feedback mechanism. In this way, the power consumption of the electronic device can be reduced by reducing the driving current, and the gradual attenuation of the driving current can ensure that the working state of the movable component remains in the steady state, that is, to ensure the stability of the motion control of the movable component.
[0050] For example, when the movable component is a voice coil motor in a camera module, when this application detects that the motion state of the voice coil motor enters the steady state, a closed-loop control method can be adopted to control the gradual attenuation of the driving current of the voice coil motor, which can not only reduce the power consumption but also improve the stability of the automatic focusing of the lens.
[0051] It can be understood that if an open-loop control method is used to reduce the driving current of the movable component, the driving current is usually directly reduced to a set value, and the rapid reduction of the driving current may cause the motion state of the movable component to change from the steady state to the non-steady state, thereby possibly causing the movable component to vibrate. For example, when the movable component is a voice coil motor in a camera module and enters the steady state, using an open-loop control method to reduce the driving current can reduce the power consumption, but may cause the focusing position of the lens to vibrate, which has an adverse effect on the image. Therefore, compared with using an open-loop control method, this application uses a closed-loop control method to control the gradual attenuation of the driving current of the voice coil motor, reducing the power consumption while ensuring the stability of the automatic focusing of the lens.
[0052] In some embodiments, the movable component in the electronic device provided in this application includes, but is not limited to, the voice coil motor in the above example, and may also be other drivers, such as linear motors, rotary voice coil motors, voice coil servo motors, Lorentz force drivers, electromagnetic drivers, and piezoelectric drivers, etc.
[0053] For example, taking the movable component as a voice coil motor as an example, the working component connected to the voice coil motor in the electronic device can be the lens in the camera module. At this time, the electronic device controls the movement of the voice coil motor to focus the lens, thereby adjusting the focal position of the lens.
[0054] In some embodiments, an electronic device includes a plurality of movable components, such as a plurality of motors, and the movement of each movable component can be controlled independently. Furthermore, when each movable component moves and meets the steady-state condition, a closed-loop control method can be adopted to reduce the drive current of the movable component. For example, the motor in the present application can be a voice coil motor (VCM), etc., but is not limited thereto.
[0055] In some embodiments, the electronic device in the present application further includes a working component connected to the movable component, such as a lens connected to a voice coil motor, and the movable component is used to control the movement of the working component. As an example, the above-mentioned movement control instruction is used to indicate adjusting the working position of the working component (such as the focus position of the lens) to a set position, and the above-mentioned steady-state condition means that the movable component controls the working component to reach the set position.
[0056] In some embodiments, the working component in the electronic device provided in the present application is not limited to the lens in the camera module, and can also be a mirror or a lens in an optical instrument, or other precision mechanical components that need to be driven. The embodiments of the present application do not make any limitations in this regard. It can be understood that the electronic device controls the movement of the movable component to control the movement of the working component so as to achieve specific functions such as a focusing function.
[0057] In some embodiments, the execution subject of the device control method provided in the embodiments of the present application can be an electronic device or a device, module, or circuit in the electronic device for executing this method, such as a control circuit.
[0058] In some embodiments, the electronic device provided in the embodiments of the present application is any electronic device having a movable component and a connection with the movable component. For example, the electronic device is any device including a shooting module with a focusing function. As an example, the electronic devices applicable to the present application include but are not limited to: mobile phones, gamepads, tablet computers, smart watches, Internet of Things (IoT) devices, vehicle-mounted devices, smart wearable devices, etc. At this time, these electronic devices have speakers for making sounds. For example, when the electronic device is a mobile phone, the movable component and the working component are respectively the voice coil motor and the lens in the camera (i.e., the shooting module) of the mobile phone. Another example is that when the electronic device is an optical instrument, the movable component and the working component are respectively the voice coil motor and the mirror or lens in the optical instrument.
[0059] Refer to Figure 1 , which is a schematic structural diagram of an electronic device 01 provided in the embodiments of the application.
[0060] Such as Figure 1As shown, the electronic device 01 includes a control circuit 10, and the control circuit 10 includes a movable component 11, a control module 13, a state detection module 14, a power consumption reduction module 15, and a signal generation module 12. The movable component 11 is connected to the control module 13 and the state detection module 14, the power consumption reduction module 15 is connected to the state detection module 14 and the control module 13, and the signal generation module 12 is connected to the control module 13 and the state detection module 14.
[0061] The control module 13 is configured to receive a motion control instruction from the signal generation module 12, adjust the drive current of the movable component 11 according to the motion control instruction, and output the adjusted drive current to the movable component 11. As an example, the control module 13 can be a controller, such as a proportion-integral-differential (PID) controller, a fuzzy controller, etc., but is not limited thereto.
[0062] In some embodiments, the control circuit 10 is a closed-loop control system, and realizes the closed-loop control function of the movable component 11 through a control module such as a controller.
[0063] The movable component 11 is configured to move according to the drive current output by the control module 13.
[0064] The state detection module 14 is configured to detect the motion parameters of the movable component 11, that is, the motion parameters during the movement of the movable component 11, and output the detected motion parameters to the power consumption reduction module 15. In addition, the feedback position corresponding to the movable component 11 is detected and fed back to the signal generation module.
[0065] As an example, the above motion parameters include at least one of drive current, position, and speed. The state detection module 14 mainly obtains motion parameters by combining a sensor (hardware) with data processing (software). For example, the position (i.e., position information) can be obtained by a Hall sensor, and the speed (i.e., position differential information) can be obtained by performing a differential operation on the position information through software.
[0066] The power consumption reduction module 15 is configured to determine whether the movable component 11 satisfies the steady state condition and generate corresponding control instructions. For example, when it is determined that the movable component 11 satisfies the steady state condition, a first power consumption control instruction is generated to reduce the drive current of the movable component 11. When it is determined that the movable component 11 does not satisfy the steady state condition, a second power consumption control instruction is generated, and there is no need to reduce the drive current of the movable component 11. Among them, the above steady state condition will be described in detail below and will not be elaborated here.
[0067] It can be understood that by reducing the drive current of the movable component 11, such as reducing the drive current of the movable component 11 when the motion parameters of the movable component 11 meet the steady-state conditions, the power consumption generated by the motion of the movable component 11 is reduced.
[0068] A signal generation module 12 is configured to generate a motion control instruction and output it to the movable component 11. The motion control instruction may be a closed-loop control parameter. As an example, the signal generation module 12 may be a multiplexer (MUX), but is not limited thereto.
[0069] In addition, the movable component 11 is a hardware device, and the control module 13, the state detection module 14, the power consumption reduction module 15, and the signal generation module 12 may be implemented by software or a hardware circuit.
[0070] Based on the Figure 1 shown structure, with reference to Figure 2 , a schematic structural diagram of a control circuit 10 for a shooting scene is shown. Figure 2 In
[0071] Specifically, Figure 2 the control circuit 10 shown further includes a working component 16 connected to the movable component 11. Specifically, the electronic device 01 determines that the requirements of the working component 16 need to be adjusted to a set working position (such as a set position), and then adjusts the drive current of the movable component 11 in a closed-loop control manner according to the set working position. Then, the movable component 11 moves according to the input drive current to control the working component 16 to move to the set working position. In addition, the working component 16 is a hardware device.
[0072] Figure 2 In
[0073] Figure 2 the movable component 11 is configured to move according to the drive current output by the control module 13 and drive the working component 16 to move to the set working position, so that the working component 16 works at the set working position.
[0074] Figure 2The signal generation module 12 therein is used to generate a motion control instruction based on the set working position of the working component 16 and the feedback position of the working component 16 fed back by the state detection module 14, and output it to the movable component 11. The motion control instruction can be a closed-loop control parameter. For example, the motion control instruction includes an error signal between the set working position and the feedback position.
[0075] Further, on the basis of the structure shown in Figure 2 , with reference to Figure 3 , a schematic structural diagram of a control circuit 10 for a shooting scene is shown.
[0076] Specifically, Figure 3 the movable component 11 shown is a motor 11 such as a voice coil motor (VCM). Correspondingly, the working component 16 connected to the motor 11 in the control circuit 10 is the lens 16 in the shooting module ( Figure 3 not shown).
[0077] Figure 3 The state detection module 14 shown is specifically used to detect the motion parameters of the motor 11, such as the drive current (i.e., current), position, and speed (i.e., position difference) of the motor 11. Correspondingly, the set working position (i.e., set position) of the lens 16 input to the signal generation module 12 is the focusing position, and the feedback position is the actual focal position of the lens 16.
[0078] In the following embodiments, in combination with the structure shown in Figures 1 to 3 , taking the scenario where an electronic device uses a camera module to perform photographing and shooting functions and automatically focuses the lens through a voice coil motor as an example, the device control method in the application will be described.
[0079] With reference to Figure 4A shown, a flowchart of a device control method provided by an embodiment of the present application is shown. The execution subject of this method can be Figures 1 to 3 each module in the electronic device 01 shown, and is specifically used to control the movement of the movable component 11.
[0080] Specifically, Figure 4A the method shown includes the following steps:
[0081] S401A: The signal generation module 12 sends a motion control instruction of the movable component 11 to the control module 13.
[0082] It can be understood that the signal generation module 12 is used to detect the motion control instruction of the movable component 11. When the motion control instruction of the movable component 11 is detected, the detected motion control instruction is sent to the control module 13.
[0083] In some embodiments, the motion control instruction is used to instruct the movable component 11 to move to a target position.
[0084] In some embodiments, a virtual control or physical control for triggering a motion control instruction may be provided in the electronic device 01. By operating these controls, the user can trigger the generation of a motion control instruction to instruct the control of the movable component 11 to move, such as to a target position.
[0085] S402A: The control module 13 controls the movement of the movable component 11 in response to the motion control instruction.
[0086] As an example, the control module 13 can output a driving current to the movable component 11 to drive the movable component 11, such as a voice coil motor, to move.
[0087] S403A: During the movement of the movable component 11, the status detection module 14 sends the motion parameters of the movable component 11 to the power consumption reduction module 15.
[0088] In some embodiments, during the movement of the movable component 11, the status detection module 14 detects the motion parameters of the movable component 11 and sends the detected motion parameters to the power consumption reduction module 15.
[0089] As an example, the motion parameters include at least one of the following: the position of the movable component, the speed of the movable component (i.e., the position difference), and the driving current of the movable component.
[0090] In some embodiments, the status detection module 14 in the control circuit 10 can detect the motion parameters of the movable component 11 through hardware such as sensors and related software.
[0091] S404A: The power consumption reduction module 15 determines that the movable component 11 meets the steady-state condition according to the motion parameters, and sends a first power consumption control instruction to the control module 13.
[0092] It can be understood that the steady-state condition means that the movable component moves to the target position, that is, reaches a stationary stable state. The first power consumption control instruction is used to instruct to reduce the driving current of the movable component 11, and this first power consumption control instruction corresponds to the movable component 11 meeting the steady-state condition.
[0093] S405A: The control module 13 reduces the driving current of the movable component 11 in a closed-loop control manner based on the first power consumption control instruction.
[0094] When the movable component meets the steady-state condition, that is, when the motion state of the movable component is in a steady state, the driving current of the movable component can be reduced to reduce the power consumption generated by the movable component.
[0095] When adopting the closed-loop control mode, the position in the motion parameters of the movable component can be used as the feedback position for closed-loop control.
[0096] In some embodiments, the present application mainly aims at the application scenarios of movable components with large frictional forces, such as voice coil motors. It can be understood that the magnitude of the frictional force depends on the structure of the movable component. The minimum driving force required for the movement of the movable component can be measured by gradually increasing the magnitude of the driving force on the movable component, and this minimum driving force can characterize the magnitude of the motor frictional force. Furthermore, after driving the movable component to move with this minimum driving force, if the movable component cannot return to the vicinity of the position before driving after removing this driving force, it can be considered that the motor frictional force is large.
[0097] The device control method provided by the present application can pre-detect the frictional force of the movable component, such as detecting the frictional force of the movable component at the stage of the electronic device leaving the factory, or during the use stage of the electronic device, such as before S401A above. Specifically, it can be detected whether the movable component meets a preset friction condition, and in the case of meeting the preset friction condition, the above S405A is executed to reduce the power. Among them, the preset friction condition is used to indicate that the frictional force in the movement process of the movable component is large. For example, the preset friction condition includes: after the movable component moves based on the minimum driving force at the initial position, the movable component cannot return to the initial position before driving after removing this minimum driving force.
[0098] In addition, in some embodiments, when the power consumption reduction module determines that the movable component does not meet the steady-state condition, the control module continues to control the movement of the movable component until the movable component meets the steady-state condition.
[0099] It can be understood that when the movable component does not meet the steady-state condition, that is, the motion state of the movable component does not enter the steady state, it means that the movable component has not reached the corresponding target position, and there is no need to reduce the driving current of the movable component.
[0100] In this way, after the present application determines that the movable component meets the stable condition, the closed-loop control mode can be adopted to reduce the driving current of the movable component, that is, the driving current of the movable component is gradually attenuated through a feedback mechanism. That is, by reducing the driving current, the power consumption of the electronic device can be reduced, and the gradual attenuation of the driving circuit can ensure the stability of the movement control of the movable component.
[0101] On the basis of Figure 4A , as shown in reference to Figure 4B , it is a schematic flowchart of a device control method provided by an embodiment of the present application. Figure 4B The difference between the shown process and the process shown in Figure 4A mainly lies in that a control process for the movable component to control the working component to move is added.
[0102] Specifically, Figure 4BThe process shown includes the following steps:
[0103] S401B: The signal generation module 12 sends a motion control instruction for the movable component 11 to the control module 13, and the motion control instruction is used to indicate adjusting the working position of the working component 11 to a set position.
[0104] In some embodiments, the above motion control instruction is also used to indicate adjusting the position of the working component to a set position, and the steady-state condition is that the movable component controls the working component to reach the set position.
[0105] It can be understood that the motion condition of the movable component is consistent with the motion state of the working component. The motion control instruction can indicate adjusting the position of the working component to a set position corresponding to the target position. Then, when the movable component moves to the target position, it means that the movable component drives the working component to move to the set position.
[0106] Specifically, the control module 13 in the control circuit 10 can receive the motion control instruction.
[0107] In some embodiments, a virtual control or a physical control for triggering the motion control instruction can be provided in the electronic device 01, and the user can trigger the generation of the motion control instruction by operating these controls to indicate adjusting the working position of the working component to a set position.
[0108] S402B: The control module 13 responds to the motion control instruction, controls the movement of the movable component 11, and controls the movement of the working component 16 through the movable component 11.
[0109] Specifically, the control module 13 in the control circuit 10 can control the movement of the movable component 11 based on the motion control instruction to control the working component 16 to move to the set position.
[0110] S403B: During the movement of the movable component, the state detection module 14 sends the motion parameters of the movable component 11 to the power consumption reduction module 15.
[0111] In some embodiments, during the movement of the movable component, the state detection module 14 sends the motion parameters of the movable component 11 within the first time period to the power consumption reduction module 15. As an example, during the movement of the movable component, when the state detection module 14 detects the motion parameters of the movable component 11, it can immediately send the detected motion parameters to the control module 13.
[0112] The duration of the above first time period can be a set duration, and the specific value can be set according to actual requirements. The first time period is the time period from when the movable component 11 starts to move until it drives the working component 16 to move to the set position.
[0113] S404B: The power consumption reduction module 15 determines whether the movable component 11 meets the steady-state condition according to the motion parameters.
[0114] If it is determined that the movable component 11 meets the steady-state condition, the process proceeds to S405B and S406B. If it is determined that the movable component 11 does not meet the steady-state condition, the process proceeds to S407B and S408B.
[0115] In some embodiments, the power consumption reduction module 15 determines whether the movable component 11 meets the steady-state condition based on the motion parameters in the first time period.
[0116] The steady-state condition indicates that the movable component controls the working component to reach the set position.
[0117] It can be understood that when the movable component meets the steady-state condition, the movable component drives the working component to reach the set position and the movable component remains stationary.
[0118] S405B: The power consumption reduction module 15 sends a first power consumption control instruction to the control module 13 .
[0119] S406B: The control module 13 reduces the driving current of the movable component 11 by adopting a closed-loop control method based on the first power consumption control instruction, and controls the working component 16 to work at the set position.
[0120] Understandable, yes Figure 4B For the description of S401B to S406B shown in FIG. Figure 4A The description of S401A to S405A shown is not repeated here.
[0121] S407B: The power consumption reduction module 15 sends a second power consumption control instruction to the control module 13 .
[0122] S408B: The control module 13 continues to control the movement of the movable component 11 based on the second power consumption control instruction.
[0123] When the movable component does not meet the steady-state condition, that is, the motion state of the movable component has not entered the steady state, it means that the movable component has not reached the target position corresponding to the set position, that is, the movable component has not yet controlled the working component to reach the set position, then there is no need to reduce the driving current of the movable component.
[0124] The above-mentioned S405B and S406B and S407B and S408B are parallel execution processes.
[0125] In this way, after the present application determines that the movable component meets the stability conditions, a closed-loop control method can be used to reduce the driving current of the movable component, so that the driving current gradually decays, thereby ensuring that the working state of the movable component remains in a steady state.
[0126] Based on Figure 4B , with reference to Figure 5 , the figure shows a schematic flowchart of a device control method in a shooting scene provided by an embodiment of the present application. Figure 5 The difference between the method shown in Figure 4B and the method shown in Figure 5 is that the movable component is the voice coil motor in the camera module, the working component is the lens in the camera module, and the working position of the working component is the focal position of the lens. The same points will not be elaborated. In addition, Figure 1 the execution subject of the method shown in
[0127] can be the electronic device 01 shown in Figure 5 Specifically,
[0128] the method flow shown in
[0129] includes the following steps:
[0130] S501: When the camera application is running, a motion control instruction of the camera application is detected. The motion control instruction is used to indicate that the focal position of the lens is adjusted to a set position.
[0131] In some embodiments, when the camera application is running, the control module 13 detects a motion control instruction of the camera application. The motion control instruction is used to indicate that the focal position of the lens is adjusted to a set position.
[0132] The above motion control instruction can be an instruction for adjusting the focal position (i.e., the focusing position) of the lens to a set position during the process of the camera application automatically focusing on the lens.
[0133] S502: In response to the motion control instruction, control the movement of the voice coil motor in the camera module, and control the movement of the lens through the voice coil motor.
[0134] In some embodiments, the control module 13 controls the movement of the voice coil motor in the camera module in response to the motion control instruction, and controls the movement of the lens through the voice coil motor.
[0135] S503: During the movement of the voice coil motor, detect the movement parameters of the voice coil motor.
[0136] In some embodiments, during the movement of the voice coil motor, the state detection module 14 detects the movement parameters of the voice coil motor within a first time period, and sends the detected movement parameters to the power consumption reduction module 15.
[0137] As an example, the movement parameters include at least one of the following: the moving position of the voice coil motor, the moving speed of the voice coil motor (i.e., position difference), and the drive current of the voice coil motor.
[0138] S504: According to the movement parameters, determine whether the voice coil motor meets the steady state condition.
[0139] Among them, the steady state condition means that the voice coil motor controls the lens to reach the set position.
[0140] In some embodiments, the power consumption reduction module 15 determines whether the voice coil motor meets the steady state condition according to the movement parameters within the first time period. Furthermore, if it is determined that the voice coil motor meets the steady state condition, it enters S505; if it is determined that the voice coil motor does not meet the steady state condition, it enters S506.
[0141] As an example, when the power consumption reduction module 15 determines that the voice coil motor meets the steady state condition, it can send a first power consumption control instruction to the control module 13 to enter S505 for power consumption reduction processing. When the power consumption reduction module 15 determines that the voice coil motor does not meet the steady state condition, it can send a second power consumption control instruction to the control module 13 to enter S506 without power consumption reduction processing.
[0142] S505: Adopt a closed-loop control method to reduce the drive current of the voice coil motor, and control the lens to collect images at the set position.
[0143] In some embodiments, the control module 13 adopts a closed-loop control method to reduce the drive current of the voice coil motor, and controls the lens to collect images at the set position.
[0144] When the voice coil motor meets the steady state condition, that is, when the movement state of the voice coil motor is in a steady state, the drive current of the voice coil motor can be reduced to reduce the power consumption generated by the voice coil motor.
[0145] S506: Continue to control the movement of the voice coil motor.
[0146] In some embodiments, the control module 13 continues to control the movement of the voice coil motor until the voice coil motor reaches a steady state, that is, meets the steady state condition.
[0147] If the voice coil motor does not meet the steady state condition, it means that the voice coil motor has not reached the target position corresponding to the set position, that is, the voice coil motor has not controlled the lens to reach the set position, so there is no need to reduce the drive current of the voice coil motor.
[0148] Thus, during the autofocus process of the camera module of the electronic device in a shooting scenario, if the voice coil motor controls the lens to reach the focus position and enter the steady state, a closed-loop control method can be adopted to reduce the driving current of the voice coil motor, that is, the driving current of the voice coil motor is controlled to gradually decay through a feedback mechanism, so as to reduce the power consumption of the voice coil motor while ensuring the stable focus of the lens.
[0149] It can be understood that the device control process provided in the embodiments of the present application mainly includes a steady-state detection stage and a power consumption adjustment stage.
[0150] Refer to Figure 6 shown in the schematic diagram of the process framework obtained by the device control method provided in the embodiments of the present application. Specifically, Figure 6 In the scene shown, in the steady-state detection stage, a steady-state detection is performed on the movable component (such as a voice coil motor, that is, the mover in the voice coil motor), and it is determined whether the movable component reaches the steady state. In the power consumption adjustment stage, after detecting that the movable component reaches the stable state, the power consumption reduction algorithm is cut in to realize the decrease of the driving current in the closed-loop circuit of the control circuit 10; when it is detected that the movable component is in the non-steady state, the power consumption reduction mode is cut out. This solution does not affect the control stability between the movable component and the working component. And this process is mainly aimed at the application scenario of the voice coil motor with large friction.
[0151] Next, refer to Figure 7 for the schematic diagram of the process of the steady-state detection stage of the movable component in the embodiments of the application. This process can be executed by the power consumption reduction module 15. Specifically, as Figure 7 shown, the steady-state detection stage includes the following steps, that is Figure 4B S404B shown in can include the following steps:
[0152] S701: The power consumption reduction module 15 obtains the steady-state thresholds corresponding to at least one motion parameter, where different types of motion parameters correspond to different steady-state thresholds.
[0153] In some embodiments, the electronic device can set a cache area, and store the steady-state thresholds corresponding to at least one motion parameter within a first time period and the values of at least one motion parameter collected through this cache area.
[0154] In some embodiments, at least one motion parameter of the movable component collected by the state detection module 14 can be discrete data.
[0155] As an example, the present application can collect N values of each motion parameter within a first time period at a preset frequency, and calculate the steady-state evaluation index of each motion parameter within the first time period according to the N values of each motion parameter within the first time period.
[0156] As an example, N is a set value, such as 100, 1000, etc. At this time, the state detection module 14 can continuously or intermittently collect N values of each motion parameter using a sensor. For example, N can be set according to the device signal sampling frequency fs, such as N = fs, 2*fs, etc. For example, the above at least one motion parameter includes N values of position X[n-N+1] to X[n], N values of velocity V[n-N+1] to V[n], and N values of drive current I[n-N+1] to I[n], totaling 3N discrete data points.
[0157] In addition, the specific value of the steady-state threshold corresponding to the motion parameter can be set according to actual requirements, and the embodiments of the present application do not make specific limitations on this.
[0158] S702: The power consumption reduction module 15 calculates the steady-state evaluation index of each motion parameter in the first time period.
[0159] For example, the steady-state evaluation index is not limited to absolute value, variance, etc.
[0160] In some embodiments, taking the steady-state evaluation index as variance as an example, the calculation process of the steady-state evaluation index is described. As an example, the steady-state evaluation indexes of motion parameters such as position, velocity, and drive current can all be calculated using the following formula (1).
[0161]
[0162] Among them, in formula (1), X represents the value of the motion parameter such as position, velocity, and drive current, X[i] represents the i-th value among the N values of the motion parameter, and i is a positive integer less than or equal to N. Is the average value of the N discrete point data of the motion parameter such as position, velocity, and drive current. S 2 (X) represents the steady-state evaluation index of the motion parameter. Specifically, S 2 (X) is the variance of the N values of the motion parameter.
[0163] S703: The power consumption reduction module 15 determines whether the movable component meets the steady-state condition according to the steady-state evaluation index and the steady-state threshold of each motion parameter in the first time period.
[0164] Among them, the steady-state condition includes: the steady-state evaluation index of at least one motion parameter is less than the corresponding steady-state threshold.
[0165] As an example, the steady-state condition can be steady-state condition 1, including that the steady-state evaluation index of each motion parameter of the movable component is less than the corresponding steady-state threshold.
[0166] The steady state condition can also be the steady state condition 2, including that the steady state evaluation index of any motion parameter of the movable component is less than the corresponding steady state threshold value.
[0167] The steady state condition can also be the steady state condition 3, including that the steady state evaluation indexes of any two motion parameters of the movable component are less than the corresponding steady state threshold values.
[0168] In the following embodiments, the steady state condition 1 is mainly taken as an example to illustrate the device control method provided by the embodiments of the present application.
[0169] Refer to Figure 8 For the determination process of the steady state condition 1 of a movable component provided by the embodiments of the present application, the process includes:
[0170] S801: The power consumption reduction module 15 sets a buffer area to store a total of N position discrete data from X[n-N+1] to X[n], a total of N speed discrete data from V[n-N+1] to X[n], and a total of N current discrete data from I[n-N+1] to I[n].
[0171] That is, N numerical values X[n-N+1] to X[n] of positions, N numerical values V[n-N+1] to V[n] of speeds, and N numerical values I[n-N+1] to I[n] of driving currents are stored in the buffer area, with a total of 3N discrete data points.
[0172] S802: The power consumption reduction module 15 sets a state detection algorithm to calculate the steady state evaluation index of each type of discrete data point.
[0173] At this time, the set state detection algorithm can be the algorithm corresponding to the steady state condition 1.
[0174] S803: The power consumption reduction module 15 uses the state detection algorithm to determine whether the
[0175] movable component is in a steady state or a non-steady state based on the steady state evaluation index of each type of discrete data point.
[0176] In this way, when the position, speed, and driving current of the movable component all meet the condition of being less than the corresponding steady state threshold values, the driving current of the movable component is subjected to closed-loop control to reduce the driving current and thus reduce the power consumption.
[0177] Refer to Figure 9 For the schematic flowchart of the process in the power consumption adjustment stage of a movable component provided by the embodiments of the application, this process can be executed by the control module 13. Specifically, as Figure 9 shown, the process of cutting into the power consumption reduction algorithm in the steady state detection stage includes the following steps, that is Figure 4A S405A shown or Figure 4B S406B shown can include the following steps:
[0178] S901: The control module 13 obtains the first drive current of the movable component 11 based on the first power consumption control instruction.
[0179] For example, the first drive current is the drive current of the movable component 11 at the first moment. Wherein, the first moment is after the first time period.
[0180] S902: The control module 13 calculates the first drive current to determine the feedback parameter corresponding to the first drive current.
[0181] The above control module 13 can be a closed-loop controller. A closed-loop controller represents a common control system used to control a certain physical process or system, which automatically maintains the required output state by continuously detecting feedback signals and making adjustments according to errors.
[0182] In some embodiments, the control module 13 in the present application can calculate the first drive current according to a set feedback function to determine the feedback parameter corresponding to the first drive current.
[0183] The present application transforms the controller by introducing a feedback function, reduces the gain in the low-frequency band of the controller spectrum, makes the drive current gradually decay, and thus achieves the purpose of reducing the power consumption of the driver.
[0184] As an example, the expression of the above preset feedback function can be referred to as shown in formula (2):
[0185] y[n] = b1I[n] + b2I[n - 1] + … + b p I[n - p + 1] - a1y[n - 1] - a2y[n - 2] - … - a q y[n - q] (2)
[0186] Wherein, y[n] represents the feedback parameter output by the feedback function at the nth moment, I[n] represents the drive current at the nth moment, b1, b2, …, b p , a1, a2, …, a q are the scaling coefficients between the input data and the output data in the feedback function, n, p, q are positive
[0187] integers, and when the nth moment is the moment corresponding to the first drive current (i.e., the first moment), I[n] is the first drive
[0188] current, and y[n] is the feedback parameter corresponding to the first drive current.
[0189] The scaling coefficients b1, b2, …, b in the above formula (2) p , a1, a2, …, a qThe value can be set according to actual requirements, and the present application does not make specific limitations thereon. It can be understood that different selections of these scaling factors correspond to different power consumption reduction algorithm schemes. For example, the scaling factors b1, b2, …, b p , a1, a2, …, a q are set to [10, 0, …, 0, 0, 0, …, 0].
[0190] S903: The control module 13 determines the closed-loop control parameters according to the position error and the feedback parameter.
[0191] Among them, the position error refers to the error between the set position and the feedback position of the working component (such as the value obtained by subtracting the set position from the feedback position), and the feedback position is calculated based on the position of the movable component detected within the first time period.
[0192] In addition, as an example, the above-mentioned closed-loop control parameter can be the difference between the position error and the feedback parameter, for example, the difference obtained by subtracting the feedback parameter from the position error.
[0193] Referring to Figure 10 , which is a schematic diagram of a closed-loop control scenario provided by an embodiment of the present application, and this scenario is a closed-loop control process in a shooting scenario. Specifically, in this closed-loop control process, the input of the signal generation module 12 is the focusing[[ID=1�]]
[0194] position of the voice coil motor (i.e., the set position), the feedback position (i.e., the detected focal position of the lens), and the feedback parameter output by the feedback function. At this time, the feedback function calculates the drive current output by the control module 13 to the voice coil motor in real time, and obtains the value of the feedback parameter corresponding to the drive current at the current moment, such as the first moment. At this time, the position error is the difference between the focusing position and the feedback position (i.e., the actual focal position).
[0195] S904: The control module 13 outputs a second drive current to the movable component 11 based on the closed-loop control parameter, so that the second drive current is lower than the first drive current.
[0196] As an example, the above-mentioned second drive current is the drive current of the movable component 11 at the second moment, where the second moment is after the first moment.
[0197] Referring to Figure 11 shown, it is a closed-loop control scenario diagram based on a PID controller. As Figure 11 shown, the control module 13 (i.e., the controller 13) is a PID controller, including a proportional controller, an integral controller, and a differential controller. As an example, Figure 11The gain shown represents the feedback function. At this time, the input of the signal generation module 12 is the position error and the feedback parameter, and the output is the closed-loop control parameter. The input of the control module 13 is the closed-loop control parameter, and the output is the drive current, which is used to drive the movable component 11 to drive the working component 16 to move.
[0198] Referring Figure 12 as shown, the present application embodiment provides a current waveform for closed-loop power consumption reduction of a PID controller based on a set feedback function. As Figure 12 shown, the horizontal axis is the sampling point of the drive current output by the controller, and the vertical axis is the value of the drive current output by the controller. Specifically, Figure 12 the scaling coefficient in the transfer function of the shown PID controller is set to [10, 0, …, 0, 0, 0, …, 0]. After the PID controller based on this feedback function performs power consumption reduction processing on the movable component, the drive current of the movable component gradually decreases from the steady-state 28 milliamperes (mA) current to near 0 mA, having an obvious function of reducing the drive current.
[0199] Referring Figure 13 as shown, it is a schematic diagram of the amplitude-frequency response comparison of a controller provided by the present application embodiment. Figure 13 is a Bode plot, that is, an amplitude-frequency response curve. The horizontal axis represents the frequency, and the vertical axis represents the gain (dB) and phase (degrees), respectively. And, Figure 13 the dashed line in is the amplitude-frequency response of a conventional PID controller, and the solid line is the amplitude-frequency response of the modified controller (that is, the PID controller based on the set feedback function). Taking Figure 12 the shown PID controller as an example, if the position error input is a sine wave of different frequencies (1 to 2000 Hz), then the drive current also outputs a sine wave of the corresponding frequency. The gain ratio of the amplitude of the output waveform to the amplitude of the input waveform is Magnitude, and the phase difference between the output waveform and the input waveform is Phase. Drawing out different frequency points is Figure 13 . From Figure 13 it can be seen that when the modified controller executes the closed-loop power consumption reduction algorithm, it effectively reduces the gain of the low-frequency band of the controller, that is, the frequency-domain characteristics of the PID of the modified controller remain stable compared with before modification, without affecting the control stability of the control circuit.
[0200] Therefore, the controller of the present application based on the set feedback function, by using the closed-loop control method to adjust the drive current of the movable component, can ensure the stability of the movable component while reducing power consumption, such as ensuring the stability of lens focusing in a camera scenario.
[0201] In some embodiments, the electronic device to which the device control method provided in this application is applied may be Electronic Device 01. Taking Electronic Device 01 as an example, the hardware structure of the electronic device will be described below.
[0202] As Figure 14 shown, Electronic Device 01 may include a processor 110, a power module 140, a memory 180, a mobile communication module 130, a wireless communication module 120, a sensor module 190, an audio module 150, a camera 170, an interface module 160, a button 101, and a display screen 102, etc.
[0203] It can be understood that the structure schematically shown in the embodiments of the present invention does not constitute a specific limitation on Electronic Device 01. In some other embodiments of this application, Electronic Device 01 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0204] The processor 110 may include one or more processing units. For example, it may include a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Digital Signal Processor (DSP), an AP, a Micro-programmed Control Unit (MCU), an Artificial Intelligence (AI) processor, or a processing module or processing circuit such as a Field Programmable Gate Array (FPGA), etc. In some embodiments, the storage unit in the processor 110 is the cache memory 180. For example, modules such as the control module 13, the status detection module 14, and the power consumption reduction module 15 in the above control circuit 10 may be implemented through the processor 110. That is, the processor 110 may be used to determine whether the movable component 11 meets the steady-state condition and whether a power consumption reduction algorithm needs to be executed.
[0205] The power module 140 may include a power source, a power management component, etc. The power source may be a battery. The power management component is used to manage the charging of the power source and the power supply from the power source to other modules. In some embodiments, the power management component includes a charging management module and a power management module. The charging management module is used to receive the charging input from the charger; the power management module is used to connect the power source, the charging management module, and the processor 110. The power management module receives the input of the power source and / or the charging management module and supplies power to the processor 110, the display screen 102, the camera 170, the wireless communication module 120, etc.
[0206] The mobile communication module 130 may include, but is not limited to, an antenna, a power amplifier, a filter, an LNA (Low Noise Amplify), etc. The mobile communication module 130 may provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the electronic device 01.
[0207] The wireless communication module 120 may include an antenna and realize the transceiver of electromagnetic waves via the antenna. The wireless communication module 120 may provide solutions for wireless communications applied to the electronic device 01, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The electronic device 01 may communicate with the network and other devices through wireless communication technologies.
[0208] In some embodiments, the mobile communication module 130 and the wireless communication module 120 of the electronic device 01 may also be located in the same module.
[0209] The display screen 102 is used to display a human-machine interaction interface, images, videos, etc.
[0210] The sensor module 190 may include a proximity light sensor, a pressure sensor, etc.
[0211] The audio module 150 is used to convert digital audio information into an analog audio signal for output, or convert an analog audio input into a digital audio signal. The audio module 150 may also be used for encoding and decoding audio signals. In some embodiments, the audio module 150 may be disposed in the processor 110, or some functional modules of the audio module 150 may be disposed in the processor 110. In some embodiments, the audio module 150 may include a motor, a speaker, a receiver, a microphone, and a headphone interface for sound generation.
[0212] The camera 170 is used to capture still images or videos. An object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the Image Signal Processing (ISP) to convert it into a digital image signal. The electronic device 01 can implement the shooting function through the ISP, the camera 170, the video codec, the Graphic Processing Unit (GPU), the display screen 102, and the application processor, etc.
[0213] The interface module 160 includes an external memory interface, a universal serial bus (USB) interface, a subscriber identification module (SIM) card interface, etc. Among them, the external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 01. The external memory card communicates with the processor 110 through the external memory interface to implement the data storage function. The universal serial bus interface is used for the electronic device 01 to communicate with other electronic devices. The SIM card interface is used to communicate with the SIM card installed in the electronic device 01, such as reading the phone number stored in the SIM card, or writing the phone number into the SIM card.
[0214] In some embodiments, the electronic device 01 further includes a key 101 and an indicator, etc. Among them, the key 101 can include a volume key, a power on / off key, etc. The indicator can include a laser indicator, a radio frequency indicator, an LED indicator, etc.
[0215] In a possible implementation manner, an embodiment of the present application provides a readable medium, on which instructions are stored, and when the instructions are executed on the electronic device, the electronic device executes the device control method described above.
[0216] In a possible implementation manner, an embodiment of the present application provides a chip, including a circuit, and the circuit is used to execute the device control method described above.
[0217] In a possible implementation manner, an embodiment of the present application provides an electronic device, including the above circuit (such as the above control circuit 10).
[0218] According to the embodiments of the present application, Figure 15 A block diagram of a system on chip (SoC) 1500 (i.e., a kind of chip) is shown. In Figure 15 it, similar components have the same reference numerals. Additionally, the dashed boxes are optional features of a more advanced SoC. In Figure 15Among them, the SoC 1500 includes: an interconnect unit 1550, which is coupled to the application processor 1510; a system agent unit 1570; a bus controller unit 1580; an integrated memory controller unit 1540; a group or one or more coprocessors 1520, which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a static random access memory (SRAM) unit 1530; and a direct memory access (DMA) unit 1560. In one embodiment, the coprocessor 1520 includes a dedicated processor, such as, for example, a network or communication processor, a compression engine, a GPGPU, a high-throughput MIC processor, or an embedded processor, etc.
[0219] Embodiments of the mechanisms disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of this application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memories and / or storage elements), at least one input device, and at least one output device.
[0220] The program code can be applied to the input instructions to perform the various functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, the processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0221] The program code can be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. When needed, the program code can also be implemented in assembly language or machine language. In fact, the mechanisms described in this application are not limited to the scope of any specific programming language. In any case, the language can be a compiled language or an interpreted language.
[0222] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more transient or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or via other computer-readable media. Thus, machine-readable media may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to, floppy disks, optical disks, optical discs, compact discs read-only memory (CD-ROMs), magneto-optical discs, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical cards, flash memory, or tangible machine-readable memories for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) in electrical, optical, acoustic, or other forms via the Internet. Thus, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
[0223] In the drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or ordering may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. Additionally, the inclusion of a structural or method feature in a particular figure does not imply that such a feature is required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0224] It should be noted that each unit / module mentioned in the device embodiments of the present application is a logical unit / module. Physically, a logical unit / module may be a physical unit / module, a part of a physical unit / module, or may be implemented as a combination of multiple physical units / module. The physical implementation manner of these logical units / module themselves is not the most important. The combination of the functions implemented by these logical units / module is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application. This does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0225] It should be noted that in the examples and the description of this patent, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one" does not exclude the presence of additional identical elements in the process, method, article or device comprising said element.
[0226] Although this application has been illustrated and described by reference to certain preferred embodiments thereof, those of ordinary skill in the art should understand that various changes may be made therein in form and detail without departing from the spirit and scope of this application.
Claims
1. A device control method, characterized in that, For an electronic device, the electronic device includes a movable component, a signal generation module, a state detection module, a control module, and a power consumption reduction module. The movable component is connected to the control module and the state detection module. The power consumption reduction module is connected to the state detection module and the control module. The signal generation module is connected to the control module and the state detection module. The method includes: The signal generation module sends a motion control instruction of the movable component to the control module; The control module controls the movement of the movable component in response to the motion control instruction; During the movement of the movable component, the state detection module sends the motion parameters of the movable component to the power consumption reduction module; The power consumption reduction module determines that the movable component meets the steady-state condition according to the motion parameters, and sends a first power consumption control instruction to the control module; Based on the first power consumption control instruction, the control module reduces the drive current of the movable component by using a closed-loop control method.
2. The method according to claim 1, wherein The method further includes: The power consumption reduction module determines that the movable component does not meet the steady-state condition, and sends a second power consumption control instruction to the control module; Based on the second power consumption control instruction, the control module continues to control the movement of the movable component until the movable component meets the steady-state condition.
3. The method according to claim 1 or 2, characterized in that, The motion parameters include at least one of the following: the moving position of the movable component, the moving speed of the movable component, and the drive current of the movable component.
4. The method according to claim 3, characterized in that, The method further includes: The power consumption reduction module obtains steady-state thresholds corresponding to at least one motion parameter, where different types of motion parameters correspond to different steady-state thresholds; The power consumption reduction module calculates steady-state evaluation indexes of each motion parameter in a first time period; The power consumption reduction module determines whether the movable component meets the steady-state condition according to the steady-state evaluation indexes of each motion parameter in the first time period and the steady-state thresholds; Wherein, the steady-state condition includes: the steady-state evaluation index of at least one motion parameter is less than the corresponding steady-state threshold.
5. The method according to claim 4, wherein The steady-state evaluation index includes variance and / or absolute value.
6. The method according to claim 4, wherein The power consumption reduction module calculates the steady-state evaluation indexes of each motion parameter in the first time period, including: The power consumption reduction module collects N values of each motion parameter in the first time period at a preset frequency; The power consumption reduction module calculates the steady-state evaluation indexes of each motion parameter in the first time period according to the N values of each motion parameter in the first time period.
7. The method according to any one of claims 4 to 6, characterized in that The electronic device further includes: a working component, and the movable component is connected to the working component and controls the movement of the working component; The motion control instruction is also used to instruct to adjust the working position of the working component to a set position, and the steady-state condition is that when the movable component controls the working component to reach the set position.
8. The method according to claim 7, characterized in that, The control module reduces the drive current of the movable component by using a closed-loop control method based on the first power consumption control instruction, including: Based on the first power consumption control instruction, the control module obtains the first drive current of the movable component; The control module calculates the first driving current to determine the feedback parameter corresponding to the first driving current; The control module determines the closed-loop control parameter according to the position error and the feedback parameter; The control module outputs a second driving current to the movable component based on the closed-loop control parameter, such that the second driving current is lower than the first driving current, wherein the position error refers to the error between the set position and the feedback position of the working component.
9. The method according to claim 8, wherein The control module calculates the first driving current to determine the feedback parameter corresponding to the first driving current, including: The control module calculates the first driving current according to a preset feedback function to determine the feedback parameter corresponding to the first driving current; Wherein, the feedback function is: y[n] = b1I[n] + b2I[n - 1] + … + b p I[n - p + 1] - a1y[n - 1] - a2y[n - 2] - … - a q y[n - q], where y[n] represents the value of the feedback parameter output by the feedback function at time n, I[n] represents the drive current at time n, b1, b2, …, b p , a1, a2, …, a q are the scaling coefficients between the input data and the output data in the feedback function, n is a positive integer, and when the time at time n is the time corresponding to the first drive current, I[n] is the first drive current, y[n] is the value of the feedback parameter corresponding to the first drive current, and n, p, q are positive integers.
10. The method according to claim 8, wherein The control module is a proportional-integral-derivative controller or a fuzzy controller.
11. The method according to any one of claims 7 to 10, characterized in that, The electronic device includes a shooting module, the shooting includes a lens and a voice coil motor for controlling the movement of the lens, the movable component is the voice coil motor, the working component is the lens, and the working position is the focal position of the lens.
12. The method according to any one of claims 1 to 10, characterized in that, The movable component satisfies a preset friction condition, and the preset friction condition is used to indicate that the friction force during the movement process of the movable component is large.
13. An electronic device, characterized in that, The electronic device includes a movable component, a signal generation module, a state detection module, a control module, and a power consumption reduction module. The movable component is connected to the control module and the state detection module, the power consumption reduction module is connected to the state detection module and the control module, and the signal generation module is connected to the control module and the state detection module. And, The signal generation module is configured to send a motion control instruction of the movable component to the control module; The control module is configured to control the movement of the movable component in response to the motion control instruction; The state detection module is configured to send the motion parameter of the movable component to the power consumption reduction module during the movement of the movable component; The power consumption reduction module is configured to determine that the movable component satisfies the steady-state condition according to the motion parameter, and send a first power consumption control instruction to the control module; The control module is configured to reduce the driving current of the movable component in a closed-loop control manner based on the first power consumption control instruction.
14. A readable medium, characterized in that, Instructions are stored on the readable medium, and when the instructions are executed on the electronic device, the electronic device executes the device control method according to any one of claims 1 to 12.
15. An electronic device, characterized in that, Including: A memory for storing instructions executed by one or more processors of the electronic device, and a processor, which is one of the processors of the electronic device, for executing the device control method according to any one of claims 1 to 12.
16. A chip, characterized in that, The chip includes a circuit for executing the device control method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Monitoring equipment and camera
CN113300643A
Closed-loop control system, control method and electronic equipment
CN115993773A
Driving chip control method and system, storage medium and electronic equipment
CN119767132A
Hall-effect based linear motor controller
US20090085558A1
Loop filter stabilization for class d amplifier
US20230097106A1