[go: up one dir, main page]

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
brightness
target
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 Technology 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

本申请涉及LED灯具控制技术领域,特别是涉及一种亮度控制方法、装置、设备及存储介质。The present application relates to the technical field of LED lamp control, in particular to a brightness control method, device, equipment and storage medium.

背景技术Background technique

随着LED技术的不断发展,越来越多的场合需要使用到舞台LED灯具,并且对舞台LED灯具调光的需求也有了更多细致的要求。例如,对舞台LED灯具的亮度范围、变亮和变暗的速度等多方面条件都有了更高的要求。With the continuous development of LED technology, more and more occasions need to use stage LED lamps, and there are more detailed requirements for the dimming of stage LED lamps. For example, there are higher requirements for the brightness range of stage LED lamps, the speed of brightening and dimming, and other aspects.

在舞台LED灯具的实际使用中,通常采用PWM脉宽对LED灯具进行调光,即改变脉宽信号的占空比就可以改变LED灯具的亮度。具体可以通过增大脉宽信号的占空比,使得LED灯具变亮;可以通过减小脉宽信号的占空比,使得LED灯具变暗。In the actual use of stage LED lamps, the PWM pulse width is usually used to dim the LED lamps, that is, changing the duty cycle of the pulse width signal can change the brightness of the LED lamps. Specifically, the LED lamp can be brightened by increasing the duty cycle of the pulse width signal; the LED lamp can be dimmed by reducing the duty cycle of the pulse width signal.

然而,根据舞台灯光的实际需求,通常在低亮度时要求控制LED灯具渐渐变亮,以减小灯光对人眼的刺激。现有的LED灯具亮度控制方法在低亮度下LED灯具的亮度变化太快,无法满足舞台的实际需求。However, according to the actual needs of stage lighting, it is usually required to control the LED lamps to gradually brighten when the brightness is low, so as to reduce the stimulation of the light to the human eye. In the existing brightness control method of LED lamps, the brightness of LED lamps changes too quickly under low brightness, which cannot meet the actual needs of the stage.

发明内容Contents of the invention

基于此,本申请实施例提供了一种亮度控制方法、装置、设备及存储介质,可以实现在低亮度下LED灯具渐渐变亮,以满足舞台灯光的实际需求。Based on this, the embodiments of the present application provide a brightness control method, device, device and storage medium, which can realize LED lamps becoming brighter gradually under low brightness, so as to meet the actual needs of stage lighting.

第一方面,提供了一种亮度控制方法,该方法包括:In a first aspect, a brightness control method is provided, the method comprising:

获取待调节灯具的DMX数据及脉冲占空比;若灯具的DMX数据小于第一预设阈值,则根据脉冲占空比及预设比率曲线,确定灯具的目标电流;预设比率曲线为电流与脉冲占空比的比率曲线;根据目标电流,对待调节灯具的亮度进行控制。Obtain the DMX data and pulse duty ratio of the lamp to be adjusted; if the DMX data of the lamp is less than the first preset threshold, determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve; the preset ratio curve is the current and The ratio curve of the pulse duty cycle; according to the target current, the brightness of the lamp to be adjusted is controlled.

在其中一个实施例中,根据脉冲占空比及预设比率曲线,确定灯具的目标电流,包括:In one of the embodiments, the target current of the lamp is determined according to the pulse duty cycle and the preset ratio curve, including:

获取待调节灯具的亮度延时时长;根据亮度延时时长确定与亮度延时时长对应的预设目标比率曲线;根据脉冲占空比及预设目标比率曲线,确定灯具的目标电流。Acquire the brightness delay time of the lamp to be adjusted; determine the preset target ratio curve corresponding to the brightness delay time according to the brightness delay time; determine the target current of the lamp according to the pulse duty cycle and the preset target ratio curve.

在其中一个实施例中,根据亮度延时时长确定与亮度延时时长对应的预设目标比率曲线,包括:In one of the embodiments, the preset target ratio curve corresponding to the brightness delay time is determined according to the brightness delay time, including:

获取第一电流调节电路的电阻值;根据亮度延时时长和电阻值,计算得到接入第一电流调节电路的目标电容值;根据目标电容值确定与目标电容值对应的预设比率曲线,作为预设目标比率曲线。Obtain the resistance value of the first current regulation circuit; calculate the target capacitance value connected to the first current regulation circuit according to the brightness delay time and the resistance value; determine the preset ratio curve corresponding to the target capacitance value according to the target capacitance value, as Preset target ratio curve.

在其中一个实施例中,上述方法还包括:In one of the embodiments, the above method also includes:

通过电容切换开关控制将目标电容值对应的电容接入第一电流调节电路。The capacitance corresponding to the target capacitance value is connected to the first current regulation circuit through the control of the capacitance switching switch.

在其中一个实施例中,根据脉冲占空比及预设比率曲线,确定灯具的目标电流,包括:In one of the embodiments, the target current of the lamp is determined according to the pulse duty cycle and the preset ratio curve, including:

控制电路切换开关接入第一电流调节电路,并控制第一电流调节电路根据脉冲占空比及预设比率曲线,确定灯具的目标电流。The switching switch of the control circuit is connected to the first current regulation circuit, and the first current regulation circuit is controlled to determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve.

在其中一个实施例中,上述方法还包括:In one of the embodiments, the above method also includes:

若灯具的DMX数据大于或等于第一预设阈值,则控制电路切换开关接入第二电流调节电路,并控制第二电流调节电路根据脉冲占空比,确定灯具的目标电流。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 to the second current regulation circuit, and controls the second current regulation circuit to determine the target current of the lamp according to the pulse duty ratio.

在其中一个实施例中,上述获取待调节灯具的脉冲占空比,包括:In one of the embodiments, the acquisition of the pulse duty cycle of the lamp to be adjusted includes:

根据DMX数据,从预设数据表中获取待调节灯具的脉冲占空比;预设数据表中存储了各DMX数据与各脉冲占空比的映射关系。According to the DMX data, the pulse duty cycle of the lamp to be adjusted is obtained from the preset data table; the mapping relationship between each DMX data and each pulse duty cycle is stored in the preset data table.

第二方面,提供了一种亮度控制装置,该装置包括:In a second aspect, a brightness control device is provided, which includes:

数据获取模块,用于获取待调节灯具的DMX数据及脉冲占空比;The data acquisition module is used to acquire the DMX data and the pulse duty cycle of the lamp to be adjusted;

目标电流确定模块,用于若灯具的DMX数据小于第一预设阈值,则根据脉冲占空比及预设比率曲线,确定灯具的目标电流;预设比率曲线为电流与脉冲占空比的比率曲线;The target current determination module is used 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 less than the first preset threshold; the preset ratio curve is the ratio of the current to the pulse duty cycle curve;

亮度控制模块,用于根据目标电流,对待调节灯具的亮度进行控制。The brightness control module is used to control the brightness of the lamp to be adjusted according to the target current.

第三方面,提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,计算机程序被处理器执行时实现上述第一方面任一实施例中的方法步骤。A third aspect provides a computer device, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the method steps in any embodiment of the first aspect above are implemented.

第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述第一方面任一实施例中的方法步骤。In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the method steps in any embodiment of the above-mentioned first aspect are implemented.

上述亮度控制方法、装置、设备及存储介质,通过获取待调节灯具的DMX数据及脉冲占空比;若灯具的DMX数据小于第一预设阈值,则根据脉冲占空比及预设比率曲线,确定灯具的目标电流;根据目标电流,对待调节灯具的亮度进行控制。在本申请实施例提供的技术方案中,由于预设比率曲线为电流与脉冲占空比的比率曲线,通过脉冲占空从预设比率曲线中确定灯具的目标电流,可以结合脉冲占空比与目标电流对LED灯具进行复合调光,预设比率曲线中的目标电流随着脉冲占空比的变化缓慢增大,从而实现在低亮度下LED灯具渐渐变亮,以满足舞台灯光的实际需求,丰富了LED灯具的调光效果。The brightness control method, device, device, and storage medium described above acquire the DMX data and pulse duty ratio of the lamp to be adjusted; if the DMX data of the lamp is less than the first preset threshold, then according to the pulse duty ratio and the preset ratio curve, Determine the target current of the lamp; according to the target current, control the brightness of the lamp to be adjusted. In the technical solution provided by the embodiment of this application, since the preset ratio curve is the ratio curve of the current and the pulse duty ratio, the target current of the lamp can be determined from the preset ratio curve through the pulse duty ratio, and the pulse duty ratio and the pulse duty ratio can be combined. The target current performs compound dimming on the LED lamps, and the target current in the preset ratio curve increases slowly with the change of the pulse duty cycle, so that the LED lamps gradually become brighter under low brightness to meet the actual needs of stage lighting. Enrich the dimming effect of LED lamps.

附图说明Description of drawings

图1为本申请实施例提供的一种计算机设备的框图;FIG. 1 is a block diagram of a computer device provided in an embodiment of the present application;

图2为本申请实施例提供的一种亮度控制方法的流程图;FIG. 2 is a flow chart of a brightness control method provided by an embodiment of the present application;

图3为本申请实施例提供的一种预设比率曲线的示意图;FIG. 3 is a schematic diagram of a preset ratio curve provided by an embodiment of the present application;

图4为本申请实施例提供的一种预设比率曲线的放大示意图;FIG. 4 is an enlarged schematic diagram of a preset ratio curve provided in the embodiment of the present application;

图5为本申请实施例提供的另一种预设比率曲线的放大示意图;FIG. 5 is an enlarged schematic diagram of another preset ratio curve provided by the embodiment of the present application;

图6为本申请实施例提供的一种预设数据表的示意图;FIG. 6 is a schematic diagram of a preset data table provided by the embodiment of the present application;

图7为本申请实施例提供的另一种预设数据表的示意图;FIG. 7 is a schematic diagram of another preset data table provided by the embodiment of the present application;

图8为本申请实施例提供的另一种预设数据表的示意图;FIG. 8 is a schematic diagram of another preset data table provided by the embodiment of the present application;

图9为本申请实施例提供的一种亮度控制方法的流程图;FIG. 9 is a flowchart of a brightness control method provided by an embodiment of the present application;

图10为本申请实施例提供的一种亮度控制方法的流程图;FIG. 10 is a flowchart of a brightness control method provided by an embodiment of the present application;

图11为本申请实施例提供的一种调节电路的示意图;FIG. 11 is a schematic diagram of an adjustment circuit provided by an embodiment of the present application;

图12为本申请实施例提供的一种不同目标电容值对应的预设比率曲线的示意图;FIG. 12 is a schematic diagram of a preset ratio curve corresponding to different target capacitance values provided by the embodiment of the present application;

图13为本申请实施例提供的一种亮度控制示意图;Fig. 13 is a schematic diagram of brightness control provided by the embodiment of the present application;

图14为本申请实施例提供的一种亮度控制装置的框图;FIG. 14 is a block diagram of a brightness control device provided by an embodiment of the present application;

图15为本申请实施例提供的一种亮度控制装置的框图;FIG. 15 is a block diagram of a brightness control device provided by an embodiment of the present application;

图16为本申请实施例提供的一种亮度控制装置的框图。FIG. 16 is a block diagram of a brightness control device provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

本申请提供的亮度控制方法可以应用于计算机设备中,计算机设备可以是服务器,也可以是终端,其中,服务器可以为一台服务器也可以为由多台服务器组成的服务器集群,本申请实施例对此不作具体限定,终端可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。The brightness control method provided by this application can be applied to computer equipment, and the computer equipment can be a server or a terminal, where the server can be a single server or a server cluster composed of multiple servers. This is not specifically limited, and the terminal may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.

以计算机设备是服务器为例,图1示出了一种服务器的框图,如图1所示,服务器可以包括通过系统总线连接的处理器和存储器。其中,该服务器的处理器用于提供计算和控制能力。该服务器的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序以及数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机程序被处理器执行时以实现一种亮度控制方法。Taking the computer device as a server as an example, FIG. 1 shows a block diagram of a server. As shown in FIG. 1 , the server may include a processor and a memory connected through a system bus. Among them, the processor of the server is used to provide calculation and control capabilities. The memory of the server includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and databases. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. When the computer program is executed by the processor, a brightness control method is realized.

本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的服务器的限定,可选地服务器可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 1 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the server to which the solution of this application is applied. Optionally, the server may include There may be more or fewer components than shown in the figures, or certain components may be combined, or have different component arrangements.

需要说明的是,本申请实施例的执行主体可以是计算机设备,也可以是亮度控制装置,下述方法实施例中就以计算机设备为执行主体进行说明。It should be noted that the execution subject of the embodiment of the present application may be a computer device or a brightness control device. In the following method embodiments, the computer device is used as the execution subject for description.

在一个实施例中,如图2所示,其示出了本申请实施例提供的一种亮度控制方法的流程图,该方法可以包括以下步骤:In one embodiment, as shown in FIG. 2 , it shows a flowchart of a brightness control method provided by an embodiment of the present application, and the method may include the following steps:

步骤220、获取待调节灯具的DMX数据及脉冲占空比。Step 220, acquiring DMX data and pulse duty cycle of the lamp to be adjusted.

其中,在LED灯具调光和控制领域中,LED灯具主要采用DMX512协议来传输和接收DMX数据,DMX512协议是灯光控制台与灯具设备进行数据传输的工业标准。脉冲占空比是LED灯具开通时间和关闭时间的比例,在对LED灯具的亮度进行控制时,通常采用高于人眼视觉暂留时间的频率对LED灯具进行高频率的开关,控制LED灯具开通时间和关闭时间的比例,即控制脉冲占空比对LED灯具的亮度进行调节。灯具的DMX数据及脉冲占空比是控制LED灯具亮度的重要参数,因而,在对灯具的亮度进行控制时,需要先获取待调节灯具的DMX数据及脉冲占空比。DMX数据可以通过接收灯光控制台发送的DMX数据获取到,脉冲占空比可以是预先设定的固定脉冲占空比值,也可以是根据获取到的DMX数据查询到对应的脉冲占空比。Among them, in the field of dimming and control of LED lamps, LED lamps mainly use DMX512 protocol to transmit and receive DMX data. DMX512 protocol is an industrial standard for data transmission between lighting consoles and lighting equipment. The pulse duty cycle is the ratio of the turn-on time to the turn-off time of the LED lamp. When controlling the brightness of the LED lamp, it is usually used to switch the LED lamp at a high frequency at a frequency higher than the duration of human vision to control the LED lamp to be turned on. The ratio of the off time to the off time, that is, the control pulse duty cycle adjusts the brightness of the LED lamp. DMX data and pulse duty cycle of lamps are important parameters to control the brightness of LED lamps. Therefore, when controlling the brightness of lamps, it is necessary to obtain the DMX data and pulse duty cycle of the lamps to be adjusted. The DMX data can be obtained by receiving the DMX data sent by the lighting console. The pulse duty cycle can be a preset fixed pulse duty cycle value, or the corresponding pulse duty cycle can be queried based on the obtained DMX data.

步骤240、若灯具的DMX数据小于第一预设阈值,则根据脉冲占空比及预设比率曲线,确定灯具的目标电流;预设比率曲线为电流与脉冲占空比的比率曲线。Step 240: If the DMX data of the lamp is less than the first preset threshold, determine the target current of the lamp according to the pulse duty cycle and the preset ratio curve; the preset ratio curve is a ratio curve of the current and the pulse duty cycle.

其中,灯具的DMX数据是属于1-255范围内的数值,灯具的DMX数据可以用于划分LED灯具的亮度范围,LED灯具的亮度范围可以包括低亮度范围、中亮度范围以及高亮度范围。第一预设阈值可以是低亮度范围对应的DMX数据的最大值,若灯具的DMX数据小于第一预设阈值,即灯具处于低亮度范围时,则根据脉冲占空比及预设比率曲线,确定灯具的目标电流。预设比率曲线为目标电流与脉冲占空比的比率曲线,预设比率曲线可以是通过大量的实验验证得到的目标电流与脉冲占空比的变化曲线,并将得到的预设比率曲线进行存储。如图3-图5所示,图3为本申请实施例提供的一种预设比率曲线的示意图,其中横轴表示脉冲占空比,纵轴表示目标电流。直线是现有的PWM脉冲占空比调光方式对应的比率曲线,曲线是本申请实施例提供的结合脉冲占空比与目标电流的复合调光方式对应的比率曲线。图4为本申请实施例提供的一种预设比率曲线的放大示意图,即为图3中的最小虚线框对应的预设比率曲线的放大图;Among them, the DMX data of the lamp is a value in the range of 1-255. The DMX data of the lamp can be used to divide the brightness range of the LED lamp. The brightness range of the LED lamp can include a low brightness range, a medium brightness range and a high brightness range. The first preset threshold can be the maximum value of the DMX data corresponding to the low brightness range. If the DMX data of the lamp is less than the first preset threshold, that is, when the lamp is in the low brightness range, according to the pulse duty cycle and the preset ratio curve, Determine the target current for the lamp. The preset ratio curve is the ratio curve of the target current and the pulse duty cycle. The preset ratio curve can be the change curve of the target current and the pulse duty cycle obtained through a large number of experimental verifications, and the obtained preset ratio curve is stored. . As shown in FIGS. 3-5 , FIG. 3 is a schematic diagram of a preset ratio curve provided by the embodiment of the present application, wherein the horizontal axis represents the pulse duty cycle, and the vertical axis represents the target current. The straight line is the ratio curve corresponding to the existing PWM pulse duty ratio dimming method, and the curve is the ratio curve corresponding to the compound dimming method combining the pulse duty ratio and the target current provided by the embodiment of the present application. FIG. 4 is an enlarged schematic diagram of a preset ratio curve provided by an embodiment of the present application, that is, an enlarged diagram of the preset ratio curve corresponding to the smallest dashed box in FIG. 3;

图5为本申请实施例提供的另一种预设比率曲线的放大示意图,即为图3中的中间虚线框对应的预设比率曲线的放大图。FIG. 5 is an enlarged schematic diagram of another preset ratio curve provided by the embodiment of the present application, that is, an enlarged diagram of the preset ratio curve corresponding to the middle dashed box in FIG. 3 .

步骤260、根据目标电流,对待调节灯具的亮度进行控制。Step 260: Control the brightness of the lamp to be adjusted according to the target current.

其中,根据脉冲占空比及预设比率曲线确定出灯具的目标电流后,就可以根据目标电流,对待调节灯具的亮度进行控制,目标电流越大,待调节灯具的亮度越高。Wherein, after the target current of the lamp is determined according to the pulse duty cycle and the preset ratio curve, the brightness of the lamp to be adjusted can be controlled according to the target current. The larger the target current, the higher the brightness of the lamp to be adjusted.

本实施例中,通过获取待调节灯具的DMX数据及脉冲占空比;若灯具的DMX数据小于第一预设阈值,则根据脉冲占空比及预设比率曲线,确定灯具的目标电流;根据目标电流,对待调节灯具的亮度进行控制。由于预设比率曲线为电流与脉冲占空比的比率曲线,通过脉冲占空从预设比率曲线中确定灯具的目标电流,可以结合脉冲占空比与目标电流对LED灯具进行复合调光,预设比率曲线中的目标电流随着脉冲占空比的变化缓慢增大,从而实现在低亮度下LED灯具渐渐变亮,以满足舞台灯光的实际需求,丰富了LED灯具的调光效果。In this embodiment, by obtaining the DMX data and the pulse duty ratio of the lamp to be adjusted; if the DMX data of the lamp is less than the first preset threshold, the target current of the lamp is determined according to the pulse duty ratio and the preset ratio curve; according to The target current controls the brightness of the lamp to be adjusted. Since the preset ratio curve is the ratio curve of current and pulse duty ratio, the target current of the lamp can be determined from the preset ratio curve through the pulse duty ratio, and the compound dimming of LED lamps can be performed by combining the pulse duty ratio and the target current. It is assumed that the target current in the ratio curve increases slowly with the change of the pulse duty cycle, so that the LED lamps gradually become brighter under low brightness, so as to meet the actual needs of stage lighting and enrich the dimming effect of LED lamps.

在一个实施例中,在获取待调节灯具的脉冲占空比时,可选地,可以根据DMX数据,从预设数据表中获取待调节灯具的脉冲占空比;预设数据表中存储了各DMX数据与各脉冲占空比的映射关系。In one embodiment, when obtaining the pulse duty ratio of the lamp to be adjusted, optionally, the pulse duty ratio of the lamp to be adjusted can be obtained from the preset data table according to the DMX data; the preset data table stores the The mapping relationship between each DMX data and each pulse duty cycle.

其中,预设数据表为各DMX数据与各脉冲占空比的映射关系,在LED灯具调光时,可以先通过人机界面获取用户输入的调光曲线,调光曲线可以包括线性调光线、平方调光线(抛物线调光线)、对数调光线(反抛物线调光线)、S曲线调光线以及立方调光线等,预设数据表中可以包括在不同的调光曲线下各DMX数据与各脉冲占空比的映射关系。如图6-图8所示,图6为本申请实施例提供的一种预设数据表的示意图,其中展示的是灯具在部分低亮度范围下的预设数据表;图7为本申请实施例提供的另一种预设数据表的示意图,其中展示的是在部分中亮度范围下的预设数据表;图8为本申请实施例提供的另一种预设数据表的示意图,其中展示的是在部分高亮度范围下的预设数据表。Among them, the preset data table is the mapping relationship between each DMX data and each pulse duty cycle. When dimming LED lamps, you can first obtain the dimming curve input by the user through the man-machine interface. The dimming curve can include linear dimming lines, Square dimming line (parabolic dimming line), logarithmic dimming line (anti-parabolic dimming line), S-curve dimming line and cubic dimming line, etc. The preset data table can include each DMX data and each pulse under different dimming curves The mapping relationship of duty cycle. As shown in Figure 6-Figure 8, Figure 6 is a schematic diagram of a preset data table provided by the embodiment of the application, which shows the preset data table of the lamp in a part of the low brightness range; Figure 7 is the implementation of the application The schematic diagram of another kind of preset data table provided by the example, which shows the preset data table under the brightness range in some parts; FIG. is the preset data sheet for some of the high brightness ranges.

在一个实施例中,如图9所示,其示出了本申请实施例提供的一种亮度控制方法的流程图,具体涉及的是确定灯具的目标电流的过程,该方法可以包括以下步骤:In one embodiment, as shown in FIG. 9 , it shows a flow chart of a brightness control method provided by the embodiment of the present application, specifically related to the process of determining the target current of the lamp, and the method may include the following steps:

步骤920、获取待调节灯具的亮度延时时长。Step 920, acquiring the brightness delay time of the lamp to be adjusted.

步骤940、根据亮度延时时长确定与亮度延时时长对应的预设目标比率曲线。Step 940: Determine a preset target ratio curve corresponding to the brightness delay time according to the brightness delay time.

步骤960、根据脉冲占空比及预设目标比率曲线,确定灯具的目标电流。Step 960: Determine the target current of the lamp according to the pulse duty cycle and the preset target ratio curve.

其中,亮度延时时长为待调节灯具在低亮度下的调光范围,也就是待调节灯具在上电后开始慢慢变亮的时长。待调节灯具的亮度延时时长可以由用户在人机界面输入,也可以通过控制待调节灯具的遥控器上的亮度延时按钮选择对应的亮度延时时长。亮度延时时长与预设目标比率曲线相对应,获取到待调节灯具的亮度延时时长后,可以根据亮度延时时长确定与亮度延时时长对应的预设目标比率曲线,从而确定出预设目标比率曲线,再根据脉冲占空比及预设目标比率曲线,确定出灯具的目标电流。Wherein, the brightness delay time is the dimming range of the lamp to be adjusted at low brightness, that is, the time period for the lamp to be adjusted to gradually brighten after being powered on. The brightness delay time of the lamp to be adjusted can be input by the user on the man-machine interface, or the corresponding brightness delay time can be selected by controlling the brightness delay button on the remote controller of the lamp to be adjusted. The brightness delay time corresponds to the preset target ratio curve. After obtaining the brightness delay time of the lamp to be adjusted, the preset target ratio curve corresponding to the brightness delay time can be determined according to the brightness delay time, so as to determine the preset The target ratio curve, and then determine the target current of the lamp according to the pulse duty cycle and the preset target ratio curve.

本实施例中,通过获取待调节灯具的亮度延时时长,根据亮度延时时长确定与亮度延时时长对应的预设目标比率曲线,根据脉冲占空比及预设目标比率曲线,确定灯具的目标电流。由于用户只需要根据舞台实际需求选择对应的亮度延时时长就能够确定出灯具的目标电流,从而可以对灯具的亮度进行控制,提高了调节灯具亮度的便捷性,并提高了人机交互的智能性。In this embodiment, by obtaining the brightness delay time of the lamp to be adjusted, the preset target ratio curve corresponding to the brightness delay time is determined according to the brightness delay time, and the brightness of the lamp is determined according to the pulse duty cycle and the preset target ratio curve. target current. Since the user only needs to select the corresponding brightness delay time according to the actual needs of the stage, the target current of the lamp can be determined, 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 human-computer interaction is improved. sex.

在一个实施例中,如图10所示,其示出了本申请实施例提供的一种亮度控制方法的流程图,具体涉及的是根据电容值确定灯具的目标电流的过程,该方法可以包括以下步骤:In one embodiment, as shown in FIG. 10 , it shows a flow chart of a brightness control method provided by the embodiment of the present application, specifically related to the process of determining the target current of the lamp according to the capacitance value, and the method may include The following steps:

步骤1020、获取第一电流调节电路的电阻值。Step 1020, acquire the resistance value of the first current regulation circuit.

其中,第一电流调节电路为电容电阻充放电路,如图11所示,图11为本申请实施例提供的一种调节电路的示意图,虚线框1120为第一调节电路,在第一调节电路确定之后,第一电流调节电路中的电阻值是预先设定的,从而可以通过电阻计算公式计算得到第一电流调节电路的电阻值。Wherein, the first current regulating circuit is a capacitor resistance charging and discharging circuit, as shown in FIG. 11 , which is a schematic diagram of a regulating circuit provided in an embodiment of the present application. The dotted line box 1120 is the first regulating circuit. In the first regulating circuit After being determined, the resistance value in the first current regulating circuit is preset, so that the resistance value of the first current regulating circuit can be calculated through a resistance calculation formula.

步骤1040、根据亮度延时时长和电阻值,计算得到接入第一电流调节电路的目标电容值。Step 1040: Calculate and obtain a target capacitance value connected to the first current regulation circuit according to the brightness delay time and the resistance value.

其中,由于第一电流调节电路为电容电阻充放电路,延时时长等于电阻值与电容值的乘积,在亮度延时时长和电阻值后,可以通过亮度延时时长、电阻值以及电容值的关系计算得到需要接入第一电流调节电路的目标电容值。Wherein, since the first current regulating circuit is a capacitor-resistance charge-discharge circuit, the delay time is equal to the product of the resistance value and the capacitance value. The relationship is calculated to obtain the target capacitance value that needs to be connected to the first current regulation circuit.

步骤1060、根据目标电容值确定与目标电容值对应的预设比率曲线,作为预设目标比率曲线。Step 1060: Determine a preset ratio curve corresponding to the target capacitance value as the preset target ratio curve according to the target capacitance value.

其中,目标电容值确定之后,目标电容值与预设比率曲线也具有对应关系,如图12所示,图12为本申请实施例提供的一种不同目标电容值对应的预设比率曲线的示意图,可以看出,目标电容值越大,对应的预设比率曲线变化越缓慢,因而,可以根据目标电容值确定与目标电容值对应的预设比率曲线,作为预设目标比率曲线。Wherein, after the target capacitance value is determined, there is also a corresponding relationship between the target capacitance value and the preset ratio curve, as shown in FIG. 12 , which is a schematic diagram of a preset ratio curve corresponding to different target capacitance values provided in the embodiment of the present application. , it can be seen that the larger the target capacitance value is, the slower the corresponding preset ratio curve changes. Therefore, the preset ratio curve corresponding to the target capacitance value can be determined according to the target capacitance value as the preset target ratio curve.

本实施例中,通过获取第一电流调节电路的电阻值,根据亮度延时时长和电阻值,计算得到接入第一电流调节电路的目标电容值,根据目标电容值确定与目标电容值对应的预设比率曲线,作为预设目标比率曲线。通过改变接入第一电流调节电路的目标电容值,来确定预设目标比率曲线,从而确定灯具的目标电流,电路设计简单易实现,从而也提高了确定灯具的目标电流的便捷性与快速性。In this embodiment, by obtaining the resistance value of the first current adjustment circuit, according to the brightness delay time and the resistance value, the target capacitance value connected to the first current adjustment circuit is calculated, and the target capacitance value corresponding to the target capacitance value is determined according to the target capacitance value. The preset ratio curve, which serves as the preset target ratio curve. By changing the target capacitance value connected to the first current regulation circuit, the preset target ratio curve is determined, thereby determining the target current of the lamp. The circuit design is simple and easy to implement, thereby improving the convenience and speed of determining the target current of the lamp. .

在一个实施例中,计算得到接入第一电流调节电路的目标电容值后,可以通过电容切换开关控制将目标电容值对应的电容接入第一电流调节电路。In one embodiment, after the target capacitance value connected to the first current regulation circuit is calculated and obtained, the capacitance corresponding to the target capacitance value may be connected to the first current regulation circuit through the control of the capacitance switching switch.

其中,请继续参考图11,计算得到接入第一电流调节电路的目标电容值后,可以通过电容切换开关RY2、RY3、RY4和RY5控制将电容(该电容的电容值为目标电容值)接入第一电流调节电路。在控制电容切换开关进行切换时,可以通过向对应的控制电容切换开关发送控制信号来控制开关的切换。通过电容切换开关控制接入第一电流调节电路的电容,电路设计简单易实现,提高了切换电容的便捷性。Wherein, please continue to refer to FIG. 11, after calculating and obtaining the target capacitance value connected to the first current regulation circuit, the capacitor (the capacitance value of the capacitor is the target capacitance value) can be connected to into the first current regulation circuit. When the capacitor switching switch is controlled to switch, switching of the switch can be controlled by sending a control signal to the corresponding control capacitor switching switch. The capacitance connected to the first current regulating circuit is controlled by the capacitance switching switch, the circuit design is simple and easy to realize, and the convenience of switching the capacitance is improved.

在一个实施例中,在根据脉冲占空比及预设比率曲线,确定灯具的目标电流时,可选地,可以控制电路切换开关接入第一电流调节电路,并控制第一电流调节电路根据脉冲占空比及预设比率曲线,确定灯具的目标电流。In one embodiment, when determining the target current of the lamp according to the pulse duty ratio and the preset ratio curve, optionally, the circuit switching switch can be controlled to connect to the first current regulation circuit, and the first current regulation circuit can be controlled according to The pulse duty cycle and the preset ratio curve determine the target current of the lamp.

其中,若灯具的DMX数据小于第一预设阈值,则可以控制电路切换开关接入第一电流调节电路,并控制第一电流调节电路根据脉冲占空比及预设比率曲线,确定灯具的目标电流。请继续参考图11,可以通过向控制电路切换开关RY1发送控制信号来控制开关切换接入第一电流调节电路1120,即继电器RY1切换接入R20的信号输入和R19放电电阻。通过控制电路切换开关控制接入第一电流调节电路,电路设计简单易实现,提高了接入第一电流调节电路的便捷性。Wherein, if the DMX data of the lamp is less than the first preset threshold, the circuit switch can be controlled to connect to the first current regulation circuit, and the first current regulation circuit can be controlled to determine the target of the lamp according to the pulse duty cycle and the preset ratio curve. current. Please continue to refer to FIG. 11 , the switch can be controlled to switch to the first current regulation circuit 1120 by sending a control signal to the control circuit switch RY1 , that is, the relay RY1 is switched to the signal input of R20 and the discharge resistor of R19 . The access to the first current regulating circuit is controlled by the switching switch of the control circuit, the circuit design is simple and easy to implement, and the convenience of connecting to the first current regulating circuit is improved.

在一个实施例中,若灯具的DMX数据大于或等于第一预设阈值,则控制电路切换开关接入第二电流调节电路,并控制第二电流调节电路根据脉冲占空比,确定灯具的目标电流。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 to the second current regulation circuit, and controls the second current regulation circuit to determine the target of the lamp according to the pulse duty ratio. current.

其中,若灯具的DMX数据大于或等于第一预设阈值,即灯具处于中亮度或高亮度范围内,请继续参考图11,可以通过向控制电路切换开关RY1发送控制信号来控制开关切换接入第二电流调节电路,并控制第二电流调节电路根据脉冲占空比,确定灯具的目标电流,点线框1140为第二电流调节电路。通过控制电路切换开关控制接入第二电流调节电路,电路设计简单易实现,提高了接入第二电流调节电路的便捷性。Among them, if the DMX data of the lamp is greater than or equal to the first preset threshold, that is, the lamp is in the range of medium brightness or high brightness, please continue to refer to Figure 11, and the switch can be controlled by sending a control signal to the control circuit switch RY1. The second current regulation circuit controls the second current regulation circuit to determine the target current of the lamp according to the pulse duty cycle. The dotted box 1140 is the second current regulation circuit. The access to the second current regulating circuit is controlled by the switching switch of the control circuit, the circuit design is simple and easy to implement, and the convenience of connecting to the second current regulating circuit is improved.

在一个实施例中,在进行LED灯具亮度控制时,可以通过不同的模块实现,可以包括DMX接收模块、人机界面模块、LED控制模块、调光方式的切换模块、低亮度调光范围的调整模块、LED恒流驱动模块和LED模块,如图13所示,图13为本申请实施例提供的一种亮度控制示意图。其中,首先,灯具上电后,灯具中的所有控制系统MCU开始复位并自检,人机界面模块MCU处理软件版本、温度、风机转速和通道值等信息;然后,DMX接收模块接收灯光控制台发送的DMX数据,并将该数据发送给人机界面模块;用户可以通过人机界面模块,选择调光曲线的种类、调光方式和低亮度的调光范围(即亮度延时时长),人机界面模块将DMX数据、调光曲线、调光方式的控制信号和低亮度的调光范围的控制信号发送给LED控制模块;LED控制模块根据接收到的DMX数据和调光曲线输出对应的PWM脉宽信号,并将该PWM脉宽信号发送给LED恒流驱动模块;调光方式的切换模块根据LED控制模块发送的调光方式的控制信号,向开关RY1输出控制信号控制开关RY1的切换;低亮度调光范围的调整模块根据调光方式的切换模块发送的低亮度的调光范围的控制信号,向开关RY2、RY3、RY4和RY5输出控制信号控制开关切换到不同容值的电容;LED恒流驱动模块根据接收到的PWM脉宽信号输出对应的目标电流;LED模块根据LED恒流驱动模块输出的目标电流,控制LED灯的亮度变化。In one embodiment, when controlling the brightness of LED lamps, it can be realized through different modules, which can include a DMX receiving module, a man-machine interface module, an LED control module, a switching module of dimming mode, and adjustment of low-brightness dimming range The module, the LED constant current drive module and the LED module are shown in FIG. 13 , which is a schematic diagram of brightness control provided by the embodiment of the present application. Among them, first, after the lamps are powered on, all the control system MCUs in the lamps start to reset and self-check, and the MCU of the human-machine interface module processes information such as software version, temperature, fan speed and channel value; then, the DMX receiving module receives the information from the lighting console. sent DMX data, and send the data to the human-machine interface module; the user can select the type of dimming curve, dimming mode and low-brightness dimming range (that is, brightness delay time) through the human-machine interface module. The machine interface module sends the DMX data, dimming curve, control signal of dimming mode and control signal of low brightness dimming range to the LED control module; the LED control module outputs the corresponding PWM according to the received DMX data and dimming curve pulse width signal, and send the PWM pulse width signal to the LED constant current drive 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 adjustment module of the low-brightness dimming range outputs control signals to the switches RY2, RY3, RY4 and RY5 according to the control signal of the low-brightness dimming range sent by the switching module of the dimming mode; The constant current drive module outputs the 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 drive module.

应该理解的是,虽然图2-10的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-10中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow charts in FIGS. 2-10 are displayed sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 2-10 may include multiple steps or stages, these steps or stages are not necessarily executed at the same time, but may be executed at different times, the execution of these steps or stages The sequence is not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a part of steps or stages in other steps.

请参考图14,其示出了本申请实施例提供的一种亮度控制装置1400的框图。如图14所示,该亮度控制装置1400可以包括:数据获取模块1402、目标电流确定模块1404和亮度控制模块1406,其中:Please refer to FIG. 14 , which shows a block diagram of a brightness control device 1400 provided by an embodiment of the present application. As shown in Figure 14, the brightness control device 1400 may include: a data acquisition module 1402, a target current determination module 1404 and a brightness control module 1406, wherein:

数据获取模块1402,用于获取待调节灯具的DMX数据及脉冲占空比;A data acquisition module 1402, configured to acquire DMX data and pulse duty ratio of the lamp to be adjusted;

目标电流确定模块1404,用于若灯具的DMX数据小于第一预设阈值,则根据脉冲占空比及预设比率曲线,确定灯具的目标电流;预设比率曲线为电流与脉冲占空比的比率曲线;The target current determination module 1404 is used to determine 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 less than the first preset threshold; the preset ratio curve is the relationship between the current and the pulse duty ratio ratio curve;

亮度控制模块1406,用于根据目标电流,对待调节灯具的亮度进行控制。The brightness control module 1406 is configured to control the brightness of the lamp to be adjusted according to the target current.

在一个实施例中,上述目标电流确定模块1404包括获取单元、第一确定单元和第二确定单元,其中:获取单元用于获取待调节灯具的亮度延时时长;第一确定单元用于根据亮度延时时长确定与亮度延时时长对应的预设目标比率曲线;第二确定单元用于根据脉冲占空比及预设目标比率曲线,确定灯具的目标电流。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 to obtain the brightness delay time of the lamp to be adjusted; The delay time determines the preset target ratio curve corresponding to the brightness delay time; the second determination unit is used to determine the target current of the lamp according to the pulse duty cycle and the preset target ratio curve.

在一个实施例中,上述第一确定单元具体用于获取第一电流调节电路的电阻值;根据亮度延时时长和电阻值,计算得到接入第一电流调节电路的目标电容值;根据目标电容值确定与目标电容值对应的预设比率曲线,作为预设目标比率曲线。In one embodiment, the above-mentioned first determination unit is specifically configured to obtain the resistance value of the first current adjustment circuit; calculate and obtain the target capacitance value connected to the first current adjustment circuit according to the brightness delay time and the resistance value; The value determines a preset ratio curve corresponding to the target capacitance value as the preset target ratio curve.

在一个实施例中,如图15所示,上述亮度控制装置1400还包括第一控制模块1408,第一控制模块1408用于通过电容切换开关控制将目标电容值对应的电容接入第一电流调节电路。In one embodiment, as shown in FIG. 15 , the above-mentioned brightness control device 1400 further includes a first control module 1408, and the first control module 1408 is used to control the capacitance corresponding to the target capacitance value to be connected to the first current adjustment through a capacitance switching switch. circuit.

在一个实施例中,上述目标电流确定模块1404还包括控制单元,控制单元用于控制电路切换开关接入第一电流调节电路,并控制第一电流调节电路根据脉冲占空比及预设比率曲线,确定灯具的目标电流。In one embodiment, the above-mentioned target current determination module 1404 further includes a control unit, which is used to control the circuit switching switch to access the first current regulation circuit, and control the first current regulation circuit according to the pulse duty cycle and the preset ratio curve , to determine the target current of the lamp.

在一个实施例中,如图16所示,上述亮度控制装置1400还包括第二控制模块1410,第二控制模块用于若灯具的DMX数据大于或等于第一预设阈值,则控制电路切换开关接入第二电流调节电路,并控制第二电流调节电路根据脉冲占空比,确定灯具的目标电流。In one embodiment, as shown in FIG. 16, the above-mentioned brightness control device 1400 further includes a second control module 1410, the second control module is used to control the circuit to switch the switch if the DMX data of the lamp is greater than or equal to the first preset threshold. The second current regulation circuit is connected, and the second current regulation circuit is controlled to determine the target current of the lamp according to the pulse duty ratio.

在一个实施例中,上述数据获取模块1402包括获取单元,获取单元用于根据DMX数据,从预设数据表中获取待调节灯具的脉冲占空比;预设数据表中存储了各DMX数据与各脉冲占空比的映射关系。In one embodiment, the above-mentioned data acquisition module 1402 includes an acquisition unit, which is used to acquire the pulse duty cycle of the lamp to be adjusted from the preset data table according to the DMX data; the preset data table stores the DMX data and The mapping relationship of each pulse duty cycle.

关于亮度控制装置的具体限定可以参见上文中对于亮度控制方法的限定,在此不再赘述。上述亮度控制装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块的操作。For the specific definition of the brightness control device, refer to the above definition of the brightness control method, which will not be repeated here. Each module in the above-mentioned brightness control device may be fully or partially realized by software, hardware or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the operations of the above-mentioned modules.

在本申请的一个实施例中,提供了一种计算机设备,该计算机设备包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment of the present application, a computer device is provided, the computer device includes a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:

获取待调节灯具的DMX数据及脉冲占空比;若灯具的DMX数据小于第一预设阈值,则根据脉冲占空比及预设比率曲线,确定灯具的目标电流;预设比率曲线为电流与脉冲占空比的比率曲线;根据目标电流,对待调节灯具的亮度进行控制。Obtain the DMX data and pulse duty ratio of the lamp to be adjusted; if the DMX data of the lamp is less than the first preset threshold, determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve; the preset ratio curve is the current and The ratio curve of the pulse duty cycle; according to the target current, the brightness of the lamp to be adjusted is controlled.

在本申请的一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment of the present application, the following steps are also implemented when the processor executes the computer program:

获取待调节灯具的亮度延时时长;根据亮度延时时长确定与亮度延时时长对应的预设目标比率曲线;根据脉冲占空比及预设目标比率曲线,确定灯具的目标电流。Acquire the brightness delay time of the lamp to be adjusted; determine the preset target ratio curve corresponding to the brightness delay time according to the brightness delay time; determine the target current of the lamp according to the pulse duty cycle and the preset target ratio curve.

在本申请的一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment of the present application, the following steps are also implemented when the processor executes the computer program:

获取第一电流调节电路的电阻值;根据亮度延时时长和电阻值,计算得到接入第一电流调节电路的目标电容值;根据目标电容值确定与目标电容值对应的预设比率曲线,作为预设目标比率曲线。Obtain the resistance value of the first current regulation circuit; calculate the target capacitance value connected to the first current regulation circuit according to the brightness delay time and the resistance value; determine the preset ratio curve corresponding to the target capacitance value according to the target capacitance value, as Preset target ratio curve.

在本申请的一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment of the present application, the following steps are also implemented when the processor executes the computer program:

通过电容切换开关控制将目标电容值对应的电容接入第一电流调节电路。The capacitance corresponding to the target capacitance value is connected to the first current regulation circuit through the control of the capacitance switching switch.

在本申请的一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment of the present application, the following steps are also implemented when the processor executes the computer program:

控制电路切换开关接入第一电流调节电路,并控制第一电流调节电路根据脉冲占空比及预设比率曲线,确定灯具的目标电流。The switching switch of the control circuit is connected to the first current regulation circuit, and the first current regulation circuit is controlled to determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve.

在本申请的一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment of the present application, the following steps are also implemented when the processor executes the computer program:

若灯具的DMX数据大于或等于第一预设阈值,则控制电路切换开关接入第二电流调节电路,并控制第二电流调节电路根据脉冲占空比,确定灯具的目标电流。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 to the second current regulation circuit, and controls the second current regulation circuit to determine the target current of the lamp according to the pulse duty ratio.

在本申请的一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment of the present application, the following steps are also implemented when the processor executes the computer program:

根据DMX数据,从预设数据表中获取待调节灯具的脉冲占空比;预设数据表中存储了各DMX数据与各脉冲占空比的映射关系。According to the DMX data, the pulse duty cycle of the lamp to be adjusted is obtained from the preset data table; the mapping relationship between each DMX data and each pulse duty cycle is stored in the preset data table.

本申请实施例提供的计算机设备,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。The implementation principles and technical effects of the computer equipment provided by the embodiments of the present application are similar to those of the above-mentioned method embodiments, and will not be repeated here.

在本申请的一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

获取待调节灯具的DMX数据及脉冲占空比;若灯具的DMX数据小于第一预设阈值,则根据脉冲占空比及预设比率曲线,确定灯具的目标电流;预设比率曲线为电流与脉冲占空比的比率曲线;根据目标电流,对待调节灯具的亮度进行控制。Obtain the DMX data and pulse duty ratio of the lamp to be adjusted; if the DMX data of the lamp is less than the first preset threshold, determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve; the preset ratio curve is the current and The ratio curve of the pulse duty cycle; according to the target current, the brightness of the lamp to be adjusted is controlled.

在本申请的一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented:

获取待调节灯具的亮度延时时长;根据亮度延时时长确定与亮度延时时长对应的预设目标比率曲线;根据脉冲占空比及预设目标比率曲线,确定灯具的目标电流。Acquire the brightness delay time of the lamp to be adjusted; determine the preset target ratio curve corresponding to the brightness delay time according to the brightness delay time; determine the target current of the lamp according to the pulse duty cycle and the preset target ratio curve.

在本申请的一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented:

获取第一电流调节电路的电阻值;根据亮度延时时长和电阻值,计算得到接入第一电流调节电路的目标电容值;根据目标电容值确定与目标电容值对应的预设比率曲线,作为预设目标比率曲线。Obtain the resistance value of the first current regulation circuit; calculate the target capacitance value connected to the first current regulation circuit according to the brightness delay time and the resistance value; determine the preset ratio curve corresponding to the target capacitance value according to the target capacitance value, as Preset target ratio curve.

在本申请的一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented:

通过电容切换开关控制将目标电容值对应的电容接入第一电流调节电路。The capacitance corresponding to the target capacitance value is connected to the first current regulation circuit through the control of the capacitance switching switch.

在本申请的一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented:

控制电路切换开关接入第一电流调节电路,并控制第一电流调节电路根据脉冲占空比及预设比率曲线,确定灯具的目标电流。The switching switch of the control circuit is connected to the first current regulation circuit, and the first current regulation circuit is controlled to determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve.

在本申请的一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented:

若灯具的DMX数据大于或等于第一预设阈值,则控制电路切换开关接入第二电流调节电路,并控制第二电流调节电路根据脉冲占空比,确定灯具的目标电流。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 to the second current regulation circuit, and controls the second current regulation circuit to determine the target current of the lamp according to the pulse duty ratio.

在本申请的一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented:

根据DMX数据,从预设数据表中获取待调节灯具的脉冲占空比;预设数据表中存储了各DMX数据与各脉冲占空比的映射关系。According to the DMX data, the pulse duty cycle of the lamp to be adjusted is obtained from the preset data table; the mapping relationship between each DMX data and each pulse duty cycle is stored in the preset data table.

本实施例提供的计算机可读存储介质,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。The implementation principle and technical effect of the computer-readable storage medium provided in this embodiment are similar to those of the above-mentioned method embodiments, and details are not repeated here.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include non-volatile and/or volatile memory. Nonvolatile 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 many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.

以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (9)

1.一种亮度控制方法,其特征在于,所述方法包括:1. A brightness control method, characterized in that the method comprises: 获取待调节灯具的DMX数据及脉冲占空比;Obtain the DMX data and pulse duty cycle of the lamp to be adjusted; 若所述灯具的DMX数据小于第一预设阈值,则根据所述脉冲占空比及预设比率曲线,确定所述灯具的目标电流;所述预设比率曲线为电流与脉冲占空比的比率曲线,所述第一预设阈值是低亮度范围对应的DMX数据的最大值;If the DMX data of the lamp is less than the first preset threshold, then determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve; the preset ratio curve is the ratio of the current and the pulse duty ratio Ratio curve, the first preset threshold is the maximum value of the DMX data corresponding to the low brightness range; 根据所述目标电流,对所述待调节灯具的亮度进行控制;controlling the brightness of the lamp to be adjusted according to the target current; 所述根据所述脉冲占空比及预设比率曲线,确定所述灯具的目标电流,包括:The determining the target current of the lamp according to the pulse duty cycle and the preset ratio curve includes: 获取所述待调节灯具的亮度延时时长;Obtain 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; 根据所述脉冲占空比及所述预设目标比率曲线,确定所述灯具的目标电流。The target current of the lamp is determined according to the pulse duty ratio and the preset target ratio curve. 2.根据权利要求1所述的方法,其特征在于,所述根据所述亮度延时时长确定与所述亮度延时时长对应的预设目标比率曲线,包括:2. The method according to claim 1, wherein the determining the preset target ratio curve corresponding to the brightness delay time according to the brightness delay time includes: 获取第一电流调节电路的电阻值;Acquiring the resistance value of the first current regulation circuit; 根据所述亮度延时时长和所述电阻值,计算得到接入所述第一电流调节电路的目标电容值;Calculate and obtain a target capacitance value connected to the first current regulation circuit according to the brightness delay time and the resistance value; 根据所述目标电容值确定与所述目标电容值对应的预设比率曲线,作为所述预设目标比率曲线。A preset ratio curve corresponding to the target capacitance value is determined according to the target capacitance value as the preset target ratio curve. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises: 通过电容切换开关控制将所述目标电容值对应的电容接入所述第一电流调节电路。The capacitance corresponding to the target capacitance value is connected to the first current regulation circuit through the control of the capacitance switching switch. 4.根据权利要求2所述的方法,其特征在于,所述根据所述脉冲占空比及预设比率曲线,确定所述灯具的目标电流,包括:4. The method according to claim 2, wherein the determining the target current of the lamp according to the pulse duty cycle and the preset ratio curve comprises: 控制电路切换开关接入所述第一电流调节电路,并控制所述第一电流调节电路根据所述脉冲占空比及所述预设比率曲线,确定所述灯具的目标电流。The control circuit switch is connected to the first current regulation circuit, and controls the first current regulation circuit to determine the target current of the lamp according to the pulse duty ratio and the preset ratio curve. 5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, wherein the method further comprises: 若所述灯具的DMX数据大于或等于第一预设阈值,则控制电路切换开关接入第二电流调节电路,并控制所述第二电流调节电路根据所述脉冲占空比,确定所述灯具的目标电流。If the DMX data of the lamp is greater than or equal to the first preset threshold, the control circuit switch is connected to the second current regulation circuit, and the second current regulation circuit is controlled to determine the lamp according to the pulse duty ratio. target current. 6.根据权利要求1所述的方法,其特征在于,所述获取待调节灯具的脉冲占空比,包括:6. The method according to claim 1, wherein said obtaining the pulse duty cycle of the lamp to be adjusted comprises: 根据所述DMX数据,从预设数据表中获取所述待调节灯具的脉冲占空比;所述预设数据表中存储了各DMX数据与各脉冲占空比的映射关系。According to the DMX data, the pulse duty cycle of the lamp to be adjusted is obtained from a preset data table; the mapping relationship between each DMX data and each pulse duty cycle is stored in the preset data table. 7.一种亮度控制装置,其特征在于,所述装置包括:7. A brightness control device, characterized in that the device comprises: 数据获取模块,用于获取待调节灯具的DMX数据及脉冲占空比;The data acquisition module is used to acquire the DMX data and the pulse duty cycle of the lamp to be adjusted; 目标电流确定模块,用于若所述灯具的DMX数据小于第一预设阈值,则根据所述脉冲占空比及预设比率曲线,确定所述灯具的目标电流;所述预设比率曲线为电流与脉冲占空比的比率曲线,所述第一预设阈值是低亮度范围对应的DMX数据的最大值;The target current determination module is used 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 less than the first preset threshold; the preset ratio curve is The ratio curve of current and pulse duty cycle, the first preset threshold is the maximum value of the DMX data corresponding to the low brightness range; 亮度控制模块,用于根据所述目标电流,对所述待调节灯具的亮度进行控制;a brightness control module, configured to control the brightness of the lamp to be adjusted according to the target current; 所述目标电流确定模块,还用于获取所述待调节灯具的亮度延时时长;根据所述亮度延时时长确定与所述亮度延时时长对应的预设目标比率曲线;根据所述脉冲占空比及所述预设目标比率曲线,确定所述灯具的目标电流。The target current determination module is also used to obtain the brightness delay time of the lamp to be adjusted; determine a preset target ratio curve corresponding to the brightness delay time according to the brightness delay time; Duty ratio and the preset target ratio curve determine the target current of the lamp. 8.一种计算机设备,其特征在于,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6任一项所述的方法的步骤。8. A computer device, characterized in that it comprises a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 6 is realized A step of. 9.一种计算机可读存储介质,其特征在于,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述的方法的步骤。9. A computer-readable storage medium, wherein a computer program is stored thereon, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
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
US8907582B2 (en) Kickstart for dimmers driving slow starting or no starting lamps
US9860949B2 (en) Individually addressable dimmer systems and methods
US9699874B2 (en) System, method, and apparatus for self-adaptive scheduled lighting control
CN113347768B (en) Intelligent light regulation and control method and device, electronic equipment and storage medium
CN105632414B (en) Method for controlling backlight thereof, device and equipment in a kind of terminal device start process
CN109859721A (en) Display screen brightness adjusting method and device, mobile terminal and storage medium
US8941313B2 (en) Light emitting unit driving circuit and light emitting device
JP6332726B2 (en) LED driving circuit and liquid crystal display device
CN107533827B (en) Backlight circuit, electronic device and backlight adjustment method
CN113260110B (en) Brightness control method, device, equipment and storage medium
JP2018018639A (en) Lighting device and lighting fixture
JP2015092451A (en) Lighting device, illumination device, illumination instrument, and illumination system
JP6173350B2 (en) Two-wire neutralless digital dimmer for leading edge dimmable lamp driver and method of operation thereof
US20140252980A1 (en) Load control device with an adjustable control curve
CN103745693B (en) A kind of LED backlight drive circuit and driving method thereof
CN113709934B (en) Lamp control method, device, lamp and storage medium
WO2016112815A1 (en) Method for brightness level adjustment, led lighting device, and lighting system
CN108882435B (en) Circuit capable of realizing continuous dimming without stroboflash
CN108064099B (en) Intelligent lighting control system, control method and intelligent lighting system
CN202841594U (en) Dimmable lamp digital display controller
US9661723B2 (en) Method for controlling lighting element and associated system
CN109121265B (en) Touch system applied to light source control of lamp
JP5650014B2 (en) Dimming control device and dimming control method
NL2008086C2 (en) Wireless illumination controller with the function to set the lowest driving power.

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
CP03 Change of name, title or address

Address after: No. 46 Ketai 1st Road, Guangzhou Private Science and Technology Park, Baiyun District, Guangzhou City, Guangdong Province, 510000

Patentee after: Guangzhou Caiyi Technology Co.,Ltd.

Country or region after: China

Address before: No. 46 Ketai 1st Road, Guangzhou Private Science and Technology Park, Baiyun District, Guangzhou City, Guangdong Province

Patentee before: Guangzhou Colourful Lighting Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address