A method, system, device and medium for automatically detecting the number of powered lamp beads

CN122934592APending Publication Date: 2026-10-16GUANGDONG ZHONGYUAN CREATIVE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611286535.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

[0003]现阶段行业内常规的灯珠数量自检主要通过人工清点(效率低,容易出现数量误差)、数据回环法(需从最后一颗灯珠引出DOUT信号线,对设备/硬件的改动幅度较大,极大地提高运行成本)、电压跌落法(通过点亮多颗灯珠观察电源电压变化,精度低,受电源阻抗和长度影响大)以及电流求平均值法(计算总电流除以单个灯珠电流,得到灯珠数,计算误差大)等方式进行,存在效率低、计算误差大、成本高、稳定性差等缺点

Benefits of technology

[0016] The present invention adopts the above-mentioned solution, and its beneficial effects are as follows: It can provide two retrieval modes, linear traversal and binary search, to adapt to different specifications of LED strips. The number of retrievals by binary search is reduced logarithmically, which greatly shortens the power-on self-test time and reduces the main control computing overhead. At the same time, it reduces the frequent on and off of LED beads to suppress surge current and delay LED light decay. During the test, single-lamp full white fixed-point driving, combined with lamp delay, multiple sampling average filtering, noise floor calibration and special judgment threshold, effectively filters out circuit noise and reduces the probability of misjudging the presence or absence of LED beads. The hardware-matched bypass module can short-circuit the sampling resistor after the test, reducing the voltage drop and power consumption of the normal line. The whole system does not require additional communication signal lines, the hardware modification cost is low, and the whole machine can automatically identify the number of LED beads upon power-on without manual counting, which takes into account both mass production testing and terminal intelligent driving needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122934592A_ABST
    Figure CN122934592A_ABST
Patent Text Reader

Abstract

The present application relates to the field of LED intelligent atmosphere lamp, especially disclose a kind of power-on lamp bead quantity automatic detection method, system, equipment and medium, the method includes after the power-on of light band, the whole lamp bead on light band is set to extinguished state, and the current reference value under extinguished state of light band is collected;Based on the maximum number of driveable lamp beads preset by light control component, the initial search interval of to-be-measured lamp bead is demarcated;Single detection position is selected in initial search interval, and only the lamp bead on the detection position is lit each time, and the remaining lamp beads remain extinguished state, and then the current current sampling value of lamp bead on corresponding detection position is collected;Compare current current sampling value with preset lamp bead existence threshold value, judge whether there is lamp bead on current detection position;Based on the existence result of lamp bead, adjust search interval, and then repeatedly execute to gradually reduce search interval, until the actual lamp bead serial number boundary of light band is locked;The actual number of lamp beads of light band is determined based on actual lamp bead serial number boundary.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of LED intelligent ambient lighting, and in particular to a method, system, device and medium for automatically detecting the number of LED beads upon power-on. Background Technology

[0002] During the factory assembly and power-on self-test of LED light strips, it is necessary to accurately identify the total number of LED chips actually soldered onto the light strip in order to match the controller's dimming, zone driving, fault reporting and other control logic.

[0003] Currently, the industry's conventional methods for self-checking the number of LEDs mainly involve manual counting (low efficiency and prone to errors), data loopback (requires drawing the DOUT signal line from the last LED, which requires significant modifications to the equipment / hardware and greatly increases operating costs), voltage drop method (observing power supply voltage changes by lighting multiple LEDs, which has low accuracy and is greatly affected by power supply impedance and length), and current averaging method (calculating the total current divided by the current of a single LED to obtain the number of LEDs, which has large calculation errors). These methods have drawbacks such as low efficiency, large calculation errors, high cost, and poor stability.

[0004] Therefore, based on the above-mentioned technical problems, this application proposes an efficient, stable, low-error, and low-cost automatic detection method, system, device, and medium for the number of powered-on LED beads. Summary of the Invention

[0005] The purpose of this invention is to overcome the shortcomings of the prior art and provide an efficient, stable, low-error, and low-cost automatic detection method, system, device, and medium for the number of powered-on LED beads.

[0006] To achieve the above objectives, the present invention provides an automatic detection method for the number of powered-on LED beads, applied to a lighting control component. The lighting control component is electrically connected to a light strip, and the light strip has a plurality of LED beads to be tested arranged in series, with each LED bead assigned an independent serial number based on its arrangement order. The method includes the following steps: Step 1: After the light strip is powered on, set all the LED beads on the light strip to the off state, and collect the current reference value of the light strip in the off state; Step 2: Based on the maximum number of driveable LEDs preset by the lighting control component, define the initial search range for the LEDs to be tested; Step 3: Select a single detection position within the initial search interval, and only light up the LED at that detection position each time, leaving the other LEDs off, and then collect the current sampling value of the LED at the corresponding detection position; Step 4: Compare the current current sampling value with the preset LED presence threshold to determine whether there is an LED at the current detection position; Step 5: Adjust the search interval based on the presence of LED beads, and then repeat steps 3-4 to gradually converge the search interval until the actual LED bead sequence number boundary of the LED strip is locked. Step 6: Calculate the actual LED serial number boundary to obtain the actual number of LEDs in the LED strip.

[0007] Furthermore, the maximum number of driveable LED beads in the lighting control component is greater than the actual number of LED beads on the LED strip.

[0008] Furthermore, the specific process of selecting a single detection position within the initial search interval in step 3 includes: Step 3.1: Starting from the upper limit of the initial search interval, select detection positions on the LED strip sequentially in the direction of decreasing LED bead numbers.

[0009] Furthermore, the specific content of step 3, which involves collecting the current sampling value of the LED bead, includes: Step 3.2: After lighting up the LED at a certain detection position, wait for a preset time; Step 3.3: Within a preset first sampling period, the operating current of the LED strip is sampled multiple times continuously to obtain multiple current sampling values; Step 3.4: Calculate and process the multiple current sampling values ​​to obtain the current average detection current value of the LED at the detection position.

[0010] Furthermore, step 5, which involves gradually narrowing the search interval based on the judgment result, includes the following specific steps: Step 5.1: When the current detected current value is less than the LED bead presence threshold, it is determined that there is no LED bead at the current detection position, and the detection sequence number is decremented by one bit to update the upper limit of the search interval. Then, the detection operation of Step 3-Step 4 is repeated until the determination result is that there is an LED bead at the current detection position. Step 5.2: When the current detected current value is greater than the LED bead presence threshold, it is determined that an LED bead exists at the current detection position, and the LED bead sequence number at the current detection position is locked as the actual LED bead sequence number boundary of the LED strip. At the same time, the convergence operation of the search interval ends.

[0011] Furthermore, the specific process of selecting a single detection position within the initial search interval in step 3 includes: Step 3.1: Based on the binary search method, select the midpoint of the initial search interval as the detection position.

[0012] Furthermore, step 5, which involves gradually narrowing the search interval based on the judgment result, includes the following specific steps: Step 5.1: When the current detected current value is greater than the LED bead presence threshold, it is determined that an LED bead exists at the current detection position, and the lower limit number of the initial search interval is updated to the LED bead number at the current detection position plus one. Step 5.2: When the current detected current value is less than the LED bead presence threshold, it is determined that there is no LED bead at the current detection position, and the upper limit number of the initial search interval is updated to the LED bead number at the current detection position minus one. Step 5.3: Repeatedly perform the midpoint selection detection and interval number update operations until the lower limit number of the search interval is greater than its upper limit number. Then, use the number of the last valid LED bead detected in the iteration process as the actual LED bead number boundary of the LED strip.

[0013] Based on the same inventive concept, this application also provides an automatic detection system for the number of powered LED beads, including a main control module, a current detection module and a bypass module. The current detection module includes a sampling resistor connected in series in the LED strip power supply circuit and a current detection amplifier connected to the sampling resistor. The current detection module is used to convert the LED strip operating current into a voltage signal that can be read by the main control module. The main control module is connected to the output terminal of the current detection module and the input terminal of the LED strip, and the main control module is used to perform the following operations: After the light strip is powered on, all the LED beads on the light strip are set to the off state, and the current reference value of the light strip in the off state is collected. Based on the maximum number of driveable LEDs preset by the lighting control component, the initial search range for the LEDs to be tested is defined. Within the initial search interval, a single detection position is selected, and only the LED at that detection position is lit each time, while the other LEDs remain off. This allows the current detection module to collect the current sampling value of the LED at the corresponding detection position. The current current sampling value is compared with a preset LED presence threshold to determine whether an LED exists at the current detection position. Based on the existence of LED beads, the search interval is adjusted, and then the operations of selecting detection positions and converging search intervals are repeatedly executed until the actual LED bead serial number boundary of the LED strip is locked. The actual number of LED beads in the light strip is obtained by calculating the boundary of the actual LED bead serial number. The bypass module is connected in parallel across the sampling resistor, and the control terminal of the bypass module is connected to the control signal output terminal of the main control module; the bypass module is used to short-circuit the sampling resistor after the LED count is completed.

[0014] Based on the same inventive concept, this application also provides a data processing device, including: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the automatic detection method for the number of powered-on LED beads as described above.

[0015] Based on the same inventive concept, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the aforementioned method for automatically detecting the number of powered LED beads.

[0016] The present invention adopts the above-mentioned solution, and its beneficial effects are as follows: It can provide two retrieval modes, linear traversal and binary search, to adapt to different specifications of LED strips. The number of retrievals by binary search is reduced logarithmically, which greatly shortens the power-on self-test time and reduces the main control computing overhead. At the same time, it reduces the frequent on and off of LED beads to suppress surge current and delay LED light decay. During the test, single-lamp full white fixed-point driving, combined with lamp delay, multiple sampling average filtering, noise floor calibration and special judgment threshold, effectively filters out circuit noise and reduces the probability of misjudging the presence or absence of LED beads. The hardware-matched bypass module can short-circuit the sampling resistor after the test, reducing the voltage drop and power consumption of the normal line. The whole system does not require additional communication signal lines, the hardware modification cost is low, and the whole machine can automatically identify the number of LED beads upon power-on without manual counting, which takes into account both mass production testing and terminal intelligent driving needs. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating the automatic detection method for the number of powered-on LED beads in Embodiment 1.

[0018] Figure 2 This is a schematic diagram of the specific process of step 3 in embodiment 1.

[0019] Figure 3 This is a schematic diagram of the specific process of step 5 in embodiment 1.

[0020] Figure 4 This is a schematic diagram of the specific process of step 3 in embodiment 2.

[0021] Figure 5 This is a schematic diagram of the specific process of step 5 in embodiment 2.

[0022] Figure 6 This is a schematic diagram of the circuit structure of the automatic detection system for the number of powered-on LED beads in Embodiment 3. Detailed Implementation

[0023] To facilitate understanding of the present invention, a more complete description is given below with reference to the accompanying drawings. Preferred embodiments of the invention are shown in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to provide a thorough and complete understanding of the disclosure of the invention. Example 1

[0024] See appendix Figure 1-3 As shown, in this embodiment, an automatic detection method for the number of powered-on LED beads is applied to a lighting control component. The lighting control component is electrically connected to a light strip, and the light strip is provided with a plurality of LED beads to be tested arranged in series. Each LED bead is assigned an independent serial number based on its arrangement order. Each LED bead to be tested can complete addressing and lighting control according to its configured serial number and a set sequence direction. The method includes the following steps: Step 1: After the light strip is powered on, set all the LEDs on the light strip to the off state and collect the current reference value of the light strip in the off state. Under normal circumstances, the current reference value / noise floor ADC of the light strip in the off state is generally in the range of 5-15. The current reference value / noise floor ADC is used to deduct the sampling offset error caused by hardware noise in the subsequent detection process, thereby improving the identification accuracy of the working current of a single LED and avoiding the problem of misjudging the presence or absence of LEDs caused by the background noise. Step 2: Based on the maximum number of driveable LEDs preset by the lighting control component, define the initial search interval for the LEDs to be tested. The maximum number of driveable LEDs of the lighting control component is greater than the actual number of LEDs on the LED strip. This configuration ensures that the serial numbers of all actually deployed LEDs on the LED strip can be included within the initial search interval, ensuring that the subsequent detection location selection, current sampling, and interval convergence process can cover all valid LEDs and guarantee the completeness of the LED quantity detection work. Step 3: Select a single detection position within the initial search interval, and only light up the LED at that detection position each time, keeping the other LEDs off. Then, collect the current sampling value of the LED at the corresponding detection position. That is, send the full white light emission driving parameters to the LED at the detection position. The preferred configuration of the full white light emission driving parameters / RGB values ​​is (255, 255, 255), so that the LED performs rated full brightness light emission, thereby outputting a stable working current, eliminating the current value deviation caused by brightness changes, and collecting the current sampling value corresponding to the detection position after the circuit current tends to stabilize, providing accurate raw sampling data for subsequent judgment work. Step 3, selecting a single detection location within the initial search interval, includes the following steps: Step 3.1: Starting from the upper limit of the initial search interval, select the detection position on the LED strip in descending order of LED number. The above method of detecting point by point from back to front only lights up a single LED to be tested for current acquisition, and there will be no phenomenon of multiple LEDs lighting up at the same time. This can effectively eliminate the unpleasant experience of instantaneous strong light during the power-on self-test of the whole machine, weaken the instantaneous light stimulation during power-on, and improve the comfort of product use.

[0025] Step 3, collecting the current current sampling value of the LED bead, includes the following: Step 3.2: After lighting up the LED at a certain detection position, delay for a preset time (the preset delay value is preferably in the range of 3 ms-10 ms) to allow the operating current of the LED to reach a steady state. Step 3.3: The operating current of the LED strip is sampled multiple times continuously within the preset first sampling period to obtain multiple current sampling values. The numerical range of the first sampling period is preferably 1 ms-2 ms, and the number of samplings is preferably 8. Step 3.4: Perform calculations on multiple current sample values ​​(by taking the arithmetic mean of all current sample values ​​to smooth the data) to obtain the current detection current value of the LED at the detection position; by using the mean operation, the sampling data fluctuation error caused by circuit noise and power supply disturbance can be reduced, the numerical offset problem existing in a single sampling can be corrected, the accuracy of the detection current value can be guaranteed, and the probability of misjudging the presence of the LED can be reduced. Step 4: Compare the current current sampling value with the preset LED presence threshold to determine whether there is an LED at the current detection position. The LED presence threshold is preferably 60. The LED presence threshold is within a safe range between the upper limit of the noise floor of the LED strip circuit and the normal lighting sampling value. This can isolate false triggering caused by hardware noise and line leakage current, and accurately identify the working current signal generated by the valid LED, thereby improving the fault tolerance and judgment accuracy of LED identification. Step 5: Adjust the search interval based on the existence of LED beads, and then repeat steps 3-4 to gradually converge the search interval until the actual LED bead serial number boundary of the LED strip is locked. Step 5, which involves progressively narrowing the search interval based on the judgment results, includes the following specific steps: Step 5.1: When the current detected current value is less than the LED presence threshold, it is determined that there is no LED at the current detection position, and the detection sequence number is decremented by one position to update the upper limit of the search interval. Then, the detection operation of steps 3-4 is repeated until the determination result is that there is an LED at the current detection position (that is, if no LED is detected at number 8, the LED at number 7 is detected, and this decrementing detection is continuously looped until an LED is detected at number 5, thus ending the search). Step 5.2: When the current detected current value is greater than the LED bead existence threshold, it is determined that there is a valid LED bead at the current detection position, and the LED bead serial number at the current detection position is locked as the actual LED bead serial number boundary of the LED strip. At the same time, the convergence operation of the search interval ends. Step 6: Calculate the actual LED serial number boundary to obtain the actual number of LEDs in the light strip, and simultaneously have the lighting control component record the actual number of LEDs in the light strip; that is, lock the current LED serial number corresponding to the detection as the actual LED serial number boundary of the entire light strip, and the serial number boundary value is the maximum number of LEDs actually deployed in the light strip. The actual total number of LEDs in the light strip can be calculated through this serial number. At this point, the entire power-on self-test process is completed. Example 2

[0026] In this embodiment 2, the core difference from embodiment 1 lies only in the selection logic of the detection points within the search interval and the interval convergence method: see Appendix Figure 4-5 As shown, step 3, selecting a single detection location within the initial search interval, includes the following specific steps: Step 3.1: Based on the binary search method, the midpoint of the initial search interval is selected as the detection position. Specifically, the midpoint of the interval is calculated using the upper and lower limits of the initial search interval. The position of the LED corresponding to the calculated midpoint is used as the detection point for this round, completing the point allocation for a single fixed-point detection. Using the binary search method to select the detection position allows for the retrieval interval to be divided in half. Compared to the linear traversal mode in Example 1, this significantly reduces the overall number of detection iterations and improves the overall retrieval efficiency. Furthermore, step 5, which involves gradually narrowing the search interval based on the judgment results, includes the following specific steps: Step 5.1: When the current detection current value is greater than the LED presence threshold, it is determined that there is a valid LED at the current detection position, and the lower limit number of the initial search interval is updated to the LED number at the current detection position plus one, thus narrowing the low-order search interval (there is a valid LED in the low-order interval). Step 5.2: When the current detection current value is less than the LED presence threshold, it is determined that there is no LED at the current detection position, and the upper limit number of the initial search interval is updated to the LED number at the current detection position minus one, and the high-order invalid search intervals are eliminated (the high-order intervals include non-existent invalid LEDs). Step 5.3: Repeatedly perform the midpoint selection detection and interval number update operations until the lower limit number of the search interval is greater than its upper limit number. Then, use the number of the last valid LED bead detected in the iteration process as the actual LED bead number boundary of the LED strip.

[0027] It should be noted that Example 1 adopts a linear traversal retrieval mode that detects sequentially from high to low serial numbers. The retrieval time and the number of detections are directly proportional to the maximum number of driveable LED beads of the lighting control component. For example, when the maximum number of driveable LED beads of the lighting control component is set to 1000, and the actual number of LED beads in the light strip is 88, this traversal scheme requires 912 lighting and current detection operations. The proportion of invalid detections is high, and resources are wasted. Furthermore, the above situation may occur when dealing with high-power, long-specification light strip products. If the preset maximum drive LED bead value is too high, the entire detection process will generate a large number of redundant operations for lighting control, current sampling, and data parsing, directly causing the problem of excessively long power-on self-test time.

[0028] In this embodiment, by employing a binary search method to halve the sequence number retrieval interval, the number of retrievals increases logarithmically with the maximum sequence number value, effectively reducing the total number of lamp detections. Under the same hardware configuration, this shortens the power-on self-test time of the entire machine and reduces equipment operating costs. Furthermore, the binary search method can quickly discard a large range of invalid retrieval intervals, reducing the instantaneous current surges caused by frequent switching on and off of the LED strip. This not only improves the response rate and detection efficiency of LED count detection but also mitigates the light decay loss caused by frequent starting and stopping of the LED strip, extending the lifespan of the LED strip and improving the overall stability of the product. Example 3

[0029] See appendix Figure 6 As shown, an automatic detection system for the number of powered LED beads includes a main control module, a current detection module, and a bypass module. The current detection module includes a sampling resistor connected in series in the LED strip power supply circuit and a current detection amplifier connected to the sampling resistor. The current detection module is used to convert the LED strip operating current into a voltage signal that can be read by the main control module. The main control module is connected to both the output of the current detection module and the input of the LED strip, and is used to perform the following operations: After the light strip is powered on, all the LED beads on the light strip are set to the off state, and the current reference value of the light strip in the off state is collected. Based on the maximum number of driveable LEDs preset by the lighting control component, the initial search range for the LEDs to be tested is defined. Within the initial search range, a single detection position is selected, and only the LED at that detection position is lit each time, while the other LEDs remain off. This allows the current detection module to collect the current sampling value of the LED at the corresponding detection position. Compare the current current sampling value with the preset LED presence threshold to determine whether there is an LED at the current detection position; Based on the results of the existence of LED beads, the search interval is adjusted, and then the operation of selecting the detection position and converging the search interval is repeatedly executed until the actual LED bead serial number boundary of the LED strip is locked. The actual number of LED beads in the LED strip is obtained by calculating the actual LED bead serial number boundary. A bypass module is connected in parallel across the sampling resistor, and the control terminal of the bypass module is connected to the control signal output terminal of the main control module. The bypass module is used to short-circuit the sampling resistor after completing the LED count detection, thereby reducing the voltage drop and power consumption during normal operation of the LED strip circuit. Specifically, the bypass module includes a switching element with on and off functions, and preferably, an N-channel low on-resistance MOSFET (Q1). When detecting the LED strip: the main control module outputs a low-level off signal through the GPIO port to turn off the bypass module, allowing all the LED strip current to flow through the sampling resistor, while simultaneously causing the current sensing amplifier to acquire the voltage (i.e., amplify the voltage drop across the sampling resistor and output it to the ADC channel of the main control module). When the LED strip detection is complete: the main control module outputs a high-level on signal through the GPIO port to turn on the bypass module, short-circuiting the sampling resistor (allowing the LED strip operating current to bypass the sampling resistor), reducing the voltage drop and power consumption during normal operation.

[0030] To facilitate explanation, the following further explanation is provided in conjunction with the actual testing process.

[0031] The sampling resistor selected is a precision sampling resistor R with a resistance of 25 mΩ. shunt The fixed gain G of the current sensing amplifier is set to 20 times; the main control MCU / main control module is equipped with a 12-bit resolution ADC acquisition unit, and the external reference voltage of the ADC is the system power supply voltage of 3.3 V.

[0032] Before the formal testing operation starts, the main control module sets all the LEDs on the LED strip to the off state and collects the ADC value / current reference value corresponding to the base noise of the LED strip at this time through the current detection module, and records it as the base noise value base_adc. Among them, due to the influence of factors such as line leakage current, amplifier inherent noise, power supply ripple, etc., the base noise ADC value corresponding to the off state under normal operating conditions of this circuit is stably distributed in the range of 5-15.

[0033] When performing single-point detection, the full white light emission driving parameters (255,255,255) are only sent to the target LED bead to make the single LED bead fully lit. After a preset delay, the steady-state operating current of the LED bead is collected (55 mA-60 mA, here the maximum current value of 60 mA is used for calculation); V=I×R=60 mA×25 mΩ=1.5mV.

[0034] The voltage calculation formula is used: V=I×R=60 mA×25 mΩ=1.5 mV. Then, the voltage is amplified by 20 times through a detection amplifier to make the amplifier output voltage amplitude 30 mV. Based on the 12-bit ADC conversion calculation formula: ADC 采样值 = (Amplified output voltage × 4095) / Reference voltage = (30 mV × 4095) / 3.3. Substituting the values, we can calculate that the theoretical ADC increment value corresponding to lighting a single LED bead / the current current sampling value is approximately 37. Considering multiple error factors such as the tolerance of the sampling resistor value, the fluctuation of the power supply voltage, the deviation of the amplifier amplification factor, and the dispersion of the LED bead's operating current in actual working conditions, this embodiment sets the LED bead judgment threshold to 60. Determine the relationship between the current sampling value, the LED bead judgment threshold, and the current reference value: whether the three satisfy the following conditions: maximum noise floor ADC value / current reference value < LED bead judgment threshold < effective ADC sampling value of a single LED bead / current sampling value. This allows for accurate differentiation between two scenarios: whether the detection location is in an empty state without LEDs or whether an effective LED bead is lit at the location. This ensures the reliability and fault tolerance of the LED bead identification result. Based on the above data, it is determined that there are no LED beads at the detection location (LED bead judgment threshold 60 > current current sampling value 37). Example 4

[0035] Based on the same inventive concept, this application also provides a data processing device, including: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the aforementioned method for automatically detecting the number of powered LED beads. Example 5

[0036] Based on the same inventive concept, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the aforementioned method for automatically detecting the number of powered LED beads.

[0037] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any way. Any modifications or variations made by those skilled in the art, without departing from the scope of the present invention, using the disclosed technical content, are equivalent embodiments of the present invention. Therefore, all equivalent changes made based on the concept of the present invention without departing from the scope of the present invention should be covered within the protection scope of the present invention.

Claims

1. An automatic detection method for the number of powered LED beads, applied to a lighting control component, wherein the lighting control component is electrically connected to a light strip, characterized in that: The light strip has several LED beads to be tested arranged in series, and each LED bead is assigned an independent serial number based on its arrangement order; the method includes the following steps: Step 1: After the light strip is powered on, set all the LED beads on the light strip to the off state, and collect the current reference value of the light strip in the off state; Step 2: Based on the maximum number of driveable LEDs preset by the lighting control component, define the initial search range for the LEDs to be tested; Step 3: Select a single detection position within the initial search interval, and only light up the LED at that detection position each time, leaving the other LEDs off, and then collect the current sampling value of the LED at the corresponding detection position; Step 4: Compare the current current sampling value with the preset LED presence threshold to determine whether there is an LED at the current detection position; Step 5: Adjust the search interval based on the presence of LED beads, and then repeat steps 3-4 to gradually converge the search interval until the actual LED bead sequence number boundary of the LED strip is locked. Step 6: Calculate the actual LED serial number boundary to obtain the actual number of LEDs in the LED strip.

2. The automatic detection method for the number of powered LED beads according to claim 1, characterized in that: The maximum number of LEDs that the lighting control component can drive is greater than the actual number of LEDs on the light strip.

3. The automatic detection method for the number of powered LED beads according to claim 1, characterized in that: The specific process of selecting a single detection location within the initial search interval in step 3 includes: Step 3.1: Starting from the upper limit of the initial search interval, select detection positions on the LED strip sequentially in the direction of decreasing LED bead numbers.

4. The automatic detection method for the number of powered LED beads according to claim 1, characterized in that: The specific content of step 3, which involves collecting the current sampling value of the LED bead, includes: Step 3.2: After lighting up the LED at a certain detection position, wait for a preset time; Step 3.3: Within a preset first sampling period, the operating current of the LED strip is sampled multiple times continuously to obtain multiple current sampling values; Step 3.4: Calculate and process the multiple current sampling values ​​to obtain the current average detection current value of the LED at the detection position.

5. The automatic detection method for the number of powered LED beads according to claim 3, characterized in that: Step 5, which involves gradually narrowing the search interval based on the judgment result, includes the following specific steps: Step 5.1: When the current detected current value is less than the LED bead presence threshold, it is determined that there is no LED bead at the current detection position, and the detection sequence number is decremented by one bit to update the upper limit of the search interval. Then, the detection operation of Step 3-Step 4 is repeated until the determination result is that there is an LED bead at the current detection position. Step 5.2: When the current detected current value is greater than the LED bead presence threshold, it is determined that an LED bead exists at the current detection position, and the LED bead sequence number at the current detection position is locked as the lower limit boundary of the actual LED bead sequence number of the LED strip. At the same time, the convergence operation of the search interval ends.

6. The automatic detection method for the number of powered LED beads according to claim 1, characterized in that: The specific process of selecting a single detection location within the initial search interval in step 3 includes: Step 3.1: Based on the binary search method, select the midpoint of the initial search interval as the detection position.

7. The automatic detection method for the number of powered LED beads according to claim 6, characterized in that: Step 5, which involves gradually narrowing the search interval based on the judgment result, includes the following specific steps: Step 5.1: When the current detected current value is greater than the LED bead presence threshold, it is determined that an LED bead exists at the current detection position, and the lower limit of the initial search interval is updated to the LED bead number at the current detection position plus one. Step 5.2: When the current detected current value is less than the LED bead presence threshold, it is determined that there is no LED bead at the current detection position, and the upper limit number of the initial search interval is updated to the LED bead number at the current detection position minus one. Step 5.3: Repeatedly perform the midpoint selection detection and interval number update operations until the lower limit number of the search interval is greater than its upper limit number. Then, use the number of the last valid LED bead detected in the iteration process as the actual LED bead number boundary of the LED strip.

8. An automatic detection system for the number of powered LED beads, characterized in that: It includes a main control module, a current detection module, and a bypass module. The current detection module includes a sampling resistor connected in series in the LED strip power supply circuit and a current detection amplifier connected to the sampling resistor. The current detection module is used to convert the LED strip operating current into a voltage signal that can be read by the main control module. The main control module is connected to the output terminal of the current detection module and the input terminal of the LED strip, and the main control module is used to perform the following operations: After the light strip is powered on, all the LED beads on the light strip are set to the off state, and the current reference value of the light strip in the off state is collected. Based on the maximum number of driveable LEDs preset by the lighting control component, the initial search range for the LEDs to be tested is defined. Within the initial search interval, a single detection position is selected, and only the LED at that detection position is lit each time, while the other LEDs remain off. This allows the current detection module to collect the current sampling value of the LED at the corresponding detection position. The current current sampling value is compared with a preset LED presence threshold to determine whether an LED exists at the current detection position. Based on the existence of LED beads, the search interval is adjusted, and then the operations of selecting detection positions and converging search intervals are repeatedly executed until the actual LED bead serial number boundary of the LED strip is locked. The actual number of LED beads in the light strip is obtained by calculating the boundary of the actual LED bead serial number. The bypass module is connected in parallel across the sampling resistor, and the control terminal of the bypass module is connected to the control signal output terminal of the main control module; the bypass module is used to short-circuit the sampling resistor after the LED count is completed.

9. A data processing device, comprising: A memory and a processor, wherein the memory is used to store computer programs; When the processor executes the computer program, it implements the automatic detection method for the number of powered-on LED beads as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, wherein when executed by a processor, the computer program implements the automatic detection method for the number of powered-on LEDs as described in any one of claims 1 to 7.