Power debugging method, device and equipment of illumination module and storage medium

By controlling the rotary encoder to adjust the output power of the lighting module, the problems of inconsistent manual debugging and high energy consumption in the prior art are solved, automatic adjustment and precise control of lighting brightness are realized, and debugging efficiency and energy efficiency are improved.

CN119893776APending Publication Date: 2025-04-25SHENZHEN TONGYIFANG OPTOELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510087379.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

The existing lighting module power debugging technology relies on manual experience, resulting in inconsistent debugging results and low efficiency, lack of accurate automatic control mechanisms, and high debugging energy consumption, which is not conducive to energy saving.

Method used

By controlling the rotary encoder to adjust the output power of the lighting module, automatic adjustment of lighting brightness is achieved. The specific method includes obtaining the current consumption value of the lighting module, calculating the current consumption threshold based on the preset power resistance threshold, controlling the rotary encoder gear level, and adjusting the output power.

Benefits of technology

It realizes automatic adjustment of lighting brightness and precise power control, improves the accuracy and consistency of power debugging results, reduces energy consumption during debugging, and meets energy saving requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119893776A_ABST
    Figure CN119893776A_ABST
Patent Text Reader

Abstract

The invention relates to a power debugging method and device of an illumination module, equipment and a storage medium. The power debugging method comprises the steps of obtaining a current consumption value of the illumination module; the controller is used for calculating a corresponding current consumption threshold value on the basis of a preset power resistance threshold value, comparing the current consumption value with the current consumption threshold value, and controlling the rotary encoder to adjust the output power of the illumination module on the basis of a comparison result; compared with the prior art, according to the technical scheme, the output power of the lighting module is adjusted by controlling the rotary encoder, and automatic adjustment of the lighting brightness is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of lighting, and in particular to a power debugging method, device, equipment and storage medium of a lighting module. Background Art

[0002] The existing lighting module power debugging technology generally relies on manual experience for debugging, resulting in inconsistent debugging results and low efficiency, lack of precise automatic control mechanism, and high debugging energy consumption, which is not conducive to energy saving. At the same time, the existing technology has poor adaptability to the environment during the debugging process and is difficult to meet the lighting needs in different environments.

[0003] Therefore, a new debugging method is urgently needed to improve these conditions and enhance the performance and energy efficiency of lighting modules. Summary of the invention

[0004] The present application provides a power debugging method, device, equipment and storage medium of a lighting module, which adjusts the output power of the lighting module by controlling a rotary encoder to achieve automatic adjustment of the lighting brightness.

[0005] In a first aspect, the present application provides a power debugging method for a lighting module, wherein the lighting module includes a rotary encoder, and the power debugging method includes: obtaining a current consumption value of the lighting module; calculating a corresponding current consumption threshold based on a preset power resistance threshold, comparing the current consumption value with the current consumption threshold, and based on the comparison result, controlling the rotary encoder to adjust the output power of the lighting module.

[0006] In a possible implementation, based on the comparison result, controlling the rotary encoder to adjust the output power of the lighting module specifically includes: the rotary encoder includes multiple rotary encoder gears, wherein each rotary encoder gear corresponds to a different gear resistance value; based on the comparison result, adjusting the gear of the rotary encoder, and adjusting the output power of the lighting module based on the adjusted rotary encoder gear.

[0007] In a possible implementation, based on the comparison result, the gear position of the rotary encoder is adjusted, and based on the adjusted rotary encoder gear position, the output power of the lighting module is adjusted, specifically including: when the comparison result is that the current consumption value is greater than the current consumption threshold, the rotary encoder gear position is adjusted to obtain an adjusted rotary encoder gear position, wherein the resistance value corresponding to the adjusted rotary encoder gear position is greater than the resistance value corresponding to the previous rotary encoder gear position; when the comparison result is that the current consumption value is less than the current consumption threshold, the rotary encoder gear position is adjusted to obtain an adjusted rotary encoder gear position, wherein the resistance value corresponding to the adjusted rotary encoder gear position is less than the resistance value corresponding to the previous rotary encoder gear position; when the comparison result is that the current consumption value is equal to the current consumption threshold, the current rotary encoder gear position of the rotary encoder is maintained.

[0008] In a possible implementation, the lighting module includes a sampling resistor; obtaining the current consumption value of the lighting module specifically includes: collecting the voltage drop on the sampling resistor to obtain a sampling voltage; and calculating and obtaining the current consumption value of the lighting module based on the resistance value corresponding to the sampling resistor and the sampling voltage.

[0009] In the second aspect, the present application provides a power debugging device for a lighting module, comprising: a sampling module, a control module and an encoder module; wherein the sampling module is used to obtain the current consumption value of the lighting module; the control module is used to calculate the corresponding current consumption threshold based on a preset power resistance threshold, compare the current consumption value with the current consumption threshold, and based on the comparison result, control the rotary encoder module to adjust the output power of the lighting module.

[0010] In a possible implementation, the power debugging device of the lighting module provided in the present application further includes: a light-emitting module; wherein the control module is respectively connected to the sampling module, the light-emitting module and the encoder module, and the light-emitting module is connected to the sampling module.

[0011] In one possible implementation, the encoder module includes a rotary encoder and multiple encoder resistors, wherein the multiple encoder resistors correspond to different resistance values; the rotary encoder is connected to any encoder resistor, and the gear resistance value corresponding to the rotary encoder gear of the rotary encoder is the resistance value of any encoder connected to it.

[0012] In a possible implementation, the sampling module includes a constant current sampling MOS tube, a sampling resistor, a first capacitor and a first resistor; wherein the gate of the constant current sampling MOS tube is respectively connected to the first end of the first capacitor and the first end of the first resistor, the source of the constant current sampling MOS tube is connected to the first end of the sampling resistor, the second end of the sampling resistor, the second end of the first capacitor and the second end of the first resistor are respectively grounded, and the drain of the constant current sampling MOS tube is connected to the negative electrode of the LED light-emitting tube in the light-emitting module.

[0013] In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.

[0014] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.

[0015] The embodiments of the present application provide a method, device, equipment and storage medium for power debugging of a lighting module, which have the following advantages over the prior art:

[0016] By obtaining the current consumption value of the lighting module; calculating the corresponding current consumption threshold based on a preset power resistance threshold, comparing the current consumption value with the current consumption threshold, and based on the comparison result, controlling the rotary encoder to adjust the output power of the lighting module; compared with the prior art, the technical solution of the present application is based on objective data and calculations, avoiding the interference of human subjective factors, thereby ensuring that each power debugging can be carried out in accordance with unified standards and procedures, greatly improving the accuracy and consistency of the power debugging results, and using the rotary encoder to automatically adjust the output power of the lighting module according to the comparison result of the current consumption value and the threshold, it can realize automatic adjustment of the lighting brightness and precise control of the power, avoid unnecessary energy waste, effectively reduce energy consumption during the debugging process, and meet the requirements of energy saving. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0020] Figure 1 This is a flow chart of an embodiment of a power debugging method for a lighting module provided by the present application;

[0021] Figure 2 It is a structural schematic diagram of an embodiment of a power debugging device for a lighting module provided by the present application;

[0022] Figure 3 This is a schematic diagram of the circuit principle of an embodiment of a power debugging device for a lighting module provided by the present application;

[0023] Figure 4 It is a structural schematic diagram of an electronic device provided by this application. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0025] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0026] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0027] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0028] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0029] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0030] Example 1, see Figure 1 , Figure 1 : is a flow chart of an embodiment of a power debugging method of a lighting module provided by the present application, such as Figure 1 As shown, the method includes steps 101 and 102, which are specifically as follows:

[0031] Step 101: Obtain the current consumption value of the lighting module.

[0032] In one embodiment, the lighting module includes a sampling resistor, wherein the sampling resistor is arranged in a sampling module of the lighting module.

[0033] In one embodiment, when obtaining the current consumption value of the lighting module, the voltage drop on the sampling resistor is collected based on the sampling module to obtain the sampling voltage; based on the resistance value corresponding to the sampling resistor and the sampling voltage, the current consumption value of the lighting module is calculated and obtained.

[0034] Preferably, the sampling module also includes a constant current sampling MOS tube, the first end of the sampling resistor is connected to the source of the constant current sampling MOS tube, and the second end is grounded; when the current passes through the constant current sampling MOS tube and the sampling resistor, according to Ohm's law, a voltage drop proportional to the current will be generated on the sampling resistor; this voltage drop can be used to measure the current, and since the sampling resistor set in the lighting module has a known and fixed resistance value, the current size can be indirectly known by measuring the voltage drop.

[0035] Specifically, by substituting the resistance value corresponding to the sampling resistor and the sampling voltage into the Ohm's law formula, the current consumption value of the lighting module can be calculated; this is because the resistance value of the sampling resistor is known, so after collecting the sampling voltage, the current consumption value of the lighting module can be quickly and accurately obtained.

[0036] Specifically, the working principle of the sampling module is: when the LED light-emitting tube is turned on, the current flows in from the positive electrode, passes through the drain of the constant current sampling MOS tube, and flows to the ground through the constant current sampling MOS tube and the sampling resistor; since the voltage drop across the sampling resistor is proportional to the current passing through, by measuring the voltage drop, the current of the LED light-emitting tube can be sampled.

[0037] Step 102: Calculate a corresponding current consumption threshold based on a preset power resistance threshold, compare the current consumption value with the current consumption threshold, and control the rotary encoder to adjust the output power of the lighting module based on the comparison result.

[0038] In one embodiment, when calculating the corresponding current consumption threshold based on the preset power resistance threshold, the current consumption threshold corresponding to the preset power resistance threshold is obtained by acquiring the power supply voltage and calculating the ratio of the preset power resistance threshold to the power supply voltage.

[0039] Specifically, the current consumption threshold is used to determine whether the current working state of the lighting module is normal or meets the expected key standards; for example, if a lighting module is designed to operate under a power resistance threshold, the current consumption threshold calculated based on the power resistance threshold and the power supply voltage represents the current level that the lighting module should have when operating normally.

[0040] In one embodiment, by comparing the current consumption value with the current consumption threshold, the current operation status of the lighting module can be clearly understood; if the current consumption value is equal to the current consumption threshold, it means that the lighting module is working in the expected state; if the current consumption value is greater than the current consumption threshold, it may mean that the lighting module has problems such as overload, failure or reduced efficiency. For example, the resistance of a component in the circuit may be abnormally reduced, resulting in an increase in current; conversely, if the current consumption value is less than the current consumption threshold, it may mean that the lighting module has not achieved the expected power output, which may be due to insufficient power supply or performance degradation of certain components affecting the normal passage of current.

[0041] In one embodiment, the rotary encoder includes a plurality of rotary encoder gears, wherein each rotary encoder gear corresponds to a different gear resistance value; wherein the gear resistance value is determined based on the resistance values ​​of the plurality of encoder resistors.

[0042] Specifically, the rotary encoder and the plurality of encoder resistors constitute a rotary encoder module.

[0043] Specifically, the rotary encoder is connected to a first end of any encoder resistor, and second ends of the plurality of encoder resistors are respectively connected to the control modules.

[0044] Specifically, the rotary encoder is rotated so that the rotary encoder is connected to the plurality of encoder resistors in sequence.

[0045] Specifically, since each rotary encoder gear position is pre-set with a corresponding gear resistance value, the gear resistance value is the resistance value of the encoder resistor; this means that when the user rotates the encoder to change the gear position, he is actually switching different resistance values ​​to access the circuit, which can be adjusted step by step to achieve brightness changes from low to high or from high to low; since the entire process is closed-loop control, the system can provide real-time feedback and adjustments.

[0046] In one embodiment, when the rotary encoder is controlled to adjust the output power of the lighting module based on the comparison result, the gear position of the rotary encoder is adjusted based on the comparison result, and the output power of the lighting module is adjusted based on the adjusted gear position of the rotary encoder.

[0047] Specifically, when the comparison result is that the current consumption value is greater than the current consumption threshold, the rotary encoder gear is adjusted to obtain an adjusted rotary encoder gear, wherein the resistance value corresponding to the adjusted rotary encoder gear is greater than the resistance value corresponding to the previous rotary encoder gear.

[0048] Specifically, when the comparison result is that the current consumption value is less than the current consumption threshold, the rotary encoder gear is adjusted to obtain an adjusted rotary encoder gear, wherein the resistance value corresponding to the adjusted rotary encoder gear is less than the resistance value corresponding to the previous rotary encoder gear.

[0049] Specifically, when the comparison result is that the current consumption value is equal to the current consumption threshold, the current rotary encoder gear position of the rotary encoder is maintained.

[0050] Preferably, the plurality of encoder resistors are sorted according to resistance values, and the rotary encoder is rotated forward and reversely so that the gear resistance values ​​corresponding to the gears of the rotary encoder can be increased or decreased in sequence based on the rotation direction.

[0051] Specifically, when the power supply voltage is relatively stable, changes in resistance value will cause changes in current; when the rotary encoder is switched to a gear with a larger resistance value, the total resistance in the circuit increases and the current decreases accordingly; conversely, when switching to a gear with a smaller resistance value, the current will increase; and in the lighting module, changes in current will directly affect the luminous intensity of the LED light-emitting tube, thereby achieving brightness adjustment.

[0052] Example 2, see Figure 2 , Figure 2 is a structural schematic diagram of an embodiment of a power debugging device for a lighting module provided by the present application, such as Figure 2 As shown, the device includes a sampling module 201, a control module 202 and an encoder module 203, which are specifically as follows:

[0053] In one embodiment, the sampling module 201 is used to obtain the current consumption value of the lighting module.

[0054] In one embodiment, the control module 202 is used to calculate the corresponding current consumption threshold based on a preset power resistance threshold, compare the current consumption value with the current consumption threshold, and based on the comparison result, control the rotary encoder module 203 to adjust the output power of the lighting module.

[0055] In one embodiment, the control module 202 is used to control the rotary encoder module 203 to adjust the output power of the lighting module based on the comparison result, specifically including: the rotary encoder module 203 includes multiple rotary encoder gears, wherein each rotary encoder gear corresponds to a different gear resistance value; based on the comparison result, the gear of the rotary encoder module 203 is adjusted, and based on the adjusted rotary encoder gear, the output power of the lighting module is adjusted.

[0056] In one embodiment, the control module 202 is used to adjust the gear of the rotary encoder module 203 based on the comparison result, and adjust the output power of the lighting module based on the adjusted rotary encoder gear, specifically including: when the comparison result is that the current consumption value is greater than the current consumption threshold, adjusting the rotary encoder gear to obtain an adjusted rotary encoder gear, wherein the resistance value corresponding to the adjusted rotary encoder gear is greater than the resistance value corresponding to the previous rotary encoder gear; when the comparison result is that the current consumption value is less than the current consumption threshold, adjusting the rotary encoder gear to obtain an adjusted rotary encoder gear, wherein the resistance value corresponding to the adjusted rotary encoder gear is less than the resistance value corresponding to the previous rotary encoder gear; when the comparison result is that the current consumption value is equal to the current consumption threshold, maintaining the current rotary encoder gear of the rotary encoder module 203.

[0057] In one embodiment, the sampling module 201 is used to obtain the current consumption value of the lighting module, specifically including: collecting the voltage drop on the sampling resistor to obtain a sampling voltage; based on the resistance value corresponding to the sampling resistor and the sampling voltage, calculating and obtaining the current consumption value of the lighting module.

[0058] In one embodiment, the sampling module 201 includes a constant current sampling MOS tube 2011 , a sampling resistor 2012 , a first capacitor 2013 and a first resistor 2014 .

[0059] Specifically, the gate of the constant current sampling MOS tube 2011 is the control end of the constant current sampling MOS tube 2011, and the gate of the constant current sampling MOS tube 2011 is connected to the first end of the first capacitor 2013 and the first end of the first resistor 2014 respectively, so that the conduction state of the constant current sampling MOS tube 2011 can be controlled and adjusted; the source of the constant current sampling MOS tube 2011 is connected to the first end of the sampling resistor 2012 to form a current path; the second end of the sampling resistor 2012, the second end of the first capacitor 2013 and the second end of the first resistor 2014 are grounded respectively, and the drain of the constant current sampling MOS tube 2011 is connected to the negative electrode of the LED light-emitting tube in the light-emitting module 204, so that the constant current sampling MOS tube 2011 is in the current path of the LED light-emitting tube, and can sample and control the current passing through the LED light-emitting tube.

[0060] Specifically, since the first end of the sampling resistor 2012 is connected to the source of the constant current sampling MOS tube 2011, and the second end is grounded; when the current passes through the constant current sampling MOS tube 2011 and the sampling resistor 2012, according to Ohm's law, a voltage drop proportional to the current will be generated on the sampling resistor 2012; this voltage drop can be used to measure the current, because the resistance value of the sampling resistor is known, and the current size can be indirectly known by measuring the voltage drop.

[0061] Specifically, the first capacitor 2013 can be used as a filter capacitor to stabilize the gate voltage, filter out possible high-frequency noise, prevent noise from interfering with the control signal of the constant current sampling MOS tube 2011, and make the conduction state of the constant current sampling MOS tube 2011 more stable.

[0062] Specifically, the first resistor 2014 can be used as a current limiting resistor to prevent excessive current from flowing into the gate of the constant current sampling MOS tube 2011, thereby playing a protective role.

[0063] Specifically, the working principle of the sampling module 201 is as follows: when the LED light-emitting tube is turned on, current flows in from the positive electrode, passes through the drain of the constant current sampling MOS tube 2011, and flows to the ground through the constant current sampling MOS tube 2011 and the sampling resistor 2012; since the voltage drop across the sampling resistor 2012 is proportional to the current passing through, the current of the LED light-emitting tube can be sampled by measuring the voltage drop.

[0064] Preferably, the sampling module 201 also includes an amplifier.

[0065] Specifically, the amplifier is used to amplify the voltage; when the sampling resistor 2012 is used to measure the current, the sampling voltage obtained according to Ohm's law may be very weak, especially when the current is small; the amplifier can amplify this weak sampling voltage signal so that the sampling module 201 can detect the signal more accurately.

[0066] Specifically, the positive input terminal of the amplifier is connected to the first end of the sampling resistor 2012 , the negative input terminal of the amplifier is connected to the second end of the sampling resistor 2012 , and the output terminal of the amplifier is connected to the gate of the constant current sampling MOS tube 2011 .

[0067] In one embodiment, the control module 202 refers to a circuit current design so that the voltage / current in the circuit neither leads nor lags each other, and the output current can be set according to the power resistance value.

[0068] Specifically, after receiving the current consumption value sent by the sampling module 201, the control module 202 calculates the resistance value that needs to be adjusted, and adjusts the resistance by driving the encoder module 203; this process can accurately control the current of the LED, thereby achieving fine adjustment of the power output of the lighting module.

[0069] In one embodiment, the encoder module 203 includes a rotary encoder 2031 and a plurality of encoder resistors 2032 , wherein the plurality of encoder resistors 2032 correspond to different resistance values.

[0070] Preferably, the settings in the encoder module, such as the resistance values ​​corresponding to the multiple encoder resistors 2032, or the number of resistors of the multiple encoder resistors 2032, etc., can be adjusted according to actual usage conditions to achieve the best lighting effect and energy efficiency ratio.

[0071] Specifically, the rotary encoder 2031 is connected to a first end of any encoder resistor 2032 , and second ends of the plurality of encoder resistors 2032 are respectively connected to the control module 202 .

[0072] Specifically, the gear resistance value corresponding to the rotary encoder gear of the rotary encoder 2031 is the resistance value of any encoder 2032 connected thereto.

[0073] Specifically, the rotary encoder 2031 is rotated so that the rotary encoder is connected to the plurality of encoder resistors 2032 in sequence.

[0074] Specifically, each rotary encoder gear is pre-set with a corresponding gear resistance value, which is the resistance value of the encoder resistor 2032; this means that when the user rotates the encoder to change the gear, it is actually switching different resistance values ​​to the circuit, which can be adjusted step by step to achieve brightness changes from low to high or from high to low. Since the entire process is closed-loop control, the system can provide real-time feedback and adjustments.

[0075] Specifically, when the power supply voltage is relatively stable, changes in resistance value will cause changes in current; when the rotary encoder is switched to a gear with a larger resistance value, the total resistance in the circuit increases and the current decreases accordingly; conversely, when switching to a gear with a smaller resistance value, the current will increase; and in the lighting module, changes in current will directly affect the luminous intensity of the LED light-emitting tube, thereby achieving brightness adjustment.

[0076] Example description: In an indoor lighting scenario, when you need to brighten the lights, you can control the rotary encoder to rotate to a low resistance position. At this time, the current increases, the LED light-emitting tube obtains more electricity, and the light is brighter; when you need to create a soft atmosphere or reduce energy consumption, you can control the rotary encoder to rotate to a high resistance position. At this time, the current decreases and the lights become dimmer, so that the power output and brightness of the lighting module can be precisely controlled, which greatly improves the convenience and flexibility of the lighting module. At the same time, it also provides an effective means to achieve energy saving and meet different lighting needs.

[0077] In one embodiment, the power debugging device of the lighting module provided by the present application further includes: a light emitting module 204 .

[0078] Specifically, the light emitting module 204 includes a plurality of LED light emitting tubes, wherein the cathodes of the plurality of LED light emitting tubes are respectively connected to the control module 202 .

[0079] Specifically, the control module 202 can apply a control signal to each LED light-emitting tube individually or in groups by connecting to the cathode of each LED light-emitting tube; since the current flows into the anode of the LED light-emitting tube and flows out from the cathode of the LED light-emitting tube, the control module 202 can effectively adjust the current size and on-off at the connection point of the cathode of the LED light-emitting tube; for example, when it is necessary to reduce the lighting brightness, the control module 202 can increase the resistance of the connection point, thereby reducing the current passing through the LED light-emitting tube and making the light emission weaker; conversely, when the lighting brightness needs to be increased, the resistance is reduced and the current passing through the LED light-emitting tube is increased.

[0080] In one embodiment, the power debugging device of the lighting module provided by the present application further includes: a rectifier bridge 205 .

[0081] Specifically, the rectifier bridge is connected to the first AC input terminal AC1 and the second AC input terminal AC2 respectively.

[0082] Specifically, the rectifier bridge 205 contains four diodes, which are connected in a bridge rectifier manner to convert AC input into DC output; when the AC voltage is in the positive half cycle, the current flows to the load through the two diodes inside the rectifier bridge; in the negative half cycle of the AC voltage, the current flows to the load through the other two diodes, but the direction remains unchanged, thereby achieving full-wave rectification and converting AC into pulsating DC.

[0083] like Figure 3 As shown, Figure 3 This is a schematic diagram of the circuit principle of an embodiment of a power debugging device for a lighting module provided in the present application.

[0084] In one embodiment, the control module 202 is connected to the sampling module 201 , the light emitting module 204 and the encoder module 203 respectively, and the light emitting module 204 is connected to the sampling module 201 .

[0085] Specifically, based on the connection relationship between the control module 202 and the sampling module 201, after collecting the current consumption value of the lighting module, the sampling module 201 is used to send the current consumption value to the control module 202, so that the control module 202 receives the current consumption value.

[0086] Specifically, based on the connection relationship between the control module 202 and the encoder module 203, the control module 202 calculates the corresponding current consumption threshold based on a preset power resistance threshold, compares the current consumption value with the received current consumption threshold, and controls the rotary encoder module 203 to adjust the gear based on the comparison result; after receiving the gear adjustment instruction sent by the control module, the rotary encoder module 203 can change the encoder resistor 2032 connected to the rotary encoder 2031 to change the resistance value to achieve a change in the output current.

[0087] Specifically, based on the connection relationship between the control module 202 and the light-emitting module 204, the control module 202 increases or decreases the resistance of the connection point with the light-emitting module 204, thereby reducing the current passing through the LED light-emitting tube or increasing the current passing through the LED light-emitting tube to adjust the lighting brightness.

[0088] In one embodiment, the coordinated work of the control module 202, the sampling module 201, the light-emitting module 204 and the encoder module 203 can realize precise control of the LED current in the lighting module, thereby achieving the purpose of adjusting the lighting brightness; and based on rotating the rotary encoder 2031 in the encoder module 203, the resistance value can be adjusted as needed to change the output current to adapt to the requirements of different brightness levels; and in actual applications, by rotating the encoder, the brightness of the lighting module can be intuitively adjusted without complicated settings or professional knowledge; this intuitive operation method makes the debugging process of the lighting module more convenient and efficient.

[0089] The power debugging device of the lighting module can implement the power debugging method of the lighting module of the method embodiment. The options in the method embodiment are also applicable to this embodiment and will not be described in detail here.

[0090] like Figure 4 As shown, Figure 4 It is a structural diagram of an electronic device provided by the present application; it includes a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114, and the memory 113 is used to store computer programs.

[0091] In one embodiment of the present application, the processor 111 is used to implement the power debugging method of the lighting module provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113.

[0092] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0093] Therefore, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the power debugging method of the lighting module provided in any of the aforementioned method embodiments are implemented.

[0094] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which can store program codes. The computer-readable storage medium can be non-volatile or volatile.

[0095] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0096] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0097] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0098] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0099] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0100] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0101] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A power debugging method for a lighting module, characterized in that: The lighting module includes a rotary encoder, and the power debugging method includes: Get the current consumption value of the lighting module; A corresponding current consumption threshold is calculated based on a preset power resistance threshold, the current consumption value is compared with the current consumption threshold, and based on the comparison result, the rotary encoder is controlled to adjust the output power of the lighting module.

2. The power debugging method of the lighting module according to claim 1, characterized in that: The controlling the rotary encoder to adjust the output power of the lighting module based on the comparison result specifically includes: The rotary encoder includes a plurality of rotary encoder gears, wherein each rotary encoder gear corresponds to a different gear resistance value; Based on the comparison result, the gear position of the rotary encoder is adjusted, and based on the adjustment of the gear position of the rotary encoder, the output power of the lighting module is adjusted.

3. The power debugging method of the lighting module according to claim 2, characterized in that: Based on the comparison result, the gear position of the rotary encoder is adjusted, and based on the adjustment of the gear position of the rotary encoder, the output power of the lighting module is adjusted, which specifically includes: When the comparison result is that the current consumption value is greater than the current consumption threshold, the rotary encoder gear is adjusted to obtain an adjusted rotary encoder gear, wherein the resistance value corresponding to the adjusted rotary encoder gear is greater than the resistance value corresponding to the previous rotary encoder gear; When the comparison result is that the current consumption value is less than the current consumption threshold, the rotary encoder gear is adjusted to obtain an adjusted rotary encoder gear, wherein the resistance value corresponding to the adjusted rotary encoder gear is less than the resistance value corresponding to the previous rotary encoder gear; When the comparison result is that the current consumption value is equal to the current consumption threshold, the current rotary encoder gear position of the rotary encoder is maintained.

4. The power debugging method of the lighting module according to claim 1, characterized in that: The lighting module includes a sampling resistor; and obtaining the current consumption value of the lighting module specifically includes: The voltage drop on the sampling resistor is collected to obtain a sampling voltage; based on the resistance value corresponding to the sampling resistor and the sampling voltage, the current consumption value of the lighting module is calculated and obtained.

5. A power debugging device for a lighting module, characterized in that: include: Sampling module, control module and encoder module; Wherein, the sampling module is used to obtain the current consumption value of the lighting module; The control module is used to calculate the corresponding current consumption threshold based on a preset power resistance threshold, compare the current consumption value with the current consumption threshold, and control the rotary encoder module to adjust the output power of the lighting module based on the comparison result.

6. The power adjustment device for a lighting module according to claim 5, characterized in that: Also includes: Light emitting module; Wherein, the control module is connected to the sampling module, the light emitting module and the encoder module respectively, and the light emitting module is connected to the sampling module.

7. The power adjustment device for a lighting module according to claim 5, characterized in that: The encoder module includes a rotary encoder and a plurality of encoder resistors, wherein the plurality of encoder resistors correspond to different resistance values; The rotary encoder is connected to any encoder resistor, and the gear resistance value corresponding to the rotary encoder gear of the rotary encoder is the resistance value of any encoder connected thereto.

8. The power adjustment device for a lighting module according to claim 5, characterized in that: The sampling module includes a constant current sampling MOS tube, a sampling resistor, a first capacitor and a first resistor; Among them, the gate of the constant current sampling MOS tube is respectively connected to the first end of the first capacitor and the first end of the first resistor, the source of the constant current sampling MOS tube is connected to the first end of the sampling resistor, the second end of the sampling resistor, the second end of the first capacitor and the second end of the first resistor are grounded respectively, and the drain of the constant current sampling MOS tube is connected to the negative electrode of the LED light-emitting tube in the light-emitting module.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 4 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 can be implemented.