Display control method, system, medium and device based on light strip

Through the coordinated work of the main controller and the sub-controller, the target pattern is matched to the light strip array, the lamp bead display group is divided and the display duration is calculated, which solves the problem of poor pattern display effect caused by the lamp bead display delay, and realizes the synchronous display of the lamp beads and adaptive brightness adjustment.

CN117238236BActive Publication Date: 2025-04-22深圳市明上光电子有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311298026.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-07
Publication Date
2025-04-22
Estimated Expiration
2043-10-07

AI Technical Summary

Technical Problem

When the light strip displays complex patterns, due to the different display delays of each lamp bead, the display effect of the entire pattern is poor, and the lamp beads cannot be displayed synchronously.

Method used

Through communication between the main controller and the sub-controller, the display information of the target pattern is obtained, matched to the light strip array, divided the lamp beads into display groups, calculate the display duration of each display group, and control the sub-controller to send an on display instruction to the lamp beads to realize the synchronous display of the lamp beads.

Benefits of technology

Ensure that each lamp bead is finally displayed synchronously, improve the display effect of the entire pattern, and realize adaptive brightness adjustment to adapt to different ambient brightness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117238236B_ABST
    Figure CN117238236B_ABST
Patent Text Reader

Abstract

A display control method, system, medium and device based on a light strip, relating to the field of display control technology. The method comprises: obtaining a target display pattern that needs to be displayed at the current time of the target pattern; matching the target display pattern to the light strip array, and determining the display color information that each lamp bead in the light strip array needs to display at present; dividing each lamp bead into a plurality of lamp bead display groups according to each display color information, and the lamp bead display groups display the same target color; calculating each display duration required for each lamp bead display group to fully display the target color; based on each display duration, controlling the corresponding sub-controller in each lamp bead display group to send a display start instruction to each lamp bead in the lamp bead display group, so that each lamp bead in the target light strip array is displayed synchronously. Implementing the technical solution provided by the present application can make each lamp bead display synchronously in the end, thereby improving the display effect of the entire pattern.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display control technology, and in particular to a display control method, system, medium and device based on a light strip. Background Art

[0002] Light strips are a very common display device. Light strips are provided with a substrate and lamp beads, which are arranged on the substrate to form a display array. By controlling the lamp beads to display in sequence, the desired display result can be obtained. Light strips are widely used in interior decoration, landscape lighting, commercial displays, entertainment venues and other fields. Its flexibility and diverse colors and effects make it an ideal choice for creating a unique atmosphere and enhancing the beauty of the environment.

[0003] Multiple light strips are usually installed side by side, and the display content of each light strip is controlled separately to form a pattern. When the pattern to be displayed is complex and diverse in color, the lamp beads in each light strip need to display different colors, and there will be different display delays, so that each lamp bead cannot display synchronously, resulting in poor display effect of the entire pattern. Summary of the invention

[0004] The present application provides a display control method, system, medium and device based on a light strip, which can enable each lamp bead to ultimately display synchronously, thereby improving the display effect of the entire pattern.

[0005] In a first aspect, the present application provides a display control method based on a light strip, which is applied to a main controller, wherein the main controller is communicatively connected with a plurality of sub-controllers, and adopts the following technical solution:

[0006] Get the target display pattern that needs to be displayed at the current time of the target pattern;

[0007] Match the target display pattern to the light strip array, determine the display color information currently required to be displayed by each lamp bead in the light strip array, the light strip array includes multiple rows of light strips, each of the light strips includes multiple lamp beads, and each of the sub-controllers controls each of the lamp beads separately;

[0008] According to the display color information, each of the lamp beads is divided into a plurality of lamp bead display groups, and the lamp bead display groups display the same target color;

[0009] Calculate the display time required for each lamp bead display group to fully display the target color;

[0010] Based on the display duration, the corresponding sub-controller in each lamp bead display group is controlled to send a display start instruction to each lamp bead in the lamp bead display group, so that each lamp bead in the target light strip array is displayed synchronously.

[0011] By adopting the above technical solution, the target display pattern required to be displayed at the current time is matched to each lamp bead in the light strip array to ensure that the target display pattern can be correctly displayed on the light strip array, and the lamp beads that display the same target color are divided into the same lamp bead display group. By calculating the display time required for each lamp bead display group to fully display the target color, the corresponding sub-controller in each lamp bead display group is controlled to send a display start instruction to each lamp bead in the lamp bead display group according to each display time, which can make up for the display time of each lamp bead display group, so that each lamp bead in the light strip array can finally be displayed synchronously, thereby improving the display effect of the entire pattern.

[0012] Optionally, matching the target display pattern to the light strip array and determining the display color information currently required to be displayed by each lamp bead in the light strip array includes: obtaining a coordinate layout diagram corresponding to the light strip array; matching each pixel in the display pattern to the lamp bead in the coordinate layout diagram, and determining the display color information corresponding to the pixel currently required to be displayed by each lamp bead in the light strip array.

[0013] By adopting the above technical solution, each pixel in the target display pattern is matched to the lamp beads of the light strip array, ensuring that each lamp bead can accurately display the corresponding pixel color in the target pattern. In this way, a highly accurate display effect can be achieved, so that the light strip array can accurately present the target pattern.

[0014] Optionally, according to the display color information, each of the lamp beads is divided into multiple lamp bead display groups, and the lamp bead display groups display the same target color, including: obtaining the display color information to be displayed by each of the lamp beads, and the color information includes RGB color values; dividing the lamp beads with the same RGB color values ​​into a lamp bead display group to obtain multiple lamp bead display groups, so that each of the lamp bead display groups displays the same target color, and the target color is the color corresponding to the RGB color value.

[0015] By adopting the above technical solution, the lamp beads with the same RGB color value are divided into the same display group, ensuring that the lamp beads in the same group display the same target color, so that the controller of each lamp bead display group can be uniformly controlled.

[0016] Optionally, the calculation of each display time required for each lamp bead display group to fully display the target color includes: obtaining the RGB color value corresponding to the target color to be displayed in each lamp bead display group; determining the display time required for each lamp bead display group to fully display the target color based on the RGB color value and the relationship between the preset RGB color value and the lamp bead full display time.

[0017] By adopting the above technical solution, according to the relationship between the preset RGB color value and the full display time of the lamp beads, the display time required for each lamp bead display group to fully display the target color can be calculated. In this way, precise time control can be achieved to ensure that each lamp bead display group can fully display the target color within the appropriate time, so that each lamp bead in the light strip array can finally display synchronously, thereby improving the display effect of the entire pattern.

[0018] Optionally, based on each of the display durations, controlling the corresponding sub-controller in each lamp bead display group to send a display start instruction to each lamp bead in the lamp bead display group, including: obtaining the target lamp bead display group with the longest display duration in the display duration; calculating the compensation duration between each of the display durations and the target display duration; controlling the corresponding sub-controller in the target lamp bead display group to send a first display start instruction to each lamp bead in the target lamp bead display group; after sending the first start display instruction and when each of the compensation durations is reached, respectively controlling the corresponding sub-controller in the corresponding lamp bead display group to send a display start instruction to each lamp bead in the lamp bead display group, so that each of the lamp beads in the target light strip array is displayed synchronously.

[0019] By adopting the above technical solution, the compensation time of each lamp bead display group is calculated. After the target lamp bead display group starts to display, the sub-controllers of other lamp bead display groups are gradually controlled to send display start instructions to make each lamp bead gradually display synchronously, so that each lamp bead in the light strip array is finally displayed synchronously, thereby improving the display effect of the entire pattern.

[0020] Optionally, after the sub-controller corresponding to each lamp bead display group is controlled to send a display start instruction to each lamp bead in the lamp bead display group, it also includes: obtaining the ambient brightness of the light strip array sent by the light sensor, and the preset target brightness range of the light strip array; calculating the target brightness according to the ambient brightness and the target brightness range; controlling each lamp bead in the light strip array to display according to the target brightness.

[0021] By adopting the above technical solution, by acquiring the ambient brightness sent by the light sensor, the brightness level of the current environment can be perceived in real time, and combined with the preset target brightness range, the target brightness suitable for the current environment can be calculated according to the ambient brightness. In this way, adaptive brightness adjustment can be achieved, so that the light maintains a suitable brightness level in different environments, providing better visual experience and comfort, and effectively saving energy.

[0022] Optionally, calculating the target brightness according to the ambient brightness and the target brightness range includes: calculating the ratio of the ambient brightness within the measurement range of the light sensor according to the first calculation formula; obtaining the minimum brightness and the maximum brightness of the target brightness range; substituting the ratio, the minimum brightness and the maximum brightness into a second calculation formula to calculate the target brightness; the first calculation formula is: K=(LT min ) / (T max -T min ), K is the ratio, L is the ambient brightness, T min is the lowest measured brightness of the light sensor’s measurement range, T max is the highest measured brightness within the measurement range of the light sensor, and the second calculation formula is: W=L min +(L max -L min )*K, W is the target brightness, L min is the lowest brightness of the target brightness range, L max is the highest brightness of the target brightness range.

[0023] By adopting the above technical solution, the brightness of the light can be precisely controlled by setting the ratio K in the calculation formula and the target brightness range. According to the specific value of the ambient brightness, the precise target brightness value is calculated. In this way, the brightness level of the light can be precisely controlled according to the actual needs and the requirements of fine adjustment, so that the light can maintain a suitable brightness level in different environments.

[0024] In a second aspect of the present application, a display control system based on a light strip is provided, the system comprising:

[0025] A target display pattern acquisition module is used to acquire the target display pattern that needs to be displayed at the current time;

[0026] A display color information determination module, used to match the target display pattern to the light strip array, and determine the display color information currently required to be displayed by each lamp bead in the light strip array, wherein the light strip array includes multiple rows of light strips, each of the light strips includes multiple lamp beads, and each of the sub-controllers controls each of the lamp beads separately;

[0027] A lamp bead display group division module, used for dividing each of the lamp beads into a plurality of lamp bead display groups according to each of the display color information, wherein the lamp bead display groups display the same target color;

[0028] A display duration calculation module, used to calculate the display duration required for each lamp bead display group to fully display the target color;

[0029] The control display module is used to control the corresponding sub-controller in each lamp bead display group to send a display start instruction to each lamp bead in the lamp bead display group based on the display duration, so that each lamp bead in the target light strip array displays synchronously.

[0030] In a third aspect of the present application, a computer storage medium is provided, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above method steps.

[0031] In a fourth aspect of the present application, an electronic device is provided, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0032] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0033] 1. This application matches the target display pattern required to be displayed at the current time to each lamp bead in the lamp strip array, ensures that the target display pattern can be correctly displayed on the lamp strip array, and divides the lamp beads that display the same target color into the same lamp bead display group. By calculating the display time required for each lamp bead display group to fully display the target color, the corresponding sub-controller in each lamp bead display group is controlled to send a start display instruction to each lamp bead in the lamp bead display group according to each display time, which can make up for the display time of each lamp bead display group, so that each lamp bead in the lamp strip array can finally be displayed synchronously, thereby improving the display effect of the entire pattern;

[0034] 2. This application can sense the brightness level of the current environment in real time by acquiring the ambient brightness sent by the light sensor, and can calculate the target brightness suitable for the current environment based on the ambient brightness in combination with the preset target brightness range. This can achieve adaptive brightness adjustment, so that the light maintains a suitable brightness level in different environments, providing better visual experience and comfort, while effectively saving energy. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a flowchart of a display control method based on a light strip provided in an embodiment of the present application;

[0036] Figure 2 is an example diagram of a target display pattern provided in an embodiment of the present application;

[0037] Figure 3 This is a schematic diagram of a display control system module based on a light strip provided in an embodiment of the present application;

[0038] Figure 4It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0039] Explanation of the accompanying drawings: 1. Target display pattern acquisition module; 2. Display color information determination module; 3. Lamp bead display group division module; 4. Display duration calculation module; 5. Control display module; 400, electronic device; 401, processor; 402, communication bus; 403, user interface; 404, network interface; 405, memory. DETAILED DESCRIPTION

[0040] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0041] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0042] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0043] The following will provide a clear and complete description of the technical solutions in the embodiments of the present application 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.

[0044] The embodiment of the present application provides a system architecture of a display control method based on a light strip. The system architecture can be implemented as a display control system based on a light strip. The system can be used in a light strip array. The light strip array includes multiple light strips, each of which includes multiple lamp beads. For example, the system may include: a main controller and multiple sub-controllers. The main controller is connected to the multiple sub-controllers in communication, wherein each sub-controller controls each lamp bead separately, that is, each lamp bead in the light strip array can be controlled independently. The main controller is mainly responsible for generating overall lamp bead control instructions. These instructions may include information such as color, brightness, mode, etc., which are used to define the pattern to be displayed by the entire light strip array. The main controller interacts with multiple sub-controllers through a communication connection. Each sub-controller is independently responsible for controlling each lamp bead on a row of light strips. The main controller sends the generated overall control instructions to each sub-controller through a communication connection. After each sub-controller receives the control instructions sent by the main controller, it independently controls the managed lamp beads according to the information in the instructions. During the control process, the main controller and the sub-controller need to be synchronized to ensure consistent display effects for the entire light strip array. The main controller can confirm the receipt and execution of instructions through communication with the sub-controllers to ensure that each sub-controller performs corresponding lamp control according to the instructions.

[0045] The above describes the system architecture of the present application. Based on the above embodiments, please refer to Figure 1 , a flow chart of a display control method based on a light strip is proposed, the method can be implemented by a computer program, can be implemented by a single-chip microcomputer, and can also be run on a display control system based on a light strip, the computer program can be integrated in a main controller, and can also be run as an independent tool application, specifically, the method includes steps 10 to 50, the above steps are as follows:

[0046] Step 10: Obtain the target display pattern that needs to be displayed at the current time.

[0047] See also Figure 2 , Figure 2 This is an example diagram of a target display pattern provided in an embodiment of the present application.

[0048] Specifically, the target pattern in the embodiment of the present application refers to a pattern that needs to be displayed in the light strip array, which can be text, graphics, animation, or any other content that needs to be presented in the display. Since the display of the target pattern may need to change with time, the display of the pattern will also be different, such as color change, shape change, etc. The target display pattern refers to the pattern information that the target pattern needs to be displayed on the light strip array at the current time.

[0049] For example, please combine Figure 2When the light strip array is turned on, the target pattern at the current time is a heart. The target pattern is Figure 2 The target pattern is displayed with the color distribution of color A, color B, color C, and color D. After five seconds, it may be displayed with another color distribution, thereby realizing the color change display of the target pattern.

[0050] It should be noted that Figure 2 is an exemplary target pattern at the current time. The target display pattern may be a more complex pattern. Figure 2 The pattern shown is just one example.

[0051] Step 20: Match the target display pattern to the light strip array, and determine the display color information currently required to be displayed by each lamp bead in the light strip array. The light strip array includes multiple rows of light strips, each light strip includes multiple lamp beads, and each sub-controller controls each lamp bead separately.

[0052] Specifically, the light strip array is composed of multiple rows of light strips, and each light strip includes multiple lamp beads, so the light strip array can be regarded as a coordinate system. Each lamp bead has a corresponding coordinate position, and each pixel of the target display image is matched to the light strip array according to its position, that is, each pixel color can be matched to the corresponding lamp bead, thereby determining the display color information that each lamp bead in the light strip array currently needs to display.

[0053] Based on the above embodiment, as an optional embodiment, the step of matching the target display pattern to the light strip array and determining the display color information currently required to be displayed by each lamp bead in the light strip array may also include the following steps:

[0054] Step 201: Obtain a coordinate layout diagram corresponding to the light strip array.

[0055] Specifically, determine the number of rows of the light strip array and the number of lamp beads in each row, and create a coordinate layout diagram corresponding to the light strip array based on the determined number of rows and the number of lamp beads in each row. This can be a two-dimensional array or matrix that represents the position coordinates of each lamp bead. For example, the light strip array can be regarded as a coordinate axis, with the horizontal axis being the number of lamp beads in a row of the light strip, and the vertical axis being the number of rows of the light strip, and a unique coordinate value is assigned to each lamp bead. The position of each lamp bead can be indicated by row and column numbers. For example, the row numbers increase from bottom to top, and the column numbers increase from left to right, such as Figure 2 The position coordinates of the sixth lamp bead P in the first column are (1, 6).

[0056] Step 202: Match each pixel in the display pattern to the lamp bead in the coordinate layout diagram, and determine the display color information corresponding to the pixel currently required to be displayed by each lamp bead in the light strip array.

[0057] Specifically, a loop structure is used to traverse the display pattern and coordinate layout to access each pixel and the corresponding lamp bead, and each pixel is matched to the corresponding lamp bead in the coordinate layout diagram according to its position. That is, the color information of the pixel is associated with the position coordinates of the lamp bead, and the display color information corresponding to the pixel currently required to be displayed by each lamp bead is determined based on the matching result. The color information of the pixel can be directly assigned to the display color information of the lamp bead. Combined with Figure 2 It can be seen that the target display pattern is matched to the coordinate layout so that each lamp bead has a corresponding display color. For example, the current target display pattern is displayed by the color distribution of color A, color B, color C, and color D, and other lamp beads are displayed according to the default color Y.

[0058] Step 30: According to each display color information, each lamp bead is divided into a plurality of lamp bead display groups, and the lamp bead display groups display the same target color.

[0059] Specifically, different display colors will affect the display time of the lamp beads. For example, the higher the color depth, the more colors that can be represented, and the richer the displayed color details. However, higher color depths may take longer to convert and display because each color channel requires more bits to represent different color levels. And when the lamp beads need to switch from one color to another, the higher the color depth involved, the longer the conversion time may be. This is because at a higher color depth, the lamp beads need to process more color levels and details, and perform more complex calculations and adjustments to ensure that the target color is accurately displayed. Therefore, this application divides the lamp beads with the same display color information into a lamp bead display group according to the display color information of each lamp bead, so that multiple lamp bead display groups can be obtained. Thereby, each lamp bead display group displays the same target color.

[0060] Based on the above embodiment, as an optional embodiment, according to each display color information, each lamp bead is divided into a plurality of lamp bead display groups, and the step of the lamp bead display groups displaying the same target color may also include the following steps:

[0061] Step 301: Obtain the display color information to be displayed by each lamp bead, the color information includes RGB color value;

[0062] Step 302: Divide the lamp beads with the same RGB color value into a lamp bead display group to obtain multiple lamp bead display groups.

[0063] Specifically, each pixel in the target pattern corresponds to an RGB color value, and the display color information to be displayed by each lamp bead is obtained. The color information may include RGB color values. RGB is a method of representing color. It is based on the combination of the three color channels of red, green, and blue to create a wide color gamut color space. RGB color values ​​are digital values ​​used to represent the intensity of the three color channels of red, green, and blue. They are usually represented by integers from 0 to 255. In the RGB color model, the value of each color channel determines the contribution of the channel to the final color. The intensities of the three channels are combined to form the visible color. For example, pure red can be composed of the maximum value of the red channel (255) and the minimum values ​​of the green channel and the blue channel (0). Therefore, the display color of each lamp bead can be represented by an RGB color value. Create an empty dictionary to store the lamp bead display group. The key of the dictionary is the RGB color value, and the value is the list of lamp beads corresponding to the color. Iterate through each lamp bead and divide the lamp beads with the same RGB color value into the corresponding lamp bead display group. If the color key already exists in the dictionary, the current lamp bead is added to the corresponding list; if the color key does not exist in the dictionary, a new key-value pair is created, the key is the color, and the value is a list containing only the current lamp bead. In this way, lamp beads with the same RGB color value can be divided into a lamp bead display group, and multiple lamp bead display groups can be obtained.

[0064] Step 40: Calculate the display time required for each lamp bead display group to fully display the target color.

[0065] Specifically, the RGB color value corresponding to the target color to be displayed in each lamp bead display group is obtained. According to the RGB color value and the relationship between the preset RGB color value and the complete display time of the lamp bead, the display time required for each lamp bead display group to fully display the target color can be determined. Since each lamp bead is controlled by an independent sub-controller, no matter how many lamp beads are in the lamp bead display group, synchronous control can be achieved.

[0066] Based on the above embodiment, as an optional embodiment, the step of calculating the display time required for each lamp bead display group to fully display the target color may also include the following steps:

[0067] Step 401: Obtain the RGB color value corresponding to the target color to be displayed in each lamp bead display group;

[0068] Step 402: Determine the display time required for each lamp bead display group to fully display the target color based on the RGB color value and the preset relationship between the RGB color value and the lamp bead full display time.

[0069] Specifically, since each lamp bead display group includes at least one lamp bead, and the RGB color values ​​corresponding to the target colors to be displayed by all the lamp bead display groups in each lamp bead display group are the same, the RGB color values ​​corresponding to the target colors to be displayed in each lamp bead display group are obtained. Since each RGB color value corresponds to a lamp bead full display duration, the display durations required for each lamp bead display group to fully display the target color can be determined based on the RGB color values ​​of each lamp bead and the relationship between the preset RGB color values ​​and the lamp bead full display duration.

[0070] For example, in combination Figure 2 , there are five lamp bead display groups, which display color A, color B, color C, color D and color Y (except the heart-shaped lamp beads in the light strip array). Assume that the RGB color corresponding to color A is (255, 0, 0), the RGB color corresponding to color B is (0, 255, 0), and the RGB color corresponding to color C is (0, 0, 255). The display time of the lamp bead fully displaying the RGB color (255, 0, 0) is 1 second, the display time of the lamp bead fully displaying the RGB color (0, 255, 0) is 0.6 seconds, and the display time of the lamp bead fully displaying the RGB color (0, 0, 255) is 1.5 seconds. Thus, the display time required for each lamp bead display group to fully display the target color can be obtained. For example, the display time of the lamp bead display group fully displaying the target color A is 1 second.

[0071] Step 50: Based on each display duration, control the corresponding sub-controller in each lamp bead display group to send a display start instruction to each lamp bead in the lamp bead display group, so that each lamp bead in the target light strip array displays synchronously.

[0072] Specifically, since the display duration of each lamp bead display group is different, there will be a display duration deviation in the overall display of the target pattern, resulting in poor overall display effect. Therefore, this application will be based on the display duration of each lamp bead display group, by obtaining the target lamp bead display group with the longest display duration, calculate the compensation duration of other lamp bead display groups and the target lamp bead display group, and then control each lamp bead display group to display according to the compensation duration, so that each lamp bead is displayed synchronously, thereby improving the display effect of the entire pattern.

[0073] Based on the above embodiment, as an optional embodiment, based on each display duration, controlling the corresponding sub-controller in each lamp bead display group to send a display start instruction to each lamp bead in the lamp bead display group so that each lamp bead in the target light strip array displays synchronously may also include the following steps:

[0074] Step 501: obtaining a target lamp bead display group with the longest display duration in the display duration;

[0075] Step 502: Calculate the compensation duration between each display duration and the target display duration;

[0076] Step 503: Control the corresponding sub-controller in the target lamp bead display group to send a first display start instruction to each lamp bead in the target lamp bead display group;

[0077] Step 504: After sending the first start display instruction and when each compensation time is reached, the corresponding sub-controller in the corresponding lamp bead display group is controlled to send a start display instruction to each lamp bead in the lamp bead display group, so that each lamp bead in the target light strip array is displayed synchronously.

[0078] Specifically, the display duration of each lamp bead display group is traversed in turn, and the lamp bead display group with the longest display duration is used as the target lamp bead display group. The time difference between other lamp bead display groups and the target lamp bead display group is calculated in turn to obtain the compensation duration of other lamp bead display groups. First, the corresponding sub-controller in the target lamp bead display group is controlled to send a first display start instruction to each lamp bead in the target lamp bead display group, so that the lamp beads of the target lamp bead display group are displayed first. After reaching the compensation duration of other lamp bead display groups, the corresponding sub-controller in the corresponding lamp bead display group is controlled to send a display start instruction to each lamp bead in the lamp bead display group, so that each lamp bead in the target light strip array is displayed synchronously.

[0079] Exemplarily, assuming that the display time of color C is up to 1.5 seconds, the lamp bead display group corresponding to color C is taken as the target lamp bead display group, and then the compensation time of the other four lamp bead display groups and the target lamp bead display group is calculated in turn. For example, the compensation time of the first lamp bead display group corresponding to color A is 0.5 seconds, and the compensation time of the second lamp bead display group corresponding to color B is 0.4 seconds. The main controller controls the corresponding sub-controller in the target lamp bead display group to send the first display start instruction to each lamp bead in the target lamp bead display group, so that the lamp beads in the target lamp bead display group display color C first. When sending the first display start instruction, after 0.4 seconds, the main controller controls the corresponding sub-controller in the second lamp bead display group to send the second display start instruction to each lamp bead in the second lamp bead display group. After 0.5 seconds, the main controller controls the corresponding sub-controller in the first lamp bead display group to send the third display start instruction to each lamp bead in the first lamp bead display group, and so on. After the compensation time of other lamp bead display groups is reached, the corresponding sub-controller in the corresponding lamp bead display group is controlled to send the display start instruction to each lamp bead in the lamp bead display group, so that each lamp bead in the target light strip array can finally achieve synchronous display, thereby improving the display effect of the entire pattern.

[0080] Based on the above embodiment, as an optional embodiment, a display control method based on a light strip may further include a calculation process of the brightness of the lamp beads, and the specific process may include the following steps:

[0081] Step 601: Obtain the ambient brightness of the light strip array sent by the light sensor, and the preset target brightness range of the light strip array;

[0082] Specifically, a light sensor is installed on the light strip array, which can detect the ambient brightness of the environment in which the light strip array is located. The light sensor sends the detected ambient brightness to the main controller, and the main controller obtains the ambient brightness of the current environment and the preset target brightness range of the light strip array. The target brightness range refers to the appropriate display brightness range set in advance for the light strip array by personnel, for example, the target brightness range can be 30-80. The target brightness range can be adjusted according to actual conditions, so that the target brightness range maintains a suitable brightness level in different environments.

[0083] Step 602: Calculate the target brightness according to the ambient brightness and the target brightness range.

[0084] Specifically, the measurement brightness range of the light sensor is obtained, and the measurement brightness range includes the lowest measurement brightness and the highest measurement brightness. The ratio of the ambient brightness within the measurement brightness range of the light sensor is calculated according to the first calculation formula. The first calculation formula is: K=(LT min ) / (T max -T min ), where K is the ratio, L is the ambient brightness, T min is the lowest measured brightness of the light sensor’s measurement range, T max is the highest measured brightness within the light sensor measurement range. Get the minimum and maximum brightness within the target brightness range, and substitute the ratio, minimum brightness, and maximum brightness into the second calculation formula to calculate the target brightness of the light strip array. The second calculation formula is: W=L min +(L max -L min )*K, where W is the target brightness, L min is the lowest brightness of the target brightness range, L max is the highest brightness of the target brightness range.

[0085] For example, the measured brightness range of the light sensor is 0 (darkest) to 100 (brightest), and the target brightness range is 30-80. At this time, the measured ambient brightness is 50, and the ratio of the ambient brightness to the brightness range measured by the light sensor K = (50-0) / (100-0) = 0.5, then the target brightness of the light strip array W = 30 + (80-30) * 0.5 = 55, so in the environment where the light strip array is located, the target brightness of the light strip array is 55.

[0086] Step 603: Control each lamp bead in the light strip array to display according to the target brightness.

[0087] Specifically, the target brightness is added as a brightness parameter to the display start instruction, and the main controller controls the corresponding sub-controller in each lamp bead display group to send a display start instruction to each lamp bead in the lamp bead display group, so that the lamp beads in each lamp bead display group display according to the target brightness. In this way, the brightness consistency can be ensured and the display brightness can be adaptively adjusted according to the ambient brightness.

[0088] See also Figure 3 , is a schematic diagram of a display control system module based on a light strip provided in an embodiment of the present application. The display control system based on a light strip may include: a target display pattern acquisition module 1, a display color information determination module 2, a lamp bead display group division module 3, a display duration calculation module 4 and a display control module 5, wherein:

[0089] The target display pattern acquisition module 1 is used to acquire the target display pattern that needs to be displayed at the current time;

[0090] A display color information determination module 2, used to match the target display pattern to the light strip array, and determine the display color information currently required to be displayed by each lamp bead in the light strip array, wherein the light strip array includes multiple rows of light strips, each of which includes multiple lamp beads, and each of the sub-controllers controls each of the lamp beads separately;

[0091] A lamp bead display group division module 3 is used to divide each of the lamp beads into a plurality of lamp bead display groups according to each of the display color information, and the lamp bead display groups display the same target color;

[0092] The display duration calculation module 4 is used to calculate the display duration required for each lamp bead display group to fully display the target color;

[0093] The control display module 5 is used to control the corresponding sub-controller in each lamp bead display group to send a display start instruction to each lamp bead in the lamp bead display group based on the display duration, so that each lamp bead in the target light strip array displays synchronously.

[0094] It should be noted that: when the system provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0095] The present application also provides a computer storage medium, which can store multiple instructions. The instructions are suitable for the processor to load and execute the display control method based on the light strip of the above embodiment. The specific execution process can be seen in Figure 1~Figure 2 The specific description of the illustrated embodiment will not be repeated here.

[0096] Please refer to Figure 4 The application also discloses an electronic device. Figure 4 The electronic device 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .

[0097] The communication bus 402 is used to realize the connection and communication between these components.

[0098] The user interface 403 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 403 may also include a standard wired interface and a wireless interface.

[0099] The network interface 404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0100] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.

[0101] Among them, the memory 405 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 405 may optionally also be at least one storage device located away from the aforementioned processor 401. Refer to Figure 4 , the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program of a display control method based on a light strip.

[0102] exist Figure 4 In the electronic device 400 shown, the user interface 403 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 401 can be used to call the application program stored in the memory 405 for a display control method based on a light strip, and when executed by one or more processors 401, the electronic device 400 executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

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

[0104] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0105] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0106] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0107] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0108] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.

[0109] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A display control method based on a light strip, characterized in that: Applied to a main controller, the main controller is communicatively connected with a plurality of sub-controllers, the method comprises: Get the target display pattern that needs to be displayed at the current time of the target pattern; Match the target display pattern to the light strip array, determine the display color information currently required to be displayed by each lamp bead in the light strip array, the light strip array includes multiple rows of light strips, each of the light strips includes multiple lamp beads, and each of the sub-controllers controls each of the lamp beads separately; According to the display color information, the lamp beads are divided into a plurality of lamp bead display groups, and each of the lamp bead display groups displays the same target color; Calculate the display time required for each lamp bead display group to fully display the target color; Based on each of the display durations, control the corresponding sub-controller in each of the lamp bead display groups to send a display start instruction to each of the lamp beads in the lamp bead display group, so that each of the lamp beads in the light strip array displays synchronously; Obtaining the ambient brightness of the light strip array sent by the light sensor, and a preset target brightness range of the light strip array; Calculate the ratio of the ambient brightness within the measurement range of the light sensor according to a first calculation formula; Obtaining the minimum brightness and the maximum brightness of the target brightness range; Substituting the ratio, the minimum brightness and the maximum brightness into a second calculation formula to calculate the target brightness; The first calculation formula is: K=(LT min ) / (T max -T min ), K is the ratio, L is the ambient brightness, T min is the lowest measured brightness of the light sensor’s measurement range, T max The maximum measured brightness within the measurement range of the light sensor; The second calculation formula is: W=L min +(L max -L min )*K, W is the target brightness, L min is the lowest brightness of the target brightness range, L max is the highest brightness of the target brightness range; The target brightness is added as a brightness parameter to the display start instruction, and the main controller controls the corresponding sub-controller in each lamp bead display group to send a display start instruction to each lamp bead in the lamp bead display group, so that the lamp beads in each lamp bead display group display according to the target brightness.

2. The display control method based on the light strip according to claim 1, characterized in that: The step of matching the target display pattern to the light strip array and determining the display color information currently required to be displayed by each lamp bead in the light strip array includes: Get the coordinate layout diagram corresponding to the light strip array; Each pixel in the display pattern is matched to each lamp bead in the coordinate layout diagram, and display color information corresponding to the pixel currently required to be displayed by each lamp bead in the light strip array is determined.

3. The display control method based on light strip according to claim 1, characterized in that: According to the display color information, each of the lamp beads is divided into a plurality of lamp bead display groups, and the lamp bead display groups display the same target color, including: Obtaining the display color information to be displayed by each of the lamp beads, wherein the color information includes RGB color values; Lamp beads with the same RGB color value are divided into a lamp bead display group to obtain multiple lamp bead display groups, so that each of the lamp bead display groups displays the same target color, and the target color is the color corresponding to the RGB color value.

4. The display control method based on light strip according to claim 3, characterized in that: The calculating of the display time required for each lamp bead display group to fully display the target color includes: Obtaining the RGB color value corresponding to the target color to be displayed in each of the lamp bead display groups; According to the RGB color value and the relationship between the preset RGB color value and the complete display time of the lamp beads, the display time required for each lamp bead display group to completely display the target color is determined.

5. The display control method based on light strip according to claim 1, characterized in that: Based on each of the display durations, controlling the corresponding sub-controller in each lamp bead display group to send a display start instruction to each lamp bead in the lamp bead display group includes: Obtaining the target lamp bead display group with the longest display duration during the display duration; Calculate the compensation duration of each display duration and the target display duration; Control the corresponding sub-controller in the target lamp bead display group to send a first display start instruction to each lamp bead in the target lamp bead display group; After sending the first display start instruction and when each compensation time is reached, the corresponding sub-controller in the corresponding lamp bead display group is controlled to send a display start instruction to each lamp bead in the lamp bead display group, so that each lamp bead in the light strip array displays synchronously.

6. A display control system based on a light strip, characterized in that: Applied to a main controller, the main controller is communicatively connected with a plurality of sub-controllers, the system comprises: A target display pattern acquisition module (1) is used to acquire a target display pattern that needs to be displayed at the current time; A display color information determination module (2), used to match the target display pattern to the light strip array, and determine the display color information currently required to be displayed by each lamp bead in the light strip array, wherein the light strip array comprises a plurality of rows of light strips, each of the light strips comprises a plurality of lamp beads, and each of the sub-controllers controls each of the lamp beads separately; A lamp bead display group division module (3) is used to divide each of the lamp beads into a plurality of lamp bead display groups according to each of the display color information, wherein the lamp bead display groups display the same target color; A display duration calculation module (4), used to calculate the display duration required for each lamp bead display group to fully display the target color; A control display module (5) is used to control the corresponding sub-controller in each of the lamp bead display groups to send a display start instruction to each lamp bead in the lamp bead display group based on each of the display durations, so that each of the lamp beads in the light strip array displays synchronously; obtain the ambient brightness of the light strip array sent by the light sensor, and a preset target brightness range of the light strip array; calculate the ratio of the ambient brightness within the measurement range of the light sensor according to a first calculation formula; obtain the minimum brightness and maximum brightness of the target brightness range; substitute the ratio, the minimum brightness and the maximum brightness into a second calculation formula to calculate the target brightness; the first calculation formula is: K=(LT min ) / (T max -T min ), K is the ratio, L is the ambient brightness, T min is the lowest measured brightness of the light sensor’s measurement range, T max is the highest measured brightness within the measurement range of the light sensor; the second calculation formula is: W=L min +(L max -L min )*K, W is the target brightness, L min is the lowest brightness of the target brightness range, L max is the highest brightness in the target brightness range; the target brightness is added as a brightness parameter to the display start instruction, and the main controller controls the corresponding sub-controller in each lamp bead display group to send a display start instruction to each lamp bead in the lamp bead display group, so that the lamp beads in each lamp bead display group display according to the target brightness.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 5.

8. An electronic device, characterized in that: It includes a processor, a memory and a transceiver, the memory is used to store instructions, the transceiver is used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Driving method and driving circuit of LED light group, backlight and display device

    CN105788525A

  • LED light grouping synchronization method and system, synchronization terminal and storage medium

    CN110602828A

  • Brightness control method of LED brightening light bar

    CN115551145A