CN110111726A - Control method, device and the electronic equipment of LED light battle array - Google Patents

Control method, device and the electronic equipment of LED light battle array Download PDF

Info

Publication number
CN110111726A
CN110111726A CN201910470954.1A CN201910470954A CN110111726A CN 110111726 A CN110111726 A CN 110111726A CN 201910470954 A CN201910470954 A CN 201910470954A CN 110111726 A CN110111726 A CN 110111726A
Authority
CN
China
Prior art keywords
image
image data
displayed
color
battle array
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.)
Pending
Application number
CN201910470954.1A
Other languages
Chinese (zh)
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.)
Beijing Zhikete Robot Technology Co Ltd
Original Assignee
Beijing Zhikete Robot Technology 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 Beijing Zhikete Robot Technology Co Ltd filed Critical Beijing Zhikete Robot Technology Co Ltd
Priority to CN201910470954.1A priority Critical patent/CN110111726A/en
Publication of CN110111726A publication Critical patent/CN110111726A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Control Of El Displays (AREA)

Abstract

The present invention provides control method, device and the electronic equipment of a kind of LED light battle array, after the image data for receiving image to be displayed, multiple color codings are generated according to image data, multiple colors coding is then sent to corresponding all-colour LED lamp bead, LED light battle array is made to show image to be displayed;Wherein, each color coding corresponds to a kind of color, the corresponding color coding of each of LED light battle array all-colour LED lamp bead, and color coding shows corresponding color for controlling corresponding all-colour LED lamp bead.The present invention utilizes the light of each all-colour LED lamp bead sending particular color in the color coding-control LED light battle array generated according to the image data of image to be displayed, all all-colour LED lamp beads in LED light battle array are made to constitute image to be displayed, to achieve the effect that control LED light battle array.

Description

Control method, device and the electronic equipment of LED light battle array
Technical field
The present invention relates to automation field, in particular to a kind of the control method and device of LED light battle array.
Background technique
All-colour LED lamp bead is what one kind was integrated with current control chip, and can be inputted according to external control device Signal issues the electronic component of the light of multiple color.The control device of common all-colour LED lamp bead on the market at present, mainly LED light strip for connecting into multiple all-colour LED lamp beads controls.User can be by this kind of control device, to LED light The all-colour LED lamp bead taken sends control signal, and multiple all-colour LED lamp beads in a LED light strip is made to issue colored light, To play decoration function.
But with the development of society, user has been not content with and LED light strip is only used only has decorated, and it is desirable to Complicated image is shown with the multiple all-colour LED lamp beads (i.e. LED light battle array) for being arranged in matrix form, however, there is no one at present The control method or device that kind can be used for controlling LED light battle array can satisfy this requirement.
Summary of the invention
Based on above-mentioned the deficiencies in the prior art, the present invention proposes the control method and device of a kind of LED light battle array, for controlling LED light battle array enables LED light battle array to show image.
A kind of control method of LED light battle array characterized by comprising
Receive the image data of image to be displayed;
Multiple color codings are generated according to the image data of the image to be displayed;Wherein, each described color coding Correspond to a kind of color, corresponding one color coding of each of LED light battle array all-colour LED lamp bead;
The multiple color coding is sent to corresponding all-colour LED lamp bead, shows the LED light battle array described to be shown Image;Wherein, the color coding shows that the color encodes corresponding color for controlling corresponding all-colour LED lamp bead.
Optionally, before multiple colors codings according to the generation of the image data of the image to be displayed, further includes:
Whether the image data for judging the image to be displayed is complete image data;
If the image data of the image to be displayed is complete image data, execute described according to the figure to be shown The image data of picture generates multiple color codings;
If the image data of the image to be displayed is not complete image data, it is to be shown to return to the execution reception The image data of image.
Optionally, before multiple colors codings according to the generation of the image data of the image to be displayed, further includes:
Judge in the image data of the image to be displayed with the presence or absence of wrong data;
If wrong data is not present in the image data of the image to be displayed, execute described according to the figure to be shown The image data of picture generates multiple color codings;
If returning there are wrong data in the image data of the image to be displayed and executing the reception image to be displayed Image data.
Optionally, before the image data for receiving image to be displayed, further includes:
Judge whether there is the client having connected;
The client having connected if it exists then executes the image data for receiving image to be displayed;Wherein, described to aobvious The image data of diagram picture is sent by the client having connected;
The client having connected if it does not exist then returns and judges whether there is the client having connected described in execution.
It is optionally, described that the multiple color coding is sent to corresponding all-colour LED lamp bead, comprising:
It is encoded for each color, by the color code conversion at corresponding control sequential signal;
The multiple control sequential signal is sent to corresponding all-colour LED lamp bead, make the LED light battle array show it is described to Show image;Wherein, the control sequential signal shows that the color coding is corresponding for controlling corresponding all-colour LED lamp bead Color.
Second aspect of the present invention discloses a kind of control device of LED light battle array, comprising:
Receiving unit, for receiving the image data of image to be displayed;
Generation unit is encoded for generating multiple colors according to the image data of the image to be displayed;Wherein, each The color coding corresponds to a kind of color, and the corresponding color of each of LED light battle array all-colour LED lamp bead is compiled Code;
Transmission unit makes the LED light battle array for the multiple color coding to be sent to corresponding all-colour LED lamp bead Show the image to be displayed;Wherein, the color coding shows the color coding for controlling corresponding all-colour LED lamp bead Corresponding color.
Optionally, the control device further include:
First judging unit, for judging whether the image data of the image to be displayed is complete image data;
If the image data of the image to be displayed is complete image data, the generation unit is triggered according to The image data of image to be displayed generates multiple color codings;
If the image data of the image to be displayed is not complete image data, trigger the receiving unit receive to Show the image data of image.
Optionally, the control device further include:
Second judgment unit whether there is wrong data in the image data for judging the image to be displayed;
If wrong data is not present in the image data of the image to be displayed, the generation unit is triggered according to The image data of image to be displayed generates multiple color codings;
If there are wrong data in the image data of the image to be displayed, it is to be shown to trigger the receiving unit reception The image data of image.
Optionally, the transmission unit includes:
Converting unit believes the color code conversion at corresponding control sequential for encoding for each color Number;
Transmission sub-unit makes described for the multiple control sequential signal to be sent to corresponding all-colour LED lamp bead LED light battle array shows the image to be displayed;Wherein, the control sequential signal is shown for controlling corresponding all-colour LED lamp bead The color encodes corresponding color.
Third aspect present invention discloses a kind of electronic equipment, comprising:
Wireless communicator, for receive client sending wireless signal, and by the wireless signal include it is to be shown The image data of image is transmitted to processor;
Processor makes LED light for executing the control method of LED light battle array disclosed in first aspect present invention any one Battle array shows the image to be displayed.
The present invention provides control method, device and the electronic equipment of a kind of LED light battle array, receives the picture number of image to be displayed According to rear, multiple colors are generated according to image data and are encoded, multiple colors coding is then sent to corresponding all-colour LED lamp bead, LED light battle array is set to show image to be displayed;Wherein, each color coding corresponds to a kind of color, and each of LED light battle array is complete The corresponding color coding of color LED lamp bead, color coding show corresponding color for controlling corresponding all-colour LED lamp bead. The present invention utilizes each full-color LED lamp in the color coding-control LED light battle array generated according to the image data of image to be displayed Pearl issues the light of particular color, and all all-colour LED lamp beads in LED light battle array is made to constitute image to be displayed, to reach control LED The effect of lamp array.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of external pin schematic diagram of WS2812 all-colour LED lamp bead;
Fig. 2 is a kind of LED light battle array provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of the control method of LED light battle array provided in an embodiment of the present invention;
Fig. 4 be another embodiment of the present invention provides a kind of LED light battle array control method flow diagram;
Fig. 5 is the control timing diagram of WS2812 provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of the control sequential signal stream of LED light battle array provided in an embodiment of the present invention;
Fig. 7 be another embodiment of the present invention provides a kind of LED light battle array control method flow diagram;
Fig. 8 is a kind of structural schematic diagram of the control device of LED light battle array provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Control method, device and the electronic equipment of LED light battle array provided in an embodiment of the present invention are mainly used for control by multiple The LED light battle array that all-colour LED lamp bead is constituted, enables LED light battle array according to the demand of user, shows writings and image.
The technical solution that any embodiment provides in order to better understand the present invention, is briefly introduced of the present invention first LED lamp bead and all-colour LED lamp bead.
LED, i.e. light emitting diode, can have electric current by when issue particular color light.What single LED was issued The color of light is determined by the material for constituting this LED, for example, gallium arsenide diode glows, gallium phosphide diode green light, And gallium nitride diode blue light-emitting.On the other hand, the size that the electric current of LED is flowed through by controlling, can control the brightness of LED, In specified current range, as soon as bigger by the electric current of light emitting diode, brightness is higher.
Using the characteristic of above-mentioned LED, by by the light emitting diode of multiple light that can issue different colours and an electricity Flow control chip connection, by the size of current of the light emitting diode of current control chip controls different colours, so that it may make simultaneously Multiple LED issue the light of different brightness, different colours respectively, the light mixing of multiple LED, so that it may show with individually The light of the different multiple color of the color of LED.This electricity by multiple light emitting diodes and a current control integrated chip Sub- component is exactly all-colour LED lamp bead.
WS2812 and WS2812b refers to two kinds of common at present all-colour LED lamp beads.Both all-colour LED lamp beads, by Above-mentioned gallium arsenide diode, gallium phosphide diode, gallium nitride diode and a current control chip composition, pass through electric current control The size of current of three light emitting diodes of chip controls processed, so that it may obtain the feux rouges, green light and blue light by different brightness At multiple color light.
As shown in Figure 1, it is the external pin schematic diagram of WS2812 a kind of, wherein number 1 to 6 respectively corresponds WS2812's Six pins, border circular areas are the luminous zone of WS2812, and pin 1 and pin 4 are used to connect with the firewire in circuit, pin 3 It is used to connect the zero curve of circuit with pin 6, is equivalent to ground connection, pin 2 is input terminal, and pin 5 is output end.After energization, from defeated Enter to hold input control signal can control the color of WS2812.When output end is mainly used for two or more WS2812 connection Transmitting control signal between two adjacent WS2812, the output end of first WS2812 and the input terminal of second WS2812 Connection, the control signal of two WS2812 can be obtained from from the input terminal input of first WS2812, first WS2812 After the control signal of body, other signals can be transmitted to the input terminal of second WS2812 by the output end of itself, make Two WS2812 obtain its corresponding control signal.
Multiple all-colour LED lamp beads interconnected are arranged by matrix form, so that it may constitute a LED light battle array.Such as Fig. 2 Shown in, it is exactly the structural schematic diagram of a LED light battle array.Each dot indicates an all-colour LED lamp bead, rectangle frame table in figure Show the backboard for fixing all-colour LED lamp bead.In the technology of current all-colour LED lamp bead, it can be used for controlling there are no one kind The method of LED light battle array as shown in Figure 2, therefore can not be using LED light battle array as a screen, for showing image.
To solve the above-mentioned problems, one embodiment of the application provides a kind of control method of LED light battle array, to realize Control the effect that LED light battle array shows image.The control method for the LED light battle array that the application any embodiment provides, executing subject May be considered one has the function of controlling the control device of LED light battle array.Referring to FIG. 3, the present embodiment the following steps are included:
S301, the image data for receiving image to be displayed.
Above-mentioned image data can generate in the clients such as mobile phone or PC, then pass through wireless transmission or wired The mode of transmission is supplied to the device based on method provided in this embodiment control LED light battle array.
It should be noted that the image data of above-mentioned image to be displayed, on the one hand can only include a picture, another party Face also may include the video being made of multiple continuous pictures, and each picture therein constitutes a frame of video.It is described When including video in image data, method provided in this embodiment can be shown frame by frame by control LED light battle array constitutes the video Picture, thus achieve the effect that control LED light battle array show video.It is subsequent introduce the application any embodiment offer method or It when device, is introduced by taking the previous case as an example, that is, using image to be displayed as a picture.
The corresponding image data of one picture can will constitute the color of all pixels point of the picture by specific color Mode is converted into corresponding numerical value and obtains.For example, being based on rgb color mode, the color of a pixel can be converted into one A vector is denoted as (R, G, B), and R, G, B therein are the integers that three value ranges are 0 to 256, respectively indicates this pixel Color red component, green component and blue component.For any one picture, by each pixel of this picture Color be based on after rgb color mode is converted into corresponding vector, the set of the vector of all pixels point, exactly this picture Image data.
It should be noted that control method provided in this embodiment, core are, with each all-colour LED of LED light battle array Lamp bead show image to be displayed each pixel color so that LED light battle array all all-colour LED lamp beads combination constitute to Show image.
It therefore,, can be with before client generates image data if the structural parameters of image data and LED light battle array mismatch Image to be displayed is adjusted according to the structural parameters of preset LED light battle array.For example, the structural parameters of LED light battle array be 413 × 295, it indicates in LED light battle array, every a line has 413 all-colour LED lamp beads, share 295 rows, and the picture for including of image to be displayed Size and above structure parameter mismatch, then client can be according to above structure parameter to each of image to be displayed figure Piece carries out pixel merging or newly-increased, makes the matching of image to be displayed Yu LED light battle array, that is, the institute for including by image to be displayed There is picture to be converted into 413 × 295 size.
Wherein, structural parameters can be inputted by user, can also by the executing subject of control method provided in this embodiment, I.e. the control device of LED light battle array is sent to client in advance.
S302, multiple colors codings are generated according to the image data of image to be displayed.
Wherein, each color coding corresponds to a kind of color, and each of LED light battle array all-colour LED lamp bead is equal Corresponding color coding.
Color coding, can be the binary coding of image data.Specifically, if image data is based on rgb color mould What formula generated, it is assumed that the corresponding vector of one of pixel is (110,200,89), then, by by the three of this vector A component (i.e. digital) is converted into binary number one by one, and three binary number combinations must arrive the corresponding color of this pixel and compile Code.
It should be noted that each component should be converted into order to make each color coding have unified format The identical binary number of digit.In image data based on rgb color schema creation, in order to indicate whole in 0 to 256 range Number, each component should be expressed as one 8 binary numbers, and corresponding color coding is equivalent to the two of one 24 System number.
For example, being based on above-mentioned regulation, the color that vector (1,2,1) is converted to is encoded, and should be indicated are as follows: 000000010000001000000001.Wherein, from left to right, preceding 8 expressions one-component 1, intermediate 8 indicate second A component 2, last 8 expression thirds component 1.
According in abovementioned steps to the introduction of image data, it is found that each pixel of image to be displayed is right An all-colour LED lamp bead of LED light battle array is answered, for example, the 2nd row of LED light battle array, the all-colour LED lamp bead of the 3rd column, are equivalent to aobvious 2nd row of diagram picture, the pixel of the 3rd column.Therefore, color corresponding with the pixel coding that step S302 is converted to, together When also correspond to the all-colour LED lamp bead in LED light battle array.Meanwhile each pixel, corresponding vector indicate a kind of face Color is encoded by the color that the vector is converted to, it is clear that corresponding in this color that the vector indicates.
S303, multiple colors coding is sent to corresponding all-colour LED lamp bead, shows the LED light battle array described to aobvious Diagram picture.
Wherein, each color coding is used to control corresponding all-colour LED lamp bead and shows that the color encodes corresponding face Color.
It is each in LED light battle array in the case that each of LED light battle array all-colour LED lamp bead shows specific color A all-colour LED lamp bead, is equivalent to a pixel of image to be displayed, and all pixel combinations may make up figure to be shown Picture.Therefore, if by color coding be sent to corresponding all-colour LED lamp bead, so that it may reach control LED light battle array show it is aforementioned to Show the effect of image.
Need to illustrate when, color coding is sent to corresponding all-colour LED lamp bead described in step S303, will when practical Each color coding, is converted into the control signal of all-colour LED lamp bead, then sends control signals to corresponding all-colour LED Lamp bead.
Further, if the video data that image data is made of multiple continuous pictures, in above mentioned step S3 02 Image data is converted into color coding, refers to, for each picture in video data, this picture is converted into corresponding to The color code set constituted is encoded by multiple colors.The coding of transmission color described in step S303, refers to, sends every one by one The corresponding color code set of picture.
For example, being converted into 10 color code sets, each color coding for the video data being made of 10 pictures It include that multiple colors encode correspondingly with the all-colour LED lamp bead of LED light battle array in set.Then, first is sent first The corresponding color code set of picture makes LED light battle array show the first picture, waits after a certain period of time, sends the second picture Corresponding color code set, makes LED light battle array show the second picture, and so on, show that LED light battle array one by one above-mentioned 10 pictures achieve the effect that show video.
The present embodiment provides a kind of control method of LED light battle array, after the image data for receiving image to be displayed, according to image Data generate multiple color codings, and multiple colors coding is then sent to corresponding all-colour LED lamp bead, shows LED light battle array Image to be displayed;Wherein, each color coding corresponds to a kind of color, and each of LED light battle array all-colour LED lamp bead is right A color coding is answered, color coding shows corresponding color for controlling corresponding all-colour LED lamp bead.The present invention utilizes basis Each all-colour LED lamp bead issues particular color in the color coding-control LED light battle array that the image data of image to be displayed generates Light, so that all all-colour LED lamp beads in LED light battle array is constituted image to be displayed, to achieve the effect that control LED light battle array.
In previous embodiment, color coding is sent to corresponding all-colour LED lamp bead, really obtains color code conversion To after control signal, control signal is sent to corresponding all-colour LED lamp bead.Wherein, right for different all-colour LED lamp beads The form that signal should be controlled is also not exactly the same.Below with reference to another embodiment offer of the application by WS2812 or WS2812b The control method of the LED light battle array of composition introduces the mistake by color code conversion at the corresponding control signal of WS2812 or WS2812b Journey.Referring to FIG. 4, method provided in this embodiment the following steps are included:
S401, the image data for receiving image to be displayed.
S402, multiple colors codings are generated according to the image data of image to be displayed.
Wherein, each color coding corresponds to a kind of color, and each of LED light battle array all-colour LED lamp bead is corresponding One color coding.
S403, it is encoded for each color, by the color code conversion at corresponding control sequential signal.
Control sequential signal is a kind of variation using high level and low level duration to transmit the control of information Signal, two kinds of all-colour LED lamp beads of WS2812 and WS2812b, is exactly controlled by control sequential signal.
The external pin of WS2812 below with reference to Fig. 5, and as shown in connection with fig. 1 briefly introduces control sequential signal.
The input terminal of WS2812 shown in FIG. 1, can under the control of coupled processor (for example, single-chip microcontroller), It is arranged to high level or low level, and processor can also control high level and low level duration.Meanwhile The current control chip of WS2812 can be determined according to the duration and low level duration of the high level of input terminal Input signal is 0 or 1.As shown in figure 5, if input terminal is arranged to low level, and continue 0.9 microsecond, it is then converted into high electricity It is flat, and continue 0.35 microsecond, it is equivalent to have input signal 0 to WS2812;If input terminal is arranged to low level, and continues 0.35 microsecond then switches to high level and continues 0.9 microsecond, is equivalent to have input signal 1 to WS2812.It is used for like this The high level of the lasting preset time of expression 0 or 1 and low level combination, become a control sequential, multiple continuous controls Timing constitutes a control sequential signal.
As previously described in a prior embodiment, if image data is indicated based on rgb color mode, the face of each all-colour LED lamp bead Color coding, is exactly one 24 binary numbers, and each of these position is indicated with 0 or 1, and therefore, a color is compiled Code, as long as being converted into control sequential as shown in Figure 5 for each of these position is corresponding, 24 control sequentials connection compositions This color encodes corresponding control sequential signal, this control sequential signal is sent to corresponding WS2812, is equivalent to Have input corresponding color coding.
S404, multiple control sequential signals are sent to corresponding all-colour LED lamp bead, LED light battle array is made to show figure to be shown Picture.
Wherein, WS2812 can parse corresponding color coding from control sequential signal, it can be considered that control Clock signal can control corresponding all-colour LED lamp bead display color and encode corresponding color.
The specific method for sending multiple control sequential signals is related to the connection type of multiple WS2812 in LED light battle array.One The common connection type of kind is:
The adjacent WS2812 with any two in a line, the output end of one of them are connect with another input terminal, All WS2812 for being equivalent to same a line connect into a LED light strip.Positioned at one end of a LED light strip, not with other The input terminal of the WS2812 of the output end connection of WS2812 is waited as the input terminal of this LED light strip positioned at this LED The other end, output end of the output end for the WS2812 not connect with the input terminal of other WS2812 as this LED light strip.
On the basis of above-mentioned connection, since LED light battle array on one side, (i.e. the first row is all for first LED light strip The LED light strip that WS2812 is connected into) output end connect with the input terminal of Article 2 LED light strip, the output of Article 2 LED light strip End reconnects the input terminal of Article 3 LED light strip, and so on.Fig. 2 can be referred to herein.The input terminal of first LED light strip It is connect with control device, for receiving control sequential signal from control device.
For the connection type of above-mentioned LED light battle array, the multiple control sequential signals for needing to send are according to corresponding WS2812 Distance form a control sequential signal stream as shown in FIG. 6.All control sequential signals in control sequential signal stream will It is sent one by one since control sequential signal 1.
After control sequential signal is issued, first WS2812 connecting with control device will be firstly received control sequential Signal 1 so first WS2812 intercepts control sequential signal 1, and issues the corresponding light of control sequential signal 1, for rear The continuous control sequential signal 2 passed through does not respond to these to control sequential signal n, first WS2812 and controls signal, but will They are transmitted by output end to second WS2812.Similarly, second WS2812 will intercept control sequential signal 2 and sending pair Then the light answered directly transmits control sequential signal 3 and its subsequent control sequential signal.That is, each WS2812 Only respond itself received first control sequential signal, issue corresponding light, subsequent control sequential signal then directly to After transmit, and so on, until the last one WS2812.
It should be noted that a control sequential signal stream, can only control LED light battle array and show a picture.It needs to use LED Lamp array shows video, that is, continuously displays the occasion of plurality of pictures, with reference to the video control sequential of Fig. 6, should send multiple Control sequential signal stream, and between two adjacent control sequential signal streams be inserted into reset signal (duration be greater than or Equal to the low level of 50 microseconds).
Its concrete principle is after issuing first control sequential signal stream, and LED light battle array shows first control sequential signal Corresponding picture (control sequential signal stream 1) is flowed, then control device sends a reset signal, receives reset signal WS2812, the color for still maintaining current light is constant, but when can respond first control received after reset signal Sequential signal, and show the light of this control sequential signal corresponding color.Therefore, second control is retransmited after sending reset signal Clock signal stream processed, so that it may when so that the color of itself light being switched to second control by each WS2812 in LED light battle array The color of corresponding control sequential signal in sequential signal stream is equivalent to LED light battle array and shows that second control sequential signal stream is corresponding Picture, and so on, until the corresponding control sequential signal stream n of the last one picture, LED light battle array is made to continuously display multiple figures Piece achievees the effect that show video.
The present embodiment mainly describes the method based on the control of control sequential signal by the WS2812 LED light battle array formed, when So, for the LED light battle array being made of control mode and WS2812 almost the same WS2812b, method provided in this embodiment is same Sample is applicable in.
In conjunction with the method that previous embodiment provides, another embodiment of the application provides a kind of control method of LED light battle array again, Referring to FIG. 7, method includes the following steps:
S701, the client having connected is judged whether there is.
The client having connected if it exists thens follow the steps S702, and the client having connected if it does not exist then continues to execute This step, until being present in client and establishing connection.
Optionally, the judgement of step S701, on the one hand can be passively, that is, whether real-time detection receives client Connection request, just establish connection with the client after receiving connection request, and judge there is the client that has connected;It is another Aspect can be the sending connection request signal of active, and whether real-time detection receives the response of client, if receiving response just Connection is established with client, and judges there is the client having connected.
S702, the image data for receiving image to be displayed.
Image data is sent by the client having connected.
Whether S703, the image data for judging image to be displayed are complete image data.
If the image data of image to be displayed is complete image data, S704 is thened follow the steps;If image to be displayed Image data is not complete image data, then returns to step S702.
It optionally, can be first to client after judging that the image data of image to be displayed is not complete image data The first error message is sent, then executes step S702 again.Wherein, the first error message is used to show figure to be shown to client The image data of picture is imperfect.
The judgement of step S703 can be carried out according to the LED light battle array controlled.Previous embodiment points out, image data packet It includes, the multiple color vectors generated according to the color of multiple pixels of image to be displayed.And the application any embodiment Control method really replaces each pixel of image to be displayed with each all-colour LED lamp bead of LED light battle array, makes all-colour LED Lamp bead shows the color of corresponding pixel, to achieve the effect that show image with LED light battle array.
Therefore, judge whether image data is complete, exactly judge whether the quantity of the color vector in image data is equal to The quantity of all-colour LED lamp bead in LED light battle array controls LED if the quantity of color vector is less than the quantity of all-colour LED lamp bead Lamp array shows that the process of image may malfunction, and just needs to receive image data again at this time.
S704, judge in the image data of image to be displayed with the presence or absence of wrong data.
If wrong data is not present in the image data of image to be displayed, S705 is thened follow the steps, if image to be displayed There are wrong data in image data, then return to step S702.
Optionally, judge that the image data middle age there are after wrong data, can send the second error message to client, Then step S702 is executed again.Second error message is used to show that there are wrong data in image data to client.
Wrong data refers to, the off-limits color of value of the incomplete color vector of the component for including and component Component.For example, the color vector based on rgb color schema creation, on the one hand, if a color vector only includes two components, Then this color vector is a wrong data;On the other hand, if the one-component value in a color vector is 300, surpass 0 to 256 this range out, then this color vector is also a wrong data.
S705, multiple colors codings are generated according to the image data of image to be displayed.
S706, multiple colors coding is sent to corresponding all-colour LED lamp bead, LED light battle array is made to show image to be displayed.
Wherein, color coding encodes corresponding color for controlling corresponding all-colour LED lamp bead display color.
Method provided in this embodiment, generate color coding before judge respectively received image data whether completely with And whether there is wrong data, if image data is imperfect or image data in there are wrong data, just receive picture number again According to mistake occur during effectively avoiding control LED light battle array from showing image.
In conjunction with the control method for the LED light battle array that aforementioned any embodiment provides, the embodiment of the present application provides a kind of LED light The control device of battle array, referring to FIG. 8, the device includes with lower unit:
Receiving unit 801, for receiving the image data of image to be displayed.
The image data of image to be displayed is sent by the client having connected.
Optionally, receiving unit can be used for judging whether there is the client having connected, and judges to exist and has connected Data are received after client again, judgement movement is continued to execute if judging there is no the client having connected, until existing Until the client of connection.
First judging unit 802, for judging whether the image data of image to be displayed is complete image data.
If the image data of image to be displayed is complete image data, generation unit 804 is triggered according to figure to be shown The image data of picture generates multiple color codings;If the image data of image to be displayed is not complete image data, trigger Receiving unit 801 receives the image data of image to be displayed again.
Second judgment unit 803, in the image data for judging image to be displayed whether wrong data.
If wrong data is not present in the image data of image to be displayed, generation unit 804 is triggered according to figure to be shown The image data of picture generates multiple color codings;If there are wrong data in the image data of image to be displayed, reception is triggered Unit 801 receives the image data of image to be displayed again.
It should be noted that the first judging unit and second judgment unit are primarily to avoid the mistake of control LED light battle array Occurs mistake in journey, if not considering the case where malfunctioning in control process, device provided in this embodiment can be not provided with first and sentence Disconnected unit 802 and second judgment unit 803.
Generation unit 804 is encoded for generating multiple colors according to the image data of image to be displayed.
Wherein, each color coding corresponds to a kind of color, and each of LED light battle array all-colour LED lamp bead is corresponding One color coding.
Transmission unit 805, for by multiple colors coding be sent to corresponding all-colour LED lamp bead, make LED light battle array show to Show image.
Wherein, color coding encodes corresponding color for controlling corresponding all-colour LED lamp bead display color.
Optionally, when device provided in this embodiment is used to control the LED light battle array being made of WS2812 or WS2812b, Above-mentioned transmission unit can specifically include following two units:
Converting unit, for being encoded for each color, by color code conversion at corresponding control sequential signal.
Transmission sub-unit keeps LED light battle array aobvious for multiple control sequential signals to be sent to corresponding all-colour LED lamp bead Show image to be displayed.
Wherein, control sequential signal encodes corresponding color for controlling corresponding all-colour LED lamp bead display color.
Device provided in this embodiment, the control for the LED light battle array that concrete operating principle such as the application any embodiment provides Described in method processed, details are not described herein again.
Device provided in this embodiment, it is single by generating after the image data that image to be displayed is received using receiving unit 801 Member 804 generates multiple colors according to image data and encodes, and multiple colors coding is then sent to correspondence by transmission unit 805 All-colour LED lamp bead, make LED light battle array show image to be displayed;Wherein, each color coding corresponds to a kind of color, LED light The corresponding color coding of each of battle array all-colour LED lamp bead, color coding are aobvious for controlling corresponding all-colour LED lamp bead Show corresponding color.The present invention utilizes every in the color coding-control LED light battle array generated according to the image data of image to be displayed One all-colour LED lamp bead issues the light of particular color, and all all-colour LED lamp beads in LED light battle array is made to constitute image to be displayed, from And achieve the effect that control LED light battle array.
In conjunction with the control method and control device of the LED light battle array that aforementioned the application any embodiment provides, the application is another Embodiment provides a kind of electronic equipment with control LED light battle array, referring to FIG. 9, the electronic equipment includes:
In order to illustrate the connection relationship of electronic equipment provided in this embodiment, given in Fig. 9 the LED light battle array that is controlled with The present embodiment provides the signals of the connection relationship of electronic equipment.
Wireless communicator 901, for receiving the wireless signal of client sending, and by the wireless signal include to aobvious The image data of diagram picture is transmitted to processor 902.
Optionally, wireless communicator 901 can be a WiFi module, is communicated, is connect with client by local area network Receive the wireless signal that client is sent by local area network.
By local area network carry out communication communication efficiency with higher, when the data volume of image data is larger can and When completion communication, avoid the occurrence of delay.
Optionally, wireless communicator 901 can also be a bluetooth module, be led to based on Bluetooth technology and client Letter.
Processor 902 makes LED light battle array for executing the control method of the LED light battle array as described in the application any embodiment Show the image to be displayed.
Wherein, processor 902 can use a programmable chip microcontroller.The application appoints when above-mentioned processor is equivalent to The control device for the LED light battle array that one embodiment provides.
Optionally, processor 902 can be connect by interface circuit 903 with the LED light controlled battle array, interface circuit 903 With reverse connecting protection, the functions such as overheating protection and overcurrent protection.
Optionally, electronic equipment provided in this embodiment, further includes:
Power supply 904, for processor 902 and the LED light battle array controlled power supply, wherein power supply 904 may include lithium Battery and commutator transformer, lithium battery are connect by commutator transformer with processor, and pass through commutator transformer and interface year electricity Road 903 connects.
Professional technician can be realized or use the application.Profession of the various modifications to these embodiments to this field It will be apparent for technical staff, the general principles defined herein can not depart from spirit herein or model In the case where enclosing, realize in other embodiments.Therefore, the application is not intended to be limited to the embodiments shown herein, And it is to fit to the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. a kind of control method of LED light battle array characterized by comprising
Receive the image data of image to be displayed;
Multiple color codings are generated according to the image data of the image to be displayed;Wherein, each described color coding is right Answer a kind of color, corresponding one color coding of each of LED light battle array all-colour LED lamp bead;
The multiple color coding is sent to corresponding all-colour LED lamp bead, the LED light battle array is made to show the figure to be shown Picture;Wherein, the color coding shows that the color encodes corresponding color for controlling corresponding all-colour LED lamp bead.
2. control method according to claim 1, which is characterized in that the image data according to the image to be displayed Before generating multiple colors coding, further includes:
Whether the image data for judging the image to be displayed is complete image data;
If the image data of the image to be displayed is complete image data, execute described according to the image to be displayed Image data generates multiple color codings;
If the image data of the image to be displayed is not complete image data, returns and execute the reception image to be displayed Image data.
3. control method according to claim 1, which is characterized in that the image data according to the image to be displayed Before generating multiple colors coding, further includes:
Judge in the image data of the image to be displayed with the presence or absence of wrong data;
If wrong data is not present in the image data of the image to be displayed, execute described according to the image to be displayed Image data generates multiple color codings;
If returning there are wrong data in the image data of the image to be displayed and executing the figure for receiving image to be displayed As data.
4. control method according to claim 1, which is characterized in that it is described receive image to be displayed image data it Before, further includes:
Judge whether there is the client having connected;
The client having connected if it exists then executes the image data for receiving image to be displayed;Wherein, the figure to be shown The image data of picture is sent by the client having connected;
The client having connected if it does not exist then returns and judges whether there is the client having connected described in execution.
5. control method according to claim 1, which is characterized in that described that the multiple color coding is sent to correspondence All-colour LED lamp bead, comprising:
It is encoded for each color, by the color code conversion at corresponding control sequential signal;
The multiple control sequential signal is sent to corresponding all-colour LED lamp bead, shows the LED light battle array described to be shown Image;Wherein, the control sequential signal shows that the color encodes corresponding face for controlling corresponding all-colour LED lamp bead Color.
6. a kind of control device of LED light battle array characterized by comprising
Receiving unit, for receiving the image data of image to be displayed;
Generation unit is encoded for generating multiple colors according to the image data of the image to be displayed;Wherein, described in each Color coding corresponds to a kind of color, corresponding one color coding of each of LED light battle array all-colour LED lamp bead;
Transmission unit shows the LED light battle array for the multiple color coding to be sent to corresponding all-colour LED lamp bead The image to be displayed;Wherein, the color coding shows that the color coding corresponds to for controlling corresponding all-colour LED lamp bead Color.
7. control device according to claim 6, which is characterized in that the control device further include:
First judging unit, for judging whether the image data of the image to be displayed is complete image data;
If the image data of the image to be displayed is complete image data, the generation unit is triggered according to described to aobvious The image data of diagram picture generates multiple color codings;
If the image data of the image to be displayed is not complete image data, it is to be shown to trigger the receiving unit reception The image data of image.
8. control device according to claim 6, which is characterized in that the control device further include:
Second judgment unit whether there is wrong data in the image data for judging the image to be displayed;
If wrong data is not present in the image data of the image to be displayed, the generation unit is triggered according to described to aobvious The image data of diagram picture generates multiple color codings;
If there are wrong data in the image data of the image to be displayed, triggers the receiving unit and receive image to be displayed Image data.
9. control device according to claim 6, which is characterized in that the transmission unit includes:
Converting unit, for being encoded for each color, by the color code conversion at corresponding control sequential signal;
Transmission sub-unit makes the LED light for the multiple control sequential signal to be sent to corresponding all-colour LED lamp bead Battle array shows the image to be displayed;Wherein, the control sequential signal shows the face for controlling corresponding all-colour LED lamp bead Color encodes corresponding color.
10. a kind of electronic equipment characterized by comprising
Wireless communicator, for receiving the wireless signal of client sending, and the image to be displayed for including by the wireless signal Image data be transmitted to processor;
Processor keeps LED light battle array aobvious for executing the control method of the LED light battle array as described in claim 1 to 5 any one Show the image to be displayed.
CN201910470954.1A 2019-05-31 2019-05-31 Control method, device and the electronic equipment of LED light battle array Pending CN110111726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910470954.1A CN110111726A (en) 2019-05-31 2019-05-31 Control method, device and the electronic equipment of LED light battle array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910470954.1A CN110111726A (en) 2019-05-31 2019-05-31 Control method, device and the electronic equipment of LED light battle array

Publications (1)

Publication Number Publication Date
CN110111726A true CN110111726A (en) 2019-08-09

Family

ID=67493389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910470954.1A Pending CN110111726A (en) 2019-05-31 2019-05-31 Control method, device and the electronic equipment of LED light battle array

Country Status (1)

Country Link
CN (1) CN110111726A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113597061A (en) * 2021-07-16 2021-11-02 深圳市传视界电子科技有限公司 Method, apparatus and computer readable storage medium for controlling a magic color light strip
CN114007316A (en) * 2021-10-29 2022-02-01 福建星网视易信息系统有限公司 Full-color lamp strip effect setting method and terminal
CN117351857A (en) * 2023-10-23 2024-01-05 广州隧华智慧交通科技有限公司 LED screen general control detecting system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IT1148614B (en) * 1981-08-14 1986-12-03 Pitney Bowes Inc CONTROL OF AN ORDERED SET OF LIGHT-EMITTING DIODES
CN202067472U (en) * 2011-05-17 2011-12-07 北京华晟丽晶科技有限公司 Flexible LED display screen
CN102903334A (en) * 2012-11-13 2013-01-30 河南工业大学 Full color LED (Light-Emitting Diode) display screen
CN105183263A (en) * 2015-10-20 2015-12-23 淮阴工学院 Full-color touch lattice module and control method
CN105206185A (en) * 2015-06-30 2015-12-30 维沃移动通信有限公司 Control method for breathing lamp of mobile terminal and mobile terminal
CN106128355A (en) * 2016-07-14 2016-11-16 北京智能管家科技有限公司 The display packing of a kind of LED battle array and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IT1148614B (en) * 1981-08-14 1986-12-03 Pitney Bowes Inc CONTROL OF AN ORDERED SET OF LIGHT-EMITTING DIODES
CN202067472U (en) * 2011-05-17 2011-12-07 北京华晟丽晶科技有限公司 Flexible LED display screen
CN102903334A (en) * 2012-11-13 2013-01-30 河南工业大学 Full color LED (Light-Emitting Diode) display screen
CN105206185A (en) * 2015-06-30 2015-12-30 维沃移动通信有限公司 Control method for breathing lamp of mobile terminal and mobile terminal
CN105183263A (en) * 2015-10-20 2015-12-23 淮阴工学院 Full-color touch lattice module and control method
CN106128355A (en) * 2016-07-14 2016-11-16 北京智能管家科技有限公司 The display packing of a kind of LED battle array and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113597061A (en) * 2021-07-16 2021-11-02 深圳市传视界电子科技有限公司 Method, apparatus and computer readable storage medium for controlling a magic color light strip
CN114007316A (en) * 2021-10-29 2022-02-01 福建星网视易信息系统有限公司 Full-color lamp strip effect setting method and terminal
CN114007316B (en) * 2021-10-29 2023-06-23 福建星网视易信息系统有限公司 Full-color lamp band effect setting method and terminal
CN117351857A (en) * 2023-10-23 2024-01-05 广州隧华智慧交通科技有限公司 LED screen general control detecting system
CN117351857B (en) * 2023-10-23 2024-05-28 广州隧华智慧交通科技有限公司 LED screen general control detecting system

Similar Documents

Publication Publication Date Title
CN110111726A (en) Control method, device and the electronic equipment of LED light battle array
US11106421B2 (en) Display method and system for wireless intelligent multi-screen display
CN112445445B (en) Screen matching method and device, system controller and LED display
CN103855539A (en) Active cable with indicators showing operating modes and linking status
CN201718004U (en) Digital shutter-type 3D glasses system
CN201037989Y (en) Synchronous all-colorful LED display control device
CN106227045A (en) A kind of Smart Home inter-linked controlling method, device and system
CN211019016U (en) Video processing apparatus
CN115396641B (en) Laser projection display method, three-color laser projection apparatus, and readable storage medium
CN107332617A (en) A kind of data sending device, visible light communication system and method
CN105491431B (en) Control system for LED television complete machine
WO2019109917A1 (en) Color calibration system for rgb light device and method thereof
CN210443245U (en) Display driving system based on multi-single-wire transmission and lighting equipment
CN111063285A (en) Display control system and display unit board
CN216491077U (en) Key system for collecting and transmitting data of Internet of things
CN104035798B (en) Multifunctional electronic equipment with function of sequential starting up and starting up method of electronic equipment
US20140278330A1 (en) Illumination system
CN107068043A (en) A kind of intelligence system based on new RGBLED chips
CN114596810A (en) Display control device and LED display system
CN115396642A (en) Laser projection display method, three-color laser projection equipment and readable storage medium
CN210575030U (en) Double-line cascade LED drive circuit
CN207075008U (en) A kind of data sending device and visible light communication system
CN211606864U (en) LED matrix circuit for displaying different states
CN212086334U (en) Video processing apparatus
CN209497533U (en) A kind of video processor, display and video control system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190809