一种基于非线性闭环的可调光色LED控制系统的制作方法

文档序号:11158423阅读:来源:国知局

技术特征:

1.一种基于非线性闭环的可调光色LED控制系统,包括微处理器、LED驱动控制器、暖白光LED串、冷白光LED串、光照/颜色传感器、照度传感器、电源模块,其特征在于:

所述的微处理器连接两个恒流LED驱动控制器,其中一个LED驱动控制器控制暖白光LED串,另一个LED驱动控制器控制冷白光LED串,微处理器产生两路不同占空比的PWM信号Rw和Rc,分别用于调节暖白光LED串和冷白光LED串的输出;

所述的照度传感器测量环境背景光照强度,探测结果输入微处理器并转换为环境光通量;

所述的光照/颜色传感器在闭环工作条件下持续监测暖白光LED串和冷白光LED串,输出冷、暖白光混光后的有效光通量和RGB值,测量光通量和RGB值反馈给微处理器,其中RGB值可算出测量CCT值,微处理器将测量光通量和测量CCT值与之前输入的目标/环境光通量和目标CCT值进行比较,通过内置控制算法计算出下一时刻PWM信号的占空比Rw和Rc

2.根据权利要求1所述的一种基于非线性闭环的可调光色LED控制系统,其特征在于:所述的内置控制算法简述如下:

取i时刻冷、暖白光LED的光通量和CCT值分别为φc、φw和Cc、Cw,混光后总的光通量φm和Cm可表示为:

<mrow> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mrow> <msub> <mi>&phi;</mi> <mi>m</mi> </msub> <mo>=</mo> <msub> <mi>&phi;</mi> <mi>w</mi> </msub> <mo>+</mo> <msub> <mi>&phi;</mi> <mi>c</mi> </msub> <mo>+</mo> <msub> <mi>&phi;</mi> <mi>a</mi> </msub> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <msub> <mi>C</mi> <mi>m</mi> </msub> <mo>=</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> <mfrac> <msub> <mi>&phi;</mi> <mi>w</mi> </msub> <mrow> <msub> <mi>&phi;</mi> <mi>w</mi> </msub> <mo>+</mo> <msub> <mi>&phi;</mi> <mi>c</mi> </msub> </mrow> </mfrac> <mo>+</mo> <msub> <mi>C</mi> <mi>c</mi> </msub> <mfrac> <msub> <mi>&phi;</mi> <mi>c</mi> </msub> <mrow> <msub> <mi>&phi;</mi> <mi>w</mi> </msub> <mo>+</mo> <msub> <mi>&phi;</mi> <mi>c</mi> </msub> </mrow> </mfrac> </mrow> </mtd> </mtr> </mtable> </mfenced> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow>

其中φa为环境光通量,由式(1)可以求出φw和φc

<mrow> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mrow> <msub> <mi>&phi;</mi> <mi>w</mi> </msub> <mo>=</mo> <mfrac> <mrow> <msub> <mi>&phi;</mi> <mi>m</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>m</mi> </msub> <mo>)</mo> </mrow> </mrow> <mrow> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> </mrow> </mfrac> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <msub> <mi>&phi;</mi> <mi>c</mi> </msub> <mo>=</mo> <mfrac> <mrow> <msub> <mi>&phi;</mi> <mi>m</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>C</mi> <mi>m</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> <mo>)</mo> </mrow> </mrow> <mrow> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> </mrow> </mfrac> </mrow> </mtd> </mtr> </mtable> </mfenced> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>2</mn> <mo>)</mo> </mrow> </mrow>

(i+1)时刻的PWM信号占空比Rw(i+1)和Rc(i+1)校准应分别考虑测量光通量和目标光通量以及测量CCT值和目标CCT值的不一致,通过改变φc和φw以达到目标光通量φt和目标CCT值Ct;由(2)式,因测量光通量和目标光通量不一致,校准后产生的冷、暖白光LED输出光通变化量为,

<mrow> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mrow> <msub> <mi>&Delta;&phi;</mi> <mrow> <mi>w</mi> <mn>1</mn> </mrow> </msub> <mo>=</mo> <mfrac> <mrow> <mo>(</mo> <msub> <mi>&phi;</mi> <mi>t</mi> </msub> <mo>-</mo> <msub> <mi>&phi;</mi> <mi>m</mi> </msub> <mo>)</mo> <mo>(</mo> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>m</mi> </msub> <mo>)</mo> </mrow> <mrow> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>m</mi> </msub> </mrow> </mfrac> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <msub> <mi>&Delta;&phi;</mi> <mrow> <mi>c</mi> <mn>1</mn> </mrow> </msub> <mo>=</mo> <mfrac> <mrow> <mo>(</mo> <msub> <mi>&phi;</mi> <mi>t</mi> </msub> <mo>-</mo> <msub> <mi>&phi;</mi> <mi>m</mi> </msub> <mo>)</mo> <mo>(</mo> <msub> <mi>C</mi> <mi>m</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> <mo>)</mo> </mrow> <mrow> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> </mrow> </mfrac> </mrow> </mtd> </mtr> </mtable> </mfenced> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>3</mn> <mo>)</mo> </mrow> </mrow>

类似的,因测量CCT值和目标CCT值不一致,冷、暖白光LED输出光通变化量为,

<mrow> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mrow> <msub> <mi>&Delta;&phi;</mi> <mrow> <mi>w</mi> <mn>2</mn> </mrow> </msub> <mo>=</mo> <mfrac> <mrow> <msub> <mi>&phi;</mi> <mi>m</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>C</mi> <mi>m</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>t</mi> </msub> <mo>)</mo> </mrow> </mrow> <mrow> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> </mrow> </mfrac> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <msub> <mi>&Delta;&phi;</mi> <mrow> <mi>c</mi> <mn>2</mn> </mrow> </msub> <mo>=</mo> <mfrac> <mrow> <msub> <mi>&phi;</mi> <mi>m</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>C</mi> <mi>t</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>m</mi> </msub> <mo>)</mo> </mrow> </mrow> <mrow> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> </mrow> </mfrac> </mrow> </mtd> </mtr> </mtable> </mfenced> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>4</mn> <mo>)</mo> </mrow> </mrow>

由式(3)、(4),(i+1)时刻相对k时刻冷、暖白光总的光通变化量为,

<mrow> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mrow> <msub> <mi>&Delta;&phi;</mi> <mi>w</mi> </msub> <mo>=</mo> <mfrac> <mrow> <msub> <mi>&phi;</mi> <mi>m</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>t</mi> </msub> <mo>)</mo> </mrow> <mo>+</mo> <msub> <mi>&phi;</mi> <mi>t</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>C</mi> <mi>m</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>)</mo> </mrow> </mrow> <mrow> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> </mrow> </mfrac> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <msub> <mi>&Delta;&phi;</mi> <mrow> <mi>c</mi> <mn>2</mn> </mrow> </msub> <mo>=</mo> <mfrac> <mrow> <msub> <mi>&phi;</mi> <mi>m</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>C</mi> <mi>t</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> <mo>)</mo> </mrow> <mo>+</mo> <msub> <mi>&phi;</mi> <mi>t</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>m</mi> </msub> <mo>)</mo> </mrow> </mrow> <mrow> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> </mrow> </mfrac> </mrow> </mtd> </mtr> </mtable> </mfenced> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>5</mn> <mo>)</mo> </mrow> </mrow>

所以(i+1)时刻的PWM信号占空比Rw(i+1)和Rc(i+1)为,

<mrow> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mrow> <msub> <mi>R</mi> <mi>w</mi> </msub> <mrow> <mo>(</mo> <mi>k</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>=</mo> <msub> <mi>R</mi> <mi>w</mi> </msub> <mrow> <mo>(</mo> <mi>k</mi> <mo>)</mo> </mrow> <mo>+</mo> <msub> <mi>&alpha;</mi> <mi>w</mi> </msub> <mfrac> <mrow> <msub> <mi>&phi;</mi> <mi>m</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>t</mi> </msub> <mo>)</mo> </mrow> <mo>+</mo> <msub> <mi>&phi;</mi> <mi>t</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>C</mi> <mi>m</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>)</mo> </mrow> </mrow> <mrow> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> </mrow> </mfrac> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <msub> <mi>R</mi> <mi>c</mi> </msub> <mrow> <mo>(</mo> <mi>k</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>=</mo> <msub> <mi>R</mi> <mi>c</mi> </msub> <mrow> <mo>(</mo> <mi>k</mi> <mo>)</mo> </mrow> <mo>+</mo> <msub> <mi>&alpha;</mi> <mi>c</mi> </msub> <mfrac> <mrow> <msub> <mi>&phi;</mi> <mi>m</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>C</mi> <mi>t</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> <mo>)</mo> </mrow> <mo>+</mo> <msub> <mi>&phi;</mi> <mi>t</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>m</mi> </msub> <mo>)</mo> </mrow> </mrow> <mrow> <msub> <mi>C</mi> <mi>c</mi> </msub> <mo>-</mo> <msub> <mi>C</mi> <mi>w</mi> </msub> </mrow> </mfrac> </mrow> </mtd> </mtr> </mtable> </mfenced> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>6</mn> <mo>)</mo> </mrow> </mrow>

其中αw和αc为比例常数,可通过实验测得;式(6)即为非线性闭环控制方程。

3.根据权利要求1所述的一种基于非线性闭环的可调光色LED控制系统,其特征在于:为了提高系统的运行速度和降低成本,将冷、暖白光LED占空比计算结果制成表格存入微处理器中,系统运行时,通过查表中最接近的两组数据值,进行线性插值运算得到实际控制占空比。

4.根据权利要求1所述的一种基于非线性闭环的可调光色LED控制系统,其特征在于:所述的电源模块为微处理器和两个恒流LED驱动控制器提供电能。

当前第2页1 2 3 
网友询问留言 已有0条留言
  • 还没有人留言评论。精彩留言会获得点赞!
1