A parallel LED address burning system, method, LED module and package

Through the parallel LED address burning system, bus competition and image recognition technology are used to realize efficient address burning of LED modules, solving the problems of low burning efficiency and installation errors in the existing technology, and improving product yield.

CN119045841BActive Publication Date: 2025-04-15HANGZHOU SEMISTRON MICROELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411523601.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-04-15
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

The existing parallel LED programming method requires burning first and then mounting, resulting in low burning efficiency and easy installation errors, affecting product yield.

Method used

The parallel LED address burning system is adopted to realize bus competition and address code burning through the coordinated work of the control module, image recognition module and LED module, ensuring that each LED module has a unique address before installation.

Benefits of technology

It improves the efficiency and product yield of LED address burning, reduces the occurrence of installation errors, and realizes accurate programming of each LED module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045841B_ABST
    Figure CN119045841B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of LED technology, and discloses a parallel LED address burning system, method, LED module and package, the system includes a control module, an image recognition module and at least one LED module; the control module is used to send a bus competition instruction to the image recognition module and the LED module; and generate an address code according to the received coordinates; the LED module is used to detect whether the address code is burned after receiving the bus competition instruction; if not, it competes for bus control according to the current bus state, and lights up after the competition is successful; after receiving the address code, if it is in the lighting state, the address code is burned; the image recognition module is used to obtain the image of the light group and identify whether the number of the lit LED modules is 1; if so, the coordinates of the lit LED modules are calculated. The present application can avoid the installation error problem that is easy to occur in the networking method of burning first and then mounting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of LED technology, and in particular to a parallel LED address burning system, method, LED module and package. Background Art

[0002] LED networking generally uses two networking methods: series communication and parallel communication. Series networking does not require address programming for each LED light, but if one or several adjacent LEDs are damaged, the LED lights behind the damaged LED will be uncontrollable; parallel networking will not affect the normal operation of other LED lights due to the damage of several LED lights, but in order to achieve individual control of each LED light, each LED light must be programmed with a unique address.

[0003] At present, the programming of parallel LEDs generally adopts the method of burning first and then pasting, that is, each LED lamp is burned separately, and then installed on the display panel or light strip according to the burned address. However, this method not only has low burning efficiency, but also is prone to errors in the installation process. Summary of the invention

[0004] The present application provides a parallel LED address burning system, method, LED module and package, which can avoid the installation error problem that is easy to occur in the networking method of burning first and then mounting, and greatly improve the burning efficiency and product yield.

[0005] In a first aspect, an embodiment of the present application provides a parallel LED address burning system, comprising a control module, an image recognition module and at least one LED module; the control module is connected to the LED module via a bus;

[0006] The control module is used to send bus competition instructions to the image recognition module and the LED module; and generate an address code according to the received coordinates and send it to the LED module through the bus;

[0007] The LED module is used to detect whether the address code is burned in after receiving the bus competition instruction; if not, compete for bus control according to the current bus state, and light up after the competition is successful; and, after receiving the address code, determine whether it is in the lighting state, and if so, burn the address code;

[0008] The image recognition module is used to respond to the bus competition instruction, obtain the light group image and identify whether the number of lit LED modules is 1; if so, calculate the coordinates of the lit LED modules and send them to the control module.

[0009] Further, the LED module is specifically used to perform a competition step when detecting that no address code is stored: detecting whether the current bus state changes to a high level within a random delay;

[0010] If yes, the competition fails; if no, it outputs a high level and lights up after the random delay.

[0011] Furthermore, the LED module is also used to increase the number of competitions by 1 when the competition result of the competition step is negative, and determine whether the number of competitions reaches a preset number; if not, output a high level and execute the competition step again; if so, light up.

[0012] Furthermore, the sum of a preset number of random delays is less than or equal to a preset competition duration; the image recognition module is also used to wait for a preset competition duration after receiving a bus competition instruction, and obtain the light group image after the preset competition duration ends.

[0013] Furthermore, the image recognition module is also used to send competition failure information to the control module when the number of the lighted LED modules is not equal to 1; the control module is also used to send a bus arbitration instruction to the LED module after receiving the competition failure information;

[0014] The LED module is also used to determine whether it is in a lighting state after receiving a bus arbitration instruction; if so, it is turned off and competes for bus control again according to the current bus state.

[0015] Furthermore, the control module is also used to send an address reset instruction to the LED module when a preset number of competition failure information is received continuously; the LED module is also used to delete the burned address code after receiving the address reset instruction.

[0016] Furthermore, the image recognition module is specifically used to convert the light group image into a grayscale image; binarize the grayscale image to obtain a binary image; and determine whether the number of connected areas in the binary image is 1.

[0017] In a second aspect, an embodiment of the present application provides a method for burning addresses of parallel LEDs, comprising:

[0018] The control module sends a bus competition instruction to the image recognition module and the LED module;

[0019] After receiving the bus competition instruction, the LED module detects whether the address code is burned in; if not, it competes for bus control according to the current bus status and lights up after the competition is successful;

[0020] After receiving the bus competition instruction, the image recognition module obtains the light group image and identifies whether the number of lit LED modules is 1; if so, the coordinates of the lit LED modules are calculated and sent to the control module;

[0021] The control module generates an address code according to the coordinates and sends it to the LED module through the bus;

[0022] The LED module receives the address code and determines whether it is in the lighting state. If so, the address code is burned.

[0023] Furthermore, the LED module competes for bus control according to the current bus state and lights up after successfully competing, including:

[0024] The LED module performs the competition step: detecting whether the current bus state changes to a high level within a random delay;

[0025] If yes, the competition fails; if no, it outputs a high level and lights up after the random delay.

[0026] Furthermore, the method further comprises:

[0027] When the competition result of the competition step of the LED module is negative, the competition times are increased by 1 to determine whether the competition times reach the preset times; if not, a high level is output and the competition step is executed again; if yes, the LED module lights up.

[0028] Furthermore, the sum of a preset number of random delays is less than or equal to a preset competition duration; the method also includes: after receiving the bus competition instruction, the image recognition module waits for a preset competition duration, and obtains the light group image after the preset competition duration ends.

[0029] Furthermore, the method further comprises:

[0030] When the image recognition module recognizes that the number of the lighted LED modules in the light group image is not equal to 1, it sends a competition failure message to the control module;

[0031] After receiving the competition failure information, the control module sends a bus arbitration instruction to the LED module;

[0032] After receiving the bus arbitration command, the LED module determines whether it is in the lighting state;

[0033] If so, it turns off and competes for bus control again according to the current bus status.

[0034] Furthermore, the method further comprises:

[0035] When receiving the contention failure information, the control module counts whether the number of contention failure information received continuously reaches a preset number, and if so, sends an address reset instruction to the LED module;

[0036] After receiving the address reset instruction, the LED module deletes the burned address code.

[0037] Furthermore, whether the number of the LED modules lit in the above-mentioned identification light group image is 1 includes:

[0038] The image recognition module converts the light group image into a grayscale image; binarizes the grayscale image to obtain a binary image; and determines whether the number of connected areas in the binary image is 1.

[0039] In a third aspect, an embodiment of the present application provides an LED module, including a processing unit, an address unit, a competition unit, a driving unit, and a display unit; the processing unit and the competition unit are respectively connected to a bus;

[0040] The processing unit is used to detect whether the address unit stores the address code after receiving the bus competition instruction; if not, the bus competition instruction is sent to the competition unit;

[0041] The competition unit is used to compete for the bus control right according to the current bus state after receiving the bus competition instruction, and output a high level after the competition is successful, and send a competition success instruction to the processing unit at the same time;

[0042] The processing unit is also used to control the display unit to light up through the driving unit after receiving a successful competition instruction; and, after receiving the address code, determine whether the display unit is in a lit state; if so, burn the address code into the address unit.

[0043] Furthermore, the competition unit is specifically used to execute the competition steps: detecting whether the current bus state becomes a high level within the random delay; if so, the competition fails; if not, outputting a high level after the random delay ends and sending a competition success instruction to the processing unit.

[0044] Furthermore, the competition unit is also used to increase the number of competitions by 1 when the competition result of the competition step is no, and determine whether the number of competitions reaches a preset number; if not, output a high level and execute the competition step again; if so, send a competition success instruction to the processing unit.

[0045] Furthermore, the processing unit is further used to determine whether the display unit is in a lighting state after receiving the bus arbitration instruction; if so, control the display unit to be turned off through the driving unit, and send the bus arbitration instruction to the competition unit;

[0046] The competition unit is also used to compete for bus control according to the current bus state after receiving a bus arbitration instruction.

[0047] Furthermore, the processing unit is also used to detect whether the address unit stores an address code after receiving the address reset instruction; if so, delete the address code.

[0048] In a fourth aspect, an embodiment of the present application provides an LED package, including:

[0049] Package body, internal base conductor, first external pin, second external pin, control chip and LED lamp bead;

[0050] The package body is in a cubic shape, and a circular window is provided on the first surface, and the circular window is covered with a transparent material;

[0051] The internal base conductor is arranged inside the package body, on a second surface corresponding to the first surface;

[0052] The first external pin is embedded in the third surface of the package body, and the second external pin is embedded in the fourth surface of the package body; the third surface and the fourth surface correspond to each other; the first external pin and the second external pin are connected through a metal wire and an internal base conductor;

[0053] The control chip and LED lamp beads are arranged on the internal base conductor;

[0054] The control chip, LED lamp beads and internal base conductors are connected through packaging wires.

[0055] In summary, compared with the prior art, the technical solution provided in the embodiment of the present application has at least the following beneficial effects:

[0056] The embodiment of the present application provides a parallel LED address burning system, in which the control module and the LED module communicate with each other through the bus. After receiving the bus competition instruction, the LED module competes for the bus control right, and informs the control module of the coordinates of the LED module that successfully competes through the image recognition module, thereby sending the address code of the LED module. In the above-mentioned address burning system, only one LED module obtains the permission of bus communication at a certain moment, thereby realizing one-to-one programming, avoiding the installation error problem that is easy to occur in the networking method of burning first and then mounting, and greatly improving the burning efficiency and product yield. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A structural diagram of a parallel LED address burning system provided as an exemplary embodiment of the present application.

[0058] Figure 2 A flowchart of a parallel LED address burning method provided by an exemplary embodiment of the present application.

[0059] Figure 3 A structural diagram of an LED module provided as an exemplary embodiment of the present application.

[0060] Figure 4 A three-dimensional schematic diagram of an LED package provided by an exemplary embodiment of the present application.

[0061] Figure 5 A top plan view of an LED package provided according to an exemplary embodiment of the present application.

[0062] Figure 6A schematic diagram of the packaging of a soft and hard light bar provided for an exemplary embodiment of the present application.

[0063] Figure 7 A three-dimensional schematic diagram of an LED package provided by yet another exemplary embodiment of the present application.

[0064] Figure 8 A top plan view of an LED package provided according to yet another exemplary embodiment of the present application.

[0065] Fig. 9 A schematic diagram of a package of a flexible light strip provided for an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0066] The technical solutions 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 only part of the embodiments of the present application, rather than all of the embodiments.

[0067] Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of this application.

[0068] See also Figure 1 An embodiment of the present application provides a parallel LED address burning system, including a control module, an image recognition module and at least one LED module; the control module is connected to the LED module through a bus.

[0069] Specifically, when there are multiple LED modules, each LED module is connected in parallel on a bus.

[0070] The control module is used for sending bus competition instructions to the image recognition module and the LED module; and generating an address code according to the received coordinates, and sending the address code to the LED module through the bus.

[0071] The LED module is used to detect whether the address code is burned in after receiving the bus competition instruction; if not, it competes for bus control according to the current bus state and lights up after the competition is successful; and, after receiving the address code, it determines whether it is in the lighting state, and if so, burns the address code. Only the LED module that successfully competes for bus control, that is, in the lighting state, can burn the address code, and other LED modules that have already burned the address code or failed the competition will ignore the received address code.

[0072] The image recognition module is used to respond to the bus competition instruction, obtain the light group image and identify whether the number of lit LED modules is 1; if so, calculate the coordinates of the lit LED modules and send them to the control module.

[0073] Specifically, after sending the bus competition instruction, the control module will release the communication bus control authority, that is, the control module sets its own communication port to the input state so that the LED module can output a high level.

[0074] After lighting up, the LED module releases the communication bus control authority (i.e. sets the communication port to input state).

[0075] The image recognition module is located above the LED light group. After receiving the bus competition instruction, it shoots the light group image at a certain frequency for recognition until it recognizes that only one LED light is lit in the light group image, and then stops shooting.

[0076] In the above embodiment, a parallel LED address burning system is provided, in which the control module and the LED module communicate with each other through the bus. After receiving the bus competition instruction, the LED module competes for the bus control right, and informs the control module of the coordinates of the LED module that successfully competes through the image recognition module, thereby sending the address code of the LED module. In the above address burning system, only one LED module obtains the bus communication authority at a certain moment, thereby realizing one-to-one programming, avoiding the installation error problem that is easy to occur in the networking mode of burning first and then mounting, and greatly improving the burning efficiency and product yield.

[0077] In some embodiments, the LED module is specifically used to perform a competition step when it is detected that no address code is stored: detecting whether the current bus state changes to a high level within a random delay; if so, the competition fails; if not, outputs a high level and lights up after the random delay ends. "The current bus state is a high level" means that other LED modules have successfully competed and output a high level, so the current bus state is at a high level, and at this time it is considered that the competition has failed and it is necessary to wait for the next competition.

[0078] Specifically, the present application instructs the LED module to detect the bus status within a random delay range, that is, randomly generates a delay time, for example, 4ms. If the current bus status is not a high level at the end of 4ms, that is, no other LED module attempts to obtain bus control during these 4ms, then the current LED module outputs a high level, which greatly reduces the situation of LED module competition conflict (that is, two or more LED modules output high levels at the same time).

[0079] In some embodiments, the LED module is also used to increase the number of competitions by 1 when the competition result of the competition step is no, and determine whether the number of competitions reaches a preset number; if not, output a high level and execute the competition step again; if so, light up.

[0080] It can be understood that "outputting high level" is the operation of the LED module trying to obtain bus control rights, and at the same time notifying other LED modules to stop competing, and "lighting up" means that the competition is successful and the bus control rights are obtained.

[0081] Specifically, in order to further ensure the success rate of competition and reduce competition conflicts, the present application requires that the LED module initialize the number of competitions to 0 after receiving the bus competition instruction. For each subsequent random delay, if the bus does not become a high level during the random delay period, the number of competitions is increased by 1, and a high level is output at the same time (the output is stopped when the next delay detection starts). If the number of competitions reaches the preset number after +1, that is, no other LED modules are detected attempting to obtain bus control in the random delay detection for the preset number of consecutive times, it is considered that the current LED module has successfully competed, and stops outputting a high level after entering the lighting state.

[0082] Because each LED module uses an independent random number algorithm, and each LED module has differences due to manufacturing, it is impossible for two LED modules to generate the same random delay multiple times in a row; even if two LED modules have the same first randomly generated delay after receiving a bus competition instruction, and output a high level at the same time, resulting in a competition conflict, the next competition will definitely be the LED module with a smaller random delay that obtains bus control, thereby resolving the competition conflict.

[0083] In some embodiments, the sum of the preset number of random delays is less than or equal to the preset competition time. The image recognition module is also used to wait for the preset competition time after receiving the bus competition instruction, and obtain the light group image after the preset competition time ends.

[0084] “The sum of the preset number of random delays is less than or equal to the preset contention duration” means that during the contention of multiple random delays in the above embodiment, it is necessary to ensure that the sum of each delay time is less than the preset contention duration.

[0085] Specifically, the preset competition duration may be set in advance in each LED module.

[0086] Taking the preset number of times equal to 4 times and the preset competition time of 10ms as an example, when the LED module performs the first competition, a delay time needs to be randomly generated within 10ms. Assuming that the generated delay time is 2ms, and the bus is not detected to be at a high level within 2ms, a second competition is required. In the second competition, a delay time needs to be randomly generated within the range of 10ms-2ms=8ms. Assuming that the delay time generated this time is 3ms, and the bus is still not detected to be at a high level within 3ms, the delay time for the third competition needs to be randomly generated within 8ms-3ms=5ms, and so on.

[0087] The present application sets a preset competition duration, which can not only limit the randomly generated delay time of the LED module each time, further reducing the situation where the delay time is the same and causes competition conflicts, but also enables the image recognition module to determine the number of lit LED modules by only taking the light group image once. Because of the limitation of the preset competition duration, it can ensure that after the preset competition duration ends, the competition of all LED modules ends and a competition result is generated. Therefore, there is no need for the image recognition module to take multiple light group images in real time, thereby reducing the power consumption and computing resources consumed by the image recognition module.

[0088] In some embodiments, the image recognition module is further configured to send competition failure information to the control module when the number of the lit LED modules is not equal to 1. Specifically, the competition failure information is sent only if it is recognized that the number of the lit LED modules is greater than 1, and the competition failure information is not sent if the number of the lit LED modules is equal to 0 or 1.

[0089] The control module is also used to send a bus arbitration instruction to the LED module after receiving the competition failure information.

[0090] The LED module is also used to determine whether it is in a lighting state after receiving a bus arbitration instruction; if so, it is turned off and competes for bus control again according to the current bus state.

[0091] Specifically, when the control module sends a bus arbitration instruction to the LED module, it will also send it to the image recognition module synchronously. When the image recognition module receives the bus arbitration instruction, it performs the same operation as the bus competition instruction, that is, it collects the light group image at a fixed frequency or waits for a preset competition time to identify whether the number of lit LED modules is 1; if so, it calculates the coordinates of the lit LED modules and sends them to the control module.

[0092] In some embodiments, the control module is further configured to send an address reset instruction to the LED module when a preset number of competition failure messages are received continuously; the LED module is further configured to delete the burned address code after receiving the address reset instruction.

[0093] Specifically, the control module uses the received coordinates as the reset instruction for the competition failure information, that is, after receiving the coordinates of the image recognition module, the number of recorded competition failure information is set to 0, otherwise, each time a competition failure information is received, the number of competition failures is increased by 1. When the preset number is reached, it means that multiple arbitrations still cannot result in only one LED module obtaining the bus control right, so the LED module needs to be reset, and then re-arbitrated and reprogrammed.

[0094] In some embodiments, the image recognition module is specifically used to convert the light group image into a grayscale image; binarize the grayscale image to obtain a binary image; and determine whether the number of connected areas in the binary image is 1.

[0095] The number of connected areas is the number of lighted LED modules.

[0096] In order to ensure accurate judgment of connected areas, after obtaining the binary image, morphological erosion and dilation operations can be performed on the binary image to remove individual, independent small noise points, and then the connected area marking algorithm, such as cv2.connectedComponentsWithStats, can be used to identify each connected area in the binary image.

[0097] If the number of connected areas is 1, that is, the number of lit LED modules is 1, the centroid coordinates of the connected area are further calculated; in actual production, LED modules are usually mounted evenly, so the x-coordinate of the centroid coordinates is divided by the column spacing, and the result is rounded down to obtain the column coordinates of the LED module; the y-coordinate of the centroid is divided by the row spacing, and the result is rounded down to obtain the row coordinates of the LED module, thereby obtaining the coordinates of the LED module.

[0098] In the control module, after obtaining the coordinates of the LED modules, the order of the LED modules in the lamp group is obtained according to the row and column coordinates, and the order is sent to each LED module as an address code, but only the LED modules that are lit will have the address code burned in.

[0099] See also Figure 2 Another embodiment of the present application provides a parallel LED address burning method, comprising:

[0100] Step S11, the control module sends a bus contention instruction to the image recognition module and the LED module.

[0101] Specifically, after sending the bus competition instruction, the control module will release the communication bus control authority, that is, the control module sets its own communication port to the input state so that the LED module can output.

[0102] Step S12, after receiving the bus competition instruction, the LED module detects whether the address code is burned in; if not, it competes for the bus control right according to the current bus state, and lights up after the competition is successful.

[0103] Step S13, after receiving the bus competition instruction, the image recognition module obtains the light group image and identifies whether the number of the lit LED modules is 1; if so, the coordinates of the lit LED modules are calculated and sent to the control module.

[0104] Specifically, the image recognition module is arranged above the LED light group. After receiving the bus competition instruction, the image of the light group is photographed at a certain frequency for recognition, and the photographing is stopped only when it is recognized that only one LED light is lit in the light group image.

[0105] Step S14: the control module generates an address code according to the coordinates and sends it to the LED module through the bus.

[0106] Step S15, the LED module receives the address code and determines whether it is in a lighting state, and if so, burns the address code.

[0107] Only the LED modules that have successfully competed for bus control, that is, are in the lit state, can have the address code burned in. Other LED modules that have already been burned with address codes or have failed in the competition will ignore the received address code.

[0108] In the above embodiment, a parallel LED address burning method is provided. The control module sends a bus competition instruction. After receiving the bus competition instruction, the LED module competes for bus control. The image recognition module informs the control module of the coordinates of the LED module that successfully competes by recognizing the light group image, so that the control module sends the address code of the LED module. The above address burning method realizes that only one LED module obtains the bus communication authority at a certain time, avoids the installation error problem that is easy to occur in the networking method of burning first and then mounting, and greatly improves the burning efficiency and product yield.

[0109] In some embodiments, the LED module competes for bus control according to the current bus state, and lights up and outputs a high level after successfully competing, specifically including:

[0110] Step S121, the LED module executes a competition step: detecting whether the current bus state changes to a high level within a random delay.

[0111] Step S122, if yes, the competition fails; if no, a high level is output and the light is on after the random delay ends.

[0112] "The current bus state is high level" means that other LED modules have successfully competed and output high level, so the current bus state is at a high level. At this time, it is considered that the competition has failed and it is necessary to wait for the next competition.

[0113] Specifically, the present application instructs the LED module to detect the bus status within a random delay range, that is, randomly generates a delay time, for example, 4ms. If the current bus status is not a high level at the end of 4ms, that is, no other LED module attempts to obtain bus control during these 4ms, then the current LED module outputs a high level, which greatly reduces the situation of LED module competition conflict (that is, two or more LED modules output high levels at the same time).

[0114] In some embodiments, the method further comprises:

[0115] When the competition result of the competition step of the LED module is negative, the competition times are increased by 1 to determine whether the competition times reach the preset times; if not, a high level is output and the competition step is executed again; if yes, the LED module lights up.

[0116] It can be understood that "outputting high level" is the operation of the LED module trying to obtain bus control rights, and at the same time notifying other LED modules to stop competing, and "lighting up" means that the competition is successful and the bus control rights are obtained.

[0117] Specifically, in order to further ensure the success rate of competition and reduce competition conflicts, the present application requires that the LED module initialize the number of competitions to 0 when it receives a bus competition instruction and detects that no address code is stored. Each subsequent execution of the competition step, if the bus does not become a high level within the random delay period, the number of competitions is increased by 1, and a high level is output at the same time (the high level is stopped when returning to the competition step to start the next delay detection). If the number of competitions reaches the preset number after +1, that is, no other LED modules are detected attempting to obtain bus control in the random delay detection for the preset number of consecutive times, it is considered that the current LED module has successfully competed, and stops outputting a high level after entering the lighting state.

[0118] Because each LED module uses an independent random number algorithm, and each LED module has differences due to manufacturing, it is impossible for two LED modules to generate the same random delay multiple times in a row; even if two LED modules have the same first randomly generated delay after receiving a bus competition instruction, and output a high level at the same time, resulting in a competition conflict, the next competition will definitely be the LED module with a smaller random delay that obtains bus control, thereby resolving the competition conflict.

[0119] In some embodiments, the sum of a preset number of random delays is less than or equal to a preset competition duration; the method also includes: after receiving the bus competition instruction, the image recognition module waits for a preset competition duration, and obtains the light group image after the preset competition duration ends.

[0120] “The sum of the preset number of random delays is less than or equal to the preset competition duration” means that when there are multiple random delays, the sum of each delay time must be less than the preset competition duration.

[0121] Specifically, the preset competition duration may be set in advance in each LED module.

[0122] Taking the preset number of times equal to 4 times and the preset competition time of 10ms as an example, when the LED module performs the first competition, a delay time needs to be randomly generated within 10ms. Assuming that the generated delay time is 2ms, and the bus is not detected to be at a high level within 2ms, a second competition is required. In the second competition, a delay time needs to be randomly generated within the range of 10ms-2ms=8ms. Assuming that the delay time generated this time is 3ms, and the bus is still not detected to be at a high level within 3ms, the delay time for the third competition needs to be randomly generated within 8ms-3ms=5ms, and so on.

[0123] The above-mentioned embodiment sets a preset competition time length, which not only limits the delay time randomly generated by the LED module each time, further reducing the situation where the delay time is the same and causes competition conflicts, but also enables the image recognition module to determine the number of lit LED modules by only taking the light group image once. Because of the limit on the preset competition time length, it can ensure that after the preset competition time length ends, all LED modules will inevitably end the competition and generate a competition result. Therefore, there is no need for the image recognition module to take multiple light group images in real time, thereby reducing the power consumption and computing resources consumed by the image recognition module.

[0124] In some embodiments, the method further comprises:

[0125] Step S16, when the image recognition module recognizes that the number of lit LED modules in the light group image is not equal to 1, the competition failure information is sent to the control module. Specifically, if the number of lit LED modules is greater than 1, the competition failure information is sent, and if the number of lit LED modules is equal to 0 or 1, the competition failure information is not sent.

[0126] Step S17, after receiving the competition failure information, the control module sends a bus arbitration instruction to the LED module.

[0127] Step S18: After receiving the bus arbitration instruction, the LED module determines whether it is in a lighting state.

[0128] Step S19: If yes, turn off the signal and compete for bus control again according to the current bus status.

[0129] Specifically, when the control module sends a bus arbitration instruction to the LED module, it will also send it to the image recognition module synchronously. When the image recognition module receives the bus arbitration instruction, it performs the same operation as the bus competition instruction, that is, it collects the light group image at a fixed frequency or waits for a preset competition time to identify whether the number of lit LED modules is 1; if so, it calculates the coordinates of the lit LED modules and sends them to the control module.

[0130] In some embodiments, the method further comprises:

[0131] Step S21 , when receiving the contention failure information, the control module counts whether the number of contention failure information received continuously reaches a preset number, and if so, sends an address reset instruction to the LED module.

[0132] Step S22: After receiving the address reset instruction, the LED module deletes the programmed address code.

[0133] Specifically, the control module uses the received coordinates as the reset instruction for the competition failure information, that is, after receiving the coordinates of the image recognition module, the recorded number of consecutively received competition failure information is set to 0, otherwise, each time a competition failure information is received, the number of competition failures is increased by 1. When the preset number is reached, it means that multiple arbitrations still cannot result in only one LED module obtaining the bus control right, so the LED module needs to be reset, and then re-arbitrated and reprogrammed.

[0134] In some embodiments, the step of identifying whether the number of the LED modules lit in the light group image is 1 includes:

[0135] The image recognition module converts the light group image into a grayscale image; binarizes the grayscale image to obtain a binary image; and determines whether the number of connected areas in the binary image is 1.

[0136] The number of connected areas is the number of lighted LED modules.

[0137] In order to ensure accurate judgment of connected areas, after obtaining the binary image, morphological erosion and dilation operations can be performed on the binary image to remove individual, independent small noise points, and then the connected area marking algorithm, such as cv2.connectedComponentsWithStats, can be used to identify each connected area in the binary image.

[0138] If the number of connected areas is 1, that is, the number of lit LED modules is 1, the centroid coordinates of the connected area are further calculated; in actual production, LED modules are usually mounted evenly, so the x-coordinate of the centroid coordinates is divided by the column spacing, and the result is rounded down to obtain the column coordinates of the LED module; the y-coordinate of the centroid is divided by the row spacing, and the result is rounded down to obtain the row coordinates of the LED module, thereby obtaining the coordinates of the LED module.

[0139] In the control module, after obtaining the coordinates of the LED modules, the order of the LED modules in the lamp group is obtained according to the row and column coordinates, and the order is sent to each LED module as an address code, but only the LED modules that are lit will have the address code burned in.

[0140] In some embodiments, the method further includes: after sending the address code, the control module deletes the data corresponding to the address code in the preset programming library; if the preset programming library is empty after the deletion, stopping sending the bus competition instruction.

[0141] The preset programming library stores the address code of the entire LED light group. For example, if the LED light group has 48×48 LED modules arranged and mounted, the data in the preset programming library is 1-2304.

[0142] Specifically, since the address burning method of the present application is not programmed in sequence such as ascending or descending order, it is impossible to determine whether the burning is completed based on the value of the address code. Therefore, the present application sets a preset programming library, and deletes the corresponding data in the preset programming library each time an address code is burned, so as to determine when the burning is completed and end the sending of the instruction.

[0143] See also Figure 3 Another embodiment of the present application provides an LED module, including a processing unit, an address unit, a competition unit, a driving unit and a display unit; the processing unit and the competition unit are respectively connected to a bus.

[0144] The processing unit is used for detecting whether the address unit stores the address code after receiving the bus contention instruction; if not, the bus contention instruction is sent to the contention unit.

[0145] The competition unit is used to compete for bus control according to the current bus state after receiving the bus competition instruction, and output a high level after the competition is successful, and send a competition success instruction to the processing unit at the same time.

[0146] The processing unit is also used to control the display unit to light up through the driving unit after receiving a successful competition instruction; and, after receiving the address code, determine whether the display unit is in a lit state; if so, burn the address code into the address unit.

[0147] The processing unit is also used to control the competition unit to release the communication bus control authority after lighting the display unit, that is, stop outputting a high level and set the communication port of the processing unit to an input state.

[0148] Among them, the display unit is an LED lamp bead, including three colors of lamp beads: red, green and blue.

[0149] In some embodiments, the competition unit is specifically used to perform the competition step: detect whether the current bus state changes to a high level within a random delay; if so, the competition fails; if not, after the random delay ends, a high level is output and a competition success instruction is sent to the processing unit. Among them, "the current bus state is a high level" means that other LED modules have successfully competed and output a high level, so the current bus state is at a high level, and it is considered that the competition has failed, and it is necessary to wait for the next competition.

[0150] Specifically, the present application instructs the competition unit of the LED module to detect the bus state within a random delay range, that is, randomly generates a delay time, for example, 4ms. If the current bus state is not a high level at the end of 4ms, that is, no other LED module attempts to obtain bus control during these 4ms, then the competition unit of the current LED module outputs a high level, which greatly reduces the situation of LED module competition conflict (that is, two or more LED modules output high levels at the same time).

[0151] Among them, the device for randomly generating the delay time inside the competition unit can be a timer, a random number generator, etc.

[0152] In some embodiments, the competition unit is also used to increase the number of competitions by 1 when the competition result of the competition step is no, and determine whether the number of competitions reaches the preset number; if not, output a high level and execute the competition step again; if yes, send a competition success instruction to the processing unit. Specifically, after receiving the bus competition instruction, the competition unit initializes the number of competitions to 0, and then randomly delays once. If the bus does not become a high level during the random delay period, the number of competitions is increased by 1, and a high level is output at the same time (stop outputting when the delay detection starts next time). If the number of competitions reaches the preset number after +1, that is, the bus is not detected to become a high level in the random delay detection for consecutive preset times, then the competition is considered to be successful and the lighting state is entered.

[0153] In some embodiments, the processing unit is further used to determine whether the display unit is in a lit state after receiving the bus arbitration instruction; if so, control the display unit to be turned off through the driving unit, and send the bus arbitration instruction to the competition unit.

[0154] The competition unit is also used to compete for bus control according to the current bus state after receiving the bus arbitration instruction. The bus arbitration instruction means that more than one LED is currently lit and a new competition is required.

[0155] In some embodiments, the processing unit is further configured to detect whether the address unit has an address code after receiving an address reset instruction, and delete the address code if so. Specifically, if the processing unit receives a bus competition instruction again after deleting the address code, it needs to send it to the competition unit again to compete for bus control again for address burning.

[0156] Another embodiment of the present application provides an LED package 10, which may specifically include:

[0157] Package body 11, internal base conductor 13, first external pin 14, second external pin, control chip 16 and LED lamp bead 17.

[0158] The package body 11 is in a cubic shape, and a circular window 12 is provided on a first surface thereof. The circular window 12 is covered with a transparent material.

[0159] The internal base conductor 13 is disposed inside the package body 11 , on a second surface corresponding to the first surface.

[0160] The first external pin 14 is embedded in the third surface of the package body, and the second external pin is embedded in the fourth surface of the package body; the third surface and the fourth surface correspond to each other; the first external pin 14 and the second external pin are connected through a metal wire 15 and an internal base conductor 13.

[0161] The control chip 16 and the LED lamp bead 17 are arranged on the internal base conductor 13. The processing unit, the address unit, the competition unit and the driving unit in the above-mentioned embodiment are all arranged in the control chip 16, and the display unit is the LED lamp bead 17.

[0162] The control chip 16 , the LED lamp bead 17 and the internal base conductor 13 are connected through packaging wires 18 .

[0163] See also Figure 4 In one embodiment, the first external pin of the present application is a GND pin and a DIN pin, and the second external pin is an NC pin and a VDD pin; the LED light group composed of the LED modules under this pin structure is a soft and hard light strip, see Figure 5 and Figure 6 This welding structure needs to design the wiring through the PCB board 20, and the wick is packaged as a whole and then welded in sequence. This application can be expanded to a dot matrix LED curtain application; wherein the GND wiring 21, the DIN wiring 22, the VDD wiring 23 and the connection 24 between the three wirings and the external pins of the package are all arranged on the PCB board 20.

[0164] See also Figure 7In one embodiment, the first external pin of the present application is a GND pin, a DIN pin and a VDD pin, and the second external pin is the same as the first external pin; the LED lamp group composed of the LED module under this pin structure is a soft light strip, which is generally composed of three sheathed metal wires, see Figure 8 and Fig. 9 , wherein the GND wiring 31 , the DIN wiring 32 , the VDD wiring 33 and the external pins of the package are connected by welding.

[0165] The integrated packaging structure provided in the above embodiment does not require the output pin DOUT, thus avoiding the need to cut the LED package when physically connecting the data lines in the application (DIN and DOUT need to be disconnected). In the actual production line operation, incomplete cutting may easily lead to short circuit problems.

[0166] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0167] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A parallel LED address burning system, characterized in that: It includes a control module, an image recognition module and at least one LED module; the control module is connected to the LED module via a bus; The control module is used to send bus competition instructions to the image recognition module and the LED module; and generating an address code according to the received coordinates and sending it to the LED module via the bus; The LED module is used to detect whether the address code is burned after receiving the bus competition instruction; If not, compete for bus control according to the current bus state, and light up after the competition is successful; and after receiving the address code, determine whether it is in the lighting state, and if so, burn the address code; the LED module is specifically used to perform the competition step when it is detected that there is no address code: detect whether the current bus state becomes a high level within a random delay; if so, the competition fails; if not, output a high level and light up after the random delay ends; The image recognition module is used to respond to the bus competition instruction, obtain the light group image and identify whether the number of lit LED modules is 1; if so, calculate the coordinates of the lit LED modules and send them to the control module.

2. The parallel LED address burning system according to claim 1, characterized in that: The LED module is also used to increase the number of competitions by 1 when the competition result of the competition step is no, and determine whether the number of competitions reaches a preset number; if not, output a high level and execute the competition step again; if yes, light up.

3. The parallel LED address burning system according to claim 2, characterized in that: The sum of the preset number of random delays is less than or equal to the preset contention duration; The image recognition module is further configured to wait for the preset competition time after receiving the bus competition instruction, and acquire the light group image after the preset competition time ends.

4. The parallel LED address burning system according to claim 1, characterized in that: The image recognition module is also used to send competition failure information to the control module when the number of lit LED modules is not equal to 1; The control module is also used to send a bus arbitration instruction to the LED module after receiving the competition failure information; The LED module is also used to determine whether it is in a lighting state after receiving the bus arbitration instruction; if so, it is turned off and competes for bus control again according to the current bus state.

5. The parallel LED address burning system according to claim 4, characterized in that: The control module is also used to send an address reset instruction to the LED module when a preset number of competition failure information is received continuously; The LED module is also used to delete the burned address code after receiving the address reset instruction.

6. The parallel LED address burning system according to claim 1, characterized in that: The image recognition module is specifically used to convert the light group image into a grayscale image; binarize the grayscale image to obtain a binary image; and determine whether the number of connected areas in the binary image is 1.

7. A method for burning addresses of parallel LEDs, characterized in that: include: The control module sends a bus competition instruction to the image recognition module and the LED module; After receiving the bus competition instruction, the LED module detects whether the address code is burned in; If not, it will compete for bus control according to the current bus status and light up after successful competition; Specifically, the LED module performs a competition step: detecting whether the current bus state changes to a high level within a random delay; if so, the competition fails; if not, outputting a high level and lighting up after the random delay ends; After receiving the bus competition instruction, the image recognition module acquires the light group image and identifies whether the number of the lit LED modules is 1; if so, the coordinates of the lit LED modules are calculated and sent to the control module; The control module generates an address code according to the coordinates and sends it to the LED module via a bus; The LED module receives the address code and determines whether it is in a lighting state, and if so, burns the address code.

8. The method for programming the address of parallel LEDs according to claim 7, characterized in that: Also includes: When the competition result of the competition step is negative, the LED module increases the competition times by 1 to determine whether the competition times reaches a preset number; If not, output a high level and execute the competition step again; if yes, light up.

9. The method for programming the address of parallel LEDs according to claim 8, characterized in that: The sum of the preset number of random delays is less than or equal to the preset competition time. The method also includes: after receiving the bus competition instruction, the image recognition module waits for the preset competition time, and obtains the light group image after the preset competition time ends.

10. The method for programming the address of parallel LEDs according to claim 7, characterized in that: Also includes: When the image recognition module recognizes that the number of the lighted LED modules in the light group image is not equal to 1, the image recognition module sends competition failure information to the control module; After receiving the competition failure information, the control module sends a bus arbitration instruction to the LED module; After receiving the bus arbitration instruction, the LED module determines whether it is in a lighting state; If so, it turns off and competes for bus control again according to the current bus status.

11. The method for programming the address of parallel LEDs according to claim 10, characterized in that: Also includes: When receiving the competition failure information, the control module counts whether the number of the competition failure information received continuously reaches a preset number, and if so, sends an address reset instruction to the LED module; After receiving the address reset instruction, the LED module deletes the burned address code.

12. The method for programming addresses of parallel LEDs according to claim 7, characterized in that: The identifying whether the number of the lighted LED modules in the light group image is 1 includes: The image recognition module converts the light group image into a grayscale image; binarizes the grayscale image to obtain a binary image; and determines whether the number of connected areas in the binary image is 1.

13. An LED module, characterized in that: It includes a processing unit, an address unit, a competition unit, a driving unit and a display unit; the processing unit and the competition unit are respectively connected to a bus; The processing unit is used to detect whether the address code is stored in the address unit after receiving the bus competition instruction; If not, sending the bus contention instruction to the contention unit; The competition unit is used to compete for bus control according to the current bus state after receiving the bus competition instruction, and output a high level after the competition is successful, and send the competition success instruction to the processing unit; the competition unit is specifically used to perform the competition step: detect whether the current bus state becomes a high level within the random delay; if so, the competition fails; if not, output a high level after the random delay ends and send the competition success instruction to the processing unit; The processing unit is also used to control the display unit to light up through the driving unit after receiving the competition success instruction; and, after receiving the address code, determine whether the display unit is in a lit state; if so, burn the address code into the address unit.

14. The LED module according to claim 13, characterized in that: The competition unit is also used to increase the number of competitions by 1 when the competition result of the competition step is no, and determine whether the number of competitions reaches a preset number; if not, output a high level and execute the competition step again; if so, send the competition success instruction to the processing unit.

15. The LED module according to claim 13, characterized in that: The processing unit is also used to determine whether the display unit is in a lighting state after receiving the bus arbitration instruction; if so, control the display unit to be turned off through the driving unit, and send the bus arbitration instruction to the competition unit; The competition unit is further configured to compete for bus control rights according to a current bus state after receiving the bus arbitration instruction.

16. The LED module according to claim 13, characterized in that: The processing unit is also used to detect whether the address unit stores an address code after receiving the address reset instruction; if so, delete the address code.

Citation Information

Patent Citations

  • Light-emitting diode (LED) constant-current drive control system

    CN105228316A

  • LED lamp string address detection system and method

    CN106385728A