CN113260110B - Brightness control method, device, equipment and storage medium - Google Patents

Brightness control method, device, equipment and storage medium Download PDF

Info

Publication number
CN113260110B
CN113260110B CN202110466956.0A CN202110466956A CN113260110B CN 113260110 B CN113260110 B CN 113260110B CN 202110466956 A CN202110466956 A CN 202110466956A CN 113260110 B CN113260110 B CN 113260110B
Authority
CN
China
Prior art keywords
lamp
preset
target
brightness
pulse duty
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110466956.0A
Other languages
Chinese (zh)
Other versions
CN113260110A (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.)
Guangzhou Caiyi Light Co Ltd
Original Assignee
Guangzhou Caiyi Light 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 Guangzhou Caiyi Light Co Ltd filed Critical Guangzhou Caiyi Light Co Ltd
Priority to CN202110466956.0A priority Critical patent/CN113260110B/en
Publication of CN113260110A publication Critical patent/CN113260110A/en
Application granted granted Critical
Publication of CN113260110B publication Critical patent/CN113260110B/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/10Controlling the intensity of the light
    • 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
    • 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/30Driver circuits
    • H05B45/345Current stabilisation; Maintaining constant current
    • 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 application relates to a brightness control method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring DMX data and pulse duty ratio of a lamp to be adjusted; if the DMX data of the lamp is smaller than a first preset threshold value, determining the target current of the lamp according to the pulse duty ratio and a preset ratio curve; the preset ratio curve is a ratio curve of current to pulse duty ratio; and controlling the brightness of the lamp to be adjusted according to the target current. The technical scheme that this application embodiment provided can realize that LED lamps and lanterns gradually brighten under the low luminance to satisfy stage lighting's actual demand.

Description

Brightness control method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of LED lamp control technologies, and in particular, to a brightness control method, device, apparatus, and storage medium.
Background
With the continuous development of the LED technology, stage LED lamps need to be used in more and more occasions, and the demand for dimming the stage LED lamps also has more detailed requirements. For example, there are higher requirements for various conditions such as brightness range, speed of brightness change and dimming of stage LED lamps.
In practical use of stage LED lamps, PWM pulse width is usually adopted to adjust the light of the LED lamps, that is, the brightness of the LED lamps can be changed by changing the duty ratio of the pulse width signal. Specifically, the duty ratio of the pulse width signal can be increased to lighten the LED lamp; the LED light fixture can be dimmed by reducing the duty cycle of the pulse width signal.
However, according to the actual requirements of stage lighting, it is usually required to control the LED lighting fixture to gradually brighten at low brightness to reduce the irritation of the lighting to human eyes. The brightness of the LED lamp changes too fast under low brightness by the conventional LED lamp brightness control method, and the actual requirements of a stage cannot be met.
Disclosure of Invention
Based on this, the embodiment of the application provides a brightness control method, device, equipment and storage medium, which can realize that an LED lamp gradually brightens under low brightness so as to meet the actual requirements of stage lighting.
In a first aspect, a method for controlling brightness is provided, the method comprising:
acquiring DMX data and pulse duty ratio of a lamp to be adjusted; if the DMX data of the lamp is smaller than a first preset threshold value, determining the target current of the lamp according to the pulse duty ratio and a preset ratio curve; the preset ratio curve is a ratio curve of current to pulse duty ratio; and controlling the brightness of the lamp to be adjusted according to the target current.
In one embodiment, determining the target current of the lamp according to the pulse duty ratio and the preset ratio curve includes:
obtaining the brightness delay time of a lamp to be adjusted; determining a preset target ratio curve corresponding to the brightness delay time according to the brightness delay time; and determining the target current of the lamp according to the pulse duty ratio and a preset target ratio curve.
In one embodiment, determining a preset target ratio curve corresponding to the brightness delay time duration according to the brightness delay time duration includes:
acquiring a resistance value of the first current regulating circuit; calculating to obtain a target capacitance value accessed to the first current regulating circuit according to the brightness delay time and the resistance value; and determining a preset ratio curve corresponding to the target capacitance value according to the target capacitance value to be used as a preset target ratio curve.
In one embodiment, the method further includes:
and controlling to connect the capacitor corresponding to the target capacitance value into the first current regulating circuit through the capacitor change-over switch.
In one embodiment, determining the target current of the lamp according to the pulse duty ratio and the preset ratio curve includes:
and the control circuit change-over switch is connected to the first current regulating circuit, and controls the first current regulating circuit to determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve.
In one embodiment, the method further includes:
and if the DMX data of the lamp is larger than or equal to the first preset threshold, the control circuit change-over switch is connected to the second current regulating circuit, and the second current regulating circuit is controlled to determine the target current of the lamp according to the pulse duty ratio.
In one embodiment, the obtaining the pulse duty ratio of the lamp to be adjusted includes:
acquiring the pulse duty ratio of the lamp to be adjusted from a preset data table according to the DMX data; the preset data table stores the mapping relation between each DMX data and each pulse duty ratio.
In a second aspect, there is provided a luminance control apparatus, the apparatus comprising:
the data acquisition module is used for acquiring DMX data and pulse duty ratio of the lamp to be adjusted;
the target current determining module is used for determining the target current of the lamp according to the pulse duty ratio and the preset ratio curve if the DMX data of the lamp is smaller than a first preset threshold; the preset ratio curve is a ratio curve of current to pulse duty ratio;
and the brightness control module is used for controlling the brightness of the lamp to be adjusted according to the target current.
In a third aspect, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, the computer program, when executed by the processor, implementing the method steps in any of the embodiments of the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, is adapted to carry out the method steps of any of the embodiments of the first aspect described above.
According to the brightness control method, the brightness control device, the brightness control equipment and the storage medium, DMX data and pulse duty ratio of the lamp to be adjusted are obtained; if the DMX data of the lamp is smaller than a first preset threshold value, determining the target current of the lamp according to the pulse duty ratio and a preset ratio curve; and controlling the brightness of the lamp to be adjusted according to the target current. In the technical scheme provided by the embodiment of the application, the preset ratio curve is a ratio curve of current and pulse duty ratio, the target current of the lamp is determined from the preset ratio curve through the pulse duty ratio, the pulse duty ratio and the target current can be combined to perform composite dimming on the LED lamp, and the target current in the preset ratio curve is slowly increased along with the change of the pulse duty ratio, so that the LED lamp gradually brightens under low brightness, the actual requirement of stage lighting is met, and the dimming effect of the LED lamp is enriched.
Drawings
FIG. 1 is a block diagram of a computer device provided by an embodiment of the present application;
fig. 2 is a flowchart of a brightness control method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a preset ratio curve provided in the embodiments of the present application;
FIG. 4 is an enlarged schematic view of a preset ratio curve provided in the embodiment of the present application;
FIG. 5 is an enlarged schematic view of another preset ratio curve provided in the embodiments of the present application;
FIG. 6 is a schematic diagram of a default data table according to an embodiment of the present application;
FIG. 7 is a schematic diagram of another default data table according to an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of another default data table according to an embodiment of the present disclosure;
fig. 9 is a flowchart of a brightness control method according to an embodiment of the present application;
fig. 10 is a flowchart of a brightness control method according to an embodiment of the present application;
FIG. 11 is a schematic diagram of a regulating circuit according to an embodiment of the present application;
fig. 12 is a schematic diagram of preset ratio curves corresponding to different target capacitance values according to an embodiment of the present disclosure;
fig. 13 is a schematic diagram of brightness control according to an embodiment of the present application;
fig. 14 is a block diagram of a luminance control apparatus according to an embodiment of the present application;
fig. 15 is a block diagram of a luminance control apparatus according to an embodiment of the present application;
fig. 16 is a block diagram of a luminance control apparatus according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The brightness control method provided by the present application may be applied to a computer device, where the computer device may be a server or a terminal, where the server may be one server or a server cluster composed of multiple servers, and the embodiment of the present application is not limited in this respect, and the terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
Taking the example of a computer device being a server, FIG. 1 shows a block diagram of a server, which may include a processor and memory connected by a system bus, as shown in FIG. 1. Wherein the processor of the server is configured to provide computing and control capabilities. The memory of the server comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The computer program is executed by a processor to implement a brightness control method.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the servers to which the subject application applies, and that servers may alternatively include more or fewer components than those shown, or combine certain components, or have a different arrangement of components.
The execution subject of the embodiments of the present application may be a computer device, or may be a luminance control apparatus, and the following method embodiments will be described with reference to the computer device as the execution subject.
In one embodiment, as shown in fig. 2, which shows a flowchart of a brightness control method provided in an embodiment of the present application, the method may include the following steps:
and step 220, acquiring DMX data and pulse duty ratio of the lamp to be adjusted.
In the field of dimming and control of LED lamps, the LED lamps mainly adopt DMX512 protocol to transmit and receive DMX data, and the DMX512 protocol is an industrial standard for data transmission between a light console and lamp equipment. The pulse duty ratio is the ratio of the on time and the off time of the LED lamp, when the brightness of the LED lamp is controlled, the LED lamp is usually switched on and off at a high frequency by adopting a frequency higher than the visual persistence time of human eyes, and the ratio of the on time and the off time of the LED lamp is controlled, namely the pulse duty ratio is controlled to adjust the brightness of the LED lamp. The DMX data and the pulse duty ratio of the lamp are important parameters for controlling the brightness of the LED lamp, and therefore, when the brightness of the lamp is controlled, the DMX data and the pulse duty ratio of the lamp to be adjusted need to be obtained first. The DMX data can be acquired by receiving the DMX data sent by the light console, and the pulse duty ratio can be a preset fixed pulse duty ratio value or a corresponding pulse duty ratio which is inquired according to the acquired DMX data.
Step 240, if the DMX data of the lamp is smaller than a first preset threshold, determining a target current of the lamp according to the pulse duty ratio and a preset ratio curve; the preset ratio curve is a ratio curve of current to pulse duty ratio.
The DMX data of the lamp is a numerical value within a range of 1-255, the DMX data of the lamp can be used for dividing the brightness range of the LED lamp, and the brightness range of the LED lamp can comprise a low brightness range, a medium brightness range and a high brightness range. The first preset threshold may be a maximum value of the DMX data corresponding to the low luminance range, and if the DMX data of the lamp is smaller than the first preset threshold, that is, the lamp is in the low luminance range, the target current of the lamp is determined according to the pulse duty ratio and the preset ratio curve. The preset ratio curve is a ratio curve of the target current to the pulse duty ratio, and the preset ratio curve may be a change curve of the target current and the pulse duty ratio obtained through a large number of experimental verifications, and the obtained preset ratio curve is stored. As shown in fig. 3-5, fig. 3 is a schematic diagram of a preset ratio curve provided by the embodiment of the present application, wherein a horizontal axis represents a pulse duty ratio, and a vertical axis represents a target current. The straight line is a ratio curve corresponding to the existing PWM pulse duty ratio dimming method, and the curve is a ratio curve corresponding to the composite dimming method combining the pulse duty ratio and the target current provided in the embodiment of the present application. Fig. 4 is an enlarged schematic view of a preset ratio curve provided in the embodiment of the present application, namely, an enlarged view of the preset ratio curve corresponding to the minimum dashed box in fig. 3;
fig. 5 is an enlarged schematic view of another preset ratio curve provided in the embodiment of the present application, namely, an enlarged view of the preset ratio curve corresponding to the middle dashed box in fig. 3.
And step 260, controlling the brightness of the lamp to be adjusted according to the target current.
After the target current of the lamp is determined according to the pulse duty ratio and the preset ratio curve, the brightness of the lamp to be adjusted can be controlled according to the target current, and the larger the target current is, the higher the brightness of the lamp to be adjusted is.
In the embodiment, DMX data and pulse duty ratio of the lamp to be adjusted are acquired; if the DMX data of the lamp is smaller than a first preset threshold value, determining the target current of the lamp according to the pulse duty ratio and a preset ratio curve; and controlling the brightness of the lamp to be adjusted according to the target current. The preset ratio curve is a ratio curve of current to pulse duty ratio, the target current of the lamp is determined from the preset ratio curve through the pulse duty ratio, the pulse duty ratio and the target current can be combined to conduct composite dimming on the LED lamp, the target current in the preset ratio curve is slowly increased along with the change of the pulse duty ratio, and therefore the LED lamp gradually brightens under low brightness, the actual requirement of stage light is met, and the dimming effect of the LED lamp is enriched.
In one embodiment, when the pulse duty ratio of the lamp to be adjusted is obtained, optionally, the pulse duty ratio of the lamp to be adjusted may be obtained from a preset data table according to the DMX data; the preset data table stores the mapping relation between each DMX data and each pulse duty ratio.
The preset data table is a mapping relation between each DMX data and each pulse duty ratio, when the LED lamp is dimmed, a dimming curve input by a user can be obtained through a human-computer interface, the dimming curve can comprise a linear dimming line, a square dimming line (parabolic dimming line), a logarithmic dimming line (inverse parabolic dimming line), an S-curve dimming line, a cubic dimming line and the like, and the preset data table can comprise the mapping relation between each DMX data and each pulse duty ratio under different dimming curves. As shown in fig. 6-8, fig. 6 is a schematic diagram of a preset data table provided in the embodiment of the present application, in which the preset data table of the lamp in a partial low brightness range is shown; FIG. 7 is a diagram of another default table of data provided in an embodiment of the present application, showing the default table of data at a portion of the middle luminance range; fig. 8 is a schematic diagram of another preset data table according to an embodiment of the present application, in which the preset data table in a partial high brightness range is shown.
In one embodiment, as shown in fig. 9, which illustrates a flowchart of a brightness control method provided in an embodiment of the present application, specifically, a process for determining a target current of a lamp may include the following steps:
and 920, obtaining the brightness delay time of the lamp to be adjusted.
And 940, determining a preset target ratio curve corresponding to the brightness delay time length according to the brightness delay time length.
And step 960, determining the target current of the lamp according to the pulse duty ratio and a preset target ratio curve.
The brightness delay time duration is a dimming range of the lamp to be adjusted under low brightness, namely the time duration that the lamp to be adjusted starts to slowly brighten after being electrified. The brightness delay time of the lamp to be adjusted can be input by a user on a human-computer interface, and the corresponding brightness delay time can be selected by controlling a brightness delay button on a remote controller of the lamp to be adjusted. The brightness delay time corresponds to a preset target ratio curve, after the brightness delay time of the lamp to be adjusted is obtained, the preset target ratio curve corresponding to the brightness delay time can be determined according to the brightness delay time, so that the preset target ratio curve is determined, and then the target current of the lamp is determined according to the pulse duty ratio and the preset target ratio curve.
In this embodiment, the brightness delay time of the lamp to be adjusted is obtained, a preset target ratio curve corresponding to the brightness delay time is determined according to the brightness delay time, and the target current of the lamp is determined according to the pulse duty ratio and the preset target ratio curve. The target current of the lamp can be determined only by selecting the corresponding brightness delay time according to the actual requirements of the stage by the user, so that the brightness of the lamp can be controlled, the convenience of adjusting the brightness of the lamp is improved, and the intelligence of man-machine interaction is improved.
In one embodiment, as shown in fig. 10, which illustrates a flowchart of a brightness control method provided in an embodiment of the present application, and particularly relates to a process for determining a target current of a lamp according to a capacitance value, the method may include the following steps:
step 1020, a resistance value of the first current regulating circuit is obtained.
As shown in fig. 11, fig. 11 is a schematic diagram of an adjusting circuit provided in an embodiment of the present application, and a dashed line box 1120 is a first adjusting circuit, after the first adjusting circuit is determined, a resistance value in the first current adjusting circuit is preset, so that the resistance value of the first current adjusting circuit can be calculated through a resistance calculation formula.
And step 1040, calculating to obtain a target capacitance value accessed to the first current regulating circuit according to the brightness delay time and the resistance value.
The first current regulating circuit is a capacitance-resistance charge-discharge circuit, the delay time is equal to the product of the resistance value and the capacitance value, and after the brightness delay time and the resistance value, the target capacitance value needing to be accessed into the first current regulating circuit can be obtained through calculation according to the relationship among the brightness delay time, the resistance value and the capacitance value.
Step 1060, determining a preset ratio curve corresponding to the target capacitance value according to the target capacitance value, as a preset target ratio curve.
After the target capacitance value is determined, the target capacitance value and the preset ratio curve also have a corresponding relationship, as shown in fig. 12, fig. 12 is a schematic diagram of the preset ratio curves corresponding to different target capacitance values provided in the embodiment of the present application, and it can be seen that the larger the target capacitance value is, the slower the corresponding preset ratio curve changes, and thus, the preset ratio curve corresponding to the target capacitance value can be determined according to the target capacitance value to serve as the preset target ratio curve.
In this embodiment, a target capacitance value accessed to the first current adjusting circuit is calculated by obtaining a resistance value of the first current adjusting circuit according to the luminance delay time and the resistance value, and a preset ratio curve corresponding to the target capacitance value is determined according to the target capacitance value and is used as the preset target ratio curve. The preset target ratio curve is determined by changing the target capacitance value accessed into the first current regulating circuit, so that the target current of the lamp is determined, the circuit design is simple and easy to realize, and the convenience and the rapidity for determining the target current of the lamp are improved.
In one embodiment, after the target capacitance value accessed to the first current adjusting circuit is obtained through calculation, the capacitance corresponding to the target capacitance value can be controlled to be accessed to the first current adjusting circuit through the capacitance switch.
With continued reference to fig. 11, after the target capacitance value connected to the first current regulating circuit is obtained through calculation, the capacitor (the capacitance value of the capacitor is the target capacitance value) can be controlled to be connected to the first current regulating circuit through the capacitor switches RY2, RY3, RY4, and RY 5. When the control capacitance change-over switch is switched, the switch can be controlled by sending a control signal to the corresponding control capacitance change-over switch. The capacitance of the first current regulating circuit is controlled to be accessed through the capacitance change-over switch, the circuit design is simple and easy to realize, and the convenience of capacitance change-over is improved.
In one embodiment, when the target current of the lamp is determined according to the pulse duty cycle and the preset ratio curve, optionally, the circuit switch may be controlled to switch in the first current regulating circuit, and the first current regulating circuit is controlled to determine the target current of the lamp according to the pulse duty cycle and the preset ratio curve.
If the DMX data of the lamp is smaller than a first preset threshold, the circuit change-over switch can be controlled to be connected to the first current regulating circuit, and the first current regulating circuit is controlled to determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve. With continued reference to fig. 11, the switch may be controlled to switch into the first current regulating circuit 1120 by sending a control signal to the control circuit switch RY1, i.e., relay RY1 switches into the signal input of R20 and the R19 discharge resistor. The first current regulating circuit is controlled to be accessed through the control circuit change-over switch, the circuit design is simple and easy to realize, and the convenience of accessing the first current regulating circuit is improved.
In one embodiment, if the DMX data of the lamp is greater than or equal to the first preset threshold, the control circuit switches the switch to connect the second current regulating circuit, and controls the second current regulating circuit to determine the target current of the lamp according to the pulse duty ratio.
If the DMX data of the lamp is greater than or equal to the first preset threshold, that is, the lamp is in the middle brightness or the high brightness range, please refer to fig. 11, the switch may be controlled to switch in the second current regulating circuit by sending a control signal to the control circuit switch RY1, and the second current regulating circuit is controlled to determine the target current of the lamp according to the pulse duty ratio, and the dotted line frame 1140 is the second current regulating circuit. The second current regulating circuit is controlled to be accessed through the control circuit change-over switch, the circuit design is simple and easy to realize, and the convenience of accessing the second current regulating circuit is improved.
In an embodiment, when performing brightness control on an LED lamp, the brightness control may be implemented by different modules, and the brightness control may include a DMX receiving module, a human-computer interface module, an LED control module, a dimming mode switching module, a low-brightness dimming range adjusting module, an LED constant current driving module, and an LED module, as shown in fig. 13, where fig. 13 is a brightness control schematic diagram provided in an embodiment of the present application. Firstly, after the lamp is powered on, all control system MCUs in the lamp start to reset and self-check, and a human-computer interface module MCU processes information such as software version, temperature, fan rotating speed, channel value and the like; then, the DMX receiving module receives DMX data sent by the light control console and sends the data to the human-computer interface module; a user can select the type and the dimming mode of a dimming curve and a dimming range with low brightness (namely brightness delay time length) through the human-computer interface module, and the human-computer interface module sends DMX data, the dimming curve, a control signal of the dimming mode and a control signal of the dimming range with low brightness to the LED control module; the LED control module outputs a corresponding PWM pulse width signal according to the received DMX data and the dimming curve and sends the PWM pulse width signal to the LED constant current driving module; the dimming mode switching module outputs a control signal to the switch RY1 to control the switching of the switch RY1 according to the dimming mode control signal sent by the LED control module; the low-brightness dimming range adjusting module outputs control signals to the switches RY2, RY3, RY4 and RY5 according to the control signals of the low-brightness dimming range sent by the dimming mode switching module to control the switches to be switched to the capacitors with different capacitance values; the LED constant current driving module outputs corresponding target current according to the received PWM pulse width signal; the LED module controls the brightness change of the LED lamp according to the target current output by the LED constant current driving module.
It should be understood that although the various steps in the flow charts of fig. 2-10 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-10 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
Referring to fig. 14, a block diagram of a brightness control apparatus 1400 according to an embodiment of the present disclosure is shown. As shown in fig. 14, the brightness control apparatus 1400 may include: a data acquisition module 1402, a target current determination module 1404, and a brightness control module 1406, wherein:
the data acquisition module 1402 is configured to acquire DMX data and a pulse duty ratio of the lamp to be adjusted;
a target current determining module 1404, configured to determine a target current of the lamp according to the pulse duty cycle and the preset ratio curve if the DMX data of the lamp is smaller than a first preset threshold; the preset ratio curve is a ratio curve of current to pulse duty ratio;
and the brightness control module 1406 is used for controlling the brightness of the lamp to be adjusted according to the target current.
In one embodiment, the target current determination module 1404 includes an acquisition unit, a first determination unit, and a second determination unit, wherein: the acquisition unit is used for acquiring the brightness delay time of the lamp to be adjusted; the first determining unit is used for determining a preset target ratio curve corresponding to the brightness delay time length according to the brightness delay time length; the second determining unit is used for determining the target current of the lamp according to the pulse duty ratio and a preset target ratio curve.
In an embodiment, the first determining unit is specifically configured to obtain a resistance value of the first current adjusting circuit; calculating to obtain a target capacitance value accessed to the first current regulating circuit according to the brightness delay time and the resistance value; and determining a preset ratio curve corresponding to the target capacitance value according to the target capacitance value to be used as a preset target ratio curve.
In an embodiment, as shown in fig. 15, the brightness control apparatus 1400 further includes a first control module 1408, and the first control module 1408 is configured to control the capacitor corresponding to the target capacitance to be connected to the first current regulating circuit through the capacitance switch.
In an embodiment, the target current determining module 1404 further includes a control unit, where the control unit is configured to control the circuit switch to switch in the first current adjusting circuit, and control the first current adjusting circuit to determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve.
In an embodiment, as shown in fig. 16, the brightness control apparatus 1400 further includes a second control module 1410, where the second control module is configured to control the circuit switch to switch in the second current adjusting circuit if the DMX data of the lamp is greater than or equal to the first preset threshold, and control the second current adjusting circuit to determine the target current of the lamp according to the pulse duty ratio.
In an embodiment, the data obtaining module 1402 includes an obtaining unit, where the obtaining unit is configured to obtain, according to the DMX data, a pulse duty ratio of the lamp to be adjusted from a preset data table; the preset data table stores the mapping relation between each DMX data and each pulse duty ratio.
For the specific definition of the brightness control device, reference may be made to the above definition of the brightness control method, which is not described herein again. The modules in the brightness control device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute the operations of the modules.
In one embodiment of the application, a computer device is provided, the computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
acquiring DMX data and a pulse duty ratio of a lamp to be adjusted; if the DMX data of the lamp is smaller than a first preset threshold value, determining the target current of the lamp according to the pulse duty ratio and a preset ratio curve; the preset ratio curve is a ratio curve of current to pulse duty ratio; and controlling the brightness of the lamp to be adjusted according to the target current.
In one embodiment of the application, the processor when executing the computer program further performs the steps of:
obtaining the brightness delay time of a lamp to be adjusted; determining a preset target ratio curve corresponding to the brightness delay time according to the brightness delay time; and determining the target current of the lamp according to the pulse duty ratio and a preset target ratio curve.
In one embodiment of the application, the processor when executing the computer program further performs the steps of:
acquiring a resistance value of the first current regulating circuit; calculating to obtain a target capacitance value accessed to the first current regulating circuit according to the brightness delay time and the resistance value; and determining a preset ratio curve corresponding to the target capacitance value according to the target capacitance value to be used as a preset target ratio curve.
In one embodiment of the application, the processor when executing the computer program further performs the steps of:
and controlling to connect the capacitor corresponding to the target capacitance value into the first current regulating circuit through the capacitor change-over switch.
In one embodiment of the application, the processor when executing the computer program further performs the steps of:
and the control circuit change-over switch is connected to the first current regulating circuit, and controls the first current regulating circuit to determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve.
In one embodiment of the application, the processor when executing the computer program further performs the steps of:
and if the DMX data of the lamp is larger than or equal to the first preset threshold, the control circuit change-over switch is connected to the second current regulating circuit, and the second current regulating circuit is controlled to determine the target current of the lamp according to the pulse duty ratio.
In one embodiment of the application, the processor when executing the computer program further performs the steps of:
acquiring the pulse duty ratio of the lamp to be adjusted from a preset data table according to the DMX data; the preset data table stores the mapping relation between each DMX data and each pulse duty ratio.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
acquiring DMX data and pulse duty ratio of a lamp to be adjusted; if the DMX data of the lamp is smaller than a first preset threshold value, determining the target current of the lamp according to the pulse duty ratio and a preset ratio curve; the preset ratio curve is a ratio curve of current to pulse duty ratio; and controlling the brightness of the lamp to be adjusted according to the target current.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of:
obtaining the brightness delay time of a lamp to be adjusted; determining a preset target ratio curve corresponding to the brightness delay time according to the brightness delay time; and determining the target current of the lamp according to the pulse duty ratio and a preset target ratio curve.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of:
acquiring a resistance value of the first current regulating circuit; calculating to obtain a target capacitance value accessed to the first current regulating circuit according to the brightness delay time and the resistance value; and determining a preset ratio curve corresponding to the target capacitance value according to the target capacitance value to be used as a preset target ratio curve.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of:
and controlling to connect the capacitor corresponding to the target capacitance value into the first current regulating circuit through the capacitor change-over switch.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of:
and the control circuit change-over switch is connected to the first current regulating circuit, and controls the first current regulating circuit to determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of:
and if the DMX data of the lamp is larger than or equal to the first preset threshold, the control circuit change-over switch is connected to the second current regulating circuit, and the second current regulating circuit is controlled to determine the target current of the lamp according to the pulse duty ratio.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of:
acquiring the pulse duty ratio of the lamp to be adjusted from a preset data table according to the DMX data; the preset data table stores the mapping relation between each DMX data and each pulse duty ratio.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A method of brightness control, the method comprising:
acquiring DMX data and pulse duty ratio of a lamp to be adjusted;
if the DMX data of the lamp is smaller than a first preset threshold value, determining the target current of the lamp according to the pulse duty ratio and a preset ratio curve; the preset ratio curve is a ratio curve of current to pulse duty ratio, and the first preset threshold is the maximum value of DMX data corresponding to a low brightness range;
controlling the brightness of the lamp to be adjusted according to the target current;
determining the target current of the lamp according to the pulse duty ratio and a preset ratio curve, wherein the determining comprises the following steps:
obtaining the brightness delay time of the lamp to be adjusted;
determining a preset target ratio curve corresponding to the brightness delay time according to the brightness delay time;
and determining the target current of the lamp according to the pulse duty ratio and the preset target ratio curve.
2. The method according to claim 1, wherein said determining a preset target ratio curve corresponding to said brightness delay time duration according to said brightness delay time duration comprises:
acquiring a resistance value of the first current regulating circuit;
calculating to obtain a target capacitance value accessed to the first current regulating circuit according to the brightness delay time and the resistance value;
and determining a preset ratio curve corresponding to the target capacitance value according to the target capacitance value, and using the preset ratio curve as the preset target ratio curve.
3. The method of claim 2, further comprising:
and controlling to access the capacitor corresponding to the target capacitance value into the first current regulating circuit through a capacitor selector switch.
4. The method of claim 2, wherein determining the target current of the lamp according to the pulse duty cycle and a preset ratio curve comprises:
and the control circuit switch is connected to the first current regulating circuit and controls the first current regulating circuit to determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve.
5. The method of claim 1, further comprising:
and if the DMX data of the lamp is larger than or equal to a first preset threshold value, controlling a circuit change-over switch to be connected to a second current regulating circuit, and controlling the second current regulating circuit to determine the target current of the lamp according to the pulse duty ratio.
6. The method of claim 1, wherein obtaining the pulse duty cycle of the lamp to be regulated comprises:
acquiring the pulse duty ratio of the lamp to be adjusted from a preset data table according to the DMX data; and the preset data table stores the mapping relation between each DMX data and each pulse duty ratio.
7. A luminance control apparatus, characterized in that the apparatus comprises:
the data acquisition module is used for acquiring DMX data and pulse duty ratio of the lamp to be adjusted;
the target current determining module is used for determining the target current of the lamp according to the pulse duty ratio and a preset ratio curve if the DMX data of the lamp is smaller than a first preset threshold; the preset ratio curve is a ratio curve of current to pulse duty ratio, and the first preset threshold is the maximum value of DMX data corresponding to a low brightness range;
the brightness control module is used for controlling the brightness of the lamp to be adjusted according to the target current;
the target current determining module is further used for obtaining the brightness delay time of the lamp to be adjusted; determining a preset target ratio curve corresponding to the brightness delay time length according to the brightness delay time length; and determining the target current of the lamp according to the pulse duty ratio and the preset target ratio curve.
8. A computer arrangement comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, carries out the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202110466956.0A 2021-04-28 2021-04-28 Brightness control method, device, equipment and storage medium Active CN113260110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110466956.0A CN113260110B (en) 2021-04-28 2021-04-28 Brightness control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110466956.0A CN113260110B (en) 2021-04-28 2021-04-28 Brightness control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113260110A CN113260110A (en) 2021-08-13
CN113260110B true CN113260110B (en) 2023-03-24

Family

ID=77222054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110466956.0A Active CN113260110B (en) 2021-04-28 2021-04-28 Brightness control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113260110B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709934B (en) * 2021-08-26 2023-09-15 广州彩熠灯光股份有限公司 Lamp control method, device, lamp and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098847A (en) * 2011-01-20 2011-06-15 广州市番禺区珠江灯光音响实业有限公司 Field programmable gate array (FPGA)-based light-emitting diode (LED) dimming circuit
JP2018101542A (en) * 2016-12-20 2018-06-28 パナソニックIpマネジメント株式会社 Light control device, luminaire, and control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10665181B2 (en) * 2017-06-28 2020-05-26 Apple Inc. Backlights with dynamic dimming ranges
JP2011070957A (en) * 2009-09-25 2011-04-07 Toshiba Lighting & Technology Corp Lighting device
CN106714383B (en) * 2017-01-19 2018-07-24 深圳市汇德科技有限公司 A kind of LED light light control method
CN111681614B (en) * 2020-06-18 2021-09-14 上海闻泰电子科技有限公司 Backlight brightness value adjusting method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098847A (en) * 2011-01-20 2011-06-15 广州市番禺区珠江灯光音响实业有限公司 Field programmable gate array (FPGA)-based light-emitting diode (LED) dimming circuit
JP2018101542A (en) * 2016-12-20 2018-06-28 パナソニックIpマネジメント株式会社 Light control device, luminaire, and control method

Also Published As

Publication number Publication date
CN113260110A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
US10045419B2 (en) Color-temperature adjustable LED lightning device and method for adjusting color temperature of LED lighting device
CN105632414B (en) Method for controlling backlight thereof, device and equipment in a kind of terminal device start process
US20230239172A1 (en) Home device controller with a touch control groove
CN113347768B (en) Intelligent light regulation and control method and device, electronic equipment and storage medium
JP6516178B2 (en) Dimming control unit, lighting system, and equipment
CN113260110B (en) Brightness control method, device, equipment and storage medium
JP6332726B2 (en) LED driving circuit and liquid crystal display device
CN113473676A (en) Control method and device of LED driving circuit for plant illumination and terminal
JP2016162696A (en) Illumination control device and illumination control method
CN114488880B (en) Intelligent control method and device of equipment, intelligent switch and storage medium
CN110913538A (en) Desk lamp control method, system and device, desk lamp and desk lamp controller
EP3550938B1 (en) Light source actuating apparatus
CN104240676A (en) Method for adjusting electronic device and electronic device
CN110886714A (en) Electric fan control method and device, storage medium and electric fan
CN104754798B (en) The brightness control method and device of key-press backlight
US20200037423A1 (en) Dimming control for lighting systems and methods thereof
CN113473677B (en) Control method, device, terminal and driving circuit of plant lighting system
CN113225867B (en) Dimming curve expansion method and device, computer equipment and storage medium
CN114815646A (en) Switch button control method based on Internet of things and related equipment
US11239739B2 (en) Power fetching system for no neutral switch and control method thereof, no neutral switch
US20160174342A1 (en) Method for controlling lighting element and associated system
CN113873728B (en) Lighting device brightness adjusting method and device, lighting device and storage medium
JP2006278051A (en) Illumination control device and illumination system
CN103903594A (en) Remote controller, household appliance and control method and device of display of household appliance
JP2018101805A (en) Led drive circuit, led driving method, and liquid crystal display device

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