A method and apparatus for assigning addresses to light points of an LED light string
By using the controller and photosensor to collaboratively read and rewrite the LED string light point addresses, the problems caused by address line resource occupation and load current detection are solved, achieving efficient light point address allocation and improving system reliability and production efficiency.
Patent Information
- Application Number
- CN202211411030.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-11
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2042-11-11
AI Technical Summary
Existing LED light string address allocation methods require address lines to occupy a lot of wiring resources, resulting in poor transparency of the transparent screen and increased packaging costs; while using load current detection methods results in slow allocation speed, large standby current, low power efficiency, reduced system reliability and high heat dissipation costs.
The controller controls the photosensitive sensor to read the initial address of a certain LED in the LED string. Based on this address, the initial addresses of other LEDs are determined, and each LED is rewritten to achieve the allocation of the new address. After verification, the address allocation is completed.
This avoids unnecessary address line usage and high standby current issues, shortens address allocation time, improves production efficiency, and reduces wiring resources and heat dissipation costs.
Smart Images

Figure CN115665925B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of LED light string technology, and more particularly to a method and apparatus for allocating the light points of an LED light string. Background Technology
[0002] When assigning addresses to each LED in an LED string, the controller must first know the position of the LED in the string. Then, it writes the corresponding position code into each LED as its address according to the position. For example, the first LED is written with position code 0x01, and the second LED is written with position code 0x02.
[0003] In existing technologies, address allocation for each LED is typically achieved by using address lines and detecting load current to determine the LED's arrangement. However, using address lines to determine the LED's arrangement requires significant wiring resources. In transparent screen applications, this can lead to poor screen transparency due to trace obstruction. In LED LED packaging, the additional address pin increases packaging costs. Furthermore, using load current detection to determine the LED's arrangement results in slow allocation speeds because address allocation can only be performed serially. Additionally, the high standby current of the LEDs leads to low power efficiency, severe LED overheating, reduced system reliability, and increased heat dissipation costs.
[0004] Therefore, existing technologies still need to be improved and developed. Summary of the Invention
[0005] In view of the shortcomings of the prior art, the purpose of this invention is to provide a method and apparatus for assigning lamp point addresses to LED light strings, so as to solve the problems of the existing methods for assigning lamp point addresses to LED light strings, which require address lines or have slow lamp point address assignment speed and require large standby current.
[0006] The technical solution of the present invention is as follows:
[0007] A method for assigning LED light point addresses to LED strings, comprising:
[0008] The controller reads the initial address of a specific LED in the LED string through a photosensor.
[0009] The controller obtains the initial address of other LEDs in the LED string based on the initial address of a certain LED;
[0010] The controller rewrites the initial address of each light point to obtain the new addresses of all light points.
[0011] The further arrangement of the present application, the controller rewrites the initial lamp point address of each lamp point to obtain the new lamp point address of all lamp points, and the step further comprises:
[0012] The new lamp point address of the lamp point is verified, if the verification is successful, the address rewriting of the lamp point is successful, otherwise, the initial lamp point address of the previous lamp point of the lamp point and the initial lamp point address of the lamp point rewriting failure are read;
[0013] The initial lamp point address of the replaced lamp point is read;
[0014] The initial lamp point address of the replaced lamp point and the lamp point after the replaced lamp point is rewritten.
[0015] The further arrangement of the present application, the step of verifying the new lamp point address of the lamp point, if the verification is successful, the address rewriting of the lamp point is successful, otherwise, the initial lamp point address of the previous lamp point of the lamp point and the initial lamp point address of the lamp point rewriting failure are read;
[0016] The LED lamp string is controlled to display the lamp point after rewriting the lamp point address in the display sequence, if the LED lamp string is displayed according to the preset pattern, the lamp point address rewriting of the lamp point is successful, otherwise, the rewriting fails.
[0017] The further arrangement of the present application, the step of reading the initial lamp point address of a certain lamp point in the LED lamp string by the photosensor comprises:
[0018] The controller sends instruction information to each lamp point of the LED lamp string to control the lamp point to light or extinguish;
[0019] The controller controls the photosensor to detect the light-off state information of the lamp point, and feeds back the light-off state information to the controller;
[0020] The controller obtains the initial lamp point address of the lamp point according to the light-off state information and the instruction information.
[0021] The further arrangement of the present application, the step of sending the instruction information to each lamp point of the LED lamp string to control the lamp point to light or extinguish comprises:
[0022] The controller sends an address matching instruction to the lamp point of the LED lamp string, if the initial lamp point address of the lamp point corresponds to the matching address in the address matching instruction, the lamp point is lighted, otherwise, it is extinguished.
[0023] The further arrangement of the present application, the step of sending the instruction information to each lamp point of the LED lamp string to control the lamp point to light or extinguish comprises:
[0024] The controller sends an address reading instruction to the lamp points of the LED lamp string, so that the lamp points are controlled to be lighted or extinguished according to the value of each bit of the initial lamp point address; if a bit of the initial lamp point address is 1, the lamp point is lighted, otherwise, the lamp point is extinguished.
[0025] Further, the controller reads the initial lamp point address of a certain lamp point in the LED lamp string through the photosensor before the step of reading the initial lamp point address of a certain lamp point in the LED lamp string.
[0026] The initial lamp point addresses are written in the lamp points of the LED lamp string in advance.
[0027] Based on the same inventive concept, the application further provides an LED lamp point address allocation device for the LED lamp string, which is connected with the LED lamp string and comprises a controller and at least one photosensor.
[0028] The controller is connected with the LED lamp string and the photosensor, and is used for controlling the photosensor to read the initial lamp point address of a certain lamp point in the LED lamp string, obtaining the initial lamp point addresses of other lamp points in the LED lamp string according to the initial lamp point address of the certain lamp point, and rewriting the initial lamp point addresses of the lamp points to obtain new lamp point addresses of all the lamp points.
[0029] The photosensor is connected with the controller and is oppositely arranged with the lamp points of the LED lamp string, and is used for reading the initial lamp point addresses of the lamp points of the LED lamp string under the control of the controller.
[0030] Further, the photosensor is a photosensitive device, which is used for converting the received light signal into an electric signal and sending the electric signal to the controller.
[0031] Further, the photosensor is provided with a plurality of photosensors, each of which is oppositely arranged with a lamp point.
[0032] The LED lamp string lamp point address allocation method and device provided by the application, the method comprises the following steps: a controller reads the initial lamp point address of a certain lamp point in an LED lamp string through a photosensor; the controller obtains the initial lamp point addresses of other lamp points in the LED lamp string according to the initial lamp point address of the certain lamp point; and the controller rewrites the initial lamp point addresses of each lamp point to obtain the new lamp point addresses of all lamp points. The controller controls the photosensor to read the initial lamp point address of a certain lamp point in an LED lamp string, and obtains the initial lamp point addresses of other lamp points in the LED lamp string according to the initial lamp point address of the certain lamp point, and then rewrites the initial lamp point addresses of each lamp point, so that the address allocation of all lamp points can be achieved and the new lamp point addresses of all lamp points can be obtained. Compared with the prior art, the application does not need to occupy more wiring resources, and will not reduce the system reliability and increase the heat dissipation cost due to the large standby current, saves the time for reading the addresses of each lamp point, and shortens the time for allocating new addresses to the lamp points. BRIEF DESCRIPTION OF DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only show some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained according to the structures shown in the drawings without creative labor.
[0034] Figure 1 is a flow diagram of the LED lamp string lamp point address allocation method in the application.
[0035] Figure 2 is a flow diagram of the LED lamp string lamp point address allocation method in a specific application embodiment of the application.
[0036] Figure 3 is a circuit schematic diagram of the LED lamp string lamp point address allocation device in the application. DETAILED DESCRIPTION
[0037] The application provides an LED lamp string lamp point address allocation method and device, which can be applied to the fields of LED decorative lighting, LED screen display, LED backlight, LED lighting and the like. In order to make the object, technical solutions and effects of the application more clear and explicit, the application will be further described in detail below with reference to the drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
[0038] In the embodiments and claims, unless otherwise stated, the article "a", "an" and "the" are used to include one or more than one, and the term "or" is used in the inclusive sense (and not the exclusive sense) unless otherwise stated. The use of the term "first", "second", etc. does not imply a relative importance, but is used only to distinguish one element from another. Thus, the features labeled "first", "second", etc. can include one or more of such features.
[0039] It should be further understood that the use of the term "include", "includes" or "including", as well as "comprise", "comprises" or "comprising" in the specification indicates that the mentioned feature, integer, step, operation, element, or a combination thereof is present, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, combinations thereof, or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements can be present. In addition, the use of "connection" or "coupling" herein also includes wireless connection or wireless coupling. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0040] Those skilled in the art will understand that the terms used herein are not intended to limit the present application to a given aspect, but rather the meaning of the terms will be understood by persons skilled in the relevant art using the teachings disclosed herein, along with knowledge of the field. It is further understood that the use of relational terms such as "first", "second", and the like, if any, are used solely to distinguish one from another entity without necessarily implying a relative importance or a chronology.
[0041] In addition, the technical solutions among various embodiments can be combined with each other, but it must be based on the fact that a person skilled in the art can realize it, and when the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, nor is it within the scope of protection required by the present application.
[0042] The inventor found that when assigning addresses to each light point in the LED light string, the arrangement position of the light point in the LED light string needs to be known first, and then the corresponding position code is written into each light point as a new address of the light point according to the arrangement position. The arrangement position of the light point is determined in the prior art by the following two methods: 1. The arrangement position of the light point is determined by using an address line, and then the address of the light point is assigned. The specific method is that each light point has an input end and an output end of an address line. In the initial state, the address line output end of all light points is high, and only the input end of the light point 1 is low, representing that it is the first light point. The input and output ends of other light points are high. At this time, the light point 1 enters the address receiving state. For example, the controller outputs an address rewriting instruction and a new address value 0x01 through a data line. After the light point 1 receives the instruction and the new address, the address of the light point 1 is rewritten to 0x01, and the address line output end is set to low, indicating that the address updating is completed, and the light point 1 is not in the state of receiving a new address change. At this time, the address line input end of the light point 2 changes from high to low to enter the address receiving state, receives the second address value output by the controller, rewrites the address of the light point 2, and sets the address line output end to low, indicating that the address updating is completed, and the light point 2 is not in the state of receiving a new address change. Similarly, each light point updates its own address to the new address value output by the controller. For example, the DMX512 bus LED system adopts this scheme. 2. The arrangement position of the light point is determined by the controller detecting the load current. This method requires that each light point is not lit when powered on and has a large standby current, such as 10 mA or more, so that the controller can detect the load current more reliably. The specific method is that in the initial state, the controller does not access any light point. When the light point 1 is added, the controller detects that the load current increases by 10 mA, and judges that the first light point is accessed. The controller outputs an address rewriting instruction and a new address value 0x01 from the data line. After the light point 1 receives the instruction and the new address, the address of the light point 1 is rewritten to 0x01. After the address rewriting is successful, the light point is lit, and the user is notified that the second light point can be added. The controller detects that the load current increases by 10 mA, and judges that the second light point is accessed. The controller outputs an address rewriting instruction and a new address value 0x02 from the data line. After the light point 2 receives the instruction and the new address, the address of the light point 2 is rewritten to 0x02. After the address rewriting is successful, the light point is lit, and the user is notified that the third light point can be added. In this way, the addresses of all light points in the LED light string can be assigned.
[0043] However, the use of address lines to determine the arrangement position of the lamp points has the following disadvantages: first, the address lines occupy too many wiring resources; second, in the application of the transparent screen, the shielding of the wiring leads to poor transparency of the screen; and third, in the packaging of the LED lamp points, the increase of one address pin leads to the increase of the packaging cost; and the use of the controller to detect the load current to determine the arrangement position of the lamp points solves the above-mentioned disadvantages of using the address lines to determine the arrangement position of the lamp points, but introduces new problems: first, the address allocation can only be performed in series, and the allocation speed is slow; and second, the standby current of the lamp points is large, which leads to low power efficiency, serious heating of the lamp points, reduction of the system reliability, and increase of the heat dissipation cost.
[0044] In view of the above technical problems, the present application provides a lamp point address allocation method and device for an LED lamp string, which comprises the following steps: a controller controls a photosensor to read the initial lamp point address of a certain lamp point in the LED lamp string, and obtains the initial lamp point addresses of other lamp points in the LED lamp string according to the initial lamp point address of the certain lamp point; and then the initial lamp point addresses of all the lamp points are rewritten to obtain the new lamp point addresses of all the lamp points.
[0045] Please refer to Figures 1 to 2 , the present application provides a preferred embodiment of a lamp point address allocation method for an LED lamp string.
[0046] As shown in Figure 1 , the present application provides a lamp point address allocation method for an LED lamp string, which comprises the following steps:
[0047] S100, a controller reads the initial lamp point address of a certain lamp point in the LED lamp string through a photosensor;
[0048] S200, the controller obtains the initial lamp point addresses of other lamp points in the LED lamp string according to the initial lamp point address of the certain lamp point;
[0049] S300, the controller rewrites the initial lamp point addresses of all the lamp points to obtain the new lamp point addresses of all the lamp points.
[0050] Specifically, when allocating addresses to the lamp points in the LED lamp string, the controller needs to know the arrangement position of the lamp points in the LED lamp string first, and then writes the corresponding position code into each lamp point as the lamp point address according to the arrangement position, for example, the lamp point arranged in the first position is written with the position code 0x01, and the lamp point arranged in the second position is written with the position code 0x02.
[0051] In the implementation process, the controller controls the photosensor to capture the on-off state information of one of the light points in the LED light string, reads the initial light point address of the light point according to the on-off state information, obtains the initial light point addresses of other light points in the LED light string according to the initial light point address of the light point, and then writes the new light point addresses into the light points in sequence after obtaining the initial light point addresses of all the light points in the LED light string, so as to obtain the new light point addresses of the light points in the LED light string, that is, complete the light point address allocation, and the controller can communicate data with the light points through the new light point addresses.
[0052] It can be seen that, in the above technical solution, the controller allocates the addresses of the light points in the LED light string through the photosensor, which does not need to occupy more wiring resources, does not reduce the system reliability and increase the heat dissipation cost due to large standby current, saves the time for reading the addresses of each light point, shortens the time for allocating new addresses to the light points, and thus improves the production efficiency.
[0053] In a further embodiment of the embodiment, the step S100 further includes the step of:
[0054] S101, write the continuous initial light point addresses in each light point of the LED light string in advance.
[0055] Specifically, before the light points are assembled into the LED light string, the light points are written with the initial addresses (i.e., the initial light point addresses) in sequence and are packaged in sequence, and are removed from the package in sequence during the production of the LED light string, so that the initial addresses of the packaged light points are continuous. The so-called initial address continuity refers to that the difference between the initial addresses of two adjacent light points is a fixed value, for example, the difference between the initial addresses of two adjacent light points is 1, that is, the initial address value of the next light point is 1 more than that of the previous light point. Taking a package with 4000 light points as an example, the first light point in the package is written with the initial address 0, the second light point is written with the initial address 1, and so on, until the 4000th light point is written with the initial address 3999. Generally, the first light point here refers to the light point that is taken out of the package first during the production and processing.
[0056] For example, a LED lamp string with 200 lamp points needs to be processed, the first lamp point of the first LED lamp string uses the first lamp point in the package, and so on, a package of lamp points can produce 20 LED lamp strings, and the initial addresses of the lamp points of the 20 LED lamp strings are 0-199, 200-399,..., 3800-3999 respectively. Each of the LED lamp strings needs to be equipped with a controller, and in order to ensure the same of the controllers, the addresses of the lamp points in each LED lamp string should be 0-199.
[0057] The controller reads the initial address of the first lamp point of each LED lamp string by using the photosensor, for example, the initial address of the first lamp point of the first LED lamp string is 0, the initial address of the first lamp point of the second LED lamp string is 200, and so on, the initial address of the first lamp point of the last LED lamp string is 3800.
[0058] Because the initial addresses of the lamp points in the LED lamp string are continuous, the controller can predict the initial addresses of all the lamp points in the LED lamp string according to the read initial address of the first lamp point, and the new address of each lamp point in the LED lamp string can be obtained by subtracting the initial address of the first lamp point from the initial address of each lamp point. For example, the initial addresses of all the lamp points in the LED lamp string with the initial address of the first lamp point being 0 remain unchanged after being subtracted by 0; the initial addresses of all the lamp points in the LED lamp string with the initial address of the first lamp point being 200 become 0-199 after being subtracted by 200; and so on, the initial addresses of all the lamp points in the LED lamp string with the initial address of the first lamp point being 3800 become 0-199 after being subtracted by 3800. Then the controller writes the new address of the lamp point into the corresponding lamp point through an instruction.
[0059] It should be noted that, in addition to predicting the initial addresses of all the lamp points in the LED lamp string by using the initial address of the first lamp point read by the photosensor, the initial address of any lamp point in the LED lamp string can also be read by the photosensor to predict the initial addresses of all the lamp points in the LED lamp string. For example, the initial address of the last lamp point in the LED lamp string can also be used to predict the initial addresses of all the lamp points in the LED lamp string, which is based on the rule that the initial addresses of the lamp points are continuous. The initial address of the first lamp point is used to predict the address in the following way: the new address of the next lamp point is obtained by adding 1 to the new address of the previous lamp point, the initial address of the last lamp point is used to predict the address in the following way: the new address of the previous lamp point is obtained by subtracting 1 from the new address of the next lamp point, and the initial address of any lamp point in the middle is used to predict the address based on the combination of the above two methods.
[0060] In a further implementation of the embodiment, the step S300 is followed by the step of:
[0061] S400, verifying the new lamp point address of the lamp point, if the verification is successful, the address rewriting of the lamp point is successful, otherwise, reading the initial lamp point address of the previous lamp point of the lamp point with rewriting failure and the initial lamp point address of the lamp point with rewriting failure;
[0062] S500, reading the initial lamp point address of the replaced lamp point;
[0063] S600, rewriting the initial lamp point address of the replaced lamp point and the lamp point after the replaced lamp point.
[0064] Specifically, after the controller writes the new lamp point address into the corresponding lamp point, the LED lamp string displays a specific pattern according to a specific display sequence, and it is checked whether the new address of the lamp point is correct. If the specific pattern is displayed correctly, the operation is completed, which represents that the new address rewriting of the lamp point is successful, and if the pattern is displayed incorrectly, the new address value of the first incorrect lamp point and the previous correct lamp point of the incorrect lamp point is read out through the photosensor, and then the address value of the incorrect lamp point is recalculated.
[0065] For example, the lamp point with address 100 in the LED lamp string with initial lamp point address 0 of the first lamp point is abnormal in the production process, and it is found that it is not displayed correctly through the verification pattern, and needs to be replaced. After replacing the new lamp point, the controller reads the new address of the previous lamp point of the abnormal lamp point as 99 through the photosensor, and can know that the new address of the incorrect lamp point should be 100, and then reads the initial address of the new replaced lamp point, which is assumed to be 1000, and then the controller sends a command to change the address of the lamp point with initial lamp point address 1000 to the new address 100, and then performs pattern verification, and the cycle is repeated until the verification is completely correct.
[0066] If the LED lamp string has a defective lamp point or a flying material in the production process, the address of the defective lamp point or the flying material and the address of the previous lamp point are read by the controller, and then the new address of the lamp point is recalculated from the position of the defective lamp point or the flying material. Taking the flying material as an example, if the lamp point with initial address 3888 in the LED lamp string with initial lamp point address 3800 of the first lamp point is lost in the production process, the initial address of the next lamp point with initial address 3887 becomes 3889. After the address is rewritten for the first time, it is found through the pattern verification that the addresses of all the lamp points after the lamp point with new address 87 are all shifted by 1, at this time, the address of the previous lamp point of the first incorrect lamp point is read as 87, and the address of the first incorrect lamp point is 89, and then the controller sends a command to reduce the address of all the lamp points after the address 89 by 1, and then performs pattern verification, and the cycle is repeated until the verification is correct.
[0067] It should be noted that each lamp point in the LED light string package is pre-written with a continuous initial address. In the production process, flying material or other unexpected situations are less common. More often, only the initial address of the first lamp point in the LED light string needs to be read out, the initial addresses of all lamp points in the LED light string can be predicted, the new address of the lamp point can be calculated accordingly, and then the new address is written back to each lamp point. The controller can communicate data with the lamp point through the new address. Because unexpected situations are less common, the time for reading the address of each lamp point is saved, the time for assigning a new address to the lamp point is shortened, and the production efficiency is improved.
[0068] In a further implementation of the embodiment, step S400 comprises the steps of:
[0069] S410, controlling the LED light string to cyclically display the lamp points after rewriting the lamp point addresses according to the display sequence. If the LED light string displays according to the preset pattern, the rewriting of the lamp point addresses is successful, otherwise, the rewriting of the lamp point addresses fails.
[0070] Specifically, the controller controls the LED light string to cyclically display rainbow colors, i.e., 0 address displays red, 1 address displays orange, 2 address displays yellow, 3 address displays green, 4 address displays cyan, 5 address displays blue, 6 address displays purple, and then 7 address displays red again. Such a cycle is repeated. If the displayed pattern is consistent with the preset pattern, it indicates that the rewriting of the lamp point addresses is successful, otherwise, the rewriting of the lamp point addresses fails. In another implementation, whether the rewriting of the lamp point addresses is successful can also be determined by continuously lighting each lamp point in the manner of a marquee.
[0071] In a further implementation of the embodiment, step S100 comprises the steps of:
[0072] S110, the controller sends instruction information to each lamp point of the LED light string to control the lamp point to light up or turn off;
[0073] S120, the controller controls the photosensor to detect the on-off state information of the lamp point and feeds back the on-off state information to the controller;
[0074] S130, the controller obtains the initial lamp point address of the lamp point according to the on-off state information and the instruction information.
[0075] Specifically, the controller sends instruction information to each lamp point of the LED light string. After each lamp point of the LED light string receives the instruction information, it controls the light or off of its own LED (the lamp point includes a driving chip and an LED) to transmit address information. The photosensor detects the light or off of the lamp point and sends the on-off state information to the controller. The controller obtains the initial lamp point address of the lamp point according to the on-off state information and the instruction information.
[0076] In some embodiments, step S110 comprises the step of:
[0077] S111, the controller sends an address matching instruction to the lamp points of the LED lamp string, if the initial lamp point address of a lamp point corresponds to the matching address in the address matching instruction, the lamp point is lit, otherwise it is turned off.
[0078] Specifically, the controller sends an address matching instruction to each lamp point of the LED lamp string, if the initial lamp point address of a lamp point corresponds to the matching address in the address matching instruction, the LED of the corresponding lamp point is lit, otherwise the LED is turned off, so that the photosensor can detect the bright or dark state of the LED to obtain the bright or dark state information and feed back to the controller, and the controller can obtain the initial lamp point address of the corresponding lamp point through the bright or dark state information.
[0079] In some embodiments, step S110 comprises the step of:
[0080] S112, the controller sends an address reading instruction to the lamp points of the LED lamp string, so that the lamp points are controlled to be lit or turned off according to the value of each bit of the initial lamp point address; wherein if a bit of the initial lamp point address is 1, the lamp point is lit, otherwise the lamp point is turned off.
[0081] Specifically, the controller sends an address reading instruction to each lamp point in the LED lamp string, if a bit of the initial lamp point address of a lamp point is 1, the LED is lit, otherwise the LED is turned off, and all address bits are continuously sent out in the above manner to control the LED to be lit or turned off, and the photosensor can detect the bright or dark state of the LED to feed back the bright or dark state information to the controller, and the controller can obtain the initial lamp point address of the corresponding lamp point according to the bright or dark state information.
[0082] In order to better understand the present application, the present application is described below with a specific application embodiment.
[0083] As Figure 2As shown, when assembling the LED light string, each light point of the LED light string is sequentially addressed, i.e. the initial light point address is sequentially written and then packaged. When assigning the address to the LED light string, the light points are sequentially removed to process the light band, and the controller is used to control the photosensor to read the initial light point address of the first light point to obtain the initial light point addresses of all light points in the LED light string, and the initial light point addresses are rewritten according to a specific algorithm to obtain new light point addresses, to establish the communication between the light points and the controller, and then the controller is used to control the LED light string to display a specific pattern, and it is determined whether the displayed pattern is correct. If the LED light string displays the correct pattern, it means that the light point address rewriting is correct, and the operation is ended. If the displayed pattern is incorrect, the initial light point address of the first error light point and the initial light point address of the previous light point are read, and the initial light point address of the error light point and the initial light point addresses of the subsequent light points are rewritten according to a specific algorithm.
[0084] Please refer to Figure 3 In some embodiments, the present application also provides an LED light string address assignment device for the LED light string address assignment method described above, which is connected with the LED light string and includes a controller 100 and at least one photosensor. The controller 100 is connected with the LED light string and the photosensor respectively, and is used to control the photosensor to read the initial light point address of a certain light point in the LED light string, to obtain the initial light point addresses of other light points in the LED light string according to the initial light point address of the certain light point, and to rewrite the initial light point address of each light point to obtain the new light point addresses of all light points. The photosensor is connected with the controller 100 and is arranged opposite to the light points of the LED light string, and is used to read the initial light point address of the light points of the LED light string under the control of the controller 100.
[0085] Specifically, the light point includes a driving chip and a light emitting component, and in an implementation, the light emitting component can be an LED. The driving chip and the light emitting component are packaged together to form a light point after being tested independently, and of course, the light point can also be tested after being packaged to screen out bad light points. The light point is packaged into a disc by disc after writing the initial address, to facilitate subsequent automated production.
[0086] In the embodiment, the controller 100 controls the photosensitive sensor to read the initial lamp point address of a certain lamp point in the LED lamp string, and obtains the initial lamp point addresses of other lamp points in the LED lamp string according to the initial lamp point address of the certain lamp point. Then, the initial lamp point address of each lamp point is rewritten, so that the address allocation of all lamp points is obtained and the new lamp point addresses of all lamp points are obtained. Compared with the prior art, the address allocation of the lamp points is determined by using the address line and the detection of the load current to determine the arrangement position of the lamp points, the present application does not need to occupy more wiring resources, and will not reduce the system reliability and increase the heat dissipation cost due to the large standby current. The time for reading the address of each lamp point is saved, so that the time for allocating the new address to the lamp points is shortened.
[0087] In some embodiments, the photosensitive sensor is a photosensitive device for converting the received light signal into an electrical signal and sending to the controller.
[0088] Specifically, the photosensitive device can be, but is not limited to, a photosensitive resistor, a photosensitive diode or a photosensitive triode, for example, can be a photosensitive diode.
[0089] Please refer to Figure 3 In some embodiments, a plurality of photosensitive sensors are provided, each of which is arranged opposite to a lamp point.
[0090] Specifically, the LED lamp string has 256 lamp points, as shown in Figure 3 The lamp points of the LED lamp string include L1, L2, L3…LN, wherein N is 256.
[0091] Since the address of the lamp point is 8 bits, the controller 100 needs to send 8 times of address matching instructions to read the complete address of a lamp point in the case of only one photosensitive sensor. If multiple photosensitive sensors exist in parallel, the controller 100 can read the lamp point addresses of multiple lamp points by sending 8 times of address matching instructions. In an implementation, the number of photosensitive sensors is set to 8, when the number of photosensitive sensors is 8, the controller 100 can read the lamp point addresses of 8 lamp points by sending 8 times of matching instructions, as shown in Figure 2 The photosensitive sensors are denoted as K1, K2, K3…Kn, wherein n is 8.
[0092] In summary, the LED lamp string lamp point address allocation method and device provided by the application, through the controller, controls the photosensor to read the initial lamp point address of a certain lamp point in the LED lamp string, and obtains the initial lamp point addresses of other lamp points in the LED lamp string according to the initial lamp point address of the certain lamp point, then rewrites the initial lamp point address of each lamp point, and the address allocation of all lamp points is obtained and the new lamp point addresses of all lamp points are obtained. Compared with the prior art scheme of using address lines and detecting load current to determine the arrangement position of the lamp point to allocate the address of the lamp point, the application does not need to occupy more wiring resources, and will not reduce the system reliability and increase the heat dissipation cost due to the large standby current, saves the time for reading the address of each lamp point, and thus shortens the time for allocating new addresses to the lamp points.
[0093] It should be understood that the application is not limited to the above examples, and can be improved or changed according to the above description for those of ordinary skill in the art, and all these improvements and changes shall belong to the protection scope of the appended claims of the application.
Claims
1. A method of assigning addresses to light points of a LED light string, characterized in that, The application comprises the following steps: Pre-writing continuous initial lamp point addresses in each lamp point of the LED light string; wherein the difference of the initial addresses between two adjacent lamp points is a fixed value; The controller reads the initial lamp point address of a certain lamp point in the LED light string through the photosensor; The step of reading the initial lamp point address of a certain lamp point in the LED light string through the photosensor by the controller comprises the following steps: The controller sends instruction information to each lamp point of the LED light string to control the lamp point to be lit or extinguished; wherein the controller sends an address matching instruction to the lamp point of the LED light string, and if the initial lamp point address of the lamp point corresponds to the matching address in the address matching instruction, the lamp point is lit, otherwise, the lamp point is extinguished; The controller controls the photosensor to detect the on-off state information of the lamp point and feeds back the on-off state information to the controller; The controller obtains the initial lamp point address of the lamp point according to the on-off state information and the instruction information; The controller obtains the initial lamp point addresses of other lamp points in the LED light string according to the initial lamp point address of a certain lamp point; The controller rewrites the initial lamp point address of each lamp point to obtain the new lamp point address of all lamp points; Verifying the new lamp point address of the lamp point, if the verification is successful, the address rewriting of the lamp point is successful, otherwise, reading the initial lamp point address of the previous lamp point of the lamp point whose address rewriting fails and the initial lamp point address of the lamp point whose address rewriting fails; Reading the initial lamp point address of the replaced lamp point; Rewriting the initial lamp point address of the replaced lamp point and the lamp point after the replaced lamp point; the step of verifying the new lamp point address of the lamp point, if the verification is successful, the address rewriting of the lamp point is successful, otherwise, reading the initial lamp point address of the lamp point whose address rewriting fails and the initial lamp point address of the previous lamp point of the lamp point whose address rewriting fails comprises the following steps: Controlling the LED light string to display the lamp point whose address is rewritten in a cycle according to a display sequence, if the LED light string displays according to a preset pattern, the lamp point address rewriting is successful, otherwise, the lamp point address rewriting fails; Wherein, the controller controls the LED light string to display the rainbow color in sequence, i.e. 0 address displays red, 1 address displays orange, 2 address displays yellow, 3 address displays green, 4 address displays cyan, 5 address displays blue, 6 address displays purple, and then 7 address displays red again, and so on, if the displayed pattern is consistent with the preset pattern, it means that the lamp point address rewriting is successful, otherwise, the lamp point address rewriting fails.
2. The method of assigning addresses to light points of a LED light string according to claim 1, characterized in that, The step of the controller sending instruction information to each lamp point of the LED light string to control the lamp point to be lit or extinguished comprises the following steps: The controller sends an address reading instruction to the lamp point of the LED light string, so that the lamp point is lit or extinguished according to the value of each bit of the initial lamp point address; wherein if a certain bit of the address bit of the initial lamp point address is 1, the lamp point is lit, otherwise, the lamp point is extinguished.
3. A LED lamp string's lamp point address allocation device applied to the LED lamp string's lamp point address allocation method of any one of claims 1-2, connected with the LED lamp string, characterized in that, The application comprises the following steps: The controller and at least one photosensor; wherein The controller is connected with the LED lamp string and the photosensor respectively, and is configured to control the photosensor to read the initial lamp point address of a certain lamp point in the LED lamp string, to obtain the initial lamp point addresses of other lamp points in the LED lamp string according to the initial lamp point address of the certain lamp point, and to rewrite the initial lamp point address of each lamp point to obtain new lamp point addresses of all the lamp points. The photosensor is connected with the controller and is arranged opposite to the lamp points of the LED lamp string, and is configured to read the initial lamp point addresses of the lamp points of the LED lamp string under the control of the controller.
4. The LED light string light point address assignment apparatus according to claim 3, characterized in that, The photosensor is a photosensitive device configured to convert a received optical signal into an electrical signal and send the electrical signal to the controller.
5. The LED light string light point address assignment apparatus of claim 3, wherein, A plurality of photosensors are arranged, and each photosensor is arranged opposite to a lamp point.
Citation Information
Patent Citations
LED lamp string address detection system and method
CN106385728A
Two-level addressing method of LED program-controlled lamp strings of signals transmitted by power supply wire
CN109027736A
DMX512 address writing method of power line carrier driven LED lamp body
CN111212502A