A flash control method and controller
Patent Information
- Application Number
- CN202610959308.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-30
- Publication Date
- 2026-10-13
AI Technical Summary
这些传统的控制方案虽然结构简单、成本较低,但在实际使用中存在明显不足:一是操作方式较为单一,用户只能通过按压或拨动实现有限的档位切换,缺乏连续、细腻的调节体验;二是调节过程缺乏手感反馈,难以满足用户对精准控光的需求;三是受限于开关或电位器的机械结构,通常仅能实现分段式调节,无法做到真正的360°无级调节,从而限制了补光效果的灵活性与创作空间
[0014]根据本申请实施例的技术方案,至少具有如下有益效果:本申请提出一种闪光灯控制方法及控制器,应用于闪光灯技术领域,应用于闪光灯控制系统,其中闪光灯控制系统包括编码器,方法包括:获取所述编码器的旋钮转动的位置信息和/或角度信息;根据所述位置信息和/或所述角度信息进行转换,得到脉冲信号;根据所述脉冲信号进行信号生成,得到第一PWM信号和第二PWM信号;根据所述第一PWM信号对闪光灯进行调节,并根据所述第二PWM信号对补光灯进行调节。因此,本申请通过旋钮转动的位置信息和/或角度信息转换为脉冲信号,从而根据脉冲信号生成PWM信号,进而基于PWM信号对闪光灯和补光灯进行调节,实现闪光灯360°无级调节旋转操作。用户在使用过程中只需连续旋转旋钮,即可平滑、精准地控制闪光灯和补光灯的亮度或色温变化,调节过程连续无跳档。同时,编码器自身的机械结构能够提供清晰的旋转手感和阻尼反馈,使得用户在拍照过程中可以获得更舒适、有手感的使用体验,避免了传统按键或分段式开关操作单一、手感差、无法精细调节的问题,显著提升了拍照补光操作的便捷性和愉悦感。
Smart Images

Figure CN122909719A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of flash lamp technology, and in particular to a flash lamp control method and controller. Background Technology
[0002] In related technologies, the brightness or mode adjustment methods of commonly used mobile phone flashlights on the market mainly adopt physical buttons, potentiometers, or two-position toggle switches. Although these traditional control solutions are simple in structure and low in cost, they have obvious shortcomings in actual use: First, the operation method is relatively simple, and users can only achieve limited level switching by pressing or toggling, lacking a continuous and delicate adjustment experience; second, the adjustment process lacks tactile feedback, making it difficult to meet users' needs for precise light control; third, limited by the mechanical structure of switches or potentiometers, they can usually only achieve segmented adjustment and cannot achieve true 360° stepless adjustment, thus limiting the flexibility and creative space of the fill light effect. Summary of the Invention
[0003] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes a flash control method and controller, which aims to realize a 360° stepless adjustable rotating flash, allowing users to obtain a more comfortable and tactile user experience when taking pictures.
[0004] In a first aspect, embodiments of this application provide a flash control method, applied to a flash control system, wherein the flash control system includes an encoder, comprising: Obtain the position and / or angle information of the encoder's knob rotation; The pulse signal is obtained by converting the position information and / or the angle information. Based on the pulse signal, a signal is generated to obtain a first PWM signal and a second PWM signal; The flash is adjusted according to the first PWM signal, and the fill light is adjusted according to the second PWM signal.
[0005] According to some embodiments of this application, the method further includes: Collect battery power and battery temperature; The fill light is adjusted according to the battery level; The flash and the fill light are adjusted according to the battery temperature.
[0006] According to some embodiments of this application, adjusting the fill light based on the battery power includes: When the battery level is lower than a power threshold, a third PWM signal is generated based on the battery level. The fill light is controlled to blink at a first frequency according to the third PWM signal.
[0007] According to some embodiments of this application, adjusting the flash and the fill light based on the battery temperature includes: When the battery temperature is higher than the temperature threshold, a fourth PWM signal is generated based on the battery temperature. The output power of the flash and the fill light are controlled according to the fourth PWM signal.
[0008] According to some embodiments of this application, the method further includes: Collect user operation signals; Based on the operation signal, an instruction is generated to obtain a control instruction; The flash or fill light is adjusted according to the control command.
[0009] According to some embodiments of this application, adjusting the flash or the fill light according to the control command includes: The fifth PWM signal is obtained by generating a signal according to the control command. The flash is adjusted according to the fifth PWM signal; Alternatively, the fill light can be adjusted according to the fifth PWM signal.
[0010] According to some embodiments of this application, the pulse signal includes a first pulse signal and a second pulse signal, and the step of generating a signal based on the pulse signal to obtain a first PWM signal and a second PWM signal includes: The rotation direction and rotation angle are determined based on the phase difference and the number of pulses between the first pulse signal and the second pulse signal; Signals are generated based on the rotation direction and the rotation angle to obtain the first PWM signal and the second PWM signal.
[0011] Secondly, embodiments of this application provide a controller, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the flash control method of the first aspect described above when running the computer program.
[0012] Thirdly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for performing the flash control method as described in the first aspect above.
[0013] Fourthly, embodiments of this application provide a computer program product, including a computer program or computer instructions, wherein the computer program or computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, causing the computer device to perform the flash control method as described in the first aspect above.
[0014] According to the technical solution of the embodiments of this application, at least the following beneficial effects are achieved: This application proposes a flash lamp control method and controller, applied in the field of flash lamp technology, and applied in a flash lamp control system. The flash lamp control system includes an encoder, and the method includes: acquiring position information and / or angle information of the encoder's knob rotation; converting the position information and / or angle information to obtain a pulse signal; generating a signal based on the pulse signal to obtain a first PWM signal and a second PWM signal; adjusting the flash lamp according to the first PWM signal, and adjusting the fill light according to the second PWM signal. Therefore, this application converts the position information and / or angle information of the knob rotation into a pulse signal, thereby generating a PWM signal based on the pulse signal, and then adjusting the flash lamp and fill light based on the PWM signal, achieving 360° stepless adjustment rotation operation of the flash lamp. During use, the user only needs to continuously rotate the knob to smoothly and accurately control the brightness or color temperature changes of the flash lamp and fill light, with continuous adjustment without skipping levels. Meanwhile, the encoder's mechanical structure provides clear rotational feel and damping feedback, allowing users to have a more comfortable and tactile experience during the photo-taking process. This avoids the problems of traditional buttons or segmented switches having limited operation, poor feel, and inability to make fine adjustments, significantly improving the convenience and enjoyment of photo-taking lighting.
[0015] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0016] The accompanying drawings are used to provide a further understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0017] Figure 1 This is a flowchart illustrating a flash control method provided in one embodiment of this application; Figure 2 This is a flowchart illustrating a flash control method provided in another embodiment of this application; Figure 3This is a flowchart illustrating a flash control method provided in another embodiment of this application; Figure 4 This is a flowchart illustrating a flash control method provided in another embodiment of this application; Figure 5 This is a flowchart illustrating a flash control method provided in another embodiment of this application; Figure 6 This is a schematic diagram of the encoder contacts provided in one embodiment of this application; Figure 7 This is a schematic diagram of a pulse train of an encoder provided in one embodiment of this application; Figure 8 This is a schematic diagram of the encoder provided in one embodiment of this application; Figure 9 This is a schematic diagram of the structure of a flash control system provided in one embodiment of this application; Figure 10 This is a schematic diagram of the structure of a flash control system provided in another embodiment of this application; Figure 11 This is a schematic diagram of a controller for performing a flash control method according to an embodiment of this application. Detailed Implementation
[0018] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0019] In the description of this application, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0020] In the description of this application, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0021] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.
[0022] In some cases, the brightness or mode adjustment methods of commonly available mobile phone flashlights on the market mainly adopt physical buttons, potentiometers, or two-position toggle switches. Although these traditional control solutions are simple in structure and low in cost, they have obvious shortcomings in actual use: First, the operation method is relatively simple, and users can only achieve limited level switching by pressing or toggling, lacking a continuous and delicate adjustment experience; second, the adjustment process lacks tactile feedback, making it difficult to meet users' needs for precise light control; third, limited by the mechanical structure of switches or potentiometers, they can usually only achieve segmented adjustment and cannot achieve true 360° stepless adjustment, thus limiting the flexibility of the fill light effect and the creative space.
[0023] Based on the above, this application proposes a flash control method and controller, aiming to realize a 360° stepless adjustable rotating flash, allowing users to have a more comfortable and tactile user experience when taking pictures.
[0024] The following description, in conjunction with the accompanying drawings, further elaborates on various embodiments of a flash lamp control method according to this application.
[0025] like Figure 1 As shown, Figure 1 This is a schematic flowchart of a flash control method provided in one embodiment of this application; the flash control method is applied to a flash control system, and the method may include, but is not limited to, steps S110, S120, S130 and S140.
[0026] Step S110: Obtain the position information and / or angle information of the encoder knob rotation; Step S120: Convert the position information and / or angle information to obtain a pulse signal; Step S130: Generate a signal based on the pulse signal to obtain a first PWM signal and a second PWM signal; Step S140: Adjust the flash according to the first PWM signal and adjust the fill light according to the second PWM signal.
[0027] In one embodiment, the position and / or angle information of the encoder knob rotation is acquired; a pulse signal is obtained by converting the position and / or angle information; a first PWM signal and a second PWM signal are generated based on the pulse signal; the flash is adjusted according to the first PWM signal, and the fill light is adjusted according to the second PWM signal. Therefore, this application converts the position and / or angle information of the knob rotation into a pulse signal, thereby generating a PWM signal based on the pulse signal, and then adjusting the flash and fill light based on the PWM signal, achieving 360° stepless adjustment of the flash rotation. During use, the user only needs to continuously rotate the knob to smoothly and accurately control the brightness or color temperature changes of the flash and fill light, with continuous adjustment without skipping steps. Simultaneously, the encoder's mechanical structure provides clear rotational feel and damping feedback, allowing the user to obtain a more comfortable and tactile experience during photography, avoiding the problems of traditional buttons or segmented switches having limited operation, poor feel, and inability to finely adjust, significantly improving the convenience and enjoyment of fill light operation in photography.
[0028] Understandably, a flash control system includes an encoder and a control unit.
[0029] It is understood that the pulse signal of this application includes a first pulse signal and a second pulse signal. The rotation direction and rotation angle can be determined based on the phase difference and the number of pulses of the first pulse signal and the second pulse signal. Thus, the first PWM signal and the second PWM signal are generated based on the rotation direction and the rotation angle.
[0030] For example, such as Figure 6 , 7 As shown in Figure 8, Figure 6 This is a schematic diagram of the encoder contacts provided in one embodiment of this application. Figure 7 This is a schematic diagram of a pulse train of an encoder provided in one embodiment of this application. Figure 8 This is a schematic diagram of the encoder provided in one embodiment of this application.
[0031] The encoder is an electromechanical encoder, which is a type of electromechanical sensor. Its function is to convert the position signal of the mobile phone flash knob rotation into a pulse signal that the control unit can recognize, thereby controlling the mobile phone flash to work reliably.
[0032] Connect the A and B contacts on the encoder to the power supply VCC_3.3V via resistors, and then connect them to the input terminal of the control unit.
[0033] By rotating the knob of the phone's flashlight, the encoder cap is rotated, which in turn drives the encoder to rotate. At this time, the rotation of the encoder will generate two pulse trains with a phase of 90° and continuous high and low level changes at the A and B contacts.
[0034] The phase sequence of the two pulse trains indicates the direction of encoder rotation. For example, when the encoder rotates in the forward direction, the pulse train generated at contact A leads the pulse train generated at contact B by 90° in phase. Conversely, when the encoder rotates in the reverse direction, the pulse train generated at contact A lags the pulse train generated at contact B by 90° in phase. This is used to identify the direction of encoder rotation.
[0035] The cumulative number of pulses from two pulse trains indicates the encoder's rotation angle and position. For example, if the encoder resolution is 1000, it means that the encoder accumulates 1000 pulses for every 360° rotation. Therefore, each pulse generated during encoder rotation corresponds to a 0.36° rotation, or 2.777 pulses for every 1° rotation. This information is used to identify the encoder's rotation angle and position. Combined with the direction of rotation, the control unit generates control commands, which are then used in the circuit to increase or decrease light brightness or change color temperature.
[0036] When the device is powered on and the encoder is rotated, the control unit receives the direction and number of pulse trains generated from the A and B contacts of the encoder, and then generates control commands to control the brightness and color temperature of the fill light, as well as the brightness and flash speed of the flash, thereby intelligently controlling the phone's flash and providing users with a better user experience.
[0037] It is understandable that, such as Figure 2 As shown, Figure 2 This is a schematic flowchart of a flash control method provided in another embodiment of this application; the flash control method may also include, but is not limited to, steps S210, S220 and S230.
[0038] Step S210: Collect battery power and battery temperature; Step S220: Adjust the fill light according to the battery level; Step S230: Adjust the flash and fill light according to the battery temperature.
[0039] For example, this application can adjust the fill light according to the battery level and issue a reminder to the user when the battery level is low.
[0040] For example, this application can adjust the flash and fill light according to the battery temperature and issue a reminder to the user when the battery temperature is high.
[0041] It is understandable that, such as Figure 3 As shown, Figure 3 This is a flowchart illustrating a flash control method provided in another embodiment of this application; regarding the above step S220, steps S310 and S320 may also be included, but are not limited to.
[0042] Step S310: When the battery level is lower than the battery level threshold, a signal is generated based on the battery level to obtain a third PWM signal; Step S320: Control the fill light to blink at the first frequency according to the third PWM signal.
[0043] Understandably, when the battery level is below the power threshold, this application will generate a signal based on the battery level to obtain a third PWM signal, and control the fill light to flash at a first frequency based on the third PWM signal, thereby prompting the user that the battery level is too low and that the battery can be charged by connecting the charging adapter to the USB-C port.
[0044] It is understood that the aforementioned power threshold can be 3.4V or 3.7V, and can be set according to actual needs. This application embodiment does not specifically limit it.
[0045] For example, when the battery level is lower than the power threshold, a signal is generated based on the battery level to obtain a third PWM signal. The fill light is controlled according to the third PWM signal to flash continuously at low power at a frequency of once per second, thereby prompting the user that the battery level is too low and that the battery can be charged by connecting the charging adapter to the USB-C port.
[0046] It is understandable that, such as Figure 4 As shown, Figure 4 This is a flowchart illustrating a flash control method provided in another embodiment of this application; regarding the above step S230, steps S410 and S420 may also be included, but are not limited to.
[0047] Step S410: When the battery temperature is higher than the temperature threshold, a signal is generated based on the battery temperature to obtain the fourth PWM signal; Step S420: Control the output power of the flash and fill light respectively according to the fourth PWM signal.
[0048] Understandably, when the battery temperature exceeds the temperature threshold, this application will generate a signal based on the battery temperature to obtain a fourth PWM signal. The output power of the flash and fill light will be controlled based on the fourth PWM signal, thereby reducing the power consumption of the flash and fill light, suppressing the continuous rise in battery temperature, avoiding accelerated battery aging or safety risks caused by overheating, and ensuring that the system can still operate stably and safely under high temperature conditions, effectively extending the service life of the battery and the whole device.
[0049] It is understood that the temperature threshold mentioned above can be 45°C or 50°C, and can be set according to actual needs. This application embodiment does not specifically limit it.
[0050] Additionally, it is understandable that if the battery temperature continues to rise and reaches the shutdown temperature threshold, the control unit can control the flash control system to shut down and adjust the fill light.
[0051] For example, the shutdown temperature threshold could be 58°C. When the battery temperature reaches 58°C, the control unit controls the flash control system to shut down and controls the fill light to flash continuously at low power at a frequency of once every 3 seconds to remind the user that the battery temperature is too high and should be stopped.
[0052] It is understandable that, such as Figure 5 As shown, Figure 5 This is a flowchart illustrating a flash control method provided in another embodiment of this application; the flash control method may also include, but is not limited to, steps S510, S520 and S530.
[0053] Step S510: Collect user operation signals; Step S520: Generate instructions based on the operation signals to obtain control instructions; Step S530: Adjust the flash or fill light according to the control command.
[0054] It is understood that this application can generate a signal according to the control command to obtain a fifth PWM signal; thereby adjusting the flash lamp according to the fifth PWM signal; or adjusting the fill light according to the fifth PWM signal.
[0055] For example, if the user's operation signal is to adjust the flash, the resulting fifth PWM signal is used to adjust the flash; if the user's operation signal is to adjust the fill light, the resulting fifth PWM signal is used to adjust the fill light.
[0056] For example, such as Figure 9 and Figure 10 As shown, Figure 9This is a schematic diagram of the structure of a flash control system provided in one embodiment of this application. Figure 10 This is a schematic diagram of the structure of a flash control system provided in another embodiment of this application; The flash control system includes a battery management unit, a microcontroller unit (MCU), an encoder, a power supply unit, a flash assembly, and a fill light assembly.
[0057] 1. Battery Management Unit: It mainly consists of the charging management chip U1 of the battery module, the battery pack J2, the charging indicator D1, the power acquisition signal ADC_BAT and the battery temperature acquisition signal BAT_NTC, as well as multiple external resistors and capacitors.
[0058] Working principle: During use, when the control unit MCU detects that the battery power is low via the ADC_BAT signal, the auxiliary light will flash continuously at low power once per second to remind the user that the battery power is low and that the battery can be charged via the USB-C port using a charging adapter. During charging, the red light on the charging indicator D1 will illuminate, and the green light will turn off. Once fully charged, the green light on the charging indicator D1 will illuminate again, and the red light will turn off.
[0059] During use, when the control unit detects that the battery temperature is too high via the BAT_NTC signal, it will reduce the power of the fill light and flash. If the temperature remains too high, it will shut down directly, and the fill light will flash continuously at low power once every 3 seconds to remind the user that the battery temperature is too high and should be stopped.
[0060] 2. Control Unit: It mainly consists of the main control chip U2, crystal oscillator Y1, Bluetooth antenna T1, and multiple peripheral resistors and capacitors.
[0061] Working principle: The control unit MCU is the core of the entire system. When the user presses and holds the power button K1 for 2 seconds, the MCU is powered on. After being powered on, the MCU receives the K_OFF / ON-IN signal and it is low for 2 seconds. The K_OFF / ON-IN signal indicates that the power button has been pressed, and a control command is generated. When the user rotates the encoder 100 or operates the corresponding function through the mobile phone software, the MCU will output the corresponding PWM signal on the PWM_COB, PWM_W and PWM_C signal terminals to control the brightness and color temperature changes of the flash and fill light. If the user wants to activate the flash, they can press the power button K1 briefly 0.5 seconds after powering on or press the flash button on the mobile app. The flash will flash once. Press the power button K1 briefly again or press the flash button on the mobile app. The flash will flash once more, and so on. When you want to change the brightness or color temperature of the flash or fill light, you can rotate the encoder 100 or operate the corresponding function through the mobile phone software, and the brightness or color temperature of the flash or fill light will change accordingly. In addition, this application also supports the function of charging and discharging the battery simultaneously. When the MCU detects that the battery power is low through the ADC_BAT pin signal terminal, this application can connect the charging adapter to the USB-C port. After the adapter is connected to the USB-C port, the MCU receives a high-level signal at the VBUS_IN pin terminal to confirm that the adapter is connected, thereby generating a control command to turn on the phone flash to continue working; at this time, part of the charging adapter charges the battery, and the other part directly powers the phone flash.
[0062] To turn off the device, press and hold the power button K1 for 2 seconds again, and the flash control system will turn off.
[0063] 3. Working principle of an encoder: An encoder is an electromechanical sensor that converts the position or angle information of the mobile phone flash knob into a pulse signal that can be recognized by the control unit MCU on the electronic circuit, allowing the user to adjust the light changes with a tactile feel.
[0064] 4. Power supply unit: mainly composed of power button K1, power switching transistors Q4 and Q5, filter inductors L1 and L2, voltage conversion chip U3, and multiple external resistors and capacitors.
[0065] Working principle: The power supply unit mainly supplies power to the MCU. When the user presses and holds the power button K1 for 2 seconds, the VGS of the switching transistor Q4 meets the conduction condition and turns on. After being processed by the filter inductors L1 and L2 and the voltage conversion chip U3, the system MCU is powered on. After the system MCU is powered on, when it receives the K_OFF / ON-IN signal from K1 being pressed and is at a low level for 2 seconds, the control pin 3V3_OFF / ON signal terminal outputs a high level, so that the VGS of the switching transistor Q5 meets the conduction condition and turns on. After the switching transistor Q5 turns on, the VGS of the switching transistor Q4 will meet the conduction condition for a long time and turn on. At this time, even if the power button K1 is released, the switching transistor Q4 will still turn on, the MCU will be powered on, and the power-on state will be maintained.
[0066] 5. Flash assembly: mainly composed of flash LED D4, flash control switch Q1, and multiple external resistors.
[0067] Working principle: The flash unit mainly consists of a high-brightness COB LED, Q1 which controls the on / off state of the COB LED, and external circuits such as current limiting and drive resistors. During operation, when the user rotates the encoder or operates the corresponding function through the mobile phone software, the control unit generates a control command and outputs a PWM signal at the PWM_COB pin to control the conduction state of the switching transistor Q1, thereby changing the brightness and flickering of the COB LED.
[0068] 6. Fill light assembly: mainly composed of fill light LEDs D4~D24, switch transistors Q2 and Q3 to control the fill light, and multiple external resistors.
[0069] Working principle: The supplementary light group is mainly composed of 10 warm white and 10 cool white LED beads, switching transistors Q2 and Q3 that control the on and off of the warm white and cool white LED beads, and external circuits such as current limiting and driving resistors. During operation, when the user rotates the encoder or operates the corresponding function through the mobile phone software, the control unit generates control commands and outputs two PWM signals with different duty cycles at the PWM_C and PWM_W pins to control the conduction state of switching transistors Q2 and Q3, thereby changing the brightness and color temperature of the supplementary light beads.
[0070] Based on the flash control methods of the above embodiments, the following presents various embodiments of the controller, computer-readable storage medium, and computer program product of this application.
[0071] like Figure 11 As shown, Figure 11 This is a schematic diagram of a controller for performing a flash control method according to an embodiment of this application. The controller 700 implemented in this application includes: a processor 710, a memory 720, and a computer program stored in the memory 720 and executable on the processor 710, wherein... Figure 11 The example uses a processor 710 and a memory 720.
[0072] The processor 710 and memory 720 can be connected via a bus or other means. Figure 11 Taking the example of a connection between China and Israel via a bus.
[0073] Memory 720, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory 720 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 720 may optionally include remotely located memories 720 relative to processor 710, which can be connected to controller 700 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0074] Those skilled in the art will understand that Figure 11 The device structure shown does not constitute a limitation on the controller 700 and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0075] exist Figure 11 In the controller 700 shown, the processor 710 can be used to call the control program stored in the memory 720 to implement the flash control method described above. Specifically, the non-transitory software program and instructions required to implement the flash control method of the above embodiment are stored in the memory 720. When executed by the processor 710, the flash control method of the above embodiment is executed.
[0076] It is worth noting that, since the controller 700 of this application embodiment can execute the flash control method of any of the above embodiments, the specific implementation and technical effects of the controller 700 of this application embodiment can be referred to the specific implementation and technical effects of the flash control method of any of the above embodiments.
[0077] Furthermore, one embodiment of this application provides a computer-readable storage medium storing computer-executable instructions for performing the aforementioned flash control method. Exemplarily, the above-described method is executed... Figures 1 to 5 The methods and steps in the text.
[0078] It is worth noting that, since the computer-readable storage medium of this application embodiment can execute the flash control method of any of the above embodiments, the specific implementation and technical effects of the computer-readable storage medium of this application embodiment can be referred to the specific implementation and technical effects of the flash control method of any of the above embodiments.
[0079] Furthermore, one embodiment of this application also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the computer device to perform the aforementioned flash control method. Exemplarily, the above-described method is performed... Figures 1 to 5 The methods and steps in the text.
[0080] It is worth noting that, since the computer program product of this application embodiment can execute the flash control method of any of the above embodiments, the specific implementation method and technical effect of the computer program product of this application embodiment can refer to the specific implementation method and technical effect of the flash control method of any of the above embodiments.
[0081] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0082] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0083] In the several embodiments provided in this application, it should be understood that the disclosed systems, instruments, and methods can be implemented in other ways. For example, the instrument embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between instruments or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0084] It should also be understood that the various implementation methods provided in this application can be combined arbitrarily to achieve different technical effects.
[0085] The above provides a detailed description of the preferred embodiments of this application. However, this application is not limited to the above-described embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A flash control method, characterized in that, Applied to a flash control system, wherein the flash control system includes an encoder, the method includes: Obtain the position and / or angle information of the encoder's knob rotation; The pulse signal is obtained by converting the position information and / or the angle information. Based on the pulse signal, a signal is generated to obtain a first PWM signal and a second PWM signal; The flash is adjusted according to the first PWM signal, and the fill light is adjusted according to the second PWM signal.
2. The method according to claim 1, characterized in that, The method further includes: Collect battery power and battery temperature; The fill light is adjusted according to the battery level; The flash and the fill light are adjusted according to the battery temperature.
3. The method according to claim 2, characterized in that, The step of adjusting the fill light according to the battery power includes: When the battery level is lower than a power threshold, a third PWM signal is generated based on the battery level. The fill light is controlled to blink at a first frequency according to the third PWM signal.
4. The method according to claim 2, characterized in that, The adjustment of the flash and the fill light according to the battery temperature includes: When the battery temperature is higher than the temperature threshold, a fourth PWM signal is generated based on the battery temperature. The output power of the flash and the fill light are controlled according to the fourth PWM signal.
5. The method according to claim 1, characterized in that, The method further includes: Collect user operation signals; Based on the operation signal, an instruction is generated to obtain a control instruction; The flash or fill light is adjusted according to the control command.
6. The method according to claim 5, characterized in that, The step of adjusting the flash or the fill light according to the control command includes: The fifth PWM signal is obtained by generating a signal according to the control command. The flash is adjusted according to the fifth PWM signal; Alternatively, the fill light can be adjusted according to the fifth PWM signal.
7. The method according to claim 1, characterized in that, The pulse signal includes a first pulse signal and a second pulse signal. The step of generating a first PWM signal and a second PWM signal based on the pulse signal includes: The rotation direction and rotation angle are determined based on the phase difference and the number of pulses between the first pulse signal and the second pulse signal; Signals are generated based on the rotation direction and the rotation angle to obtain the first PWM signal and the second PWM signal.
8. A controller, characterized in that, include: The memory, the processor, and the computer program stored in the memory and executable on the processor, wherein the processor executes the flash control method as described in any one of claims 1 to 7 when running the computer program.
9. A computer-readable storage medium, characterized in that: The device stores computer-executable instructions for performing the flash control method as described in any one of claims 1 to 7.
10. A computer program product, comprising a computer program or computer instructions, characterized in that, The computer program or the computer instructions are stored in a computer-readable storage medium, the processor of the computer device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, causing the computer device to perform the flash control method as described in any one of claims 1 to 7.