CN106793402A - A kind of light source control method and device - Google Patents

A kind of light source control method and device Download PDF

Info

Publication number
CN106793402A
CN106793402A CN201611192126.9A CN201611192126A CN106793402A CN 106793402 A CN106793402 A CN 106793402A CN 201611192126 A CN201611192126 A CN 201611192126A CN 106793402 A CN106793402 A CN 106793402A
Authority
CN
China
Prior art keywords
light source
light
source
control
color grade
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.)
Granted
Application number
CN201611192126.9A
Other languages
Chinese (zh)
Other versions
CN106793402B (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.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
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 Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201611192126.9A priority Critical patent/CN106793402B/en
Publication of CN106793402A publication Critical patent/CN106793402A/en
Application granted granted Critical
Publication of CN106793402B publication Critical patent/CN106793402B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B15/00Special procedures for taking photographs; Apparatus therefor
    • G03B15/02Illuminating scene
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a kind of light source control method and device, wherein the method includes:The source light level information that management terminal sends is received, source light level information includes that each light source distinguishes corresponding color grade and the corresponding intensity level of whole light sources;Corresponding light source control signal is generated based on source light level information, light source is controlled using light source control information, so that each light source sends and intensity level and the corresponding light of corresponding color grade.In technical scheme disclosed in the present application, when needing to be adjusted the light that light source sends, administrative staff can send source light level information by management terminal, and then corresponding light source control signal is generated based on the source light level information, to control corresponding light source to realize intensity level corresponding with source light level information and color grade, thus, the control of different source light levels and color grade can be realized to light source by above-mentioned technical proposal in different environment, and then cause that light source can adapt to varying environment.

Description

A kind of light source control method and device
Technical field
The present invention relates to machine vision light source technical field, more specifically to a kind of light source control method and device.
Background technology
With the rising of labor cost, industrial automatization is improved year by year, and machine vision has played huge wherein Effect, its application develops into size detection, 3-D scanning from initial detection, production monitoring, Parts Recognition, then to artificial intelligence Etc., its influence power is also gradually rising.
One typical vision system should include IMAQ, light-source system, image processing module, intelligent decision decision model Block and Mechanical course performing module, and can the success or failure of a vision system depend primarily on and the characteristics of image for requiring to detect is entered Row is extracted, wherein whether most crucial technological difficulties are exactly substantially to detect feature, a good light source can allow feature as far as possible Substantially, obvious contrast is produced as far as possible between part and non-detection part that detection is needed in object, so light source is one The key of individual vision system success or failure.But the light source for being used when being extracted to characteristics of image in the prior art is usually pre- The light source with unified specification for first setting, but inventor has found, and this light source can not well be applied to different rings Border, therefore, easily occur the situation for extracting failure when carrying out image characteristics extraction using this light source.
In sum, how a kind of light source that can adapt to varying environment is provided, be current those skilled in the art urgently The problem of solution.
The content of the invention
It is an object of the invention to provide a kind of light source control method and device, to provide a kind of varying environment that can adapt to Light source.
To achieve these goals, the present invention provides following technical scheme:
A kind of light source control method, including:
The source light level information that management terminal sends is received, the source light level information includes that each light source distinguishes corresponding face Colour gradation and the corresponding intensity level of whole light sources;
Corresponding light source control signal is generated based on the source light level information, using the light source control information to described Light source is controlled, so that each light source sends and the intensity level and the corresponding light of the corresponding color grade.
Preferably, corresponding light source control signal is generated based on the source light level information, including:
Calculated and each light source pair based on the corresponding color grade of each light source and the corresponding intensity level of whole light sources The control voltage answered;
Amplification is filtered respectively to the corresponding control voltage of each light source, light source control corresponding with each light source is obtained Signal.
Preferably, based on the corresponding color grade of each light source and the corresponding intensity level of whole light sources calculate with respectively The corresponding control voltage of light source, including:
Red light source, green are calculated according to preset formula based on the corresponding color grade of each light source and the intensity level Light source and blue-light source are corresponding respectively to compare difference f1, f2 and f3, wherein, the color grade and the source light level are Value more than or equal to 0 and less than or equal to 255;
If f1>0、f2>0 and f3>0, then i1=f1, i2=i1*a2/a1, i3=i1*a3/a1;If f1>0、f2<=0 and f3<=0, then i1=f1, i2=0, i3=0;If f1>0、f2>0 and f3<=0, then i1=f1, i2=i1*a2/a1, i3=0; If f1>0、f2<=0 and f3>0, then i1=f1, i2=0, i3=i1*a3/a1;If f1<0、f2>0 and f3>0, then i1=0, i2 =f2, i3=i2*a3/a2;If f1<0、f2<=0 and f3<=0, then i1=i2=i3=0;If f1<0、f2<=0 and f3<= 0, then i1=i3=0, i2=f2;If f1<0、f2<=0 and f3<=0, then i1=i2=0, i3=f3;Wherein, a1, a2 and a3 Red light source, green light source and the corresponding color grade of blue-light source are represented respectively;
It is determined that with the corresponding magnitude of voltage of i1, i2 and i3 difference for respectively with red light source, green light source and blue-light source pair The control voltage answered.
A kind of light source control device, including:
Receiver module, the source light level information for receiving management terminal transmission, the source light level information includes each light Distinguish corresponding color grade and the corresponding intensity level of whole light sources in source;
Control module, for generating corresponding light source control signal based on the source light level information, using the light source Control information is controlled to the light source, so that each light source sends and the intensity level and the corresponding color grade pair The light answered.
Preferably, the control module includes:
Computing module, for being calculated based on the corresponding intensity level of the corresponding color grade of each light source and whole light sources Go out control voltage corresponding with each light source;
Filter amplification circuit, for being filtered amplification respectively to the corresponding control voltage of each light source, obtain with respectively The corresponding light source control signal of light source.
Preferably, the computing module includes:
Single-chip microcomputer, it is red for being calculated according to preset formula based on the corresponding color grade of each light source and the intensity level Color light source, green light source and blue-light source are corresponding respectively to compare difference f1, f2 and f3, wherein, the color grade and described Source light level is the value more than or equal to 0 and less than or equal to 255;If f1>0、f2>0 and f3>0, then i1=f1, i2=i1* A2/a1, i3=i1*a3/a1;If f1>0、f2<=0 and f3<=0, then i1=f1, i2=0, i3=0;If f1>0、f2>0 and f3 <=0, then i1=f1, i2=i1*a2/a1, i3=0;If f1>0、f2<=0 and f3>0, then i1=f1, i2=0, i3=i1* a3/a1;If f1<0、f2>0 and f3>0, then i1=0, i2=f2, i3=i2*a3/a2;If f1<0、f2<=0 and f3<=0, then I1=i2=i3=0;If f1<0、f2<=0 and f3<=0, then i1=i3=0, i2=f2;If f1<0、f2<=0 and f3<=0, Then i1=i2=0, i3=f3;Wherein, a1, a2 and a3 represent red light source, green light source and the corresponding face of blue-light source respectively Colour gradation;It is determined that it is corresponding with red light source, green light source and blue-light source respectively to distinguish corresponding magnitude of voltage with i1, i2 and i3 Control voltage.
Preferably, the single-chip microcomputer is specially atmega2560 single-chip microcomputers.
Preferably, corresponding current limliting is connected between the output end of atmega2560 single-chip microcomputers and the filter amplification circuit Resistance.
Preferably, the receiver module includes RS232 serial ports.
Preferably, each light source is 5050RGB drop glue waterproof soft light bars.
The invention provides a kind of light source control method and device, wherein the method includes:Receive what management terminal sent Source light level information, the source light level information includes that each light source distinguishes corresponding color grade and the corresponding light intensity of whole light sources Grade;Corresponding light source control signal is generated based on the source light level information, using the light source control information to the light Source is controlled, so that each light source sends and the intensity level and the corresponding light of the corresponding color grade.The application is public In the technical scheme opened, when needing to be adjusted the light that light source sends, administrative staff can send light by management terminal Source class information, and then corresponding light source control signal is generated based on the source light level information, with control corresponding light source realize with The corresponding intensity level of source light level information and color grade, thereby, it is possible to pass through above-mentioned technical proposal in different environment The control of different source light levels and color grade is realized to light source, and then causes that light source can adapt to varying environment, it is ensured that for The effective detection of characteristics of image and extraction.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of flow chart of light source control method provided in an embodiment of the present invention;
Fig. 2 is the realization for being filtered amplification in a kind of light source control method provided in an embodiment of the present invention to control voltage Schematic diagram;
Fig. 3 is a kind of structural representation of light source control device provided in an embodiment of the present invention;
Fig. 4 is the signal of single-chip microcomputer and filter amplification circuit in a kind of light source control device provided in an embodiment of the present invention Figure;
Fig. 5 is the schematic diagram of management terminal control interface in a kind of light source control device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is referred to, it illustrates a kind of flow chart of light source control method provided in an embodiment of the present invention, can be wrapped Include:
S11:The source light level information that management terminal sends is received, source light level information includes that each light source distinguishes corresponding face Colour gradation and the corresponding intensity level of whole light sources.
Wherein, each light source can include the light source with different colours, when pigment concentration is different, cause color to have right The color range answered, namely color grade, color grade refers to that light that light source sends has the concentration of its corresponding color in the application, and light Luminous intensity is by force, the concentration of color and light intensity different brackets can be divided into according to being actually needed, form corresponding color Grade and intensity level.When needing to be adjusted the light that light source sends according to actual environment, can be passed through by administrative staff Management terminal sends required source light level information.
S12:Corresponding light source control signal is generated based on source light level information, light source is carried out using light source control information Control, so that each light source sends and intensity level and the corresponding light of corresponding color grade.
Corresponding light source control signal is generated based on source light level information, and light source control signal is sent to each light source, The light intensity of the light to control each light source to send is corresponding with intensity level, color depth and the corresponding color grade pair of the light for sending Should, so as to realize the regulation to the color depth and light intensity of light source.
In technical scheme disclosed in the present application, when needing to be adjusted the light that light source sends, administrative staff can lead to Cross management terminal and send source light level information, and then corresponding light source control signal is generated based on the source light level information, to control Corresponding light source processed realizes intensity level corresponding with source light level information and color grade, thereby, it is possible in different environment The control of different source light levels and color grade is realized to light source by above-mentioned technical proposal, and then causes that light source can adapt to not Same environment, it is ensured that effective detection and extraction for characteristics of image.
A kind of light source control method provided in an embodiment of the present invention, corresponding light source control is generated based on source light level information Signal, can include:
Calculated based on the corresponding color grade of each light source and the corresponding intensity level of whole light sources corresponding with each light source Control voltage;
Amplification is filtered respectively to the corresponding control voltage of each light source, light source control letter corresponding with each light source is obtained Number.
Based on color grade and intensity level calculate with each light source corresponding control voltage of difference, and then to the control Voltage is filtered amplification, obtains corresponding light source control signal, wherein control voltage is filtered also will control voltage work For the realization principle for needing input voltage to be filtered can be with as shown in Fig. 2 the input voltage for setting wave filter be ex output voltages It is ey, then respective filter realizes that the differential equation of circuit is:
This is a typical first-order system, makes τ=RC, referred to as time constant, and Laplace transformation is taken to above formula, can be obtained Arrive:
τsey+ey=ex
Order
H (s) is transmission function, can be specifically expressed as:
Or
Its amplitude-frequency, phase-frequency characteristic formula are:
Analysis understand, when frequency f very littles, A (f)=1, signal is not decayed, can by wave filter, when f is very big, A (f)=0, signal is fully blocked, it is impossible to by wave filter, so that by the low pass filter, realization filters high frequency oscillation Function.The follow-up voltage for obtaining that will filter again is amplified according to ratio set in advance according to actual needs, so that by right The filter and amplification of control voltage ensure that the effective control for corresponding light source.
A kind of light source control method provided in an embodiment of the present invention, based on the corresponding color grade of each light source and whole light sources Corresponding intensity level calculates control voltage corresponding with each light source, can include:
Red light source, green light source are calculated according to preset formula based on the corresponding color grade of each light source and intensity level And blue-light source is corresponding respectively compares difference f1, f2 and f3, wherein, color grade and source light level are more than or equal to 0 And the value less than or equal to 255;
If f1>0、f2>0 and f3>0, then i1=f1, i2=i1*a2/a1, i3=i1*a3/a1;If f1>0、f2<=0 and f3<=0, then i1=f1, i2=0, i3=0;If f1>0、f2>0 and f3<=0, then i1=f1, i2=i1*a2/a1, i3=0; If f1>0、f2<=0 and f3>0, then i1=f1, i2=0, i3=i1*a3/a1;If f1<0、f2>0 and f3>0, then i1=0, i2 =f2, i3=i2*a3/a2;If f1<0、f2<=0 and f3<=0, then i1=i2=i3=0;If f1<=0, f2>0 and f3<= 0, then i1=i3=0, i2=f2;If f1<=0, f2<=0 and f3>0, then i1=i2=0, i3=f3;Wherein, a1, a2 and a3 Red light source, green light source and the corresponding color grade of blue-light source are represented respectively;
It is determined that with the corresponding magnitude of voltage of i1, i2 and i3 difference for respectively with red light source, green light source and blue-light source pair The control voltage answered.
Wherein it is possible to calculate f1, f2 and f3 respectively according to the following formula:
F1=a1- (255-a4)
F2=a2- (255-a4)
F3=a3- (255-a4)
A4 in above formula represents intensity level.
It is further to note that after obtaining i1, i2 and i3, if wherein there is non-integer, according to rounding up Or other principles for setting according to actual needs are rounded to non-integer, corresponding integer is obtained, and then according to the integer Determine corresponding control voltage.I1, i2 and i3 can be set according to actual needs with control voltage corresponding relation respectively, Will not be repeated here.In addition, respectively 0 to 255 grades of the light that red light source, green light source and blue-light source are sent, wherein 0 grade Represent that corresponding light color is most shallow, 255 grades represent that corresponding light color is most deep, and 0 grade of light intensity represents that corresponding light is most dark, 255 grades represent that corresponding light is most bright.According to the above method, the control voltage of each light source can be accurately and effectively obtained, and then Control voltage based on each light source is achieved effective control to light source.
The embodiment of the present invention additionally provides a kind of light source control device, as shown in figure 3, can include:
Receiver module 11, the source light level information for receiving management terminal transmission, source light level information includes each light source The corresponding color grade of difference and the corresponding intensity level of whole light sources;
Control module 12, for generating corresponding light source control signal based on source light level information, is believed using light source control Breath is controlled to light source, so that each light source sends and intensity level and the corresponding light of corresponding color grade.
A kind of light source control device provided in an embodiment of the present invention, control module can include:
Computing module, for based on the corresponding color grade of each light source and the corresponding intensity level of whole light sources calculate with The corresponding control voltage of each light source;
Filter amplification circuit, for being filtered amplification respectively to the corresponding control voltage of each light source, obtains and each light source Corresponding light source control signal.
A kind of light source control device provided in an embodiment of the present invention, computing module can include:
Single-chip microcomputer, for calculating red light according to preset formula based on the corresponding color grade of each light source and intensity level Source, green light source and blue-light source are corresponding respectively to compare difference f1, f2 and f3, wherein, color grade and source light level are Value more than or equal to 0 and less than or equal to 255;If f1>0、f2>0 and f3>0, then i1=f1, i2=i1*a2/a1, i3= i1*a3/a1;If f1>0、f2<=0 and f3<=0, then i1=f1, i2=0, i3=0;If f1>0、f2>0 and f3<=0, then i1 =f1, i2=i1*a2/a1, i3=0;If f1>0、f2<=0 and f3>0, then i1=f1, i2=0, i3=i1*a3/a1;If f1< 0、f2>0 and f3>0, then i1=0, i2=f2, i3=i2*a3/a2;If f1<0、f2<=0 and f3<=0, then i1=i2=i3= 0;If f1<0、f2<=0 and f3<=0, then i1=i3=0, i2=f2;If f1<0、f2<=0 and f3<=0, then i1=i2=0, I3=f3;Wherein, a1, a2 and a3 represent red light source, green light source and the corresponding color grade of blue-light source respectively;It is determined that with I1, i2 and i3 distinguish corresponding magnitude of voltage for respectively with red light source, green light source and the corresponding control voltage of blue-light source.
A kind of light source control device provided in an embodiment of the present invention, single-chip microcomputer is specifically as follows atmega2560 single-chip microcomputers.
It is fast with calculating speed using the above-mentioned calculating of the chip microcontroller, the advantages of as a result accurate, naturally it is also possible to according to Being actually needed carries out other settings, within protection scope of the present invention.
A kind of light source control device provided in an embodiment of the present invention, the output end and filter and amplification of atmega2560 single-chip microcomputers Corresponding current-limiting resistance can be connected between circuit.
Atmega2560 single-chip microcomputers can be with as shown in figure 4, remove with the schematic diagram of filter amplification circuit in the figure Remaining circuit outside atmega2560 single-chip microcomputers, R1, R2, R3 and led is above-mentioned filter amplification circuit, wherein R1, R2 and R3 represents the current-limiting resistance of the different light sources of correspondence respectively such that it is able to ensure circuit safety and reliability.Specifically, The tunnel of atmega2560 single-chip microcomputers P0.4, P0.5, P0.6 tri- exports, and by current-limiting resistance R1, R2, R3, then accesses three poles of correspondence Pipe base stage, the colelctor electrode connection RC filter circuits of correspondence triode, then accesses correspondence fet gate (N mos pipe grid Pole), when signal flows to fet gate through RC filter circuits, a voltage can be produced between the grid source electrode of scene effect pipe Vgs and Vgs>Vt, wherein Vt are the conducting voltage of fet gate, now FET conducting, and otherwise FET disconnects, So as to realize that on-off action controls the break-make of circuit, so control corresponding light source it is bright, go out and color grade, intensity level Deng the tunnels of the present embodiment Fig. 4 Zhong tri- are respectively used to control red led, green led, blueness led.It is further to note that figure Shown in 4 except atmega2560 single-chip microcomputers and R1, R2 and R3 filter amplification circuit be the tool realized based on principle shown in Fig. 2 One of body implementation, provided of course that can realize other circuits of principle shown in Fig. 2 within protection scope of the present invention. A kind of light source control device provided in an embodiment of the present invention, receiver module can include RS232 serial ports.
The communication of management terminal and light source control device is realized by RS232 serial ports, the high speed of data transfer is ensure that Accuracy, can also according to actual needs carry out other settings, within protection scope of the present invention certainly.
Corresponding, management terminal is used to be input into intensity level and the MFC digit manipulations interface of color grade can be such as Fig. 5 institutes Show, it is possible, firstly, to open serial communication, allow management terminal to be communicated with single-chip microcomputer, LED light source electrified light emitting then can be with Light source colour and its intensity are adjusted according to the actual requirements, and single LED light is changed by 0~255 grade of regulation red, green, blue sliding block Color depth, realizes that light source colour changes, and by 0~255 grade of three paths of LEDs light intensity sliding block of regulation, realizes intensity of light source control.Tool Body, be that feux rouges is adjusted into 255 grades of the superlative degree in Fig. 5, and 155 grades of green glow, 205 grades of blue light, light intensity are 237 grades, are applied to reality In case.
A kind of light source control device provided in an embodiment of the present invention, each light source can be 12V, 5050RGB drop glue waterproof Soft light bar.So that light source waterproof and easy to install.
Above-mentioned technical proposal provided in an embodiment of the present invention can realize fully digitalization control, man-machine interaction, while energy It is enough by administrative staff by management terminal realization to the remote control of light source, and LED light source brightness, face are realized based on PWM technologies 256 grades of continuously adjustabes of color, increase adaptability of the NI Vision Builder for Automated Inspection to environment, improve the stability of system.In addition, for this hair The explanation of corresponding part refers to a kind of light provided in an embodiment of the present invention in a kind of light source control device that bright embodiment is provided The detailed description of corresponding part, will not be repeated here in operated control method.
The foregoing description of the disclosed embodiments, enables those skilled in the art to realize or uses the present invention.To this Various modifications of a little embodiments will be apparent for a person skilled in the art, and generic principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with principles disclosed herein and features of novelty most wide Scope.

Claims (10)

1. a kind of light source control method, it is characterised in that including:
The source light level information that management terminal sends is received, the source light level information distinguishes corresponding color etc. including each light source Level and the corresponding intensity level of whole light sources;
Corresponding light source control signal is generated based on the source light level information, using the light source control information to the light source It is controlled, so that each light source sends and the intensity level and the corresponding light of the corresponding color grade.
2. method according to claim 1, it is characterised in that corresponding light source control is generated based on the source light level information Signal processed, including:
Calculated based on the corresponding color grade of each light source and the corresponding intensity level of whole light sources corresponding with each light source Control voltage;
Amplification is filtered respectively to the corresponding control voltage of each light source, light source control letter corresponding with each light source is obtained Number.
3. method according to claim 2, it is characterised in that based on the corresponding color grade of each light source and whole light sources pair The intensity level answered calculates control voltage corresponding with each light source, including:
Red light source, green light source are calculated according to preset formula based on the corresponding color grade of each light source and the intensity level And blue-light source is corresponding respectively compares difference f1, f2 and f3, wherein, the color grade and the source light level are and are more than Or the value equal to 0 and less than or equal to 255;
If f1>0、f2>0 and f3>0, then i1=f1, i2=i1*a2/a1, i3=i1*a3/a1;If f1>0、f2<=0 and f3<= 0, then i1=f1, i2=0, i3=0;If f1>0、f2>0 and f3<=0, then i1=f1, i2=i1*a2/a1, i3=0;If f1> 0、f2<=0 and f3>0, then i1=f1, i2=0, i3=i1*a3/a1;If f1<0、f2>0 and f3>0, then i1=0, i2=f2, I3=i2*a3/a2;If f1<0、f2<=0 and f3<=0, then i1=i2=i3=0;If f1<0、f2<=0 and f3<=0, then i1 =i3=0, i2=f2;If f1<0、f2<=0 and f3<=0, then i1=i2=0, i3=f3;Wherein, a1, a2 and a3 difference table Show red light source, green light source and the corresponding color grade of blue-light source;
It is determined that being corresponding with red light source, green light source and blue-light source respectively with the corresponding magnitude of voltage of i1, i2 and i3 difference Control voltage.
4. a kind of light source control device, it is characterised in that including:
Receiver module, the source light level information for receiving management terminal transmission, the source light level information includes each light source point Not corresponding color grade and the corresponding intensity level of whole light sources;
Control module, for generating corresponding light source control signal based on the source light level information, using the light source control Information is controlled to the light source, so that each light source sends corresponding with the intensity level and the corresponding color grade Light.
5. device according to claim 4, it is characterised in that the control module includes:
Computing module, for based on the corresponding color grade of each light source and the corresponding intensity level of whole light sources calculate with The corresponding control voltage of each light source;
Filter amplification circuit, for being filtered amplification respectively to the corresponding control voltage of each light source, obtains and each light source Corresponding light source control signal.
6. device according to claim 5, it is characterised in that the computing module includes:
Single-chip microcomputer, for calculating red light according to preset formula based on the corresponding color grade of each light source and the intensity level Source, green light source and blue-light source are corresponding respectively to compare difference f1, f2 and f3, wherein, the color grade and the light source Grade is the value more than or equal to 0 and less than or equal to 255;If f1>0、f2>0 and f3>0, then i1=f1, i2=i1*a2/ A1, i3=i1*a3/a1;If f1>0、f2<=0 and f3<=0, then i1=f1, i2=0, i3=0;If f1>0、f2>0 and f3<= 0, then i1=f1, i2=i1*a2/a1, i3=0;If f1>0、f2<=0 and f3>0, then i1=f1, i2=0, i3=i1*a3/ a1;If f1<0、f2>0 and f3>0, then i1=0, i2=f2, i3=i2*a3/a2;If f1<0、f2<=0 and f3<=0, then i1= I2=i3=0;If f1<0、f2<=0 and f3<=0, then i1=i3=0, i2=f2;If f1<0、f2<=0 and f3<=0, then i1 =i2=0, i3=f3;Wherein, a1, a2 and a3 represent red light source, green light source and the corresponding color of blue-light source etc. respectively Level;It is determined that with the corresponding magnitude of voltage of i1, i2 and i3 difference for respectively with red light source, green light source and the corresponding control of blue-light source Voltage processed.
7. device according to claim 6, it is characterised in that the single-chip microcomputer is specially atmega2560 single-chip microcomputers.
8. device according to claim 7, it is characterised in that the output end of atmega2560 single-chip microcomputers is put with the filtering Corresponding current-limiting resistance is connected between big circuit.
9. device according to claim 7, it is characterised in that the receiver module includes RS232 serial ports.
10. device according to claim 9, it is characterised in that each light source is 5050RGB drop glue waterproof soft light bars.
CN201611192126.9A 2016-12-21 2016-12-21 A kind of light source control method and device Expired - Fee Related CN106793402B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611192126.9A CN106793402B (en) 2016-12-21 2016-12-21 A kind of light source control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611192126.9A CN106793402B (en) 2016-12-21 2016-12-21 A kind of light source control method and device

Publications (2)

Publication Number Publication Date
CN106793402A true CN106793402A (en) 2017-05-31
CN106793402B CN106793402B (en) 2019-03-15

Family

ID=58893710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611192126.9A Expired - Fee Related CN106793402B (en) 2016-12-21 2016-12-21 A kind of light source control method and device

Country Status (1)

Country Link
CN (1) CN106793402B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184355A (en) * 2007-12-06 2008-05-21 哈尔滨师范大学 Method and device for synthesizing white light using three primary colors LED light source
CN201145154Y (en) * 2007-09-13 2008-11-05 北京精雕科技有限公司 Self-adapting lighting source apparatus based on machine vision system feature model
WO2010036869A2 (en) * 2008-09-25 2010-04-01 Lumination Llc Adjustable color illumination source
CN101707052A (en) * 2009-12-09 2010-05-12 安徽华东光电技术研究所 RGB-based method for adjusting white balance of LED backlight
CN101737762A (en) * 2008-11-13 2010-06-16 宏达国际电子股份有限公司 Portable electronic device and control method of light source thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201145154Y (en) * 2007-09-13 2008-11-05 北京精雕科技有限公司 Self-adapting lighting source apparatus based on machine vision system feature model
CN101184355A (en) * 2007-12-06 2008-05-21 哈尔滨师范大学 Method and device for synthesizing white light using three primary colors LED light source
WO2010036869A2 (en) * 2008-09-25 2010-04-01 Lumination Llc Adjustable color illumination source
CN101737762A (en) * 2008-11-13 2010-06-16 宏达国际电子股份有限公司 Portable electronic device and control method of light source thereof
CN101707052A (en) * 2009-12-09 2010-05-12 安徽华东光电技术研究所 RGB-based method for adjusting white balance of LED backlight

Also Published As

Publication number Publication date
CN106793402B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN110753432B (en) Atmosphere lamp system of multi-state new energy automobile and control method thereof
ATE387676T1 (en) DEVICE AND METHOD FOR DETECTING CODE
CN104050480A (en) Cigarette smoke detection method based on computer vision
CN204014221U (en) The single colour temperature regulating circuit that drives of two-way LED illumination
CN104540265B (en) Low-cost omnidirectional fully-compatible driving device
CN204836738U (en) Acoustic control music lamp crowd
CN106793402B (en) A kind of light source control method and device
DE102010034347A1 (en) Method and device for communication via a load line
CN105182447A (en) Photoelectric correlation sensor detection system and method
CN105120565B (en) A kind of linear constant current Drive And Its Driving Method of automatic equalization lamp string brightness
CN103281838B (en) A kind of circuit, method and LED drive circuit eliminating LED stroboscopic
CN204287296U (en) The forward voltage drop difference detecting circuit of LED module lamp bar and device
CN206452570U (en) Many breath light control circuits
CN204035761U (en) Welding machine arc ignition control circuit
CN108696971A (en) The control system and method for compatible DALI and PWM dimming interfaces
CN103376370A (en) Apparatus and method for detecting angle of TRIAC (bidirectional triode thyristor) light modulator
CN207995469U (en) A kind of intelligent high-pressure light bar circuit
CN207410562U (en) A kind of LED illumination controller and lighting system
CN207557314U (en) A kind of DC suppling equipment line inspection instrument test circuit
CN102176590B (en) Wire holder for automatically managing household electric appliances by computer
CN205648125U (en) Intelligence house lighting system
CN207039505U (en) Electric device peripheral circuit and the electric tool with the electric device peripheral circuit
CN110021213A (en) Mathematics preamble learning method in artificial intelligence study
CN204090212U (en) Led
CN203337713U (en) Circuit capable of accurately detecting AC source flame ion current magnitude

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190315

Termination date: 20201221

CF01 Termination of patent right due to non-payment of annual fee