文档编号:ZD1173 文档字数:20389,页数:55 基于AVR单片机的LED自适应调光传感系统 随着LED照明技术的发展,对LED自适应调光技术的需求更加强烈。本文以AVR单片机中的ATmeage16作为控制器,利用基于I2C(Inter Integrated Circuit)总线的光传感芯片TSL2561采集室内环境光照度,采用脉宽调制(Pulse Width Modulation-PWM)方式调节LED恒流驱动IC(BP2808、LM3404HV、LM3402HV等可根据功率需要选择),进而调节LED的发光亮度,最终维持室内环境光照度在一个设定的水平。同时利用红外人体感应模块采集室内人体信号,实现LED灯开启和关断的智能控制。再利用单总线技术的DS18B20温度传感器采集室内温度和使用LCD1602液晶屏实现室内照度和温度的实时显示,再加按键实现LED亮度的手动控制,最后使用串口通信实现与上位PC的实时通信与控制。本文完成了整套系统的硬件设计和软件编程,重点介绍了ATmeage16通过I2C总线读取光传感器芯片TSL2561数据、传感器数据转换为实际的室内环境照度、PWM信号生成和输出、DS18B20的通讯。 AVR microcontroller based adaptive dimming LED sensor system With the development of LED lighting technology,adaptive LED dimming technology for the needs of even more intense. In this paper, the ATmeage16 AVR microcontroller as a controller,based I2C (Inter Integrated Circuit) bus, light sensing chip TSL2561 acquisition indoor illumination。Using pulse width modulation (Pulse Width Modulation-PWM) LED constant current drive mode regulator IC (BP2808, LM3404HV, LM3402HV so can the power to choose), then adjust the LED's brightness, final light intensity of the indoor environment to maintain a specified level. The human body using infrared sensor module also collected indoor body signal, LED lights turn on and off the intelligent control. Reuse of single-bus technology DS18B20 temperature sensor acquisition and use of the indoor temperature LCD1602 LCD indoor illumination and temperature to achieve real-time display, together to achieve LED brightness button manual control, Together to achieve LED brightness button manual control, and finally use the Serial Communication with the host PC for real-time communication and control. This complete package of hardware and software design, focusing on the ATmeage16 through the I2C bus to read optical sensor chip TSL2561 data, sensor data is converted to the actual illumination of the indoor environment, PWM signal generation and output, DS18B20 communications. 目 录 摘要 I
|
| |
上一篇:基于WINCC组态软件对复杂工程设计.. | 下一篇:基于电动伺服的3D动感游戏平台 |
推荐论文 | 本专业最新论文 |
Tags:基于 AVR 单片机 LED 适应 调光 | 2011-07-15 12:15:44【返回顶部】 |