Light strip control method and related device
By adjusting the brightness and current coefficients of the lighting effect mode, the color brightness of the LED strip pixels is dynamically adjusted, solving the problem of flickering and jittering after the LED strip length is increased, thus achieving better display effects and user experience.
Patent Information
- Application Number
- CN202310175456.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2043-02-17
AI Technical Summary
When the length of the LED strip is increased, the existing LED strip controller is prone to flickering and shaking. In some lighting modes, the color brightness of the pixels is forcibly reduced, resulting in a deterioration in the display effect.
By adjusting the brightness and current coefficients of the lighting effect modes, the color brightness of the LED strip pixels is dynamically adjusted, ensuring sufficient brightness display in each lighting effect mode and preventing the pixel color brightness from being limited to the same value.
Without increasing the power supply, the display effect of the light strip in different lighting modes has been improved, enhancing the user experience.
Smart Images

Figure CN116234089B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of lamp strip control, and particularly relate to a lamp strip control method and related equipment. BACKGROUND
[0002] Lamp strips are widely used in places such as shopping malls and bars. The lamp strips can change the color of the light, thereby enhancing the atmosphere of the place. A lamp strip controller is used to control the color and brightness of the lamp strip, thereby changing the light effect mode of the lamp strip. After the length of the lamp strip (that is, the number of pixels of the lamp strip) is increased, under the condition that the power supply is stable, the lamp strip will flicker, jitter or be abnormal.
[0003] At present, most lamp strip controllers limit the color and brightness of all light effect modes to a value, so as to reduce the flickering or jitter phenomenon of the lamp strip. In this way, in some light effect modes, the color and brightness of the pixels exceeding the value will be forcibly lowered, that is, the pixels in a certain color and brightness step are reduced, resulting in poor overall display effect of these light effect modes. SUMMARY
[0004] Therefore, the present application provides a lamp strip control method, a controller, a lamp strip control device, an electronic device and a computer readable storage medium, which can make the lamp strip of different light effect modes display sufficient brightness without increasing the power supply, so as to improve the display effect of the lamp strip in different light effect modes while taking into account the length of the lamp strip, and improve the user experience.
[0005] The first aspect provides a lamp strip control method, which comprises:
[0006] In response to a light effect mode selection instruction, a second color and brightness of the lamp strip pixel is obtained according to the brightness coefficient of the light effect mode and a first color and brightness of the lamp strip pixel;
[0007] The lamp strip pixel is controlled to display the second color and brightness corresponding to the light effect mode.
[0008] In this way, by adjusting the first color and brightness of the lamp strip pixel to obtain the second color and brightness of the lamp strip pixel through the brightness coefficient of the light effect mode, and controlling the lamp strip pixel to display the second color and brightness, the pixels of different light effect modes can all have corresponding second color and brightness, and the color and brightness of the lamp strip pixel is limited to the same value in all light effect modes. In the case that the number of pixels of the lamp strip is increased, the present application can make the color and brightness of the lamp strip pixel achieve good display effect in all light effect modes.
[0009] Some embodiments of the first aspect, the second color and brightness of the lamp strip pixel is obtained according to the brightness coefficient of the light effect mode and the first color and brightness of the lamp strip pixel, comprising:
[0010] a brightness threshold is obtained according to the color brightness upper limit of the lamp effect mode and the brightness coefficient;
[0011] a second color brightness of the lamp effect mode is obtained according to the brightness coefficient and the first color brightness of the lamp effect mode in response to the first color brightness of the lamp effect mode being greater than the brightness threshold.
[0012] Thus, according to the brightness threshold obtained according to the color brightness upper limit of the lamp effect mode and the brightness coefficient, in response to the first color brightness of the lamp effect mode being greater than the brightness threshold, the second color brightness of the lamp effect mode is obtained according to the brightness coefficient and the first color brightness of the lamp effect mode, which can reduce the color brightness of the pixel that is too large to a reasonable brightness, and enable other pixels of the same lamp effect mode to obtain more brightness, and enable the display effect of the color brightness of the whole lamp effect mode to be better.
[0013] Some embodiments of the first aspect, after the brightness threshold is obtained according to the color brightness upper limit of the lamp effect mode and the brightness coefficient, the lamp effect mode control method further comprises:
[0014] the first color brightness of the lamp effect mode is controlled to be displayed in response to the first color brightness of the lamp effect mode being less than or equal to the brightness threshold.
[0015] Thus, after comparing the brightness threshold of the pixel with the first color brightness, in response to the first color brightness being less than or equal to the brightness threshold, it is indicated that the first color brightness of the pixel is small, and the brightness does not need to be adjusted again, avoiding insufficient brightness from being displayed, and the lamp effect mode is directly controlled according to the first color brightness, enabling the display effect of the color brightness of the whole lamp effect mode to be better.
[0016] The second aspect of the present application also provides a controller, the controller comprising a processing unit, the processing unit being configured to obtain a second color brightness of a lamp effect mode according to a brightness coefficient of the lamp effect mode and a first color brightness of a lamp effect mode in response to a lamp effect mode selection instruction;
[0017] the second color brightness of the lamp effect mode is controlled to be displayed.
[0018] Thus, the processing unit of the controller adjusts the first color brightness of the lamp effect mode to obtain the second color brightness of the lamp effect mode according to the brightness coefficient of the lamp effect mode, and controls the lamp effect mode to display the second color brightness, which can enable the pixels of different lamp effect modes to have corresponding second color brightness, and avoid the color brightness of the lamp effect mode being limited to the same value in all lamp effect modes. In the case of increasing the number of pixels of the lamp effect mode, the color brightness of the lamp effect mode can achieve better display effect in all lamp effect modes.
[0019] In some embodiments of the second aspect, the processing unit is further configured to obtain a brightness threshold according to a color brightness upper limit of the light strip pixel of the light effect mode and the brightness coefficient; and in response to the first color brightness of the light strip pixel being greater than the brightness threshold, obtain a second color brightness of the light strip pixel according to the brightness coefficient and the first color brightness.
[0020] In some embodiments of the second aspect, the processing unit is further configured to, in response to the first color brightness of the light strip pixel being less than or equal to the brightness threshold, control the light strip pixel to display the first color brightness corresponding to the light effect mode.
[0021] In some embodiments of the second aspect, the controller further comprises a wireless communication unit configured to establish a wireless communication connection between the processing unit and a user terminal, so that the processing unit receives the light effect mode selection instruction sent by the user terminal.
[0022] The third aspect of the present application provides a ribbon control device, which comprises a light strip and the above-mentioned controller.
[0023] The fourth aspect of the present application provides an electronic device, which comprises a processor and a memory, and the memory stores a computer program, and the computer program is executed by the processor to implement the above-mentioned light strip control method.
[0024] The fifth aspect of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the above-mentioned light strip control method. BRIEF DESCRIPTION OF DRAWINGS
[0025] Figure 1 FIG. 1 is a structural schematic diagram of a ribbon control device according to an embodiment of the present application;
[0026] Figure 2 FIG. 2 is a scene schematic diagram of a ribbon control device according to an embodiment of the present application;
[0027] Figure 3 FIG. 3 is a flowchart of a ribbon control method according to an embodiment of the present application;
[0028] Figure 4 FIG. 4 is a flowchart of a ribbon control method according to an embodiment of the present application;
[0029] Figure 5 FIG. 5 is a flowchart of a ribbon control method according to an embodiment of the present application;
[0030] Figure 6 FIG. 6 is a flowchart of a ribbon control method according to an embodiment of the present application
[0031] Figure 7 FIG. 7 is a structural schematic diagram of a controller according to an embodiment of the present application;
[0032] Figure 8 FIG. 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0033] In the present application, a plurality of means two or more than two. In addition, it should be understood that in the description of the present application, the "first", "second" and other words, only for the purpose of distinguishing the description, and can not be understood as indicating or implying relative importance, also can not be understood as indicating or implying order.
[0034] In the embodiments of the present application, the words such as "exemplary" or "for example" are used to represent an example, illustration or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. In fact, the use of words such as "exemplary" or "for example" is intended to present the relevant concept in a specific way.
[0035] The related art will be briefly described below.
[0036] The light strip is widely used in places such as shopping malls and bars. The light strip can change the color of the light, thereby enhancing the atmosphere of the place. The light strip controller is used to control the color and brightness of the light strip, thereby changing the light effect mode of the light strip. When the length of the light strip (i.e., the number of pixels of the light strip) is increased, the light strip will flicker and jitter under the condition of stable power supply, especially when the light effect mode is white light. For example, once the number of pixels is increased to more than 60, the current needs to be supplemented to avoid flickering and jitter of the light strip. At present, most light strip controllers limit the color and brightness of all light effect modes to one value (the driving current of all light effect modes is limited to the same value) to reduce the phenomenon of flickering or jitter of the light strip. In this way, in some light effect modes, the color and brightness of the pixels exceeding the value will be forced to be lowered, i.e., the pixels in a certain color and brightness step are reduced. For example, when the light effect mode is white meteor, the light strip pixels presenting the white meteor have a color and brightness ratio of 100:80:66:50:40. However, after limiting the brightness value of the white meteor to below 66, the color and brightness ratio of the 5 pixels will become 66:66:66:50:40, and the brightness of two pixels cannot be fully utilized, resulting in a significant reduction in the overall display effect of the white meteor. For another example, a pixel may display an abnormal color, such as setting the color and brightness (R, G, B) = (170, 170, 170) as a threshold, and limiting the color and brightness above the threshold to (R, G, B) = (170, 170, 170). At this time, the light strip cannot realize the corresponding light strip effect of the segmented display mode, i.e., the display colors of the three segments of the light strip cannot be different.
[0037] In view of this, the present application provides a light strip control method, a controller, a light strip control device, an electronic device, and a computer readable storage medium, which can make the light strip of different light effect modes display sufficient brightness without increasing the power supply, thereby taking into account the length of the light strip while improving the display effect of the light strip in different light effect modes and improving the user experience.
[0038] Please refer to Figure 1 , Figure 1 The figure is a structural schematic diagram of the light strip control device of the present application. The light strip control device 1000 includes a controller 100 and a light strip 200. The controller 100 is used to execute the instructions of the light strip control method of the present application, and the light strip 200 is used to display colors and color brightness according to the instructions of the controller 100.
[0039] Please refer to Figure 2 , Figure 2For the application scenario of the ribbon control device, the ribbon control device 1000 (not shown in the figure) includes a controller 100 and a light strip 200, and the light strip 200 control method of the application is applied to the controller 100. The controller 100 is electrically connected to the light strip 200 at one end and is electrically connected to the power supply 300 at the other end. The power supply 300 provides stable driving current for the light strip 200. The light strip 200 has a plurality of LED lights, three LED lights form a pixel, and the color of the light strip 200 can be in units of pixels, that is, the color and color brightness display of the light strip 200 can refer to the color and color display of one or more pixels. The controller 100 and the user terminal 400 are wirelessly connected, and wireless communication technologies such as infrared communication technology and Bluetooth (Bluetoot) communication technology can be used to establish a wireless communication connection between the controller 100 and the user terminal 400. The user selects a scene on the user terminal 400, and the user terminal 400 generates a scene selection instruction according to the scene selection operation, and sends the scene selection instruction to the controller 100. The controller 100 receives the light effect mode selection instruction, and obtains the second color brightness of the light strip pixel according to the brightness coefficient of the light effect mode and the first color brightness of the light strip pixel; control the light strip pixel to display the second color brightness corresponding to the light effect mode, so that the light strip 200 displays the effect corresponding to the light effect mode.
[0040] Please refer to Figure 3 , Figure 3 For the flowchart of the light strip control method of the embodiment of the application, the light strip control method includes the following steps:
[0041] Step S101: In response to the light effect mode selection instruction, the second color brightness of the light strip pixel is obtained according to the brightness coefficient of the light effect mode and the first color brightness of the light strip pixel.
[0042] The controller 100 stores parameters including the brightness coefficient, color brightness, current coefficient, and driving current of the light effect mode, and can also receive the parameters including the brightness coefficient, color brightness, current coefficient, and driving current of the light effect mode sent by the user terminal 400.
[0043] The light effect mode refers to the selection mode of the display effect of the light strip 200, and the display effect of the light strip 200 includes the color displayed by the light strip pixel, the position of the color on the light strip 200, the display time of the color, etc. For example, a certain display effect of the light strip 200 is that the front segment of the light strip 200 displays red, the rear segment of the light strip 200 displays white, the display time of red is 1s, and the display time of white is 2s. The light effect mode can be set in advance by the R&D personnel. For example, the light effect mode can include a static display mode, a segmented display mode, a custom dynamic display mode, and a scene display mode.
[0044] The controller 100 controls the color of the pixel by adjusting the brightness ratio of the three primary colors (Red, Green, Blue, RGB) of the pixel, and controls the color brightness displayed by the light strip pixel by adjusting the brightness of the three primary colors of the pixel. For example, when the brightness of the three primary colors of a certain pixel is (R, G, B) = (255, 0, 0), that is, the brightness ratio of the three primary colors is R:G:B = 255:0:0, the pixel displays red. When (R, G, B) = (255, 0, 0) is adjusted to (R, G, B) = (51, 0, 0), the red brightness of the pixel is reduced. When the brightness of the three primary colors of the pixel is adjusted to (R, G, B) = (255, 255, 255), that is, the brightness ratio of the three primary colors is R:G:B = 255:255:255, the pixel displays white. When (R, G, B) = (255, 255, 255) is adjusted to (R, G, B) = (51, 51, 51), the white brightness of the pixel is reduced. Therefore, the color brightness displayed by the pixel can be divided into the color brightness i n before adjustment and the color brightness i k after adjustment.
[0045] Each light effect mode can be designed with a brightness coefficient K1, and the first color brightness i n is adjusted by the brightness coefficient K1 to obtain the adjusted second color brightness i k . The formula for obtaining the second color brightness i k is as follows:
[0046] i k =K1ⅹi n
[0047] → (R ik , G ik , B ik ) = (K1 x R in , K1 x G in , K1 x B in )
[0048] Where i k represents the color brightness of the pixel before adjustment, that is, the first color brightness is the color brightness i k of the pixel before adjustment, which can be expressed as (R ik , G ik , B ik ), K1 represents the brightness coefficient, and i n represents the color brightness of the pixel after adjustment, that is, the second color brightness is the color brightness i n of the pixel after adjustment, which can be expressed as (R in , G in , B in), which indicates that the first color brightness is multiplied by the brightness coefficient to obtain the second color brightness.
[0049] The controller 100 distributes the current provided by the power supply 300 to the three primary color channels of the pixel according to the parameter, so as to realize the brightness adjustment of the three primary colors of the pixel. Therefore, through the related brightness and current calculation, the brightness coefficient K1 can be mapped with a current coefficient K2, and the current coefficient K2 is used to adjust the size of the current. The current before adjustment is originally used to drive the pixel to display the color, so the current before adjustment is called the first driving current I n . The controller 100 outputs the current after adjustment to the pixel, and the current after adjustment is called the second driving current I k .
[0050] It can be understood that the first driving current I n is adjusted to the second driving current I k according to the current coefficient K2. After the second driving current I k is distributed to the pixel, the color brightness i k of the pixel is obtained.
[0051] In some embodiments, the brightness coefficient K1 is used to reduce the color brightness, and the value of the brightness coefficient K1 is less than or equal to 1, for example, 95%, 68%, 87%, and 95%. Specifically, the current coefficient K2 is used to reduce the current, and the value of the current coefficient K2 is less than or equal to 1, for example, 95%, 68%, 87%, and 95%.
[0052] It can be understood that the first color brightness i n of the lamp strip pixel can be reduced to the second color brightness i k according to the brightness coefficient K1. Specifically, the first driving current I n is reduced to the second driving current I k according to the current coefficient K2. After the second driving current I k is distributed to the pixel, the color brightness i k of the pixel is darkened.
[0053] Each light effect mode can be set with a corresponding brightness coefficient K1 and a current coefficient K2 mapped with the brightness coefficient K1, so as to adjust the first color brightness i n of each light effect mode.
[0054] It can be understood that the brightness coefficients K1 of different light effect modes are different, so under different light effect modes, the controller 100 adjusts the first color brightness i n, of the pixel according to different brightness coefficients K1 to obtain the second color brightness i k of the pixel.
[0055] Step S102: control the lamp strip pixels to display the second color brightness corresponding to the lamp effect mode.
[0056] According to the brightness coefficient K1 and the first color brightness i n get the second color brightness I k According to the second color brightness I k control the lamp strip pixels to display the second color brightness i k , so that the lamp strip 200 realizes the display effect of the lamp effect mode. Specifically, according to the first driving current I n and the current coefficient K2, get the second driving current I k After the second driving current I k is distributed to the pixels of the lamp strip 200, the pixels display the second color brightness i k , so that the lamp strip 200 displays the display effect of the lamp strip mode.
[0057] In one application scenario, please refer to Figure 1 , the user inputs an operation of selecting a certain lamp effect mode on the user terminal 400, and the user terminal 400 generates a lamp effect mode selection instruction according to the operation. The lamp effect mode instruction is sent to the controller 100, and the controller 100 responds to the lamp effect mode selection instruction, according to the brightness coefficient K1 of the lamp effect mode and the first color brightness i n of the lamp strip 200, get the second color brightness i k of the lamp strip 200, control the lamp strip pixels to display the second color brightness i k corresponding to the lamp effect mode. Specifically, the user inputs an operation of selecting a certain lamp effect mode on the user terminal 400, and the user terminal 400 generates a lamp effect mode selection instruction according to the operation. The lamp effect mode instruction is sent to the controller 100, and the controller 100 responds to the lamp effect mode selection instruction, according to the current coefficient K2 of the lamp effect mode and the first driving current I n of the color brightness of the lamp strip 200, get the second driving current I k of the lamp strip 200, drive the lamp strip 200 to display the second color brightness i k according to the second driving current I k .
[0058] It can be understood that by adjusting the first color brightness i n of the lamp strip pixels through the brightness coefficient K1 of the lamp effect mode, get the second color brightness i k of the lamp strip 200, control the lamp strip pixels to display the second color brightness i k , which can realize that the pixels of different lamp effect modes have corresponding second color brightness i k,By increasing the number of pixels in the LED strip 200, the color brightness of the LED strip pixels can achieve a better display effect in all LED strip modes, avoiding the situation where the color brightness of the LED strip pixels is limited to the same value in all LED strip modes (i.e., the received first driving current I). n (The values are the same), causing some pixels to be too low or abnormally bright, resulting in a deterioration in the display effect of the light strip color.
[0059] Please see Figure 4 In some embodiments, step S101: after responding to the lighting effect mode selection instruction, further includes the following steps:
[0060] Step S201: Obtain the brightness threshold based on the upper limit of the color brightness and the brightness coefficient of the light strip pixels in the lighting effect mode;
[0061] There are multiple lighting effect modes. In some lighting effect modes, the brightness difference between different colors of the same pixel is too large. If the brightness coefficient of the same lighting effect mode is still used, the brightness of some colors of the pixel will not be fully utilized, and the pixel color brightness will be too dark.
[0062] For example, the lighting effect mode can be a static display mode. In static display mode, the entire light strip 200 can display one color. For example, the entire light strip 200 can display red, green, blue, cyan, yellow, purple, or white simultaneously. In static display mode, the brightness i of the first color varies between different colors. n The difference is too large; for example, the brightness of the first color, red, is... n Given (R, G, B) = (255, 0, 0), the first color brightness i of white is... n For (R, G, B) = (255, 255, 255), the first color brightness i of white is... n Much brighter than the first color i of red n If the brightness of the first color i is the same for both white and red, n All of them use the brightness factor K1 to reduce the brightness of the second color i k The first color brightness i may appear red. n If it's too small, the brightness of the red color cannot be fully utilized.
[0063] Therefore, in static display mode, the brightness of the first color i is adjusted using the brightness coefficient K1. n Previously, the brightness i of the first color needed to be determined. n Is it too big?
[0064] Specifically, first calculate the upper limit i of the color brightness of the LED strip pixels in a certain lighting effect mode. z Color brightness limit i z i refers to the maximum brightness of the first color in a pixel.n Then, based on the upper limit of the color brightness i of the light strip pixels in this lighting effect mode. z The brightness threshold i is obtained by combining the brightness coefficient K1. m For example, the first color brightness i of white in static display mode. n The highest color brightness of a pixel is i. n The first color brightness i n If (R, G, B) = (255, 255, 255), then the upper limit of the color brightness of this pixel is i. z For i z =R+G+B=255+255+255=765. Next, the luminance coefficient K1 and the upper limit of color luminance i... z Obtain the brightness threshold i m For example, if the brightness coefficient K1 = 0.35, then the brightness threshold i m =K1ⅹi z =0.35 x 765 = 286.
[0065] Step S202: In response to the first color brightness of the LED strip pixel being greater than the brightness threshold, the second color brightness of the LED strip pixel is obtained based on the brightness coefficient and the first color brightness.
[0066] Step S203: Control the brightness of the second color corresponding to the LED strip pixel display lighting effect mode.
[0067] Next, based on the brightness coefficient K1 and the upper limit of color brightness i z Obtain the brightness threshold i m Then, compare the brightness threshold i m With the first color brightness i n The size, if the brightness of the first color of the LED strip pixel is i n Greater than the brightness threshold i m Then, based on the brightness coefficient K1 and the brightness i of the first color... n The second color brightness i of the light strip is obtained as 200. k .
[0068] Understandably, based on the luminance coefficient K1 and the upper limit of color luminance i z The obtained brightness threshold i m This is the value at which the brightness of different colors of pixels can be fully utilized in the lighting effect mode. Therefore, if the brightness of the first color i is determined... n Greater than the brightness threshold i m Then, the first color brightness i of the pixel is explained. n If the value is too large, the brightness of the first color of that pixel can be reduced. n Reduce the brightness of the first color i n Up to the second color brightness i k Then, based on the brightness i of the second colork The pixel display is controlled, and the pixel can also display better color brightness.
[0069] Please refer to Figure 1 In one application scenario, the remote controller has a static display mode, which is red, green, blue, cyan, yellow, purple or white. The user inputs an operation of selecting the static display white mode on the remote controller. The remote controller generates a static display white mode selection instruction according to the operation, sends the light effect mode instruction to the controller 100, and the controller 100 responds to the static display white mode instruction and the first color brightness i n 765 of the brightness threshold i m According to the brightness coefficient K1 of 0.35 of the static display white mode and the first color brightness i n 765 of the lamp strip 200, the second color brightness i k 286 of the lamp strip 200 is obtained. k 286, that is, according to the second color brightness i k (R, G, B) = (90, 90, 90) to control the pixel display of the entire lamp strip 200 to be white.
[0070] In some embodiments, after the step S201 of obtaining the brightness threshold according to the color brightness upper limit of the lamp strip pixel of the light effect mode and the brightness coefficient, the lamp strip control method further includes the following steps:
[0071] Step S301: In response to the first color brightness of the lamp strip pixel being less than or equal to the brightness threshold, the lamp strip pixel is controlled to display the first color brightness corresponding to the light effect mode.
[0072] After the brightness threshold i z is obtained according to the brightness coefficient K1 and the color brightness upper limit i m , the size of the brightness threshold i m and the first color brightness i n is compared. If the first color brightness i n of the lamp strip pixel is less than or equal to the brightness threshold i m , the first color brightness i n is directly controlled to realize the display effect of the light effect mode of the lamp strip 200.
[0073] It can be understood that after the brightness threshold i m of the pixel and the first color brightness i n are compared, the first color brightness i n is less than or equal to the brightness threshold i m , which indicates that the first color brightness i n of the pixel is small and does not need to be further reduced. Otherwise, the first color brightness i ntoo low, and thus, directly according to the first color brightness i n The lamp strip pixels are controlled to display, so that the lamp strip 200 realizes the display effect of the lamp effect mode.
[0074] Please refer to Figure 1 In one application scenario, the remote controller has static display modes, which are red, green, blue, cyan, yellow, purple, or white. The user inputs an operation of selecting the static display red mode on the remote controller. The remote controller generates a lamp static display red mode selection instruction according to the operation, and sends the lamp effect mode instruction to the controller 100. The controller 100 responds to the static display red mode selection instruction, and controls the red first color brightness i n 255 to be less than a brightness threshold i m Then, according to the first color brightness i n 255, that is, the first color brightness i n (R, G, B)=(255, 0, 0) controls the pixels of the entire lamp strip 200 to display red.
[0075] Please refer to Figure 5 In some embodiments, the lamp strip control method further includes the following steps:
[0076] Step S401: In response to the segmented display mode selection instruction, the second color brightness of the lamp strip is obtained according to the brightness coefficient of the segmented display mode and the first color brightness of the lamp strip pixels.
[0077] Step S402: The lamp strip pixels are controlled to display the second color brightness corresponding to the segmented display mode selection instruction.
[0078] The lamp effect mode can be a segmented display mode, which means that the lamp strip 200 displays different colors in segments. The user can select all segments (full selection of the segmented display mode) or part of the segments (partial selection of the segmented display mode) of the lamp strip 200 to display.
[0079] For example, the lamp strip 200 is divided into three segments. The first color brightness i n of the pixels of the first segment is (R, G, B)=(255, 255, 255). The first color brightness i n of the pixels of the second segment is (R, G, B)=(200, 200, 200). The first color brightness i n of the pixels of the third segment is (R, G, B)=(170, 170, 170). The brightness coefficient K1 of the segmented display mode can be 0.2. According to the brightness coefficient K1 and the first color brightness i n , the second color brightness i k can be obtained. Specifically, the first driving current I nThe second driving current I is obtained k According to the second driving current I k After driving the pixel to display color, the second color brightness i of the first segment of pixels can be obtained. k In which, the second color brightness i of the first segment of pixels k For (R, G, B) = (51, 51, 51), the second color brightness i of the second segment pixel. k Given (R, G, B) = (40, 40, 40), and the second color brightness i of the third segment pixel. k Let (R, G, B) = (34, 34, 34).
[0080] Please refer to the following: Figure 1 In one application scenario, the user terminal 400 is a mobile phone, and the light strip 200 has three colors: red, yellow, and green. The user selects a segmented display mode and selects all on the mobile phone. Based on this operation, the mobile phone generates a segmented display mode command and sends the segmented display mode to the controller 100. The controller 100 responds to the segmented display mode selection command by determining the brightness coefficient K1 of the segmented display mode and the brightness i of the first color of the light strip 200. n The second color brightness i of the light strip is obtained as 200. k According to the brightness i of the second color k Control the light strip 200 to display the second color brightness i of red. k The second color brightness of yellow is i k And the second color brightness of green i k。
[0081] Understandably, by using the same color brightness (i.e., the same second driving current) to limit all lighting effect modes, pixel color display anomalies may occur when the user selects a segmented display mode. For example, when the color brightness i is limited... k Using (R, G, B) = (170, 170, 170) as a threshold, the brightness of the first color i exceeding the threshold is... n Constrained by (R, G, B) = (170, 170, 170), the color brightness i of the three segments of the 200 light strip is... n When all values are (R, G, B) = (170, 170, 170), the LED strip 200 cannot achieve the effect of the segmented display mode, meaning the three segments of the LED strip 200 display the same color. In this embodiment, by adjusting the pixel color brightness according to the brightness coefficient K2, the three segments can display different colors, achieving a better display effect in the segmented display mode.
[0082] Please see Figure 6 In some embodiments, the light strip control method further includes the following steps:
[0083] Step S501: in response to the self-defined dynamic scene mode selection instruction, obtaining a second color brightness of the light strip according to the brightness coefficient of the self-defined dynamic scene mode and the first color brightness of the light strip pixel;
[0084] Step S502: controlling the light strip pixel to display the second color brightness corresponding to the self-defined dynamic scene mode.
[0085] The light effect mode is a self-defined (DIY) dynamic scene mode, and the self-defined dynamic scene mode refers to that the light strip 200 can change the color of the light strip 200 according to the rhythm of music or other sound.
[0086] For example, the first color brightness i n of the light strip pixel is (R, G, B) = (255, 150, 100), and the brightness coefficient K1 of the self-defined dynamic scene mode can be 0.2. The first color brightness i n is reduced to the second color brightness i k according to the brightness coefficient K1. k The second color brightness i k is (R, G, B) = (51, 30, 20). n k The first driving current I n is reduced to the second driving current I k according to the current coefficient K2. k After the pixel is driven to display the color according to the second driving current I k , the color brightness i k of the pixel is (R, G, B) = (51, 30, 20).
[0087] Please refer to Figure 1 In one application scenario, the user terminal 400 is a mobile phone, and the user selects the self-defined dynamic scene mode on the mobile phone. The mobile phone generates a self-defined dynamic scene mode selection instruction according to the operation, sends the self-defined dynamic scene mode to the controller 100, and the controller 100 responds to the self-defined dynamic scene mode selection instruction, obtains the second color brightness i n from the first color brightness i k of the light strip 200 according to the brightness coefficient K1 of the self-defined dynamic scene mode. k According to the second color brightness i k , the light strip 200 is controlled to realize that the light strip pixel displays the second color brightness i k following the rhythm of the music.
[0088] It can be understood that the color brightness of the pixel is reduced according to the brightness coefficient K1, and the display effect of the self-defined dynamic scene mode can be realized.
[0089] In some embodiments, the light strip control method further includes the following steps:
[0090] Step S601: In response to the light effect mode selection instruction, if the first driving current of the display light strip is greater than the preset driving current, the first driving current is reduced to the preset driving current.
[0091] Some light effect modes consume a large amount of electricity, for example, preset scene modes consume a large amount of electricity, and the preset scene modes include white light stretching, winter train, snow mountain cottage, Christmas, etc. Compared with other dynamic displays such as custom dynamic modes, preset scene modes need to consume more electricity. For example, in order to realize the theme of snow mountain cottage, Christmas, etc., the color and brightness of the pixels may need to be changed constantly, and the changing speed is fast and slow. Other custom dynamic modes change slowly, so preset scene modes need to consume more electricity than other dynamic displays such as custom dynamic modes.
[0092] The preset driving current refers to the first driving current of a reference scene calculated according to various theme scenes, that is, the first driving current of the reference scene can be used for various theme scenes. Using the first driving current does not affect the color and brightness display of the light strip 200 of various theme scenes.
[0093] It can be understood that when the user selects the preset scene mode, it is first determined whether the first driving current of the display light strip 200 of the preset scene mode is greater than the preset driving current. If the first driving current is greater than the preset driving current, the first driving current is reduced to the preset driving current to avoid consuming too much electricity.
[0094] Step S602: Obtain the first color and brightness of the light strip according to the preset driving current;
[0095] According to the preset driving current, the first color and brightness i of the light strip 200 is displayed n The first driving current of various theme scenes can be close to the first driving current of the reference scene, and the flickering of the display color and brightness of the light strip of various theme scenes can be reduced.
[0096] Step S603: Obtain the second color and brightness of the light strip according to the brightness coefficient of the light effect mode and the first color and brightness of the light strip pixels;
[0097] Step S604: Control the light strip pixels to display the second color and brightness corresponding to the light effect mode.
[0098] Please refer to Figure 1, the user inputs the operation of the cabin mode on the mobile phone, the user terminal 400 generates the cabin mode selection instruction according to the operation, and sends the light effect mode instruction to the controller 100. The controller 100 receives the cabin mode selection instruction, and if the first driving current of the display light strip 200 is greater than the preset driving current, the first driving current is reduced to the preset driving current. According to the preset driving current, the first color brightness i n , according to the brightness coefficient K1 of the cabin mode and the first color brightness i n of the light strip pixel, the second color brightness i k of the light strip 200 is obtained, and finally the second color brightness i k is used to control the light strip 200 to realize the display effect of the cabin.
[0099] Please refer to Figure 7 , Figure 7 is a structural schematic diagram of the controller 100 of the present application. The controller 100 includes a processing unit 10, a wireless communication unit 20, an infrared receiving unit 30, a driving unit 40, a power supply 300 conversion unit 50 and a volume acquisition unit 60. The controller 100 is electrically connected with the power supply 300 through the DC interface.
[0100] The processing unit 10 is electrically connected with the wireless communication unit 20, the driving unit 30, the power supply conversion unit 40 and the volume acquisition unit 50 respectively. The wireless communication module 20 is used to establish the wireless communication connection between the user terminal 400 and the processing unit 10, so that the processing unit 10 receives the light effect mode selection instruction sent by the user terminal 400. The wireless communication module 20 includes a Bluetooth module 21 and an infrared receiving module 22. The client terminal 400 can be an electronic device with a wireless communication module, for example, the user terminal 400 is a mobile phone, a computer and the like. The client terminal 400 can also be an electronic device with an infrared module, for example, the user terminal 400 is a remote controller and the like.
[0101] The driving unit 30 is configured to drive the light strip 200 to display color and color brightness according to the instruction of the processing unit 10, and the driving unit 30 comprises a chip SN74LVC1G08. The power conversion unit 40 is configured to convert the voltage provided by the power supply 300 into a voltage suitable for the processing unit 10, so as to provide a first driving current for the processing unit 10, for example, converting the voltage 24V of the power supply 300 into 5V, and the power conversion unit 40 comprises a chip 78L05. The sound collection unit 50 is configured to receive the sound outside the controller 100, and convert the sound into a signal to be sent to the processing unit 10, so that the processing unit 10 controls the light strip 200 to change the display effect according to the signal, for example, so that the processing unit 10 controls the light strip 200 to display color and color brightness according to the signal, and the sound collection unit 50 comprises an analog-to-digital converter (ADC) configured to convert the analog signal of the received sound into a digital signal. The processing unit 10 is configured to execute the light strip control method of the present application.
[0102] The developer can send the parameters including the brightness coefficient of the light effect mode, the color brightness, the current coefficient, the first driving current, etc. to the storage address (FLASH) of the antenna (not shown in the figure) of the processing unit 10 through the production configuration tool 500. After the processing unit 10 receives the instruction sent by the user terminal 400, the processing unit 10 processes the parameters according to the instruction, so as to implement the light strip control method of the present application. Specifically, the processing unit 10 is configured to, in response to the light effect mode selection instruction, obtain the second color brightness of the light strip pixel according to the brightness coefficient of the light effect mode and the first color brightness of the light strip pixel; and control the light strip pixel to display the second color brightness corresponding to the light effect mode.
[0103] In some embodiments, the processing unit 20 is further configured to obtain a brightness threshold according to the upper limit of the color brightness of the light strip pixel of the light effect mode and the brightness coefficient; and in response to the first color brightness of the light strip pixel being greater than the brightness threshold, obtain the second color brightness of the light strip pixel according to the brightness coefficient and the first color brightness.
[0104] In some embodiments, the processing unit 20 is further configured to, in response to the first color brightness of the light strip pixel being less than or equal to the brightness threshold, control the light strip pixel to display the first color brightness corresponding to the light effect mode.
[0105] It can be understood that the wireless communication module 20 of the present application can send and receive broadcast data to and from the outside, can receive the broadcast data of multiple user terminals 400, and the processing unit 10 can record the broadcast data into the FLASH after receiving the broadcast data. After receiving the broadcast data, the broadcast data receiving function can be turned off, so as to save the burden of the processing unit 10, and at the same time, the application (App) on another user terminal 400 will not be disconnected when receiving the broadcast data of one user terminal 400.
[0106] As an embodiment, please refer toFigure 8 The present application also provides an electronic device, which includes a mobile phone, a computer, etc. The electronic device 800 includes a terminal capable of automatically performing numerical calculation and / or information processing according to a pre-set or stored instruction. The hardware of the terminal includes, but is not limited to, a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, and an embedded device, etc. As an embodiment, the memory 801 is used to store program codes and various data. The memory 801 can include a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electrically-erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magnetic disk storage, a magnetic tape storage, or any other medium capable of carrying or storing data which is readable by a computer.
[0107] As an embodiment, the at least one processor 802 can include an integrated circuit, for example, can include a single packaged integrated circuit, or can include a plurality of packaged integrated circuits of the same function or different functions, including a combination of microprocessors, digital processing chips, image processors, and various control chips, etc. The at least one processor 802 is a control core (Control Unit) of the terminal, and performs various functions of the electronic device 800 and processes data by running or executing programs or modules stored in the memory 801, and calling data stored in the memory 801. The integrated units implemented in the form of software function modules described above can be stored in a computer readable storage medium. The software function modules described above are stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a personal computer, a terminal, or a network device, etc.) or a processor (processor) to execute part of the method of each embodiment of the present application. The memory 801 stores program codes, and the at least one processor 802 can call the program codes stored in the memory 801 to execute related functions. In an embodiment of the present application, the memory 801 stores a plurality of instructions, and the plurality of instructions are executed by the at least one processor 802 to implement the above-mentioned light strip control method. Specifically, the specific implementation method of the at least one processor 802 to the above-mentioned instructions corresponds to the description of related steps in the embodiment, which will not be described here.
[0108] The embodiment of the present application further provides a storage medium. In the storage medium, computer instructions are stored. When the instructions are run on a computing device, the computing device can execute the light strip control method provided by the foregoing embodiments.
[0109] Those skilled in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application. Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.
[0110] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the division of the above-described device embodiment is only a logical function division, and there can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some characteristics can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, or the among the different units, can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms. The unit illustrated as a separate component can or can not be physically separate, and can or can not be a physical unit, i.e., can be located in one place or distributed on multiple network units. Some or all of the units can be selected according to the actual needs to achieve the purposes of the embodiments of the present application. In addition, the units in the various embodiments of the present application can be integrated in a processing unit, or each unit can be a physically separate unit, or two or more units can be integrated in a unit. It should be noted that the above is only a preferred embodiment of the present application and the technical principles applied.
[0111] Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, modifications and substitutions can be made without departing from the scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can include more other equivalent embodiments without departing from the concept of the present application, and all fall within the scope of the present application.
Claims
1. A method for controlling LED strip lights, characterized in that, The light strip control method includes: In response to the lighting effect mode selection command, the second color brightness of the light strip pixel is obtained according to the brightness coefficient of the lighting effect mode and the first color brightness of the light strip pixel. If the first driving current of the light strip pixel is greater than the preset driving current, the first driving current is reduced to the preset driving current, and then the first color brightness of the light strip pixel is obtained according to the preset driving current. Controlling the LED strip pixels to display the second color brightness corresponding to the lighting effect mode includes obtaining a second driving current based on the first driving current and the current coefficient, and then allocating the second driving current to the LED strip pixels, wherein the first driving current corresponds to the first color brightness, the current coefficient corresponds to the brightness coefficient, and the second driving current corresponds to the second color brightness.
2. The LED strip control method according to claim 1, characterized in that, The step of obtaining the second color brightness of the light strip pixel based on the brightness coefficient of the lighting effect mode and the first color brightness of the light strip pixel includes: The brightness threshold is obtained based on the upper limit of the color brightness of the light strip pixels in the lighting effect mode and the brightness coefficient; In response to the first color brightness of the light strip pixel being greater than the brightness threshold, the second color brightness of the light strip pixel is obtained based on the brightness coefficient and the first color brightness.
3. The LED strip control method according to claim 2, characterized in that, After obtaining the brightness threshold based on the upper limit of the color brightness of the light strip pixels in the lighting effect mode and the brightness coefficient, the light strip control method further includes: In response to the first color brightness of the light strip pixel being less than or equal to the brightness threshold, the light strip pixel is controlled to display the first color brightness corresponding to the lighting effect mode.
4. A controller, characterized in that, The controller includes a processing unit, which is configured to respond to a lighting effect mode selection command, obtain the second color brightness of the light strip pixel based on the brightness coefficient of the lighting effect mode and the first color brightness of the light strip pixel, and if the first driving current of the light strip pixel is greater than a preset driving current, reduce the first driving current to the preset driving current, and then obtain the first color brightness of the light strip pixel based on the preset driving current. Controlling the LED strip pixels to display the second color brightness corresponding to the lighting effect mode includes obtaining a second driving current based on the first driving current and the current coefficient, and then allocating the second driving current to the LED strip pixels, wherein the first driving current corresponds to the first color brightness, the current coefficient corresponds to the brightness coefficient, and the second driving current corresponds to the second color brightness.
5. The controller according to claim 4, characterized in that, The processing unit is also used to obtain a brightness threshold based on the upper limit of the color brightness of the light strip pixels of the lighting effect mode and the brightness coefficient; In response to the first color brightness of the light strip pixel being greater than the brightness threshold, the second color brightness of the light strip pixel is obtained based on the brightness coefficient and the first color brightness.
6. The controller according to claim 4, characterized in that, The processing unit is further configured to control the light strip pixel to display the first color brightness corresponding to the lighting effect mode in response to the first color brightness of the light strip pixel being less than or equal to a brightness threshold.
7. The controller according to claim 4, characterized in that, The controller further includes a wireless communication unit, which is used to establish a wireless communication connection between the processing unit and the user terminal, so that the processing unit can receive the lighting effect mode selection instruction sent by the user terminal.
8. A ribbon control device, characterized in that, The ribbon control device includes a light strip and a controller as described in any one of claims 4 to 6.
9. An electronic device, characterized in that the electronic device includes a processor and a memory, the memory storing a computer program, which, when executed by the processor, implements the light strip control method according to any one of claims 1-3.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the light strip control method as described in any one of claims 1-3.
Citation Information
Patent Citations
Light control method and device, equipment end and computer readable storage medium
CN114521036A
Brightness control method of LED brightening light bar
CN115551145A