基于单片机的智能照明系统
罗登,张宏广,潘蒙召
摘要:本文介绍了一套运用单片机控制led 灯智能照明系统,给出了系统的硬件设
计和软件设计,该系统运用光敏电阻采集外界光照强度,运用AD 将模拟信号转化为
数字信号送到单片机中,单片机据此做出判断,并用PWM 波控制LED 灯的亮度。本
系统运用了DS1302 时钟芯片,可以设置显示系统当前时间和星期,采用HS0038 通
用遥控芯片,可以实现遥控功能,即可以通过遥控菜单进入lcd 的不同界面,并在
相应的界面中分别对4 个led 灯的开灯时间,开灯强度以及是否自动调节光强等选
项进行设置。运用SMC1602 液晶模块和4 位数码管显示当前信息,并且还有开机显
示界面,实现了用遥控器随时待机随时开机的功能,显示信息十分详细,界面十分
友好。本系统可以实现智能控制灯光,十分方便,而且节省能源。
关键词:SST 单片机,LED 灯,智能照明,红外遥控,节能省电
An Intelligent Lighting System Based on SST MCU
Abstract: this paper introduces a set of using single-chip microcomputer control
led lamp intelligent lighting system, presented system hardware design and
software design, this system using photoconductive resistance gathering outside
light intensity, using ADC analog signal into a digital signal to the microcontroller,
SCM, and correspondingly make judgment PWM wave to control led lamp
brightness. This system using a DS1302 clock chip, can set display system, the
current time and week HS0038 universal remote control chip, can the SCM, remote
controlled by SMC1602 LCD module and four digital pipe display the current
information, has the boot, standby, interface, show very detailed information, the
1
interface is very friendly. This system can realize intelligent control lights, is very
convenient, and save energy.
Keywords: SST microcontroller, LED lamp, intelligent lighting, infrared remote
control, energy saving
正文:
本系统运用SST51 单片机对LED 等进行智能控制,它以1602 液晶模块作为主
要显示模块,具有良好的人机交互界面,采用 DS1302 时钟芯片,显示当前时间信
息,并具有可调时间功能,它可以采集LED 周围光强等信息,控制单个或多个LED
的亮度。可以设置每个LED 灯的可调时间范围,LED 灯亮度等级,还可以设置自
动调节功能,它根据不同的外界光强,做出不同的判断,从而做到省电,节约能源
的目的。LED 具有功耗低,寿命长等许多优点,LED 照明与传统卤素低压照明相比
具有许多优势:(1)光源比较集中,1 W 照明所获得的亮度等同于十几瓦卤素灯的亮
度,因此非常节能;(2)LED 灯的寿命比卤素灯长,一般可达几万乃至十万小时;
(3)LED 的结构简单,抗震性能好;(4)无须热启动时间,亮灯响应速度快;(5)工作
电压在6~12 V 之间。基于这些优势,高亮度LED 照明技术日益成为照明的发展趋
势,并可以带来很好的性价比。,本系统运用PWM 波通过三极管驱动 LED ,具有
恒流稳定不闪烁效果,PW