CN106793402B - 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
CN106793402B
CN106793402B CN201611192126.9A CN201611192126A CN106793402B CN 106793402 B CN106793402 B CN 106793402B CN 201611192126 A CN201611192126 A CN 201611192126A CN 106793402 B CN106793402 B CN 106793402B
Authority
CN
China
Prior art keywords
light source
light
source
control
intensity level
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.)
Expired - Fee Related
Application number
CN201611192126.9A
Other languages
Chinese (zh)
Other versions
CN106793402A (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 devices, wherein this method comprises: receiving the source light level information that management terminal is sent, source light level information includes the corresponding color grade of each light source 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 issues and intensity level and the corresponding light of corresponding color grade.In technical solution disclosed in the present application, when needing the light issued to light source to be adjusted, 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, intensity level corresponding with source light level information and color grade are realized to control corresponding light source, thus, the control that can realize different source light levels and color grade to light source through the above technical solution in different environment, so 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 fields, more specifically to a kind of light source control method and device.
Background technique
With the rising of labor cost, industrial automatization improves year by year, and machine vision has played huge wherein Effect, application develops to size detection, 3-D scanning from initial detection, production monitoring, Parts Recognition, then arrives artificial intelligence Etc., influence power is also gradually rising.
One typical vision system should include Image Acquisition, light-source system, image processing module, intelligent decision decision model Block and Mechanical course execution module, and the success or failure of a vision system depend primarily on can to require detection characteristics of image into Row extracts, wherein most crucial technological difficulties are exactly to detect whether feature obvious, a good light source can allow feature as far as possible Obviously, the part detected is needed in object and generate apparent contrast as far as possible between non-detection part, so light source is one The key of a vision system success or failure.But when extracting to characteristics of image, used light source is usually pre- in the prior art The light source with unified specification first set, but inventors have found that this light source can not be suitable for different rings well Therefore border is easy to appear the case where extraction fails when carrying out image characteristics extraction using this light source.
In conclusion how to provide a kind of light source that can adapt to varying environment, be current those skilled in the art urgently It solves the problems, such as.
Summary of the invention
The object of the present invention is 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 the goals above, the invention provides the following technical scheme:
A kind of light source control method, comprising:
The source light level information that management terminal is sent is received, the source light level information includes the corresponding face of each light source 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 issues 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, comprising:
It is 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 to the corresponding control voltage of each light source respectively, obtains light source control corresponding with each light source 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, comprising:
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 corresponding relatively 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, 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, i1=f1, i2=i1*a2/a1, i3=0; If f1 > 0, f2≤0 and f3 > 0, i1=f1, i2=0, i3=i1*a3/a1;If f1<0, f2>0 and f3>0, i1=0, i2 =f2, i3=i2*a3/a2;If f1 < 0, f2≤0 and f3≤0, 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, i1=i2=0, i3=f3;Wherein, a1, a2 and a3 Respectively indicate red light source, green light source and the corresponding color grade of blue-light source;
Determine corresponding with i1, i2 and i3 voltage value 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, comprising:
Receiving module, for receiving the source light level information of management terminal transmission, the source light level information includes each light The corresponding color grade in source and the corresponding intensity level of whole light sources;
Control module utilizes the light source for generating corresponding light source control signal based on the source light level information Control information controls the light source, so that each light source issues 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 Control voltage corresponding with each light source out;
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 microcontroller, it is red for being calculated based on the corresponding color grade of each light source and the intensity level according to preset formula Color light source, green light source and blue-light source corresponding relatively 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, i1=f1, i2=i1* A2/a1, i3=i1*a3/a1;If f1 > 0, f2≤0 and f3≤0, 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, i1=f1, i2=0, i3=i1* a3/a1;If f1<0, f2>0 and f3>0, i1=0, i2=f2, i3=i2*a3/a2;If f1 < 0, f2≤0 and f3≤0, I1=i2=i3=0;If f1 < 0, f2≤0 and f3≤0, i1=i3=0, i2=f2;If f1 < 0, f2≤0 and f3≤0, Then i1=i2=0, i3=f3;Wherein, a1, a2 and a3 respectively indicate red light source, green light source and the corresponding face of blue-light source Colour gradation;Determine that voltage value corresponding with i1, i2 and i3 is corresponding with red light source, green light source and blue-light source respectively Control voltage.
Preferably, the single-chip microcontroller is specially atmega2560 single-chip microcontroller.
Preferably, corresponding current limliting is connected between the output end of atmega2560 single-chip microcontroller and the filter amplification circuit Resistance.
Preferably, the receiving module includes RS232 serial ports.
Preferably, each light source is 5050RGB drop glue waterproof soft light bar.
The present invention provides a kind of light source control method and devices, wherein this method comprises: receiving what management terminal was sent Source light level information, the source light level information include the corresponding color grade of each light source 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 issues and the intensity level and the corresponding light of the corresponding color grade.The application is public In the technical solution opened, when needing the light issued to light source to be adjusted, 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 in different environment through the above technical solution The control of different source light levels and color grade is realized to light source so that light source can adapt to varying environment, guarantee for The effective detection and extraction of characteristics of image.
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 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 schematic diagram of light source control device provided in an embodiment of the present invention;
Fig. 4 is the signal of single-chip microcontroller 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
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.
Referring to Fig. 1, can wrap it illustrates a kind of flow chart of light source control method provided in an embodiment of the present invention It includes:
S11: the source light level information that management terminal is sent is received, source light level information includes the corresponding face of each light source Colour gradation and the corresponding intensity level of whole light sources.
Wherein, each light source may include the light source with different colours, when pigment concentration difference, color be caused to have pair The color range namely color grade answered, color grade refers to that light that light source issues has the concentration of its corresponding color in the application, and light By force it is luminous intensity, the concentration of color and light intensity can be divided into different brackets according to actual needs, form corresponding color Grade and intensity level.When needing the light issued to light source to be adjusted according to actual environment, can be passed through by administrative staff Management terminal sends required source light level information.
S12: generating corresponding light source control signal based on source light level information, is carried out using light source control information to light source Control, so that each light source issues 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, It is corresponding with intensity level with the light intensity for controlling the light that each light source issues, the color concentration and corresponding color grade pair of the light of sending It answers, to realize to the color concentration of light source and the adjusting of light intensity.
In technical solution disclosed in the present application, when needing the light issued to light source to be adjusted, administrative staff can lead to It crosses management terminal and sends source light level information, and then corresponding light source control signal is generated based on the source light level information, with control Corresponding light source processed realizes intensity level corresponding with source light level information and color grade, and thereby, it is possible in different environment The control for realizing different source light levels and color grade to light source through the above technical solution, so that light source can adapt to not Same environment guarantees effective detection and extraction for characteristics of image.
A kind of light source control method provided in an embodiment of the present invention generates corresponding light source control based on source light level information Signal may include:
It is 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;
Control voltage corresponding to each light source is filtered amplification respectively, obtains light source control letter corresponding with each light source Number.
Control voltage corresponding with each light source is calculated based on color grade and intensity level, and then to the control Voltage is filtered amplification, obtains corresponding light source control signal, makees wherein being filtered to control voltage and will also control voltage To need the realization principle of input voltage to be filtered can be as shown in Fig. 2, setting the input voltage of filter as ex output voltage For ey, then respective filter realizes the differential equation of circuit are as follows:
This is a typical first-order system, enables τ=RC, referred to as time constant, takes Laplace transformation to above formula, can be obtained It arrives:
τsey+ey=ex
It enables
H (s) is transmission function, can specifically be indicated are as follows:
Or
Its amplitude-frequency, phase-frequency characteristic formula are as follows:
Analysis it is found that A (f)=1, signal is not decayed when frequency f very little, can by filter, when f is very big, A (f)=0, signal are fully blocked, cannot be by filter, so that realization filters out high frequency oscillation by the low-pass filter Function.It is subsequent again to amplify the obtained voltage of filtering according to preset ratio according to actual needs, thus by pair The filter and amplification of control voltage ensure that effective control for corresponding light source.
A kind of light source control method provided in an embodiment of the present invention is 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, may 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 corresponding relatively 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, 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, i1=f1, i2=i1*a2/a1, i3=0; If f1 > 0, f2≤0 and f3 > 0, i1=f1, i2=0, i3=i1*a3/a1;If f1<0, f2>0 and f3>0, i1=0, i2 =f2, i3=i2*a3/a2;If f1 < 0, f2≤0 and f3≤0, 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, i1=i2=0, i3=f3;Wherein, a1, a2 and a3 Respectively indicate red light source, green light source and the corresponding color grade of blue-light source;
Determine corresponding with i1, i2 and i3 voltage value for respectively with red light source, green light source and blue-light source pair The control voltage answered.
Wherein it is possible to calculate separately f1, f2 and f3 according to the following formula:
F1=a1- (255-a4)
F2=a2- (255-a4)
F3=a3- (255-a4)
A4 in above formula indicates 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 set according to actual needs are rounded non-integer, obtain corresponding integer, and then according to the integer Determine corresponding control voltage.I1, i2 and i3 can be set with control voltage corresponding relationship according to actual needs respectively, Details are not described herein.In addition, the light that red light source, green light source and blue-light source are issued distinguishes 0 to 255 grades, wherein 0 grade Indicate that corresponding light color is most shallow, 255 grades indicate that corresponding light color is most deep, and 0 grade of light intensity indicates that corresponding light is most dark, 255 grades indicate that corresponding light is most bright.According to the above method, the control voltage of each light source can be accurately and effectively obtained, in turn Control voltage based on each light source achieves effective control light source.
The embodiment of the invention also provides a kind of light source control devices, as shown in figure 3, may include:
Receiving module 11, for receiving the source light level information of management terminal transmission, source light level information includes each light source Corresponding color grade and the corresponding intensity level of whole light sources;
Control module 12 is believed for generating corresponding light source control signal based on source light level information using light source control Breath controls light source, so that each light source issues 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 may 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 obtains and each light source for being filtered amplification respectively to the corresponding control voltage of 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 may include:
Single-chip microcontroller, 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 corresponding relatively 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, i1=f1, i2=i1*a2/a1, i3= i1*a3/a1;If f1 > 0, f2≤0 and f3≤0, i1=f1, i2=0, i3=0;If f1 > 0, f2 > 0 and f3≤0, i1 =f1, i2=i1*a2/a1, i3=0;If f1 > 0, f2≤0 and f3 > 0, 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, i1=i2=i3= 0;If f1 < 0, f2≤0 and f3≤0, i1=i3=0, i2=f2;If f1 < 0, f2≤0 and f3≤0, i1=i2=0, I3=f3;Wherein, a1, a2 and a3 respectively indicate red light source, green light source and the corresponding color grade of blue-light source;Determine with The corresponding voltage value of i1, i2 and i3 is control voltage corresponding with red light source, green light source and blue-light source respectively.
A kind of light source control device provided in an embodiment of the present invention, single-chip microcontroller are specifically as follows atmega2560 single-chip microcontroller.
Using the above-mentioned calculating of the chip microcontroller, have many advantages, such as that calculating speed is fast, it is as a result accurate, naturally it is also possible to according to Actual needs carries out other settings, within the 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 microcontroller Corresponding current-limiting resistance is can connect between circuit.
Atmega2560 single-chip microcontroller and the schematic diagram of filter amplification circuit can be as shown in figure 4, remove in the figure Remaining circuit except atmega2560 single-chip microcontroller, R1, R2, R3 and led is above-mentioned filter amplification circuit, wherein R1, R2 and R3 respectively represents the current-limiting resistance of corresponding different light sources, so as to guarantee circuit safety and reliability.Specifically, The output of tri- tunnel atmega2560 single-chip microcontroller P0.4, P0.5, P0.6 then accesses corresponding three poles by current-limiting resistance R1, R2, R3 The collector of pipe base stage, corresponding triode connects RC filter circuit, then accesses corresponding fet gate (N mos pipe grid Pole), when signal flows to fet gate through RC filter circuit, a voltage can be generated between the grid source electrode of scene effect pipe Vgs and Vgs > Vt, wherein Vt is the conducting voltage of fet gate, and field-effect tube is connected at this time, and otherwise field-effect tube disconnects, To realize the on-off of on-off action control circuit, so control corresponding light source it is bright, go out and color grade, intensity level Deng tri- tunnel the present embodiment Fig. 4 Zhong is respectively used to control red led, green led, blue led.It is further to note that figure Except atmega2560 single-chip microcontroller and R1, R2 and R3 filter amplification circuit are the tool realized based on principle shown in Fig. 2 shown in 4 One of body implementation, provided of course that other circuits that can be realized principle shown in Fig. 2 are within the scope of the present invention. A kind of light source control device provided in an embodiment of the present invention, receiving module may include RS232 serial ports.
The communication that management terminal and light source control device are realized by RS232 serial ports can guarantee the high speed of data transmission Accuracy can also carry out other settings according to actual needs certainly, within the scope of the present invention.
Corresponding, management terminal is used to input intensity level and the MFC digit manipulation interface of color grade can be such as Fig. 5 institute Show, it is possible, firstly, to open serial communication, management terminal is allowed to be communicated with single-chip microcontroller, LED light source electrified light emitting then can be with Light source colour and its intensity are adjusted according to actual needs, are adjusted red, green, blue sliding block by 0~255 grade and are changed single LED light Color concentration realizes that light source colour changes, and by 0~255 grade of three paths of LEDs light intensity sliding block of adjusting, realizes light source intensity control.Tool Body, for feux rouges to be adjusted to 255 grades highest, 155 grades of green light, 205 grades of blue light in Fig. 5, light intensity is 237 grades, is applied to reality In case.
A kind of light source control device provided in an embodiment of the present invention, each light source all can be 12V, 5050RGB drop glue waterproofs 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 be realized fully digitalization control, human-computer interaction, simultaneously energy It is enough that the long-range control to light source is realized by management terminal by administrative staff, and LED light source brightness, face are realized based on PWM technology 256 grades of color continuously adjustable, increases NI Vision Builder for Automated Inspection to the adaptability of environment, improves 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 provides The detailed description of corresponding part in operated control method, details are not described herein.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general 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 the principles and novel features disclosed in this article widest Range.

Claims (6)

1. a kind of light source control method characterized by comprising
The source light level information that management terminal is sent is received, the source light level information includes corresponding color of each light source etc. Grade 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 issues and the intensity level and the corresponding light of the corresponding color grade;
Corresponding light source control signal is generated based on the source light level information, comprising:
It is 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 to the corresponding control voltage of each light source respectively, obtains light source control letter corresponding with each light source Number;
It is 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, comprising:
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 corresponding relatively difference f1, f2 and f3, wherein the color grade and the source light level are to be greater than Or the value equal to 0 and less than or equal to 255;
If f1 > 0, f2 > 0 and f3 > 0, 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, 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, i1=0, i2=f2, I3=i2*a3/a2;If f1 < 0, f2≤0 and f3≤0, i1=i2=i3=0;If f1 < 0, f2≤0 and f3≤0, i1 =i3=0, i2=f2;If f1 < 0, f2≤0 and f3≤0, i1=i2=0, i3=f3;Wherein, a1, a2 and a3 distinguish table Show red light source, green light source and the corresponding color grade of blue-light source;
The determining and corresponding voltage value of i1, i2 and i3 is corresponding with red light source, green light source and blue-light source respectively Control voltage;
The preset formula includes:
F1=a1- (255-a4);
F2=a2- (255-a4);
F3=a3- (255-a4);
Wherein, a4 indicates the intensity level.
2. a kind of light source control device characterized by comprising
Receiving module, for receiving the source light level information of 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 utilizes the light source control for generating corresponding light source control signal based on the source light level information Information controls the light source, so that the sending of each light source is corresponding with the intensity level and the corresponding color grade Light;
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 obtains and each light source for being filtered amplification respectively to the corresponding control voltage of each light source Corresponding light source control signal;
The computing module includes:
Single-chip microcontroller, 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 corresponding relatively 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, i1=f1, i2=i1*a2/ A1, i3=i1*a3/a1;If f1 > 0, f2≤0 and f3≤0, 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, i1=f1, i2=0, i3=i1*a3/ a1;If f1<0, f2>0 and f3>0, i1=0, i2=f2, i3=i2*a3/a2;If f1 < 0, f2≤0 and f3≤0, i1= I2=i3=0;If f1 < 0, f2≤0 and f3≤0, i1=i3=0, i2=f2;If f1 < 0, f2≤0 and f3≤0, i1 =i2=0, i3=f3;Wherein, a1, a2 and a3 respectively indicate red light source, green light source and the corresponding color of blue-light source etc. Grade;The determining and corresponding voltage value of i1, i2 and i3 is control corresponding with red light source, green light source and blue-light source respectively Voltage processed;The preset formula includes:
F1=a1- (255-a4);
F2=a2- (255-a4);
F3=a3- (255-a4);
Wherein, a4 indicates the intensity level.
3. the apparatus of claim 2, which is characterized in that the single-chip microcontroller is specially atmega2560 single-chip microcontroller.
4. device according to claim 3, which is characterized in that the output end of atmega2560 single-chip microcontroller is put with the filtering Corresponding current-limiting resistance is connected between big circuit.
5. device according to claim 3, which is characterized in that the receiving module includes RS232 serial ports.
6. device according to claim 5, which is characterized in that each light source is 5050RGB drop glue waterproof soft light bar.
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 CN106793402A (en) 2017-05-31
CN106793402B true 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)

Family Cites Families (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
CN101184355B (en) * 2007-12-06 2011-03-16 哈尔滨师范大学 Method for synthesizing white light using three primary colors LED light source
US20100109564A1 (en) * 2008-09-25 2010-05-06 Dong Soo Shin Adjustable color illumination source
CN101737762B (en) * 2008-11-13 2013-02-13 宏达国际电子股份有限公司 Portable electronic device and control method of light source thereof
CN101707052B (en) * 2009-12-09 2012-03-28 中航华东光电有限公司 RGB-based method for adjusting white balance of LED backlight

Also Published As

Publication number Publication date
CN106793402A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN105934051B (en) Interactive classroom lighting intelligence control system and control method
CN204576102U (en) Based on the intelligent control system of LED visible light communication
CN104219835B (en) Driving device and method of LED lighting device
CN104602411B (en) A kind of LED luminance and colourity uniformity adjusting means and method
CN103068112A (en) Method of light-emitting diode (LED) lamp smart lighting adjustment and system thereof
CN103473550B (en) Based on the leaf image dividing method of Lab space and local dynamic threshold
CN107155238A (en) A kind of multiple-channel output constant current driver circuit for LED and driving method
CN106251811A (en) A kind of LED light-dimming method
CN109041322B (en) Intelligent indoor lighting system
CN107818765A (en) Display device brightness control method, device and mobile intelligent terminal and display device
CN106793402B (en) A kind of light source control method and device
CN207340239U (en) The constant-current drive circuit of LED light light modulation
CN104299402B (en) Infrared learning method using AD mode
CN109001206B (en) Fruit defect detection method and detection system based on image recognition
CN203162644U (en) LED intelligent lighting device
CN206959795U (en) Contactless filament diameter measurement apparatus based on analog image collection
CN103648215B (en) The adjustable great power LED driving means of intelligence
CN102573223B (en) Indicating lamp control circuit for electric facilities, and mobile phone
Xing et al. Smoke image segmentation based on color model
CN108549855A (en) Real-time humanoid detection method towards Intelligent household scene
CN115134981A (en) Lighting equipment detection method and system
CN204206312U (en) A kind of camera saving monitoring cost
CN106304516A (en) A kind of control method according to environmental light brightness Intelligent adjustment LED brightness
CN206118114U (en) Thyristor control ware with time switch interface
CN104009798B (en) A kind of visible light communication equipment and 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
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