CN113613364A - Method and system for controlling light source based on light source controller - Google Patents

Method and system for controlling light source based on light source controller Download PDF

Info

Publication number
CN113613364A
CN113613364A CN202111168666.4A CN202111168666A CN113613364A CN 113613364 A CN113613364 A CN 113613364A CN 202111168666 A CN202111168666 A CN 202111168666A CN 113613364 A CN113613364 A CN 113613364A
Authority
CN
China
Prior art keywords
value
light source
color temperature
led lamp
pwm
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
CN202111168666.4A
Other languages
Chinese (zh)
Other versions
CN113613364B (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.)
Dongguan Ruishi Optoelectronics Technology Co Ltd
Original Assignee
Dongguan Ruishi Optoelectronics 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 Dongguan Ruishi Optoelectronics Technology Co Ltd filed Critical Dongguan Ruishi Optoelectronics Technology Co Ltd
Priority to CN202111168666.4A priority Critical patent/CN113613364B/en
Publication of CN113613364A publication Critical patent/CN113613364A/en
Application granted granted Critical
Publication of CN113613364B publication Critical patent/CN113613364B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/32Pulse-control circuits
    • H05B45/325Pulse-width modulation [PWM]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • H05B45/12Controlling the intensity of the light using optical feedback
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • H05B45/18Controlling the intensity of the light using temperature feedback
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/50Circuit arrangements for operating light-emitting diodes [LED] responsive to malfunctions or undesirable behaviour of LEDs; responsive to LED life; Protective circuits
    • 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

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

Abstract

The invention discloses a method and a system for controlling a light source based on a light source controller, wherein the method comprises the following steps: acquiring a light intensity value of an illuminated area based on a light intensity sensor; acquiring a temperature value of an illuminated area based on a temperature sensor; the light source controller acquires a light illumination value and a temperature value and matches a required color temperature value based on the light illumination value and the temperature value; matching LED lamp beads required on the light source module based on the color temperature value; the PWM value of each LED lamp bead is adjusted through negative feedback, and the clock module is triggered to output PWM signals to the LED driving module based on the adjusted PWM value; the LED driving module drives the required LED lamp beads to emit light based on the PWM signals. The invention aims at the problems that the light source controller can not be combined with the position of the area to realize the light source adjustment and can not meet the requirements of corresponding environments, and ensures that the illumination intensity and the temperature of the illuminated area can be correspondingly adjusted according to the application requirements by controlling and adjusting the light source output of the illuminated area.

Description

Method and system for controlling light source based on light source controller
Technical Field
The invention relates to the technical field of communication, in particular to a method and a system for controlling a light source based on a light source controller.
Background
The light source can be divided into visible light and invisible light. Several commonly used visible light sources are white lamps, fluorescent lamps, mercury lamps and sodium lamps, and the visible light has the disadvantage that the light energy cannot be kept stable. How to keep the light energy stable to a certain extent is a problem which needs to be solved urgently in the practical process. The control of illumination can be controlled through the light source controller, but when aiming at large-area light source control, the influence of environmental factors is large, and the light source controller can not realize corresponding light source adjustment by combining the area position, so that the area and the whole light source can not meet the requirements of corresponding environments.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method and a system for controlling a light source based on a light source controller.
In order to solve the above problems, the present invention provides a method for controlling a light source based on a light source controller, the method comprising the steps of:
acquiring a light intensity value of an illuminated area based on a light intensity sensor;
acquiring a temperature value of an illuminated area based on a temperature sensor;
the light source controller acquires a light illumination value and a temperature value and matches a required color temperature value based on the light illumination value and the temperature value;
matching LED lamp beads required on the light source module based on the color temperature value;
the PWM value of each LED lamp bead is adjusted through negative feedback, and the clock module is triggered to output PWM signals to the LED driving module based on the adjusted PWM value;
the LED driving module drives the required LED lamp beads to emit light based on the PWM signals.
The color temperature values required for matching based on the illumination value and the temperature value comprise:
establishing a position coordinate mark based on the illumination value and the temperature value of the same area, and generating a current color temperature value under the coordinate mark;
matching corresponding target color temperature values in different areas based on a color temperature coordinate table and coordinate marks preset on the light source controller;
and acquiring color temperature difference values under all the areas based on the target color temperature value and the current color temperature value.
Required LED lamp pearl includes on the colour temperature value matching light source module:
comparing the color temperature of each LED lamp bead on the light source module based on the color temperature coordinate table;
and obtaining the LED lamp beads required to emit light under each region.
The PWM value through negative feedback adjustment each LED lamp pearl includes:
taking a certain area as a central area, and acquiring a color temperature difference value of the central area and a color temperature difference value of an adjacent area;
generating a color temperature weighted difference value by the color temperature difference values of the adjacent areas based on a weighted average algorithm;
judging the size of the color temperature difference value and the color temperature weighted difference value of the central area;
when the color temperature value of the central area is larger than the color temperature weighted difference value, increasing the PWM preset value of each LED lamp bead corresponding to the central area according to a preset adjusting threshold value to form a PWM output value;
and when the color temperature value of the central area is smaller than the color temperature weighted difference, reducing the PWM preset value of each LED lamp bead corresponding to the central area according to a preset adjusting threshold value to form a PWM output value.
LED drive module is luminous including based on required LED lamp pearl of PWM signal drive:
the LED driving module drives the required LED lamp beads to emit light in a PWM constant-current dimming mode.
LED drive module still includes based on the required LED lamp pearl of PWM signal drive is luminous:
collecting sampling current input to a light source module;
collecting load voltage on a light source module;
and performing overvoltage and overcurrent judgment based on the sampling current and the load voltage, if the overvoltage and overcurrent conditions are judged to exist, cutting off the current to be input to the light source module, and if the overvoltage and overcurrent conditions are judged not to exist, regulating the working current input to the light source module based on a PID control algorithm.
Required LED lamp pearl includes: one or a combination of white light lamp beads, red light lamp beads and green light lamp beads.
Correspondingly, the invention also provides a system for controlling the light source based on the light source controller, which comprises:
a plurality of illuminance sensor and a plurality of temperature sensor, LED drive module, light source module and light source controller, wherein:
each illuminance sensor in the plurality of illuminance sensors acquires an illuminance value of a corresponding illuminated area;
each temperature sensor in the plurality of temperature sensors acquires a temperature value of a corresponding illuminated area;
the light source controller acquires an illumination value at the position of an illuminated area based on the plurality of illumination sensors and acquires a temperature value at the position of the illuminated area through the plurality of temperature sensors; matching a color temperature value of a region based on the illumination value and the temperature value, matching the required LED lamp beads based on the color temperature value, adjusting the PWM value of each LED lamp bead through negative feedback, and triggering a clock module to output a PWM signal to an LED driving module based on the adjusted PWM value;
the LED driving module drives the required LED lamp beads to emit light based on the PWM signals.
The light source controller is a four-channel constant current light source controller.
Required LED lamp pearl includes: one or a combination of white light lamp beads, red light lamp beads and green light lamp beads.
According to the embodiment of the invention, the illumination value and the temperature value of the illuminated area are obtained, and the illumination condition of the illuminated area can be analyzed through the obtained illumination value and temperature value, so that the corresponding color temperature value is matched in combination with the illumination preset target, and the effect of controlling the LED lamp beads to emit light towards the preset target to realize light source control is triggered through the color temperature value, so that the illumination requirement of the illuminated area can be met in combination with an application scene.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a system for controlling a light source based on a light source controller according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a light source controller in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a region as a center region and an adjacent region in an embodiment of the present invention;
fig. 4 is a flowchart of a method for controlling a light source based on a light source controller according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of a system for controlling a light source based on a light source controller according to an embodiment of the present invention, where the system includes:
a plurality of illuminance sensor and a plurality of temperature sensor, LED drive module, light source module and light source controller, wherein:
each illuminance sensor of the plurality of illuminance sensors collects illuminance values of a corresponding illuminated area, that is, fig. 1 shows four illuminance sensors, a first illuminance sensor collects illuminance values of a first area, a second illuminance sensor collects illuminance values of a second area, a third illuminance sensor collects illuminance values of a third area, a fourth illuminance sensor collects illuminance values of a fourth area, and the first area, the second area, the third area and the fourth area are adjacent areas;
each temperature sensor in the plurality of temperature sensors acquires a temperature value of a corresponding illuminated area, namely fig. 1 shows four temperature sensors, wherein a first temperature sensor acquires a temperature value of a first area, a second temperature sensor acquires a temperature value of a second area, a third temperature sensor acquires a temperature value of a third area, and a fourth temperature sensor acquires a temperature value of a fourth area;
the light source controller can acquire an illumination value at the position of an illuminated area through a plurality of illumination sensors and acquire a temperature value at the position of the illuminated area through a plurality of temperature sensors; the light source controller can match the color temperature value of the region based on the illumination value and the temperature value, match the required LED lamp beads based on the color temperature value, adjust the PWM value of each LED lamp bead through negative feedback, and trigger the clock module to output a PWM signal to the LED driving module based on the adjusted PWM value;
the LED driving module drives the required LED lamp beads to emit light based on the PWM signals.
The system can analyze the illumination condition of the illuminated area through acquiring the illumination value and the temperature value of the illuminated area, so that the corresponding color temperature value is matched in combination with an illumination preset target, the LED lamp bead is triggered and controlled to emit light to realize the effect of light source control towards the preset target through the color temperature value, and the illumination requirement of the illuminated area can be met in combination with an application scene.
A light source controller in an embodiment of the present invention may adopt a four-channel constant current light source controller, and fig. 2 shows a schematic structural diagram of the light source controller in the embodiment of the present invention, where the light source controller includes: communication module, main control unit, clock module, LED drive module and power module etc. wherein: the communication module can be communicated with the illuminance sensors and the temperature sensors in each area, namely the communication module acquires illuminance values at the positions of the illuminated areas through the illuminance sensors and temperature values at the positions of the illuminated areas through the temperature sensors and sends the illuminance values and the temperature values to the main controller; the main controller matches a color temperature value of a region based on the illumination value and the temperature value, matches the required LED lamp beads based on the color temperature value, adjusts the PWM value of each LED lamp bead through negative feedback, and triggers the clock module to output a PWM signal to the LED driving module based on the adjusted PWM value; the clock module is controlled by the main controller to output PWM signals to the LED driving module, and the driving module drives the required LED lamp beads to emit light based on the PWM signals; the power module is used for supplying power for the LED driving module and the main controller.
It should be noted that the clock module herein can output 4 paths of high-resolution PWM signals to the LED driving module, so as to implement digital dimming of the light source module.
It should be noted that the communication module may be connected to the main control module through one of a USB interface, an RS232 interface, a CAN interface, and the like, and is connected by using the RS232 interface.
In a specific implementation process, the light source controller establishes a position coordinate mark based on the illumination value and the temperature value of the same area and generates a current color temperature value under the coordinate mark; matching corresponding target color temperature values in different areas based on a color temperature coordinate table and coordinate marks preset on the light source controller; and acquiring color temperature difference values under all the regions based on the target color temperature value and the current color temperature value.
The light source controller can be combined with the illumination value and the temperature value of the first area to establish a first area position coordinate mark, the light source controller can be combined with the illumination value and the temperature value of the second area to establish a second area position coordinate mark, the light source controller can be combined with the illumination value and the temperature value of the third area to establish a third area position coordinate mark, the light source controller can be combined with the illumination value and the temperature value of the fourth area to establish a fourth area position coordinate mark, and each position coordinate mark relates to position information, the illumination value and the temperature value. The light source controller stores a preset color temperature coordinate table, the color temperature coordinate table is a target color temperature value corresponding to each region under the application scene requirement, the target color temperature value can be a target value set according to a time sequence, and the target color temperature value can be related to a target color temperature value of the first region through position information, namely, a first target color temperature value corresponding to a first time stage of the first region in the time sequence, and a second target color temperature value corresponding to a second time stage of the first region in the time sequence.
The light source controller generates a current color temperature value based on a light illumination value and a temperature value of the same region, compares the current color temperature value with a target color temperature value corresponding to a time phase, and can obtain a color temperature difference value in the region, wherein the color temperature difference value corresponds to the amplitude, range and the like of the current light source module needing to be adjusted, namely the light source module is adjusted to emit light.
The light source controller compares the color temperature of each LED lamp bead on the light source module based on the color temperature coordinate table; and obtaining the LED lamp beads required to emit light under each region. After the light source controller analyzes the color temperature difference value, the light source controller can be realized only by considering which LED lamp beads are triggered, namely the luminous LED lamp beads need to be determined, and the illumination value and the temperature value of the illuminated area in the application environment are improved by controlling the number of the LED lamp beads.
The light source controller can take a certain area as a central area and obtain the color temperature difference value of the central area and the color temperature difference value of the adjacent area; generating a color temperature weighted difference value by the color temperature difference values of the adjacent areas based on a weighted average algorithm; judging the size of the color temperature difference value and the color temperature weighted difference value of the central area; when the color temperature value of the central area is larger than the color temperature weighted difference value, increasing the PWM preset value of each LED lamp bead corresponding to the central area according to a preset adjusting threshold value to form a PWM output value; and when the color temperature value of the central area is smaller than the color temperature weighted difference, reducing the PWM preset value of each LED lamp bead corresponding to the central area according to a preset adjusting threshold value to form a PWM output value. Because environmental factors of different regions have certain differences, light source triggering conditions required by different regions are different, and illuminance values and temperature values adjusted by different regions have some differences, while a light source module can also cause color temperature values between adjacent regions to deviate under working conditions, and color temperature differences of different regions are synthesized to improve PWM values so that light source output of the illuminated regions is more accurate.
FIG. 3 is a schematic diagram illustrating a region as a center region and neighboring regions according to an embodiment of the present invention, where the neighboring regions are given corresponding weights f in combination with an actual application environment1、f2、……、fnAnd the value of n is less than or equal to 8, the weights represent the color temperature influence factors of the adjacent regions to the central region, the color temperature influence factors are stored in a preset color temperature coordinate table, and the color temperature difference value of the adjacent regions can be expressed as x1、x2、……、xnAnd the value range of n is as follows: 0<n is less than or equal to 8 and n is an integer, then the color temperature difference value of the adjacent area is based on the color temperature weighted difference value X = (f) generated by the weighted average algorithm1*x1+ f2 * x2+……+fn*xn)/(f1+f2+……+fn). When the color temperature weighted difference value X is obtained, the size of the color temperature difference value and the color temperature weighted difference value of the central area is compared, the PWM value of each LED lamp bead corresponding to the central area is adjusted through the size comparison result, when the color temperature difference value of the central area is larger than the color temperature weighted difference value, the PWM preset value is increased according to the increase amplitude of the threshold value to form a PWM output value, when the color temperature difference value of the central area is smaller than the color temperature weighted difference value, the PWM preset value is decreased according to the decrease amplitude of the threshold value to form a PWM output value, and the adjustment mode enables the consideration of the peripheral areaThe light source output effect can be realized only by increasing the PWM output value, and the light source output effect can be realized only by reducing the PWM output value when the color temperature difference value is smaller.
It should be noted that, the LED driving module herein adopts PWM constant current dimming, and the LED driving module includes: constant current control module and current sampling circuit. The LED driving module also comprises a voltage sampling circuit. Collecting sampling current input to the light source module through a current sampling circuit, and collecting load voltage on the light source module through a voltage sampling circuit; and carrying out overvoltage and overcurrent judgment based on the sampling current and the load voltage, if the overvoltage and overcurrent conditions are judged to exist, cutting off the current to be input to the light source module, and if the overvoltage and overcurrent conditions are judged not to exist, regulating the working current input to the light source module based on a PI algorithm. The main controller samples the working current and voltage of each channel, and the output current is kept consistent with the set current through PI adjustment. If the current or voltage of the circuit is abnormal, the corresponding channel is switched off and error codes are sent to disconnect the current input value light source module. The PID control algorithm refers to proportional (P), integral (I), and derivative (D) algorithms, PID being: in order to reduce steady-state error, Integral is added to the controller, and the Integral term gradually increases the error with time, so that the output of the light source controller DA increases, where DA is an exponential-to-Analog conversion (Digital-to-Analog), and further steady-state error is further reduced, so that the controller has no steady-state error after entering steady state.
The specific process of the PI algorithm in this embodiment includes the following steps: the method comprises the steps of carrying out analog-to-digital conversion on sampling current, obtaining a digital quantization value corresponding to the sampling current, carrying out discretization on the digital quantization value to obtain a current discrete value, processing the current discrete value by adopting a PI algorithm to obtain a corresponding output digital quantity, and converting the output digital quantity into an analog quantity to control the output current.
The calculation formula of the PI algorithm is as follows:
output=outputbuf+kp1*(Ek-Ek,buf)+kI1*Ek
in the formula, output represents the current output digital quantity, output burst represents the last output digital quantity, EkRepresenting the difference between the corresponding digital quantity and a predetermined quantity of the present current sample value, Ek,bufRepresenting the difference, k, between the digital value and a predetermined value corresponding to the last sampled value of the currentp1Denotes a first scale factor, kI1Representing the first integral coefficient.
The sampling circuit is used for continuously reading voltage drop on the sampling resistor and the external load, and analyzing the collected data volume in the main controller, so that the external load is controlled, including abnormal turn-off of voltage and current and fine adjustment of output current, and constant output current and normal work of a light source are ensured.
It should be noted that, this required LED lamp pearl includes: one or a combination of white light lamp beads, red light lamp beads and green light lamp beads.
It should be noted that the light source module in the embodiment of the present invention may include a plurality of areas of LED lamp beads, where the plurality of areas of LED lamp beads correspond to one illuminated area, that is, the first area of LED lamp beads mainly provides a light source for the first area, the second area of LED lamp beads mainly provides a light source for the second area, the third area of LED lamp beads mainly provides a light source for the third area, the fourth area of LED lamp beads mainly provides a light source for the fourth area, and adjacent areas may be affected by each other light source to generate the influence of the illuminance value and the temperature value. The LED lamp beads in each region can adopt the same light source plate, and also can adopt different light source plates, each light source plate is provided with a plurality of layers of white light lamp beads, a plurality of layers of red light lamp beads and a plurality of layers of green light lamp beads, the color temperature sections of the white light lamp beads can be the same or different, the color temperature sections of the red light lamp beads can be the same or different, and the color temperature sections of the green light lamp beads can be the same or different.
Fig. 4 shows a flowchart of a method for controlling a light source based on a light source controller in an embodiment of the present invention, where the method includes the following steps:
s41, acquiring the illumination value of the illuminated area based on the illumination sensor;
specifically, the illuminance sensor in each area acquires an illuminance value of the area where the illuminance sensor is located, that is, the first illuminance sensor acquires an illuminance value of the first area, the second illuminance sensor acquires an illuminance value of the second area, the third illuminance sensor acquires an illuminance value of the third area, the fourth illuminance sensor acquires an illuminance value of the fourth area, and the first area, the second area, the third area and the fourth area are adjacent to each other.
S42, acquiring a temperature value of the illuminated area based on the temperature sensor;
specifically, the temperature sensor in each area acquires the illumination value of the area, that is, the first temperature sensor acquires the temperature value of the first area, the second temperature sensor acquires the temperature value of the second area, the third temperature sensor acquires the temperature value of the third area, and the fourth temperature sensor acquires the temperature value of the fourth area.
S43, the light source controller acquires the illumination value and the temperature value and matches the required color temperature value based on the illumination value and the temperature value;
the light source controller can acquire an illumination value at the position of an illuminated area through a plurality of illumination sensors and acquire a temperature value at the position of the illuminated area through a plurality of temperature sensors; the light source controller may match a color temperature value of the region based on the illumination value and the temperature value.
The light source controller establishes a position coordinate mark based on the illumination value and the temperature value of the same area and generates a current color temperature value under the coordinate mark; matching corresponding target color temperature values in different areas based on a color temperature coordinate table and coordinate marks preset on the light source controller; and acquiring color temperature difference values under all the regions based on the target color temperature value and the current color temperature value.
The light source controller can be combined with the illumination value and the temperature value of the first area to establish a first area position coordinate mark, the light source controller can be combined with the illumination value and the temperature value of the second area to establish a second area position coordinate mark, the light source controller can be combined with the illumination value and the temperature value of the third area to establish a third area position coordinate mark, the light source controller can be combined with the illumination value and the temperature value of the fourth area to establish a fourth area position coordinate mark, and each position coordinate mark relates to position information, the illumination value and the temperature value. The light source controller stores a preset color temperature coordinate table, the color temperature coordinate table is a target color temperature value corresponding to each region under the application scene requirement, the target color temperature value can be a target value set according to a time sequence, and the target color temperature value can be related to a target color temperature value of the first region through position information, namely, a first target color temperature value corresponding to a first time stage of the first region in the time sequence, and a second target color temperature value corresponding to a second time stage of the first region in the time sequence.
The light source controller generates a current color temperature value based on a light illumination value and a temperature value of the same region, compares the current color temperature value with a target color temperature value corresponding to a time phase, and can obtain a color temperature difference value in the region, wherein the color temperature difference value corresponds to the amplitude, range and the like of the current light source module needing to be adjusted, namely the light source module is adjusted to emit light.
S44, matching LED lamp beads needed on the light source module based on the color temperature value;
the light source controller compares the color temperature of each LED lamp bead on the light source module based on the color temperature coordinate table; and obtaining the LED lamp beads required to emit light under each region. After the light source controller analyzes the color temperature difference value, the light source controller can be realized only by considering which LED lamp beads are triggered, namely the luminous LED lamp beads need to be determined, and the illumination value and the temperature value of the illuminated area in the application environment are improved by controlling the number of the LED lamp beads.
It should be noted that, this required LED lamp pearl includes: one or a combination of white light lamp beads, red light lamp beads and green light lamp beads.
It should be noted that the light source module in the embodiment of the present invention may include a plurality of areas of LED lamp beads, where the plurality of areas of LED lamp beads correspond to one illuminated area, that is, the first area of LED lamp beads mainly provides a light source for the first area, the second area of LED lamp beads mainly provides a light source for the second area, the third area of LED lamp beads mainly provides a light source for the third area, the fourth area of LED lamp beads mainly provides a light source for the fourth area, and adjacent areas may be affected by each other light source to generate the influence of the illuminance value and the temperature value. The LED lamp beads in each region can adopt the same light source plate, and also can adopt different light source plates, each light source plate is provided with a plurality of layers of white light lamp beads, a plurality of layers of red light lamp beads and a plurality of layers of green light lamp beads, the color temperature sections of the white light lamp beads can be the same or different, the color temperature sections of the red light lamp beads can be the same or different, and the color temperature sections of the green light lamp beads can be the same or different.
Partial or all of a plurality of layers of white light beads, partial or all of a plurality of layers of red light beads and partial or all of a plurality of layers of green light beads can be selected to serve as the current light source through color temperature analysis of the LED beads, so that the selected LED beads can be matched with the current light source requirement.
S45, adjusting the PWM value of each LED lamp bead through negative feedback, and triggering a clock module to output a PWM signal to an LED driving module based on the adjusted PWM value;
the light source controller can take a certain area as a central area and obtain the color temperature difference value of the central area and the color temperature difference value of the adjacent area; generating a color temperature weighted difference value by the color temperature difference values of the adjacent areas based on a weighted average algorithm; judging the size of the color temperature difference value and the color temperature weighted difference value of the central area; when the color temperature value of the central area is larger than the color temperature weighted difference value, increasing the PWM preset value of each LED lamp bead corresponding to the central area according to a preset adjusting threshold value to form a PWM output value; and when the color temperature value of the central area is smaller than the color temperature weighted difference, reducing the PWM preset value of each LED lamp bead corresponding to the central area according to a preset adjusting threshold value to form a PWM output value. Because environmental factors of different regions have certain differences, light source triggering conditions required by the different regions are different, the adjusted illumination values and temperature values of the different regions have some differences, the color temperature values of adjacent regions can deviate under the working condition of the light source module, and the color temperature difference values of the different regions are synthesized to improve the PWM values so that the light source output of the irradiated regions is more accurate.
FIG. 3 is a schematic diagram illustrating a region as a center region and neighboring regions according to an embodiment of the present invention, where the neighboring regions are given corresponding weights f in combination with an actual application environment1、f2、……、fnAnd the value of n is less than or equal to 8, the weights represent the color temperature influence factors of the adjacent regions to the central region, the color temperature influence factors are stored in a preset color temperature coordinate table, and the color temperature difference value of the adjacent regions can be expressed as x1、x2、……、xnAnd the value range of n is as follows: 0<n is less than or equal to 8 and n is an integer, then the color temperature difference value of the adjacent area is based on the color temperature weighted difference value X = (f) generated by the weighted average algorithm1*x1+ f2 * x2+……+fn*xn)/(f1+f2+……+fn). When the color temperature weighted difference value X is acquired, the size of the color temperature difference value and the color temperature weighted difference value of the central area is compared, the PWM value of each LED lamp bead corresponding to the central area is adjusted through the size comparison result, when the color temperature difference value of the central area is larger than the color temperature weighted difference value, the PWM preset value is increased according to the increase amplitude of the threshold value to form a PWM output value, when the color temperature difference value of the central area is smaller than the color temperature weighted difference value, the PWM preset value is decreased according to the decrease amplitude of the threshold value to form a PWM output value, the adjustment mode enables the illumination intensity influence of the surrounding area to be realized, the larger the color temperature difference value is, the larger the illumination intensity compensation is, the higher the PWM output value is adjusted, the smaller the color temperature difference value is, the smaller the illumination intensity compensation is, and the light source output effect can be realized only by reducing the PWM output value.
And S46, the LED driving module drives the required LED lamp beads to emit light based on the PWM signals.
It should be noted that, the LED driving module herein adopts PWM constant current dimming, and the LED driving module includes: constant current control module and current sampling circuit. The light source controller also comprises a voltage sampling circuit. Collecting sampling current input to the light source module through a current sampling circuit, and collecting load voltage on the light source module through a voltage sampling circuit; and carrying out overvoltage and overcurrent judgment based on the sampling current and the load voltage, if the overvoltage and overcurrent conditions are judged to exist, cutting off the current to be input to the light source module, and if the overvoltage and overcurrent conditions are judged not to exist, regulating the working current input to the light source module based on a PI algorithm. The main controller samples the working current and voltage of each channel, and the output current is kept consistent with the set current through PI adjustment. If the current or voltage of the circuit is abnormal, the corresponding channel is switched off and error codes are sent to disconnect the current input value light source module. The PID control algorithm is proportional (P), integral (I) and derivative (D) algorithms, in this embodiment, a PI algorithm is used, in order to reduce a steady-state error, integral is added to the controller, and the integral term gradually increases the error with time, so that the output of the light source controller DA increases, and the steady-state error further decreases, so that the controller has no steady-state error after entering a steady state.
The specific process of the PI algorithm in this embodiment includes the following steps: the method comprises the steps of carrying out analog-to-digital conversion on sampling current, obtaining a digital quantization value corresponding to the sampling current, carrying out discretization on the digital quantization value to obtain a current discrete value, processing the current discrete value by adopting a PI algorithm to obtain a corresponding output digital quantity, and converting the output digital quantity into an analog quantity to control the output current.
The calculation formula of the PI algorithm is as follows:
output=outputbuf+kp1*(Ek-Ek,buf)+kI1*Ek
in the formula, output represents the current output digital quantity, output burst represents the last output digital quantity, EkRepresenting the difference between the corresponding digital quantity and a predetermined quantity of the present current sample value, Ek,bufRepresenting the difference, k, between the digital value and a predetermined value corresponding to the last sampled value of the currentp1Denotes a first scale factor, kI1Representing the first integral coefficient.
The sampling circuit is used for continuously reading voltage drop on the sampling resistor and the external load, and analyzing the collected data volume in the main controller, so that the external load is controlled, including abnormal turn-off of voltage and current and fine adjustment of output current, and constant output current and normal work of a light source are ensured.
According to the embodiment of the invention, the illumination value and the temperature value of the illuminated area are obtained, and the illumination condition of the illuminated area can be analyzed through the obtained illumination value and temperature value, so that the corresponding color temperature value is matched in combination with the illumination preset target, and the effect of controlling the LED lamp beads to emit light towards the preset target to realize light source control is triggered through the color temperature value, so that the illumination requirement of the illuminated area can be met in combination with an application scene.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are described herein by using specific embodiments, and the description of the above embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for controlling a light source based on a light source controller, the method comprising:
acquiring a light intensity value of an illuminated area based on a light intensity sensor;
acquiring a temperature value of an illuminated area based on a temperature sensor;
the light source controller acquires a light illumination value and a temperature value and matches a required color temperature value based on the light illumination value and the temperature value;
matching LED lamp beads required on the light source module based on the color temperature value;
the PWM value of each LED lamp bead is adjusted through negative feedback, and the clock module is triggered to output PWM signals to the LED driving module based on the adjusted PWM value;
the LED driving module drives the required LED lamp beads to emit light based on the PWM signals.
2. The method of claim 1, wherein matching the desired color temperature value based on the illumination value and the temperature value comprises:
establishing a position coordinate mark based on the illumination value and the temperature value of the same area, and generating a current color temperature value under the coordinate mark;
matching corresponding target color temperature values in different areas based on a color temperature coordinate table and coordinate marks preset on the light source controller;
and acquiring color temperature difference values under all the areas based on the target color temperature value and the current color temperature value.
3. The method of claim 2, wherein matching desired LED lamp beads on a light source module based on color temperature values comprises:
comparing the color temperature of each LED lamp bead on the light source module based on the color temperature coordinate table;
and obtaining the LED lamp beads required to emit light under each region.
4. The method of claim 3, wherein the adjusting the PWM value of each LED lamp bead through negative feedback comprises:
taking a certain area as a central area, and acquiring a color temperature difference value of the central area and a color temperature difference value of an adjacent area;
generating a color temperature weighted difference value by the color temperature difference values of the adjacent areas based on a weighted average algorithm;
judging the size of the color temperature difference value and the color temperature weighted difference value of the central area;
when the color temperature value of the central area is larger than the color temperature weighted difference value, increasing the PWM preset value of each LED lamp bead corresponding to the central area according to a preset adjusting threshold value to form a PWM output value;
and when the color temperature value of the central area is smaller than the color temperature weighted difference, reducing the PWM preset value of each LED lamp bead corresponding to the central area according to a preset adjusting threshold value to form a PWM output value.
5. The method for controlling a light source based on a light source controller according to claim 1, wherein the step of driving the required LED lamp bead to emit light by the LED driving module based on the PWM signal comprises:
the LED driving module drives the required LED lamp beads to emit light in a PWM constant-current dimming mode.
6. The method for controlling a light source based on a light source controller according to claim 5, wherein the driving of the desired LED lamp bead by the LED driving module based on the PWM signal further comprises:
collecting sampling current input to a light source module;
collecting load voltage on a light source module;
and carrying out overvoltage and overcurrent judgment based on the sampling current and the load voltage, if the overvoltage and overcurrent conditions are judged to exist, cutting off the current to be input to the light source module, and if the overvoltage and overcurrent conditions are judged not to exist, regulating the working current input to the light source module based on a PI algorithm.
7. The method of any one of claims 1 to 6 for light source control based on a light source controller, wherein the desired LED bead comprises: one or a combination of white light lamp beads, red light lamp beads and green light lamp beads.
8. A system for controlling a light source based on a light source controller, the system comprising:
a plurality of illuminance sensor and a plurality of temperature sensor, LED drive module, light source module and light source controller, wherein:
each illuminance sensor in the plurality of illuminance sensors acquires an illuminance value of a corresponding illuminated area;
each temperature sensor in the plurality of temperature sensors acquires a temperature value of a corresponding illuminated area;
the light source controller acquires an illumination value at the position of an illuminated area based on the plurality of illumination sensors and acquires a temperature value at the position of the illuminated area through the plurality of temperature sensors; matching a color temperature value of a region based on the illumination value and the temperature value, matching the required LED lamp beads based on the color temperature value, adjusting the PWM value of each LED lamp bead through negative feedback, and triggering a clock module to output a PWM signal to an LED driving module based on the adjusted PWM value;
the LED driving module drives the required LED lamp beads to emit light based on the PWM signals.
9. The system for light source control based on a light source controller of claim 8, wherein the light source controller comprises: communication module, main control unit, clock module, LED drive module and power module, wherein:
the communication module is used for communicating with the illuminance sensors and the temperature sensors in each area, acquiring illuminance values at the positions of the illuminated areas through the illuminance sensors and acquiring temperature values at the positions of the illuminated areas through the temperature sensors, and sending the illuminance values and the temperature values to the main controller;
the main controller is used for matching a color temperature value of a region based on the illumination value and the temperature value, matching the required LED lamp beads based on the color temperature value, adjusting the PWM value of each LED lamp bead through negative feedback, and triggering the clock module to output PWM signals to the LED driving module based on the adjusted PWM value;
the clock module is controlled by the main controller to output PWM signals to the LED driving module;
the LED driving module drives the required LED lamp beads to emit light based on the PWM signals;
the power module is used for supplying power for the LED driving module and the main controller.
10. The system for light source control based on a light source controller of claim 8, wherein the light source controller is a four-channel constant current light source controller.
CN202111168666.4A 2021-10-08 2021-10-08 Method and system for controlling light source based on light source controller Active CN113613364B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111168666.4A CN113613364B (en) 2021-10-08 2021-10-08 Method and system for controlling light source based on light source controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111168666.4A CN113613364B (en) 2021-10-08 2021-10-08 Method and system for controlling light source based on light source controller

Publications (2)

Publication Number Publication Date
CN113613364A true CN113613364A (en) 2021-11-05
CN113613364B CN113613364B (en) 2022-01-25

Family

ID=78310762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111168666.4A Active CN113613364B (en) 2021-10-08 2021-10-08 Method and system for controlling light source based on light source controller

Country Status (1)

Country Link
CN (1) CN113613364B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115720394A (en) * 2022-11-18 2023-02-28 杭州老板电器股份有限公司 Illumination control system and method for range hood

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658873A (en) * 2017-02-28 2017-05-10 横店集团得邦照明股份有限公司 Nonlinear closed loop-based LED control system with adjustable light colors
CN107040770A (en) * 2016-02-04 2017-08-11 冠捷投资有限公司 The scene color temperature dynamic adjusting method and device of display device
CN107969050A (en) * 2017-12-25 2018-04-27 安徽极光照明工程有限公司 A kind of wireless color temperature control system of LED light
US20180249552A1 (en) * 2015-02-17 2018-08-30 Pointgrab Ltd. Method and system for calculating color of ambient light
CN109640496A (en) * 2019-02-14 2019-04-16 博朗特互联科技(苏州)有限公司 Bridge temperature control color temperature control method and lighting apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180249552A1 (en) * 2015-02-17 2018-08-30 Pointgrab Ltd. Method and system for calculating color of ambient light
CN107040770A (en) * 2016-02-04 2017-08-11 冠捷投资有限公司 The scene color temperature dynamic adjusting method and device of display device
CN106658873A (en) * 2017-02-28 2017-05-10 横店集团得邦照明股份有限公司 Nonlinear closed loop-based LED control system with adjustable light colors
CN107969050A (en) * 2017-12-25 2018-04-27 安徽极光照明工程有限公司 A kind of wireless color temperature control system of LED light
CN109640496A (en) * 2019-02-14 2019-04-16 博朗特互联科技(苏州)有限公司 Bridge temperature control color temperature control method and lighting apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115720394A (en) * 2022-11-18 2023-02-28 杭州老板电器股份有限公司 Illumination control system and method for range hood

Also Published As

Publication number Publication date
CN113613364B (en) 2022-01-25

Similar Documents

Publication Publication Date Title
EP1803331B1 (en) Method and system for feedback and control of a luminaire
US9220139B2 (en) Serial lighting interface with embedded feedback
RU2009126539A (en) SYSTEM AND METHOD OF CONTROL OF LIGHTING INSTRUMENTS
CN113613364B (en) Method and system for controlling light source based on light source controller
EP2638781B1 (en) Systems and methods of controlling the output of a light fixture
KR20030036200A (en) System for rgb based led luminary
CN104797063A (en) Method and device for adjusting lamplight brightness, and LED lamp
WO2005029454B1 (en) Method and system for controlling an illuminating apparatus
KR20070059925A (en) Illumination brightness and color control system and method therefor
CN106304474A (en) The tone variations of the dimmable device with stable color temperature light sources
CN103025031A (en) Dimming circuit and dimming method for LED light supplementing lamp
JPH05121176A (en) Toning illumination device
CN116647960A (en) Stage lighting regulation and control system based on thing networking
CN112599095B (en) OLED micro-display brightness compensation method and system based on temperature feedback
CN210118646U (en) Plant lamp with variable spectrum
CN108012368B (en) A kind of PWM light-dimming method of LED
TWI449469B (en) Method for the operation of and circuit arrangement for light sources
CN107969038B (en) Photographic lamp and control method
CN218959159U (en) Dimmable constant current circuit
CN117572716B (en) Outdoor laser projection lamp with multiple light sources and artistic patterns
JP2019047496A (en) Control device, projection type display device, and control program
CN110031090A (en) The method of the wide illumination of wide scope illumination light-source system and realization based on multiple light courcess
KR102345552B1 (en) Natural light based routine lighting device and control method thereof
CN108513395A (en) A kind of LED intelligent dimmings toning control device
CN216930362U (en) Intelligent digital light source 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