CN106332398B - A kind of LED light strip display effect control method - Google Patents

A kind of LED light strip display effect control method Download PDF

Info

Publication number
CN106332398B
CN106332398B CN201510387617.8A CN201510387617A CN106332398B CN 106332398 B CN106332398 B CN 106332398B CN 201510387617 A CN201510387617 A CN 201510387617A CN 106332398 B CN106332398 B CN 106332398B
Authority
CN
China
Prior art keywords
led light
display effect
light strip
equation group
plane equation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510387617.8A
Other languages
Chinese (zh)
Other versions
CN106332398A (en
Inventor
潘洋
刘振宇
陈贵
赵艳滨
宋思萌
邵景银
周小璇
刘新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Smart Technology R&D Co Ltd
Original Assignee
Qingdao Haier Smart Technology R&D Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Smart Technology R&D Co Ltd filed Critical Qingdao Haier Smart Technology R&D Co Ltd
Priority to CN201510387617.8A priority Critical patent/CN106332398B/en
Publication of CN106332398A publication Critical patent/CN106332398A/en
Application granted granted Critical
Publication of CN106332398B publication Critical patent/CN106332398B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of LED light strip display effect control method, include the following steps: to establish N number of light bar display effect binary plane equation group;N number of binary plane equation group of foundation is saved as into bytecode respectively;Construct user interface;A display pattern is selected on a user interface for every light bar;Parameter is set;The bytecode for calling the selected corresponding binary plane equation group of display pattern, simulates light bar display effect, and show;Judge whether simulative display effect meets the requirements, if it does not meet the requirements, then Reparametrization, if met the requirements, then corresponding bytecode is exported to physical controller, the operation of corresponding LED light strip is controlled by the physical controller, so that corresponding LED light strip shows corresponding effect.LED light strip display effect control method of the invention is convenient for the user to operate, improves the flexibility that user controls LED light strip display effect, improves the flexibility that LED light strip uses.

Description

A kind of LED light strip display effect control method
Technical field
The invention belongs to LED control technology fields, specifically, being to be related to a kind of LED light strip display effect control method.
Background technique
LED intelligent lamp band is a kind of Novel lamp strip for the functions such as supporting gradual change, flash, chase, jumping of rising in recent years. The method of control LED light strip display effect mainly has the display pattern of several fixations in light bar internal curing at present, and user is only It can be selected in these types of display pattern, flexibility is lacked to the control of light bar display effect.
Summary of the invention
The present invention provides a kind of LED light strip display effect control method, improve to the control of LED light strip display effect Flexibility.
It is achieved in order to solve the above technical problems, the present invention adopts the following technical solutions:
A kind of LED light strip display effect control method, includes the following steps:
(1) N number of LED light strip display effect binary plane equation group is established, the expression formula of each binary plane equation group is such as Under:
Wherein, n=1,2,3 ... N, N are the quantity of binary plane equation group, and each binary plane equation group is one corresponding Display pattern;I=1,2,3 ... M, M are the quantity of LED light in light bar;biFor fnThe offset of the i-th LED lamp of r function, hiFor fnThe offset of the i-th LED lamp of g function, kiFor fnThe offset of the i-th LED lamp of b function;t1、t2、t3It is time factor;Ri For the red luma of the i-th LED lamp, GiFor the Green brightness of the i-th LED lamp, BiFor the blue luminences of the i-th LED lamp;
(2) N number of binary plane equation group of foundation is saved as into bytecode respectively;
(3) user interface is constructed;
(4) display pattern is selected for every light bar on a user interface;
(5) parameter is set;
(6) bytecode for calling the selected corresponding binary plane equation group of display pattern, simulates light bar display effect, and show Show;
(7) judge whether simulative display effect meets the requirements;
If simulative display effect is undesirable, return step (5);
If simulative display effect meets the requirements, (8) are entered step;
(8) corresponding bytecode is exported to physical controller, the fortune of corresponding LED light strip is controlled by the physical controller Row, so that corresponding LED light strip shows corresponding effect.
Further, in each binary plane equation group, fnr、fng、fnThe expression formula of b is not exactly the same or complete phase Together.
Further, the setting parameter refers to the number of the length of every light bar of setting, LED light in every light bar Amount, time factor, offset.
Further, Ri∈ [0,1], Gi∈ [0,1], Bi∈ [0,1], wherein 0 indicates minimum brightness, 1 indicates most light Degree.
Preferably, in step (4), bytecode is run by virtual machine, simulates LED light strip display effect.
Further, the display pattern includes often turning on/off mode, often turns on/off the corresponding binary plane equation group of mode In, time factor t1、t2、t3It is definite value.
Further, the display pattern includes running lamp mode, in the running lamp mode, if LED light strip Length is L, whole LED light strip is divided into D sections, the length of first segment is l1, the length of second segment is l2, the length of third section For l3... ..., D sections of length is lD, l1+l2+l3+......+lD=L, the corresponding binary plane side of the running lamp mode Cheng Zuwei
Wherein, xi1,xi2,xi3,......,xiD, yi1,yi2,yi3,......,yiD, zi1,zi2,zi3,......,ziDIt is normal Number.
Compared with prior art, the advantages and positive effects of the present invention are: LED light strip display effect controlling party of the invention Method user only needs on a user interface to select display pattern and parameter, obtains satisfied simulative display effect, then It can get satisfied LED light strip actual displayed effect, be not only convenient for user's operation, improve user to LED light strip display effect The flexibility of control improves the flexibility that LED light strip uses;And eliminate the field adjustable process of LED light strip.
After a specific embodiment of the invention is read in conjunction with the figure, the other features and advantages of the invention will become more clear Chu.
Detailed description of the invention
Fig. 1 is the flow chart of one embodiment of LED light strip display effect control method proposed by the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, below with reference to drawings and examples, Invention is further described in detail.
Embodiment one, shown in Figure 1, specific step is as follows for the LED light strip display control method of the present embodiment:
Step 101: process starts.
Step 102: establishing N number of binary plane equation group.
N number of LED light strip display effect binary plane equation group is established, the expression formula of each binary plane equation group is as follows:
Wherein, n=1,2,3 ... N, N are the quantity of binary plane equation group, and each binary plane equation group is one corresponding Display pattern;I=1,2,3 ... M, M are the quantity of LED light in light bar;biFor fnThe offset of the i-th LED lamp of r function;hiFor fnThe offset of the i-th LED lamp of g function;kiFor fnThe offset of the i-th LED lamp of b function;t1、t2、t3It is time factor.? That is fnr、fng、fnB is binary function, and independent variable is time factor and offset.
RiFor the red luma of the i-th LED lamp, GiFor the Green brightness of the i-th LED lamp, BiFor the blue of the i-th LED lamp Brightness, i.e., the color of the i-th LED lamp and brightness are by Ri、Gi、BiThese three values determine.
Time factor means the length of time cycle.
Offset refers to a LED lamp to the index value of light bar initial phase.With fnr(t1,bi) for be illustrated.
Assuming that the offset b of the first LED lamp1=0, the offset b of the second LED lamp2=1, third LED lamp it is inclined Shifting amount b3=2, the offset b of M LED lampM=M-1, referring to described in following table.
By the utilization to offset, light bar overturning, light bar connecting, symmetrical animation and other effects may be implemented.
For example, to realize light bar overturning, offset be can be set to shown in following table.
Function fnr、fng、fnThe codomain of b is [0,1], i.e. Ri∈ [0,1], Gi∈ [0,1], Bi∈ [0,1], wherein 0 table Show minimum brightness, 1 indicates maximum brightness.No matter how time factor and offset change, fnr、fng、fnThe functional value of b is always Change between 0 to 1.
Certainly, if using other representations, such as indicate that minimum brightness, 200 indicate maximum brightness with 100, i.e., The codomain of function is [100,200], this is only expression way difference, and there is no essence for the principle illustrated with the present embodiment not Together.
In each binary plane equation group, fnr、fng、fnThe expression formula of b is not exactly the same or identical.Namely It says, red luma, Green brightness, the blue luminences of the i-th LED lamp are not exactly the same or identical.
Step 103: N number of binary plane equation group of foundation is saved as into bytecode respectively.
Bytecode is the binary storage form of data in a computer.
Step 104: building user interface.
User interface is constructed, creates the interactive window for selecting display pattern on a user interface, and for being arranged The friendship of the various parameters such as light bar item number, the length of every light bar, quantity, time factor, the offset of LED light in every light bar Mutual window, interactive window receive the various operational orders that user is generated by mouse, keyboard.
Step 105: selecting a display pattern on a user interface for every light bar.
Setting needs light bar item number to be simulated on a user interface, and selectes a display pattern for every light bar.Such as It is 4 that setting, which needs light bar item number to be simulated, just selectes a display pattern respectively for this 4 light bar.
Step 106: parameter is set according to actual needs.
The length for needing every light bar to be simulated, the quantity of the LED light in every light bar, time are set according to actual needs The parameters such as the factor, offset.
Step 107: calling bytecode, simulate light bar display effect.
The bytecode for calling the selected corresponding binary plane equation group of display pattern, runs bytecode by virtual machine, simulates Every light bar display effect, and shown in the form of patterned over the display, it is checked for user, constitutes " finding, that is, institute " virtual display mechanism.
Step 108: judging whether simulative display effect meets the requirements.
User checks simulative display effect by display, and judges whether simulative display effect meets the requirements.
If simulative display effect is undesirable, return step 106;
If simulative display effect meets the requirements, 109 are entered step.
Step 109: output byte code to physical controller, control LED light strip operation.
Corresponding bytecode is exported to physical controller, physical controller controls corresponding according to the bytecode received The operation of LED light strip, so that corresponding LED light strip shows corresponding effect.
Step 110: process terminates.
In the present embodiment, virtual machine operates on user computer, and virtual machine mainly includes byte code memory, decoding list Member, execution unit, output unit and display control module are driven by external clock and are run.Wherein, byte code memory is stored with Bytecode is converted to the instruction that execution unit can identify by the bytecode to be run, decoding unit, and execution unit is in outside It under the driving of clock, executes instruction, and the implementing result of instruction is passed into output unit, the data that output unit will receive It is converted into specific level signal, and is transmitted to display control module, the signal received is converted figure by display control module Shape is simultaneously drawn over the display, is checked for user, is constituted the virtual display mechanism of " What You See Is What You Get ".
User checks simulative display effect by display, perceives between simulative display effect and ideal display effect Deviation can reselect various parameters, it might even be possible to reselect display pattern, imitate again through virtual machine simulative display Fruit, and check again, repeatedly, until simulative display effect reaches ideal effect;Then by corresponding bytecode export to Physical controller controls corresponding LED light strip operation, so that corresponding LED light strip shows corresponding effect.
Designer designs plurality of display modes and corresponding binary plane equation group and user interface in advance, uses Family only needs on a user interface to select display pattern and parameter, obtains satisfied simulative display effect, then obtains Satisfied LED light strip actual displayed effect, is not only convenient for user's operation, improves what user controlled LED light strip display effect Flexibility improves the flexibility that LED light strip uses;And eliminate the field adjustable process of LED light strip.
In the present embodiment, establishing has N number of LED light strip display effect binary plane equation group, and N number of equation group is corresponding with N A display pattern.
As n=1, binary plane equation group is
The corresponding display pattern of equation group be it is most common often turn on/off display pattern, in equation group, time factor t1、t2、t3It is definite value, i.e., time factor pair functional value does not influence, and every LED lamp is always maintained at fixed color and brightness.
As n=2, binary plane equation group is
The corresponding display pattern of equation group is running lamp mode, in running lamp mode, it is assumed that the length of LED light strip is Whole LED light strip is divided into D sections by L, and the length of first segment is l1, the length of second segment is l2, the length of third section is l3... ..., D sections of length is lD, l1+l2+l3+......+lD=L.In equation group,
Wherein, xi1,xi2,xi3,......,xiD, yi1,yi2,yi3,......,yiD, zi1,zi2,zi3,......,ziDIt is normal Number, and in [0,1] range.
Other display patterns are no longer described in detail, and designer can according to need design display pattern and corresponding binary is flat Face equation group.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than is limited;Although referring to aforementioned reality Applying example, invention is explained in detail, for those of ordinary skill in the art, still can be to aforementioned implementation Technical solution documented by example is modified or equivalent replacement of some of the technical features;And these are modified or replace It changes, the spirit and scope for claimed technical solution of the invention that it does not separate the essence of the corresponding technical solution.

Claims (7)

1. a kind of LED light strip display effect control method, it is characterised in that: include the following steps:
(1) N number of LED light strip display effect binary plane equation group is established, the expression formula of each binary plane equation group is as follows:
Wherein, n=1,2,3 ... N, N are the quantity of binary plane equation group, the corresponding display of each binary plane equation group Mode;I=1,2,3 ... M, M are the quantity of LED light in light bar;biFor fnThe offset of the i-th LED lamp of r function, hiFor fnG letter The offset of several i-th LED lamps, kiFor fnThe offset of the i-th LED lamp of b function;t1、t2、t3It is time factor;RiIt is i-th The red luma of LED lamp, GiFor the Green brightness of the i-th LED lamp, BiFor the blue luminences of the i-th LED lamp;
(2) N number of binary plane equation group of foundation is saved as into bytecode respectively;
(3) user interface is constructed;
(4) display pattern is selected for every light bar on a user interface;
(5) parameter is set;
(6) bytecode for calling the selected corresponding binary plane equation group of display pattern, simulates light bar display effect, and show;
(7) judge whether simulative display effect meets the requirements;
If simulative display effect is undesirable, return step (5);
If simulative display effect meets the requirements, (8) are entered step;
(8) corresponding bytecode is exported to physical controller, the operation of corresponding LED light strip is controlled by the physical controller, So that corresponding LED light strip shows corresponding effect.
2. LED light strip display effect control method according to claim 1, it is characterised in that: in each binary plane side Cheng Zuzhong, fnr、fng、fnThe expression formula of b is not exactly the same or identical.
3. LED light strip display effect control method according to claim 1, it is characterised in that: the setting parameter refers to The length of every light bar, quantity, time factor, the offset of LED light in every light bar are set.
4. LED light strip display effect control method according to claim 1, it is characterised in that: Ri∈ [0,1], Gi∈[0, 1], Bi∈ [0,1], wherein 0 indicates minimum brightness, 1 indicates maximum brightness.
5. LED light strip display effect control method according to claim 1, it is characterised in that: in step (4), pass through Virtual machine runs bytecode, simulates LED light strip display effect.
6. LED light strip display effect control method according to claim 1, it is characterised in that: the display pattern includes Mode often is turned on/off, is often turned on/off in the corresponding binary plane equation group of mode, time factor t1、t2、t3It is definite value.
7. LED light strip display effect control method according to claim 1, it is characterised in that: the display pattern includes Whole LED light strip, if the length of LED light strip is L, is divided into D sections in the running lamp mode by running lamp mode, and first The length of section is l1, the length of second segment is l2, the length of third section is l3... ..., D sections of length is lD, l1+l2+l3 +......+lD=L, the corresponding binary plane equation group of the running lamp mode are
Wherein, xi1,xi2,xi3,......,xiD, yi1,yi2,yi3,......,yiD, zi1,zi2,zi3,......,ziDFor constant.
CN201510387617.8A 2015-07-03 2015-07-03 A kind of LED light strip display effect control method Active CN106332398B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510387617.8A CN106332398B (en) 2015-07-03 2015-07-03 A kind of LED light strip display effect control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510387617.8A CN106332398B (en) 2015-07-03 2015-07-03 A kind of LED light strip display effect control method

Publications (2)

Publication Number Publication Date
CN106332398A CN106332398A (en) 2017-01-11
CN106332398B true CN106332398B (en) 2019-06-21

Family

ID=57728078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510387617.8A Active CN106332398B (en) 2015-07-03 2015-07-03 A kind of LED light strip display effect control method

Country Status (1)

Country Link
CN (1) CN106332398B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202364419U (en) * 2011-08-29 2012-08-01 苏州晶雷光电照明科技有限公司 Display effect debug device for LED landscape lamp on building facade
CN103152935A (en) * 2013-02-25 2013-06-12 颜惠平 LED (Light Emitting Diode) decorative lamp controller, LED decorative lamp and LED decorative lamp driving method
CN103247072A (en) * 2013-04-15 2013-08-14 青岛海信宽带多媒体技术有限公司 Method and device for realizing three-dimensional rotating interface based on Android system
CN103489402A (en) * 2013-09-24 2014-01-01 广东威创视讯科技股份有限公司 Debugging method and system for splicing display screen
CN103686110A (en) * 2013-12-31 2014-03-26 Tcl集团股份有限公司 Method and device for converting RGB (Red, Green and Blue) into RGBW (Red, Green, Blue and White)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202364419U (en) * 2011-08-29 2012-08-01 苏州晶雷光电照明科技有限公司 Display effect debug device for LED landscape lamp on building facade
CN103152935A (en) * 2013-02-25 2013-06-12 颜惠平 LED (Light Emitting Diode) decorative lamp controller, LED decorative lamp and LED decorative lamp driving method
CN103247072A (en) * 2013-04-15 2013-08-14 青岛海信宽带多媒体技术有限公司 Method and device for realizing three-dimensional rotating interface based on Android system
CN103489402A (en) * 2013-09-24 2014-01-01 广东威创视讯科技股份有限公司 Debugging method and system for splicing display screen
CN103686110A (en) * 2013-12-31 2014-03-26 Tcl集团股份有限公司 Method and device for converting RGB (Red, Green and Blue) into RGBW (Red, Green, Blue and White)

Also Published As

Publication number Publication date
CN106332398A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN106384573B (en) The OLED module Gamma adjusting process calculated based on linear interpolation
CN104507218B (en) Based on the color lamp device that power line edge signal is controlled
CN204259247U (en) The five road light adjusting systems that mobile phone controls
CN113709948B (en) Lamp effect synthesis control system and method for intelligent colored lamp
CN105848354B (en) A kind of shading process being used in intelligent illuminating system and system
CN101324308A (en) Illumination device
CN103428966A (en) Key backlight processing method and device and terminal device
CN204153691U (en) High flame lamp true to nature
CN106572557B (en) The flashing controlling method and system of LED light string
CN108882440B (en) Keyboard light imitates control method, computer installation and computer readable storage medium
CN104315453A (en) Highly-vivid flame lamp and achieving method thereof
CN106332398B (en) A kind of LED light strip display effect control method
CN2528185Y (en) Controller for multicolour LED decorative lamp
CN101324309A (en) Lighting device
CN103200739B (en) A kind of three-dimensional all-colour LED Self-breathing driving chip
CN204650384U (en) The cabinet of lighting effects can be controlled
CN203261515U (en) Three-dimensional full-color LED automatic respiration driving chip
CN109591691A (en) Vehicle flowing water lamp control system and method
CN207097401U (en) Lamp box luminescent system and dynamic lamp box
CN201066056Y (en) Lighting apparatus
CN203276790U (en) Led video cloth
CN103841729A (en) Backlight control circuit and keyboard
CN205640286U (en) Imitative naked light flame LED lamp
CN106937433B (en) A kind of LED lamp packet control apparatus and lighting system
CN117440583B (en) Indoor lighting lamp, lamp efficiency configuration method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant