Driving mode control, motor driving method and system, photographing module
By calculating the delay time to avoid the edge of electrical signal change and switching the motor drive mode, the problem of poor image quality of the shooting module is solved, low power consumption and simplified circuit structure are achieved, and image quality and device usage time are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI AWINIC TECH CO LTD
- Filing Date
- 2022-06-30
- Publication Date
- 2026-05-12
AI Technical Summary
When the camera module drives the motor in constant current mode and PWM mode in sequence, the image quality is poor, and the existing solution may lead to complex circuit structure or high power consumption.
By calculating the delay time, the analog-to-digital conversion process avoids the edges of electrical signal changes such as PWM high and low level changes. The drive mode control method is used to switch the motor drive mode, reducing power consumption and simplifying the circuit structure.
It improves image quality, reduces drive power consumption, simplifies circuit structure, and extends the usage time of the shooting module after a single charge.
Smart Images

Figure CN115021630B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of signal processing technology, specifically to a drive mode control, a motor drive method and system, and a shooting module. Background Technology
[0002] The camera module includes components such as a voice coil motor and an image sensor. Voice coil motors are a type of motor widely used in autofocus and optical image stabilization in mobile phone camera modules. Their principle is that a current-carrying coil experiences a force in a magnetic field, causing the load to move. The driving methods for these motors generally include a first mode controlled by a fixed electrical signal, such as constant current drive, and a mode controlled by a changing electrical signal, such as PWM (Pulse Width Modulation) drive. If the aforementioned electrical signal includes current, the first mode may involve, given a current configuration, the drive circuit making the current flowing through the motor the current value corresponding to the current configuration and keeping it constant; the second mode uses changing current waveforms, such as flipping, to control the opening and closing of the drive switch, for example, making the drive switch open when high and closed when low, thus intermittently connecting the motor to the power supply. Since this type of motor is equivalent to an inductor with energy storage capacity, intermittent power switching makes the motor's movement similar to that of a constant current drive with the same average current.
[0003] An image sensor includes components such as a photosensitive unit and an analog-to-digital converter (ADC). The ADC further converts electrical signals into digital signals. During image capture, the image sensor acquires light signals through the photosensitive unit, converts the light signals into analog signals, and then converts the analog signals back into digital signals through the ADC. The signal acquisition cycle of an image sensor can also be called the analog-to-digital conversion (ADC) cycle. Image sensors can perform image acquisition and ADC using either row sampling or column sampling. Taking row sampling as an example, corresponding to different image resolutions, each sampling area can be one or more rows of image pixels. That is, when the image sensor performs one ADC sampling, the signal output by the image sensor can correspond to one or more rows of the image (or, image pixels). To facilitate the application of image sensors, they can output timing signals such as synchronization signals (e.g., horizontal synchronization signals). The ADC cycle of the image sensor can be an integer multiple of the cycle of the horizontal synchronization signal. The image signal processor (ISP) can be used to process the data fed back by the image sensor, converting the electrical signals transmitted by the image sensor into an image visible to the naked eye. The cycle of the horizontal synchronization signal is equal to the cycle of the image sensor's row sampling. The image sensor sends a digital signal corresponding to one row in the image to the ISP each time. This digital signal can be sent within the ADC cycle or in one or more subsequent cycles.
[0004] The inventor studied the working process of the camera module in the electronic device and found that the image quality of the camera module was poor when the motor was driven by the first mode and the second mode in sequence. Summary of the Invention
[0005] In view of this, this application provides a drive mode control, a motor drive method and system, and a shooting module to solve the problem of poor image quality when the shooting module drives the motor in the first mode and the second mode in sequence.
[0006] This application provides a drive mode control method for controlling the motor drive mode of a shooting module, including:
[0007] The first start time of the signal synchronization process of the shooting module during the shooting process, the second start time of the analog-to-digital conversion process, and the switching time from the first mode to the second mode are obtained. The electrical signal used in the second mode includes the changing edge.
[0008] Obtain the first difference t1 between the first start time and the second start time;
[0009] Obtain the second difference t2 between the switching time and the second start time;
[0010] The delay time is calculated based on at least one of the mode switching cycle of the analog-to-digital conversion process, the first difference t1, and the second difference t2. The delay time is used to delay the mode switching operation so that the analog-to-digital conversion process avoids the edge of electrical signal change in the second mode.
[0011] After detecting the synchronization signal, the second mode is switched to the first mode with reference to the delay time.
[0012] Optionally, the drive mode control method further includes: after switching to the first mode and the first mode lasting for a specified time, switching the first mode to the second mode.
[0013] Optionally, the method for calculating the delay time based on at least one of the mode conversion cycle of the analog-to-digital conversion process, the first difference t1, and the second difference t2 further includes: identifying the order of the first start time and the second start time; and, based on the order, selecting at least two parameters from the mode conversion cycle, the first difference t1, and the second difference t2 to calculate the delay time, wherein the specific calculation method corresponds to the order.
[0014] Optionally, the method for calculating the delay time by selecting at least two parameters from the mode switching period, the first difference t1, and the second difference t2 according to the order further includes: if the first start time is before the second start time, selecting at least two parameters from the mode switching period, the first difference t1, and the second difference t2 according to the relationship between the first difference t1 and the second difference t2 to calculate the delay time; if the first start time is after the second start time, substituting the mode switching period, the first difference t1, and the second difference t2 into a preset first time calculation formula according to the relationship between the first difference t1 and the second difference t2 to calculate the delay time.
[0015] Optionally, the method for calculating the delay time based on the relationship between the first difference t1 and the second difference t2, and based on at least two parameters among the mode switching period, the first difference t1, and the second difference t2, further includes: if the first difference t1 is greater than the second difference t2, then the delay time includes: t1-t2; if the first difference t1 is less than or equal to the second difference t2, then the delay time includes: t1+T-t2, where T represents the mode switching period.
[0016] Optionally, the first time calculation formula includes: Q = T + t1 - t2, where Q represents the delay time and T represents the mode switching period.
[0017] Optionally, the first mode includes a mode controlled by a fixed electrical signal, and the second mode includes a mode controlled by a variable electrical signal.
[0018] This application also provides a motor driving method for driving the motor of a shooting module, including:
[0019] The motor is driven in the second mode;
[0020] The second mode is switched to the first mode using any of the above-mentioned drive mode control methods, and the motor is driven using the first mode.
[0021] This application also provides a drive mode control system for controlling the motor drive mode of a shooting module, including:
[0022] The first acquisition module is used to acquire the first start time of the signal synchronization process of the shooting module during the shooting process, the second start time of the analog-to-digital conversion process, and the switching time from the first mode to the second mode, wherein the electrical signal used in the second mode includes the changing edge;
[0023] The second acquisition module is used to acquire a first difference t1 between the first start time and the second start time;
[0024] The third acquisition module is used to acquire the second difference t2 between the switching time and the second start time;
[0025] The calculation module is used to calculate the delay time based on at least one of the mode switching cycle of the analog-to-digital conversion process, the first difference t1 and the second difference t2. The delay time is used to delay the mode switching operation so that the analog-to-digital conversion process avoids the edge of electrical signal change in the second mode.
[0026] The control module is used to switch the second mode to the first mode with reference to the delay time after detecting the synchronization signal.
[0027] This application also provides a motor drive system for driving the motor of a shooting module, including:
[0028] A first drive module is used to drive the motor in a second mode;
[0029] The second drive module is used to control the system to switch the second mode to the first mode using any of the above drive modes, and to drive the motor using the first mode.
[0030] This application also provides a shooting module, including a processor and a storage medium; the storage medium stores program code; the processor is used to call the program code stored in the storage medium to execute any of the above-described drive mode control methods or any of the above-described motor drive methods.
[0031] Optionally, the shooting module further includes a PWM generator and a driving circuit. The driving circuit includes a first driving port for constant current mode, a second driving port for PWM mode, and a third driving port for receiving switching commands. The processor includes a first control port for configuring current, a second control port for connecting to the PWM generator, and a third control port for switching driving modes. The first control port is connected to the first driving port, the second control port is connected to the second driving port, and the third control port is connected to the third driving port.
[0032] The drive mode control, motor drive method and system, and shooting module provided in this application acquire the first start time of the signal synchronization process, the second start time of the analog-to-digital conversion process, the switching time from the first mode to the second mode, the first difference t1 between the first start time and the second start time, and the second difference t2 between the switching time and the second start time during the shooting process. Then, a delay time is calculated based on at least one of the parameters of the mode conversion cycle of the analog-to-digital conversion process, the first difference t1, and the second difference t2. After detecting the synchronization signal, the second mode is switched to the first mode with the delay time as a reference, so that the second mode is staggered from the analog-to-digital conversion process. In this way, the entire analog-to-digital conversion process avoids the time when electromagnetic interference is strongest, such as the edges of electrical signal changes such as PWM high and low level changes, which can improve the corresponding digital-to-analog conversion effect and thus improve the quality of the captured image.
[0033] Furthermore, this application can also calculate the corresponding delay time under the corresponding conditions according to the order of the first start time and the second start time, which can ensure the accuracy of the delay time obtained under each condition.
[0034] The shooting module uses the first mode and the second mode to drive the motor, which has relatively low driving power consumption. Furthermore, no additional components such as electromagnetic shielding are needed on the wires through which the changing electrical signals such as PWM signals pass, making the shooting module have a relatively simple circuit structure.
[0035] As can be seen, this application can not only accurately calculate the delay time and precisely delay the corresponding mode switching time, avoiding the edges of analog-to-digital conversion and PWM high-low level changes, thus improving the corresponding image quality, but also reduce the power consumption of the corresponding driving process and extend the usage time of the shooting module after one charge. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a schematic flowchart of a drive mode control method in one embodiment of this application;
[0038] Figure 2 This is a schematic diagram of the working timing of the shooting module in one embodiment of this application;
[0039] Figure 3 This is a schematic diagram of the working timing of the shooting module in one embodiment of this application;
[0040] Figure 4 This is a schematic diagram of the working timing of the shooting module in one embodiment of this application;
[0041] Figure 5 This is a schematic flowchart of a motor driving method in one embodiment of this application;
[0042] Figure 6 This is a schematic diagram of the drive mode control system structure according to an embodiment of this application;
[0043] Figure 7 This is a schematic diagram of a motor drive system structure according to an embodiment of this application;
[0044] Figure 8 This is a schematic diagram of the shooting module structure according to an embodiment of this application;
[0045] Figure 9 This is a schematic diagram of the imaging module structure in one embodiment of this application. Detailed Implementation
[0046] The inventors studied the operation of the imaging module using PWM mode, a driving mode that employs changing electrical signals, as an example. They discovered that when the imaging module sequentially drives the motor using constant current mode and PWM mode, a certain degree of electromagnetic interference (EMI) occurs. EMI includes electromagnetic waves radiated into the surrounding space by electronic components during operation, which are received by other electronic components, interfering with the operation of those components. Specifically, if a high-frequency signal passes through the conductors during the imaging module's operation, it can easily generate EMI on surrounding electronic components. To meet different needs, driving modes typically include constant current drive and changing current drive modes. The changing current drive mode is usually PWM mode. The PWM drive signal is a high-frequency signal, prone to generating EMI, and the EMI is strongest at the edges of PWM high-low level changes. When the analog-to-digital converter in the image sensor performs conversion, if this happens to be at the edge of a current change, such as the edge of a PWM signal, the electrical signal converted by the image sensor will contain significant interference signals, affecting the quality of the final processed image. Some solutions add electromagnetic shielding to the conductors through which the PWM signal passes; however, this complicates the circuit board structure. Other solutions use constant current drive as the mainstream method for motor driving in the corresponding camera, resulting in high power consumption during the driving process.
[0047] To address the aforementioned issues, this application can calculate the delay time. After detecting the synchronization signal, the second mode is switched to the first mode with the delay time as a reference, so that the second mode is staggered from the analog-to-digital conversion process. In this way, the entire analog-to-digital conversion process avoids the time when electromagnetic interference is strongest, such as the edges of electrical signal changes like PWM high and low level changes, thereby improving the corresponding digital-to-analog conversion effect and thus improving the quality of the captured image. The shooting module uses the first mode and the second mode to drive the motor, which has relatively low drive power consumption. Moreover, no additional components such as electromagnetic shielding are needed on the wires through which the changing electrical signals such as PWM signals pass, making the shooting module have a relatively simple circuit structure.
[0048] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. In the absence of conflict, the following embodiments and their technical features can be combined with each other.
[0049] The first aspect of this application provides a drive mode control method, which can be used to control the motor drive mode of a shooting module. (Reference) Figure 1 As shown, the above-mentioned drive mode control method includes steps S110 to S150.
[0050] S110, acquire the first start time of the signal synchronization process of the shooting module during the shooting process, the second start time corresponding to the analog-to-digital conversion process, and the switching time from the first mode to the second mode, wherein the electrical signal used in the second mode includes the changing edge.
[0051] Specifically, the first start time is the start time of the signal synchronization process, and the second start time is the start time of the analog-to-digital conversion process. The imaging module can include two motor drive modes: a first mode and a second mode. The first mode can include a mode controlled by a fixed electrical signal, such as a constant current mode. The second mode includes a mode controlled by a variable electrical signal, such as a PWM mode. The inventors discovered that if a mode controlled by a variable electrical signal is used, the electromagnetic interference at the edges of the signal changes (such as the edges of PWM high-low level changes) is the strongest. This electromagnetic interference can easily affect the analog-to-digital conversion process of the image sensor. For example, at the edges of the PWM signal, the electrical signal converted by the image sensor will contain a large amount of interference signal, thus affecting the quality of the final processed image.
[0052] Optionally, step S110 may also acquire other parameters used to control the motor drive mode, such as the mode conversion cycle of the analog-to-digital conversion process.
[0053] S120, obtain the first difference t1 between the first start time and the second start time.
[0054] S130, obtain the second difference t2 between the switching time and the second start time.
[0055] If the first mode includes constant current mode and the second mode includes PWM mode, during the shooting process, in order to avoid the influence of PWM mode on the analog-to-digital conversion of the image sensor, the switching time of the driving circuit of the shooting module from the first mode to the second mode needs to be earlier than the second start time of the analog-to-digital conversion process of the image sensor. Therefore, the second difference t2 is usually a positive value.
[0056] S140, calculate the delay time based on at least one of the mode switching cycle of the analog-to-digital conversion process, the first difference t1 and the second difference t2. The delay time is used to delay the mode switching operation so that the analog-to-digital conversion process avoids the edge of electrical signal change in the second mode.
[0057] In step S140 above, at least one parameter can be selected from the mode switching period, the first difference t1 and the second difference t2 to calculate the delay time based on factors such as the order of the first start time and the second start time, the sign characteristics of the first difference t1 and / or the sign characteristics of the second difference t2. This is so that after the mode switching operation is delayed according to the delay time, the analog-to-digital conversion process can avoid the edge of electrical signal change in the second mode, that is, avoid the time when electromagnetic interference is strongest at the edge of electrical signal change.
[0058] S150, after detecting the synchronization signal, the second mode is switched to the first mode with reference to the delay time. For example, after detecting the synchronization signal, the delay time is delayed, and then the second mode is switched to the first mode, etc., so that the edge of the change of electrical signal in the second mode is staggered from the analog-to-digital conversion process.
[0059] Optionally, the aforementioned synchronization signal may include a horizontal synchronization signal output by the image sensor, or other synchronization signals.
[0060] In the aforementioned drive mode control method, the first start time of the signal synchronization process of the shooting module during shooting, the second start time corresponding to the analog-to-digital conversion process, the switching time from the first mode to the second mode, the first difference t1 between the first start time and the second start time, and the second difference t2 between the switching time and the second start time are obtained. Then, a delay time is calculated based on at least one of the parameters: the mode conversion cycle of the analog-to-digital conversion process, the first difference t1, and the second difference t2. This allows the second mode to be switched to the first mode after the synchronization signal is detected, with the delay time as a reference, so that the second mode is staggered from the analog-to-digital conversion process. This avoids the time when electromagnetic interference is strongest, such as the edges of electrical signal changes like PWM high and low level transitions, thus improving the corresponding digital-to-analog conversion effect and improving the quality of the captured image. The shooting module uses the first mode and the second mode to drive the motor, resulting in relatively low drive power consumption. Furthermore, no additional components such as electromagnetic shielding are needed on the wires through which the changing electrical signals such as PWM signals pass, giving the shooting module a relatively simple circuit structure.
[0061] In one embodiment, the drive mode control method further includes: after switching to the first mode and the first mode lasting for a specified time, switching the first mode to the second mode to achieve switching between the first mode and the second mode, thus improving the corresponding drive mode control process. Optionally, after switching from the first mode to the second mode, step S110 can be returned to ensure precise switching of the drive mode throughout the shooting process, so that the analog-to-digital conversion process is staggered from the edge of the electrical signal change in the second mode. Optionally, the specified time includes the duration of the first mode; if the first mode includes a constant current mode, then the specified time includes the duration of the constant current mode. The specified time can be set according to factors such as the configuration characteristics, operating characteristics, and / or motor drive characteristics of the shooting module to reduce the power consumption generated when the shooting module drives the motor.
[0062] In one embodiment, corresponding to Figure 1 Step S140 of the method for calculating the delay time based on at least one parameter among the mode conversion cycle of the analog-to-digital conversion process, the first difference t1, and the second difference t2 further includes: identifying the order of the first start time and the second start time; and selecting at least two parameters from the mode conversion cycle, the first difference t1, and the second difference t2 respectively to calculate the delay time according to the order, wherein the specific calculation method corresponds to the order to improve the accuracy of the obtained delay time.
[0063] In one example, the method for calculating the delay time by selecting at least two parameters from the mode transition period, the first difference t1, and the second difference t2 according to the order further includes:
[0064] If the first start time is before the second start time, i.e. the first difference t1 is greater than 0, the delay time is calculated by selecting at least two parameters from the mode switching period, the first difference t1 and the second difference t2 according to the relationship between the first difference t1 and the second difference t2. For example, when t1>t2, the first difference t1 and the second difference t2 are selected to calculate the delay time, and when t1≤t2, the mode switching period and the first difference t1 are selected to calculate the delay time, etc., so that the delay time can accurately delay the mode switching operation by calculating each parameter.
[0065] If the first start time is after the second start time, i.e. the first difference t1 is less than 0, the delay time is calculated according to the mode conversion cycle, the first difference t1, the second difference t2 and the preset first time calculation formula to ensure the accuracy of the calculated delay time.
[0066] Optionally, when the first difference t1 is greater than 0 and t1>t2, the second time calculation formula can be used to calculate the delay time; when the first difference t1 is greater than 0 and t1≤t2, the third time calculation formula can be used to calculate the delay time. The first, second, and / or third time calculation formulas can be determined based on factors such as the duration of the second mode, the duration of the analog-to-digital conversion process, other parameters affecting the mode switching time, and / or other parameters affecting the analog-to-digital conversion process. For example, the first time calculation formula may include: Q=T+t1-a1, the second time calculation formula may include: Q=t1-t2+a2, and the third time calculation formula may include: Q=t1+T-a3, etc., so that each time calculation formula can accurately calculate the corresponding delay time. In the above time calculation formulas, T represents the mode conversion period, Q represents the delay time, a1 represents the first time adjustment parameter, which can be set to t2 or a value slightly greater than t2, etc., a2 represents the second time adjustment parameter, which can be set to 0 or a value slightly less than 0, etc., a3 represents the third time adjustment parameter, which can be set to t2 or a value slightly greater than t2, etc.
[0067] This example calculates the corresponding delay time under the corresponding conditions based on the order of the first and second start times, ensuring the accuracy of the delay time obtained under each condition.
[0068] In one example, the method for calculating the delay time based on the relationship between the first difference t1 and the second difference t2, and based on at least two parameters among the mode switching period, the first difference t1, and the second difference t2, further includes: if the first difference t1 is greater than the second difference t2, the delay time can be calculated using a second time calculation formula, and the corresponding delay time may include: Q = t1 - t2; if the first difference t1 is less than or equal to the second difference t2, the delay time can be calculated using a third time calculation formula, and the corresponding delay time may include: Q = t1 + T - t2.
[0069] Specifically, if the first mode includes a constant current mode and the second mode includes a PWM mode, and the constant current mode lasts for a specified time t3, the timing diagram of the camera module under the above conditions can be referenced. Figure 2 and Figure 3 As shown. Figure 2As shown, when the first difference t1 is greater than 0 and t1>t2, to avoid the influence of the edge of the PWM waveform on the analog-to-digital conversion of the image sensor, the relevant driving circuit of the imaging module needs to switch the driving mode earlier than the analog-to-digital conversion process t2 of the image sensor. After the PWM mode is switched to constant current driving mode, the driving circuit switches back to PWM driving mode after a specified time t3. The corresponding working process may include: S161, detecting the synchronization signal; if no synchronization signal is detected, stay in S161; if the synchronization signal is detected, delay for t1-t2 time and enter S162; S162, switch the driving mode to constant current mode, delay for t3 time and enter S163; S163, switch the driving mode to PWM mode and return to the execution step S161. Figure 3 As shown, when the first difference t1 is greater than 0 and t1≤t2, in order to avoid the influence of the edge of the PWM waveform on the analog-to-digital conversion of the image sensor, the relevant driving circuit of the shooting module needs to switch the driving mode earlier than the analog-to-digital conversion process of the image sensor t2 time. After the PWM mode is switched to constant current driving mode, the driving circuit switches back to PWM driving mode after a specified time t3. The corresponding working process may include: S171, detecting the synchronization signal. If no synchronization signal is detected, stay in S171. If the synchronization signal is detected, delay for t1+T-t2 time and enter S172; S172, switch the driving mode to constant current mode, delay for t3 time and enter S173; S173, switch the driving mode to PWM mode and return to the execution step S171.
[0070] In one example, the first time calculation formula includes: Q = T + t1 - t2, where Q represents the delay time and T represents the mode transition period. The first time calculation formula provided in this example is relatively simple, has high calculation accuracy, and can quickly and accurately calculate the corresponding delay time.
[0071] Specifically, if the first mode includes a constant current mode and the second mode includes a PWM mode, the constant current mode lasts for a specified time t3, and the first start time is after the second start time (i.e., the first difference t1 is less than 0), the timing diagram of the imaging module can be referenced. Figure 4 As shown. Figure 4As shown, to avoid the influence of the edge of the PWM waveform on the analog-to-digital conversion of the image sensor, the driving mode switching of the relevant driving circuit needs to be performed earlier than the analog-to-digital conversion process t2 of the image sensor. After the PWM mode is switched to constant current driving mode, the driving circuit switches back to PWM driving mode after a specified time t3. The corresponding working process may include: S181, detecting the synchronization signal. If no synchronization signal is detected, stay in S181. If the synchronization signal is detected, delay for T+t1-t2 time and enter S182; S182, switch the driving mode to constant current mode, delay for t3 time and enter S183; S183, switch the driving mode to PWM mode and return to the execution step S181.
[0072] In one embodiment, the first mode includes a constant current mode or other mode controlled by a fixed electrical signal, and the second mode includes a PWM mode or other mode controlled by a variable electrical signal. This ensures that the duration of the constant current mode (controlled by a fixed electrical signal) is fixed (e.g., fixed to a specified time t3), while the duration of the PWM mode (controlled by a variable electrical signal) is adjusted according to the working characteristics of the imaging module, such as by delaying the duration. This guarantees the driving effect under each driving mode and allows each analog-to-digital conversion process to precisely avoid the edges of electrical signal changes, improving the digital-to-analog conversion effect. Taking a first mode including a constant current mode and a second mode including a PWM mode as an example for comparative analysis, the inventors found that the driving process corresponding to this embodiment, compared with a conventional PWM driving circuit, can avoid the electromagnetic interference generated by PWM during analog-to-digital conversion of the image sensor; compared with a conventional constant current driving circuit, it can use PWM driving for most of the driving time, saving energy consumption.
[0073] Optionally, the constant current mode includes the following modes: given current configuration information, the corresponding drive circuit makes the current flowing through the motor the current value corresponding to the current configuration information, and keeps it unchanged. The PWM mode includes the following modes: controlling the corresponding PWM generator to generate a PWM waveform including a first level (e.g., high level) and a second level (e.g., low level), controlling the corresponding drive circuit to conduct or the drive switch to turn on through the first level, and controlling the corresponding drive circuit to disconnect or the drive switch to turn off through the second level.
[0074] The above drive mode control method calculates a delay time to switch from the second mode to the first mode after detecting a synchronization signal, using this delay time as a reference. This ensures the second mode is not interfering with the analog-to-digital conversion process, avoiding the most intense electromagnetic interference times, such as the edges of PWM high / low level changes, thus improving the digital-to-analog conversion effect and consequently enhancing the quality of the captured image. Furthermore, this drive mode control method can calculate the corresponding delay time under different conditions based on the order of the first and second start times, ensuring the accuracy of the delay time obtained under each condition. The shooting module uses both the first and second modes to drive the motor, resulting in relatively low drive power consumption. Moreover, no additional components such as electromagnetic shielding are needed on the wires through which the PWM signal and other changing electrical signals pass, giving the shooting module a relatively simple circuit structure. Therefore, the above drive mode control method not only accurately calculates the delay time, precisely delaying the corresponding mode switching time and avoiding the edges of the analog-to-digital conversion process and PWM high / low level changes, thus improving image quality, but also reduces the power consumption of the corresponding drive process, extending the usage time of the shooting module after a single charge.
[0075] This application provides a motor driving method in a second aspect for driving the motor of a shooting module; see reference. Figure 5 As shown, the motor driving method includes:
[0076] S210, the motor is driven in the second mode.
[0077] S220, the second mode is switched to the first mode using the drive mode control method described in any of the above embodiments, and the motor is driven using the first mode.
[0078] Furthermore, the above-described motor driving method further includes: after driving the motor in the first mode for a specified period of time, switching the first mode to the second mode.
[0079] The motor drive method described above switches the second mode to the first mode using the drive mode control method described in any of the above embodiments, and has all the beneficial effects of the drive mode control method described in any of the above embodiments, which will not be repeated here.
[0080] This application provides a drive mode control system in a third aspect for controlling the motor drive mode of a shooting module. (Reference) Figure 6 As shown, the above-mentioned drive mode control system includes:
[0081] The first acquisition module 310 is used to acquire the first start time of the signal synchronization process of the shooting module during the shooting process, the second start time of the analog-to-digital conversion process, and the switching time from the first mode to the second mode. The electrical signal used in the second mode includes the changing edge.
[0082] The second acquisition module 320 is used to acquire a first difference t1 between the first start time and the second start time;
[0083] The third acquisition module 330 is used to acquire the second difference t2 between the switching time and the second start time;
[0084] The calculation module 340 is used to calculate a delay time based on at least one of the mode switching cycle of the analog-to-digital conversion process, the first difference t1, and the second difference t2. The delay time is used to delay the mode switching operation so that the analog-to-digital conversion process avoids the edge of electrical signal change in the second mode.
[0085] The control module 350 is used to switch the second mode to the first mode with reference to the delay time after detecting the synchronization signal.
[0086] Specific limitations regarding the drive mode control system can be found in the limitations of the drive mode control method described above, and will not be repeated here. Each unit in the aforementioned drive mode control system can be implemented entirely or partially through software, hardware, or a combination thereof. These units can be embedded in hardware within or independently of the computing module of a computer device, or stored in software within the memory of a computer device, so that the computing module can call and execute the corresponding operations of each unit.
[0087] This application provides a motor drive system in a fourth aspect for driving the motor of a shooting module. (Reference) Figure 7 As shown, the motor drive system includes:
[0088] The first drive module 410 is used to drive the motor in the second mode;
[0089] The second drive module 420 is used to switch the second mode to the first mode using the drive mode control system described in any of the above embodiments, and drive the motor using the first mode.
[0090] Specific limitations regarding the motor drive system can be found in the limitations of the motor drive method described above, and will not be repeated here. Each unit in the aforementioned motor drive system can be implemented entirely or partially through software, hardware, or a combination thereof. These units can be embedded in hardware within or independently of the computing module of a computer device, or stored in software within the memory of the computer device, so that the computing module can call and execute the operations corresponding to each unit.
[0091] This application provides a shooting module in a fifth aspect. The shooting module may include an electronic device for capturing images, or a component in an electronic device such as a mobile phone for taking pictures, and may also include other structures existing in other forms that require driving a corresponding motor to realize the corresponding work of the shooting process. (Reference) Figure 8 As shown, the shooting module includes a processor 610 and a storage medium 620; the storage medium 620 stores program code; the processor 610 is used to call the program code stored in the storage medium 620 to execute the drive mode control method or the motor drive method described in any of the above embodiments.
[0092] In one embodiment, the second mode includes a PWM mode. (See reference) Figure 9 As shown, the shooting module further includes a PWM generator 630 and a drive circuit 640. The drive circuit includes a first drive port 641 for constant current mode, a second drive port 642 for PWM mode, and a third drive port 643 for receiving switching commands. The processor 610 includes a first control port 611 for configuring current, a second control port 612 for connecting to the PWM generator 630, and a third control port 613 for switching drive modes. The first control port 611 is connected to the first drive port 641, the second control port 612 is connected to the second drive port 642 through the PWM generator 630, and the third control port 613 is connected to the third drive port 643. Specifically, the processor 610 can switch drive modes through the third control port 613. In constant current mode, the processor 610 can input current configuration information to the first drive port 641 of the drive circuit 640 through the first control port 611, so that the drive circuit 640 can stably drive the corresponding motor in constant current mode. In PWM mode, the processor 610 can input PWM configuration information such as duty cycle information to the PWM generator 630 through the second control port 612, so that the PWM generator 630 can generate the corresponding control waveform. The processor 610 can input the PWM control information such as the control waveform to the drive circuit 640 through the second drive port 642, so that the drive circuit 640 can drive the corresponding motor in an orderly manner using PWM mode.
[0093] Optionally, such as Figure 9 As shown, the processor 610 may also include other ports, such as a port for receiving synchronization signals, to respond to other operations of the processor 610. Optionally, the shooting module may also include other components such as an image sensor and / or a motor, which can cooperate with components such as the PWM generator 630 and the drive circuit 640 to ensure the stability of the corresponding shooting process.
[0094] In the above-mentioned shooting module, the processor 610 is used to call the program code stored in the storage medium 620 to execute the drive mode control method or the motor drive method described in any of the above embodiments, which can capture high-quality images with relatively low power consumption.
[0095] Although this application has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art based on a reading and understanding of this specification and drawings. This application includes all such modifications and variations and is limited only by the scope of the appended claims. In particular, with respect to the various functions performed by the aforementioned components, the terminology used to describe such components is intended to correspond to any component (unless otherwise indicated) that performs the specified function of said component (e.g., is functionally equivalent to it), even if structurally not equivalent to the disclosed structure performing the functions in the exemplary implementations of this specification shown herein.
[0096] That is, the above description is only an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural changes made using the content of this application’s specification and drawings, such as the combination of technical features between different embodiments, or direct or indirect application in other related technical fields, are similarly included within the patent protection scope of this application.
[0097] Furthermore, the terms "first" and "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, features such as "first" and "second" may explicitly or implicitly include one or more features. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0098] The above description is provided to enable any person skilled in the art to implement and use this application. Various details are set forth in the above description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be implemented without using these specific details. In other embodiments, well-known processes will not be described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed herein.
Claims
1. A drive mode control method, characterized in that, The method for controlling the motor drive mode of the shooting module includes: The first start time of the signal synchronization process of the shooting module during the shooting process, the second start time of the analog-to-digital conversion process, and the switching time from the first mode to the second mode are obtained. The electrical signal used in the second mode includes the changing edge, and the first mode includes the mode controlled by the fixed electrical signal. Obtain the first difference t1 between the first start time and the second start time; Obtain the second difference t2 between the switching time and the second start time; The delay time is calculated based on at least one of the mode switching cycle of the analog-to-digital conversion process, the first difference t1, and the second difference t2. The delay time is used to delay the mode switching operation so that the analog-to-digital conversion process avoids the edge of electrical signal change in the second mode. After detecting the synchronization signal, the second mode is switched to the first mode with reference to the delay time.
2. The drive mode control method according to claim 1, characterized in that, The drive mode control method further includes: After switching to the first mode and maintaining the first mode for a specified time, the first mode is switched to the second mode.
3. The drive mode control method according to claim 1, characterized in that, The method for calculating the delay time based on at least one of the mode conversion cycle of the analog-to-digital conversion process, the first difference t1, and the second difference t2 further includes: Identify the order of the first start time and the second start time; According to the order, at least two parameters are selected from the mode conversion period, the first difference t1, and the second difference t2 to calculate the delay time, and the specific calculation method corresponds to the order.
4. The drive mode control method according to claim 3, characterized in that, The method for calculating the delay time by selecting at least two parameters from the mode switching period, the first difference t1, and the second difference t2 according to the aforementioned order further includes: If the first start time is before the second start time, the delay time is calculated by selecting at least two parameters from the mode switching period, the first difference t1, and the second difference t2, based on the relationship between the first difference t1 and the second difference t2. If the first start time is after the second start time, the mode conversion period, the first difference t1, and the second difference t2 are substituted into a preset first time calculation formula according to the relationship between the first difference t1 and the second difference t2 to calculate the delay time.
5. The drive mode control method according to claim 4, characterized in that, The method for calculating the delay time based on the relationship between the first difference t1 and the second difference t2, and based on at least two parameters among the mode switching period, the first difference t1, and the second difference t2, further includes: If the first difference t1 is greater than the second difference t2, then the delay time includes: t1-t2; If the first difference t1 is less than or equal to the second difference t2, then the delay time includes: t1 + T - t2, where T represents the mode switching period.
6. The drive mode control method according to claim 4, characterized in that, The first time calculation formula includes: Q=T+t1-t2, where Q represents the delay time and T represents the mode switching period.
7. The drive mode control method according to claim 1, characterized in that, The second mode includes a mode that uses varying electrical signals for control.
8. A motor driving method, characterized in that, A motor for driving the shooting module; the motor driving method includes: The motor is driven in the second mode; The second mode is switched to the first mode using the drive mode control method according to any one of claims 1 to 7, and the motor is driven using the first mode.
9. A drive mode control system, characterized in that, The method for controlling the motor drive mode of the shooting module includes: The first acquisition module is used to acquire the first start time of the signal synchronization process of the shooting module during the shooting process, the second start time of the analog-to-digital conversion process, and the switching time from the first mode to the second mode. The electrical signal used in the second mode includes a changing edge, and the first mode includes a mode controlled by a fixed electrical signal. The second acquisition module is used to acquire a first difference t1 between the first start time and the second start time; The third acquisition module is used to acquire the second difference t2 between the switching time and the second start time; The calculation module is used to calculate the delay time based on at least one of the mode switching cycle of the analog-to-digital conversion process, the first difference t1 and the second difference t2. The delay time is used to delay the mode switching operation so that the analog-to-digital conversion process avoids the edge of electrical signal change in the second mode. The control module is used to switch the second mode to the first mode with reference to the delay time after detecting the synchronization signal.
10. A motor drive system, characterized in that, A motor for driving the shooting module; the motor drive system includes: A first drive module is used to drive the motor in a second mode; The second drive module is used to switch the second mode to the first mode using the drive mode control system as described in claim 9, and to drive the motor using the first mode.
11. A shooting module, characterized in that, It includes a processor and a storage medium; the storage medium stores program code; the processor is used to call the program code stored in the storage medium to execute the drive mode control method as described in any one of claims 1 to 7 or the motor drive method as described in claim 8.
12. The shooting module according to claim 11, characterized in that, The second mode includes PWM mode; The shooting module further includes a PWM generator and a driving circuit. The driving circuit includes a first driving port for constant current mode, a second driving port for PWM mode, and a third driving port for receiving switching commands. The processor includes a first control port for configuring current, a second control port for connecting to the PWM generator, and a third control port for switching driving modes. The first control port is connected to the first driving port, the second control port is connected to the second driving port, and the third control port is connected to the third driving port.