CN103068112B - Method of light-emitting diode (LED) lamp smart lighting adjustment and system thereof - Google Patents

Method of light-emitting diode (LED) lamp smart lighting adjustment and system thereof Download PDF

Info

Publication number
CN103068112B
CN103068112B CN201210562955.7A CN201210562955A CN103068112B CN 103068112 B CN103068112 B CN 103068112B CN 201210562955 A CN201210562955 A CN 201210562955A CN 103068112 B CN103068112 B CN 103068112B
Authority
CN
China
Prior art keywords
colors
color
led
rgb
dimming
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201210562955.7A
Other languages
Chinese (zh)
Other versions
CN103068112A (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.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
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 South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN201210562955.7A priority Critical patent/CN103068112B/en
Publication of CN103068112A publication Critical patent/CN103068112A/en
Application granted granted Critical
Publication of CN103068112B publication Critical patent/CN103068112B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

一种LED灯智能调光方法,包括以下步骤:用户使用在智能移动终端上开发的客户端应用程序,选择RGB调光、选色调光、图片拾色、音乐跟随配色四种调光中的任意一种方式,客户端程序执行相应的算法后将得出的控制参数通过wifi发送给网络节点,网络节点将数据处理后通过无线射频通信传送给控制节点,再由控制节点的MCU输出的PWM信号控制LED驱动电路,调节LED情景灯的光颜色和亮度。实现LED灯智能调光方法的调光系统,包括智能移动终端、网络节点、控制节点、小功率DC/DC恒流输出控制电路、LED灯具。具有实现了更加人性化、新颖的调光方式,其智能性增强了LED情景灯的视觉效果和符合了智能化应用需求等优点。

An intelligent dimming method for LED lamps, comprising the following steps: a user uses a client application program developed on an intelligent mobile terminal to select any of the four dimming modes of RGB dimming, selected color dimming, picture color selection, and music following color matching. In one way, the client program executes the corresponding algorithm and sends the obtained control parameters to the network node through wifi, and the network node processes the data and transmits it to the control node through radio frequency communication, and then the PWM signal output by the MCU of the control node Control the LED drive circuit to adjust the light color and brightness of the LED scene light. A dimming system for realizing the intelligent dimming method of LED lamps, including intelligent mobile terminals, network nodes, control nodes, low-power DC/DC constant current output control circuits, and LED lamps. It has the advantages of realizing a more humanized and novel dimming method, and its intelligence enhances the visual effect of LED scene lights and meets the needs of intelligent applications.

Description

一种LED灯智能调光方法及其系统A method and system for intelligent dimming of LED lights

技术领域technical field

本发明涉及一种LED调光控制技术,特别涉及一种LED灯智能调光方法及其系统。The invention relates to an LED dimming control technology, in particular to an LED lamp intelligent dimming method and system thereof.

背景技术Background technique

随着社会经济的发展,节能低耗的需求使LED灯得到很广的普及和应用,对基于LED光源的应用也随之增长,LED的智能化照明在智能家居和其他领域的应用也逐渐增加。当前的市场上提供的LED情景灯调光系统大多是按照事先设定的固定颜色,或按某一规律变化的颜色进行照明,自成一套控制设备,然而并不能充分体现智能化照明,也不能非常人性化地达到情景渲染效果。With the development of social economy, the demand for energy saving and low consumption has made LED lights widely popularized and applied, and the application of LED-based light sources has also increased. The application of LED intelligent lighting in smart homes and other fields has also gradually increased. . Most of the LED scene light dimming systems currently available on the market are illuminated according to a fixed color set in advance, or a color that changes according to a certain rule, and form a set of control equipment. Can not be very humane to achieve scene rendering effect.

发明内容Contents of the invention

为了克服现有技术的缺点与不足,本发明的首要目的在于提供一种LED灯智能调光方法,该方法使得调光方式更具人性化、多样化,给人以舒适完美的视觉享受。In order to overcome the shortcomings and deficiencies of the prior art, the primary purpose of the present invention is to provide an intelligent dimming method for LED lamps, which makes the dimming methods more humanized and diversified, and provides comfortable and perfect visual enjoyment.

为了克服现有技术的缺点与不足,本发明的另一目的在于提供实现LED灯智能调光方法的调光系统。In order to overcome the shortcomings and deficiencies of the prior art, another object of the present invention is to provide a dimming system for realizing an intelligent dimming method for LED lamps.

本发明的首要目的通过以下技术方案实现:一种LED灯智能调光方法及其系统,包括以下步骤:The primary purpose of the present invention is achieved through the following technical solutions: a method and system for intelligent dimming of LED lamps, comprising the following steps:

S1用户使用智能移动终端,在客户端应用程序中选择一张用于拾色的图片,客户端应用程序将会对图片进行采样、计算,得出图片中若干种主要颜色的RGB值(其中:R代表红、G代表绿、B代表蓝);S1 users use a smart mobile terminal to select a picture for color picking in the client application, and the client application will sample and calculate the picture to obtain the RGB values of several main colors in the picture (among them: R stands for red, G stands for green, B stands for blue);

用户可以选择使用图片拾色或者音乐跟随配色,若选择图片拾色则进行步骤S2;若选择音乐跟随配色则进行步骤S3;The user can choose to use pictures to pick colors or music to follow the color matching. If you choose pictures to pick colors, go to step S2; if you choose music to follow the color matching, go to step S3;

S2客户端应用程序将步骤S1中得到的若干种颜色的RGB值发送给网络节点;然后进行步骤S4;S2 client application sends the RGB values of several colors obtained in step S1 to the network node; then proceed to step S4;

S3利用HSV模型(其中:H代表色调、S代表饱和度、V代表明度)到RGB模型的映射关系将步骤S1中得到的若干种颜色的RGB值映射为HSV值。S3 maps the RGB values of several colors obtained in step S1 to HSV values by using the mapping relationship from the HSV model (wherein: H represents hue, S represents saturation, and V represents lightness) to the RGB model.

用户在客户端应用程序中选择一首用于跟随配色的歌曲,客户端应用程序将会在歌曲播放的同时对歌曲进行实时的采样,获取歌曲实时的音量、频谱数据,并结合此前映射得到的若干种颜色的HSV值,实时地计算得到融合音乐后的新HSV值,再利用RGB模型到HSV模型的映射关系将新HSV值映射为新RGB值,并发送给网络节点;The user selects a song to follow the color matching in the client application, and the client application will sample the song in real time while the song is playing, obtain the real-time volume and spectrum data of the song, and combine it with the previously mapped The HSV value of several colors is calculated in real time to obtain the new HSV value after the fusion of music, and then the new HSV value is mapped to a new RGB value by using the mapping relationship between the RGB model and the HSV model, and sent to the network node;

S4网络节点将收到的RGB控制参数后,经过封装成数据包,通过无线射频传输协议,可与多个控制节点进行数据通信;The S4 network node encapsulates the received RGB control parameters into a data packet, and can communicate with multiple control nodes through the wireless radio frequency transmission protocol;

S5控制节点收到数据包后,调节处理器输出的PWM信号的占空比,实现脉冲宽度调制技术,辅助设计的DC/DC恒流输出驱动电路来控制LED灯具的颜色和亮度变化。After the S5 control node receives the data packet, it adjusts the duty cycle of the PWM signal output by the processor, realizes the pulse width modulation technology, and assists in designing the DC/DC constant current output driving circuit to control the color and brightness changes of the LED lamps.

步骤S1所述的对图片进行采样、计算,具体包括以下步骤:Sampling and calculating the picture described in step S1 specifically includes the following steps:

考虑到智能移动终端有限的计算能力,对于m*n大小的图像,取k*k个样点(k<=m,n)。Considering the limited computing power of the smart mobile terminal, for an image of m*n size, k*k samples are taken (k<=m,n).

同时对于RGB模型的二百五十六的三次方种颜色进行计数、排序时所需的计算量及存储量过大,且人眼分辨能力有限,因此需对颜色进行聚类处理,聚类成512种颜色,这512种颜色能代表和比较完整地体现一副图片的颜色。At the same time, the amount of calculation and storage required for counting and sorting the 256 cubic colors of the RGB model is too large, and the resolution of the human eye is limited. Therefore, it is necessary to cluster the colors, and cluster them into 512 colors, these 512 colors can represent and fully reflect the color of a picture.

对图片的k的平方个点的颜色聚类后,进行计算、排序后,取得数量最多的几种颜色。After clustering the colors of the k square points of the picture, calculate and sort them, and obtain the colors with the largest number.

步骤S3所述的计算得到融合音乐后的新HSV值,具体包括以下步骤:The calculation described in step S3 obtains the new HSV value after the fusion music, specifically comprises the following steps:

考虑到LED硬件照明所使用的RGB模型与人对色彩的感觉没有很好的对应关系,为此使用了比较符合人对色彩直观理解的HSV模型来进行参数的调节。为了防止色彩变化过于突兀,在这里不改变HSV中的H参数,而将实时采集到的歌曲音量数据、频率数据分别映射为新HSV值的S、V参数。考虑到音量及频率的数值都是在中间值附近的一个范围内变化,为了更明显地用颜色表现音乐的变化,采用了分段线性的映射函数进行新HSV值的参数值计算。Considering that the RGB model used for LED hardware lighting does not have a good correspondence with people's perception of color, the HSV model that is more in line with people's intuitive understanding of color is used to adjust the parameters. In order to prevent the color change from being too abrupt, the H parameter in the HSV is not changed here, but the real-time collected song volume data and frequency data are mapped to the S and V parameters of the new HSV value respectively. Considering that the values of volume and frequency all change in a range near the middle value, in order to express the change of music more clearly with color, a piecewise linear mapping function is used to calculate the parameter value of the new HSV value.

步骤S5所述的控制LED灯具的颜色和亮度变化,具体包括以下步骤:The control of the color and brightness changes of the LED lamps described in step S5 specifically includes the following steps:

控制节点端可以根据不同的设计容量,接入多组LED灯具,LED灯具利用三基色原理将红、绿、蓝三种超高亮度LED混合成白光和多种彩色光。每个LED灯具的红、绿、蓝三色分别由三组完全相同的PWM模式的DC/DC恒流驱动电路点亮,经过参数调节后处理器产生三路不同占空比的PWM信号作为小功率DC/DC恒流驱动电路的参数,进而达到LED调光的目的,智能地控制LED灯具的颜色和亮度变化。The control node end can be connected to multiple groups of LED lamps according to different design capacities. LED lamps use the principle of three primary colors to mix red, green and blue ultra-high brightness LEDs into white light and various colored lights. The red, green, and blue colors of each LED lamp are respectively lit by three sets of DC/DC constant current drive circuits in the same PWM mode. After parameter adjustment, the processor generates three PWM signals with different duty ratios as small The parameters of the power DC/DC constant current drive circuit, and then achieve the purpose of LED dimming, intelligently control the color and brightness changes of LED lamps.

本发明的另一目的通过以下技术方案实现:实现LED灯智能调光方法的调光系统,包括智能移动终端、网络节点、控制节点、小功率DC/DC恒流输出控制电路、LED灯具;Another object of the present invention is achieved through the following technical solutions: a dimming system for realizing an intelligent dimming method for LED lamps, including an intelligent mobile terminal, a network node, a control node, a low-power DC/DC constant current output control circuit, and an LED lamp;

所述智能移动终端为用户便携移动终端平台;所述网络节点与智能移动终端进行网络互联通信,并作为人机交互的桥梁,与多个控制节点进行无线射频通信;所述控制节点与网络节点进行无线射频通信,并对小功率DC/DC恒流输出控制电路进行控制;所述小功率DC/DC恒流输出控制电路与LED灯具连接,对其进行驱动。The intelligent mobile terminal is a user-portable mobile terminal platform; the network node and the intelligent mobile terminal perform network interconnection communication, and as a bridge for human-computer interaction, perform wireless radio frequency communication with multiple control nodes; the control node and the network node Carry out wireless radio frequency communication, and control the low-power DC/DC constant current output control circuit; the low-power DC/DC constant current output control circuit is connected with LED lamps to drive them.

与现有技术相比,本发明具有以下优点与有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:

(1)本发明提供了一种LED灯智能调光方法及其系统,利用便携的移动终端进行控制,实现远程智能化控制,利用图片拾色和音色跟随实现了LED的智能化情景照明,具有一定的技术开发价值和市场应用潜力。(1) The present invention provides a method and system for intelligent dimming of LED lamps, which is controlled by a portable mobile terminal to realize remote intelligent control, and realizes intelligent scene lighting of LEDs by using pictures to pick up colors and timbres to follow. Certain technological development value and market application potential.

(2)本发明通过提出新的的调光方法及其系统,实现图片和音乐的视觉再现效果,使LED照明更具人性化,将在一定程度上拓宽LED的应用领域。(2) By proposing a new dimming method and its system, the present invention realizes the visual reproduction effect of pictures and music, makes LED lighting more humanized, and will broaden the application field of LED to a certain extent.

附图说明Description of drawings

图1为本发明的LED灯智能调光系统的组成框图。Fig. 1 is a composition block diagram of the LED lamp intelligent dimming system of the present invention.

图2为本发明的调光方法的流程图。Fig. 2 is a flow chart of the dimming method of the present invention.

具体实施方式Detailed ways

下面结合实施例及附图,对本发明作进一步地详细说明,但本发明的实施方式不限于此。The present invention will be described in further detail below in conjunction with the embodiments and the accompanying drawings, but the embodiments of the present invention are not limited thereto.

实施例Example

如图1所示,本实施例的智能LED情景灯调光系统,包括智能移动终端、网络节点、控制节点、小功率DC/DC恒流输出控制电路、LED灯具。As shown in FIG. 1 , the dimming system for intelligent LED scene lights in this embodiment includes an intelligent mobile terminal, a network node, a control node, a low-power DC/DC constant current output control circuit, and an LED lamp.

所述智能移动终端为用户便携移动终端平台;所述网络节点作为智能移动终端和控制节点进行信息交互的传输中介;所述控制节点用于同时产生多路PWM控制信号,所述小功率DC/DC恒流输出控制电路实现脉宽调制技术对LED灯具的控制。The smart mobile terminal is a portable mobile terminal platform for users; the network node is used as a transmission intermediary for information interaction between the smart mobile terminal and the control node; the control node is used to generate multiple PWM control signals at the same time, and the low-power DC/ The DC constant current output control circuit realizes the control of LED lamps by pulse width modulation technology.

本实例的智能移动终端需安装客户端应用程序,客户端应用程序根据用户的选择计算得到颜色的RGB值,并由智能移动终端通过wifi发送给网络节点The smart mobile terminal in this example needs to install the client application program, and the client application program calculates the RGB value of the color according to the user's choice, and the smart mobile terminal sends it to the network node through wifi

本实施例的网络节点主要由MCU和网络芯片及无线射频芯片构成,具有较强的数据通信能力。其作为人机交互信息的桥梁,将从智能终端获取的控制参数进行初步处理后,通过无线射频,与多个控制节点进行实时数据的无线通信。The network node in this embodiment is mainly composed of an MCU, a network chip and a radio frequency chip, and has strong data communication capability. As a bridge of human-computer interaction information, it conducts preliminary processing of the control parameters obtained from the intelligent terminal, and then performs wireless communication of real-time data with multiple control nodes through radio frequency.

本实施例的控制节点主要由MCU和无线射频芯片构成,通过无线通信,从网络节点获取控制参数,利用MCU的强大处理能力,同时输出多了PWM信号。The control node in this embodiment is mainly composed of an MCU and a wireless radio frequency chip, and obtains control parameters from the network node through wireless communication, and utilizes the powerful processing capability of the MCU to output more PWM signals at the same time.

本实施例的小功率DC/DC恒流输出控制电路主要由功率开关管和驱动芯片构成,利用经过驱动芯片驱动增强的占空比不同的PWM信号,来控制功率开关管的导通和关断时间,进而改变输出给LED灯的电压,实现恒流输出的开关电源控制。The low-power DC/DC constant current output control circuit of this embodiment is mainly composed of a power switch tube and a driver chip, and uses the PWM signals with different duty ratios driven by the driver chip to control the turn-on and turn-off of the power switch tube Time, and then change the voltage output to the LED lamp to realize the switching power supply control of constant current output.

上述LED灯智能调光方法,包括以下步骤:The above-mentioned LED lamp intelligent dimming method includes the following steps:

S1智能移动终端上安装的客户端应用程序有四种调光方式给用户选择,分别是RGB调光、选色调光、图片拾色、音乐跟随配色。若用户选择RGB调光则进行步骤S2,若用户选择选色调光则进行步骤S3,若用户选择图片拾色或音乐跟随配色则进行步骤S4;The client application installed on the S1 smart mobile terminal has four dimming methods for the user to choose from, namely RGB dimming, color-selected dimming, color selection by picture, and color matching by music. If the user selects RGB dimming, proceed to step S2; if the user selects selected dimming, proceed to step S3; if the user selects picture color selection or music color matching, proceed to step S4;

S2用户直接输入颜色的RGB值,客户端应用程序将把RGB值发送给网络节点,然后进行步骤S6;S2 The user directly inputs the RGB value of the color, and the client application program will send the RGB value to the network node, and then proceed to step S6;

S3客户端应用程序将提供给用户一张标准的色彩图,用户可在色彩图中点选自己想要的颜色,客户端应用程序将把用户点选的像素点的RGB值发送给网络节点,然后进行步骤S6;The S3 client application program will provide the user with a standard color map. The user can click the color he wants in the color map, and the client application program will send the RGB value of the pixel point selected by the user to the network node. Then proceed to step S6;

S4用户在客户端应用程序中自选一张用于拾色的图片,客户端应用程序将会对图片进行采样、计算,得出图片中若干种主要颜色的RGB值(其中:R代表红、G代表绿、B代表蓝)。具体为:对于m*n大小的图像,取k*k个样点(k<=m,n),并对样点的颜色进行聚类处理,将二百五十六的三次方种颜色聚类成512种颜色,按512种颜色对样点进行计数、排序,取得数量最多的4种颜色。S4 The user selects a picture for color selection in the client application program, and the client application program will sample and calculate the picture to obtain the RGB values of several main colors in the picture (wherein: R stands for red, G stands for green, B stands for blue). Specifically: for an image of m*n size, take k*k sample points (k<=m, n), and cluster the colors of the sample points, and cluster the 256 cubic colors Classify into 512 colors, count and sort the sample points according to 512 colors, and obtain the 4 colors with the largest number.

若用户在步骤S1中选择图片拾色,则客户端应用程序将获得的4种颜色的RGB值发送给网络节点,然后进行步骤S6;若用户在步骤S1中选择音乐跟随配色,则进行步骤S5;If the user selects the picture color selection in step S1, the client application program will send the acquired RGB values of the 4 colors to the network node, and then proceed to step S6; if the user selects music to follow the color matching in step S1, proceed to step S5 ;

S5利用HSV模型(其中:H代表色调、S代表饱和度、V代表明度)到RGB模型的映射关系将步骤S4中得到的4种颜色的RGB值映射为HSV值。S5 maps the RGB values of the four colors obtained in step S4 to HSV values using the mapping relationship from the HSV model (where: H represents hue, S represents saturation, and V represents lightness) to the RGB model.

用户在客户端应用程序中选择一首用于跟随配色的歌曲,客户端应用程序将会在歌曲播放的同时对歌曲进行实时的采样,获取歌曲实时的音量、频谱数据。The user selects a song to follow the color matching in the client application, and the client application will sample the song in real time while the song is playing, and obtain the real-time volume and spectrum data of the song.

将4种颜色的HSV值的H参数作为新HSV值的H参数,将实时采集到的歌曲音量数据、频率数据分别用分段线性的映射函数映射为新HSV值的S、V参数:The H parameters of the HSV values of the four colors are used as the H parameters of the new HSV value, and the real-time collected song volume data and frequency data are respectively mapped to the S and V parameters of the new HSV value using a piecewise linear mapping function:

ythe y == 00 ,, xx &le;&le; aa 11 bb -- aa (( xx -- aa )) ,, aa << xx << bb 11 ,, xx &GreaterEqual;&Greater Equal; bb

其中,x为音量数据、频率数据,a、b为函数分段的界限,y为映射后新HSV值的S、V参数的值,此处采用归一化的参数,范围在[0,1]。Among them, x is the volume data and frequency data, a and b are the boundaries of the function segmentation, and y is the value of the S and V parameters of the new HSV value after mapping. The normalized parameters are used here, and the range is [0,1 ].

用户可以调整映射函数的参数a、b的值来调整映射效果。The user can adjust the values of the parameters a and b of the mapping function to adjust the mapping effect.

利用RGB模型到HSV模型的映射关系将新HSV值映射为新RGB值,并发送给网络节点;Use the mapping relationship from the RGB model to the HSV model to map the new HSV value to a new RGB value and send it to the network node;

S6网络节点利用互联网收到多个RGB的控制参数后,根据无线射频通信传输协议的要求,将数据封装成包后,与多个控制节点进行实时数据传输;After the S6 network node receives multiple RGB control parameters through the Internet, it encapsulates the data into packets according to the requirements of the wireless radio frequency communication transmission protocol, and then performs real-time data transmission with multiple control nodes;

S7控制节点根据收到的数据请求,调节输出的PWM信号的占空比,不同占空比的PWM信号经过驱动电路后,对功率开关管的导通和关断时间进行控制,恒流输出点亮三基色红、绿、蓝LED,三基色LED的不同亮度的混合即可实现彩色绚丽显示效果。The S7 control node adjusts the duty ratio of the output PWM signal according to the received data request. After the PWM signals with different duty ratios pass through the drive circuit, they control the turn-on and turn-off time of the power switch tube. The constant current output point Bright three primary colors red, green, blue LED, three primary color LEDs with different brightness can be mixed to achieve colorful display effect.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受所述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiment is a preferred embodiment of the present invention, but the embodiment of the present invention is not limited by the embodiment, and any other changes, modifications, substitutions and combinations made without departing from the spirit and principle of the present invention , simplification, all should be equivalent replacement methods, and are all included in the protection scope of the present invention.

Claims (3)

1.一种LED灯智能调光方法,其特征在于,包括以下步骤:1. A kind of LED lamp intelligent dimming method, is characterized in that, comprises the following steps: S1、用户使用智能移动终端,在客户端应用程序中选择一张用于拾色的图片,客户端应用程序将会对图片进行采样、计算,得出图片中若干种主要颜色的RGB值,其中:R代表红、G代表绿、B代表蓝;S1. The user uses a smart mobile terminal to select a picture for color picking in the client application program. The client application program will sample and calculate the picture to obtain the RGB values of several main colors in the picture. : R stands for red, G stands for green, B stands for blue; 用户可以选择使用图片拾色或者音乐跟随配色,若选择图片拾色则进行步骤S2;若选择音乐跟随配色则进行步骤S3;The user can choose to use pictures to pick colors or music to follow the color matching. If you choose pictures to pick colors, go to step S2; if you choose music to follow the color matching, go to step S3; S2、客户端应用程序将步骤S1中得到的若干种颜色的RGB值发送给网络节点;然后进行步骤S4;S2, the client application program sends the RGB values of several colors obtained in step S1 to the network node; then proceed to step S4; S3、利用HSV模型,其中:H代表色调、S代表饱和度、V代表明度,到RGB模型的映射关系将步骤S1中得到的若干种颜色的RGB值映射为HSV值;S3. Utilize the HSV model, wherein: H represents hue, S represents saturation, V represents lightness, and the RGB values of several colors obtained in step S1 are mapped to HSV values to the mapping relationship of the RGB model; 用户在客户端应用程序中选择一首用于跟随配色的歌曲,客户端应用程序将会在歌曲播放的同时对歌曲进行实时的采样,获取歌曲实时的音量、频谱数据,并结合此前映射得到的若干种颜色的HSV值,实时地计算得到融合音乐后的新HSV值,再利用RGB模型到HSV模型的映射关系将新HSV值映射为新RGB值,并发送给网络节点;The user selects a song to follow the color matching in the client application, and the client application will sample the song in real time while the song is playing, obtain the real-time volume and spectrum data of the song, and combine it with the previously mapped The HSV value of several colors is calculated in real time to obtain the new HSV value after the fusion of music, and then the new HSV value is mapped to a new RGB value by using the mapping relationship between the RGB model and the HSV model, and sent to the network node; S4、网络节点将收到的RGB控制参数后,经过封装成数据包,通过无线射频传输协议,可与多个控制节点进行数据通信;S4. After the network node encapsulates the received RGB control parameters into a data packet, it can communicate with multiple control nodes through the wireless radio frequency transmission protocol; S5、控制节点收到数据包后,调节处理器输出的PWM信号的占空比,实现脉冲宽度调制技术,辅助设计的DC/DC恒流输出驱动电路来控制LED灯具的颜色和亮度变化;S5. After the control node receives the data packet, it adjusts the duty cycle of the PWM signal output by the processor, realizes the pulse width modulation technology, and assists in designing the DC/DC constant current output drive circuit to control the color and brightness changes of the LED lamps; 步骤S1中的对图片进行采样和计算,包括以下步骤:Sampling and calculating the picture in step S1 includes the following steps: 考虑到智能移动终端有限的计算能力,对于大小为m乘以n的图像,取k的平方个样点,所述m表示图像像素点的行数,n表示图像像素点的列数,k表示采样点的行数和列数,同时对于RGB模型的二百五十六的三次方种颜色进行计数和排序,并对颜色进行聚类处理,聚类成512种颜色;Considering the limited computing power of smart mobile terminals, for an image whose size is m times n, take k square samples, where m represents the number of rows of image pixels, n represents the number of columns of image pixels, and k represents The number of rows and columns of sampling points, while counting and sorting the 256 cubic colors of the RGB model, and clustering the colors into 512 colors; 对图片的k的平方个点的颜色聚类后,进行样点的颜色计数和排序,按样点点数的排序结果,取得样点点数最多的颜色。After clustering the colors of the k square points of the picture, count and sort the colors of the sample points, and obtain the color with the largest number of sample points according to the sorting results of the sample points. 2.根据权利要求1所述的LED灯智能调光方法,其特征在于,步骤S3所述的计算得到融合音乐后的新HSV值,包括:不改变HSV中的H参数,而将实时采集到的歌曲音量数据、频率数据分别映射为新HSV值的S、V参数,并采用分段线性的映射函数进行新HSV值的参数值计算。2. The LED lamp intelligent dimming method according to claim 1, characterized in that the calculation in step S3 to obtain the new HSV value after fused music includes: not changing the H parameter in the HSV, but collecting the real-time The volume data and frequency data of the song are respectively mapped to the S and V parameters of the new HSV value, and a piecewise linear mapping function is used to calculate the parameter value of the new HSV value. 3.根据权利要求1所述的LED灯智能调光方法,其特征在于,步骤S5中的控制LED灯具的颜色和亮度变化,包括以下步骤:3. The LED lamp intelligent dimming method according to claim 1, characterized in that, controlling the color and brightness changes of the LED lamp in step S5 comprises the following steps: S1、控制节点可以根据不同的设计容量,接入多组LED灯具,LED灯具利用三基色原理将红、绿、蓝三种超高亮度LED混合成白光和多种彩色光;S1. The control node can be connected to multiple groups of LED lamps according to different design capacities. LED lamps use the principle of three primary colors to mix red, green and blue ultra-high brightness LEDs into white light and various colored lights; S2、每个LED灯具的红、绿、蓝三色分别由三组完全相同的PWM模式的DC/DC恒流驱动电路点亮,经过参数调节后处理器产生的三路PWM信号作为小功率DC/DC恒流驱动电路的参数。S2. The red, green, and blue colors of each LED lamp are respectively lit by three sets of DC/DC constant current drive circuits in the same PWM mode. After parameter adjustment, the three-way PWM signal generated by the processor is used as a low-power DC /DC constant current drive circuit parameters.
CN201210562955.7A 2012-12-20 2012-12-20 Method of light-emitting diode (LED) lamp smart lighting adjustment and system thereof Expired - Fee Related CN103068112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210562955.7A CN103068112B (en) 2012-12-20 2012-12-20 Method of light-emitting diode (LED) lamp smart lighting adjustment and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210562955.7A CN103068112B (en) 2012-12-20 2012-12-20 Method of light-emitting diode (LED) lamp smart lighting adjustment and system thereof

Publications (2)

Publication Number Publication Date
CN103068112A CN103068112A (en) 2013-04-24
CN103068112B true CN103068112B (en) 2014-12-31

Family

ID=48110513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210562955.7A Expired - Fee Related CN103068112B (en) 2012-12-20 2012-12-20 Method of light-emitting diode (LED) lamp smart lighting adjustment and system thereof

Country Status (1)

Country Link
CN (1) CN103068112B (en)

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103228092A (en) * 2013-05-08 2013-07-31 上海宏源照明电器有限公司 Independent frequency output circuit capable of inhibiting electromagnetic wave interference of electrodeless lamp and modulation method
CN103987166A (en) * 2014-05-09 2014-08-13 苏州乐聚一堂电子科技有限公司 Automatic identification system for karaoke lighting effects
CN104994618B (en) * 2015-06-04 2018-07-06 深圳市博普森机电顾问有限公司 Intelligent LED integrates illumination system
CN105517222B (en) * 2015-12-01 2018-10-19 小米科技有限责任公司 Light adjusting method and device
CN105611693B (en) * 2015-12-29 2018-06-15 北京爱情说科技有限公司 The control method and device of sound equipment and desk lamp with dimmer switch
CN105611694B (en) * 2015-12-30 2018-10-16 北京经纬恒润科技有限公司 A kind of color configuration method and apparatus of atmosphere lamp
WO2017120843A1 (en) * 2016-01-14 2017-07-20 邓娟 Data collection method and lamp for lighting-control technology
WO2017120844A1 (en) * 2016-01-14 2017-07-20 邓娟 Method for pushing information when controlling lighting and light
WO2017120845A1 (en) * 2016-01-14 2017-07-20 邓娟 Method and lamp for lighting control
CN107340952A (en) * 2016-04-29 2017-11-10 深圳市蚂蚁雄兵物联技术有限公司 A kind of method and device that lamp is controlled by mobile terminal synchronization
CN106793329B (en) * 2017-01-06 2018-11-30 广东德洛斯照明工业有限公司 A kind of automatic light-supplementing method based on RGBW
CN107018608A (en) * 2017-03-16 2017-08-04 深圳创维-Rgb电子有限公司 A kind of method and system of control device appearance color change
CN106912155A (en) * 2017-05-09 2017-06-30 杨廉 Lamp light control method
CN107219769A (en) * 2017-05-22 2017-09-29 北京广安睡眠科学研究院 The control method of lighting sound integration apparatus, apparatus and system
CN107172792A (en) * 2017-07-10 2017-09-15 东莞市三恩照明实业有限公司 An APP music smart lamp with adjustable light and color adjustment
CN107750071A (en) * 2017-10-30 2018-03-02 赛尔富电子有限公司 A kind of light modulation processing system of LED lamp
CN107835544A (en) * 2017-11-15 2018-03-23 惠州市物联微电子有限公司 A kind of RGB three-color LED music lamp systems based on network control
CN108135050A (en) * 2017-12-19 2018-06-08 惠州市物联微电子有限公司 A kind of pickup LED toning lamps
CN108312139A (en) * 2018-03-29 2018-07-24 深圳市人动人信息技术有限公司 The servo motor module of convertible color and the robot with servo motor module
CN111246621B (en) * 2020-01-10 2022-03-15 江门市征极光兆科技有限公司 WiFi technology-based neon light strip control system
CN112286349B (en) * 2020-10-23 2024-10-18 广东好太太智能家居有限公司 Visual interaction control method based on sound, intelligent terminal and storage device
CN112617363A (en) * 2020-12-11 2021-04-09 佛山芯珠微电子有限公司 Dynamic step counting bracelet, step counting method thereof and body temperature monitoring method
CN112584591B (en) * 2020-12-27 2023-02-07 上海应用技术大学 An intelligent remote interactive moon lamp and its usage method
CN113630928B (en) * 2021-08-27 2025-01-24 上海科世达-华阳汽车电器有限公司 Lighting control method, device, equipment and storage medium
CN114828350A (en) * 2022-03-25 2022-07-29 广东中元创新科技有限公司 Control method of atmosphere lamp with acousto-optic acquisition and synchronization effects
WO2024060254A1 (en) * 2022-09-23 2024-03-28 Lepro Innovation Holding Limited System and method for controlling lamp device, lamp device, and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6639574B2 (en) * 2002-01-09 2003-10-28 Landmark Screens Llc Light-emitting diode display
CN101383911B (en) * 2008-10-23 2010-12-08 上海交通大学 TV camera color intelligent automatic adjustment device
CN101784145A (en) * 2009-07-06 2010-07-21 深圳茂硕电源科技股份有限公司 Remote stepless dimming LED multi-path drive constant-current system and constant-current source
CN101859511A (en) * 2010-04-01 2010-10-13 浙江大学 Ambient atmosphere light system and control method for the environment atmosphere light system
CN201828528U (en) * 2010-10-27 2011-05-11 大树智能科技(南京)有限公司 Appearance inspection device for cigarette packets
CN203039968U (en) * 2012-12-20 2013-07-03 华南理工大学 LED lamp intelligent dimming system

Also Published As

Publication number Publication date
CN103068112A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
CN103068112B (en) Method of light-emitting diode (LED) lamp smart lighting adjustment and system thereof
CN204046868U (en) A kind of lighting device
CN103945604A (en) Light adjusting method, light adjusting device, adjustable light source and display equipment
CN108449826B (en) Eye protection intelligent lighting system
CN204259247U (en) The five road light adjusting systems that mobile phone controls
CN102734671A (en) High intelligence indoor white light LED (Light-Emitting Diode) lamp
CN111246617A (en) LED controller and LED control method
CN208317065U (en) LED drive power based on the toning of 2.4G remote control light modulating
CN202721868U (en) A LED light brightness and color temperature control system
CN105163419A (en) High color saturation white light LED illumination system and mixed color design method thereof
CN203327291U (en) LED atmosphere lamp based on electric power carrier communication
CN116600439B (en) RGB illumination lamp based on color space color point switching algorithm
CN202444653U (en) RGBW-LED crystal lamp intelligent remote control device
CN206341452U (en) Can darkening toning intelligent LED lamp
CN206004958U (en) A kind of variable color-temperature LED control system of Automatic adjusument
CN203039968U (en) LED lamp intelligent dimming system
CN101859511A (en) Ambient atmosphere light system and control method for the environment atmosphere light system
CN105282917B (en) A kind of communicating control method of Intelligent lamp
CN203537604U (en) Equipment remotely controlled through WIFI network
CN108650736A (en) A kind of environmental atmosphere adjustment type intelligent lighting lamp
CN104113953B (en) Electro-optical device and control method
CN108260264A (en) A kind of colorful energy-saving lamp control device based on three primary colours palette
CN110493920A (en) A kind of automatic control intelligent LED lamp
CN106332383A (en) Intelligent lighting device
CN107295720A (en) Intelligent LED lamp light modulating device, system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141231

Termination date: 20201220

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