摘 要:在照明系统中使用LED路灯远程控制系统,不仅可以减少照明时间节省用电,而且可以降低管理开支。本论文运用单片机技术,在分析LED照明技术基础上设计了LED照明远程控制系统,实现计算机对LED灯远程控制。该系统采用ATmega16控制芯片和nRF905无线通信模块组成主机模块和从机模块。首先利用光敏三极管检测外界环境亮度,经过从机模块处理后,通过无线通信模块(nRF905)将数据上传到主机模块,主机模块将数据传输到控制计算机,计算机监控程序根据需要下达控制命令,从机模块利用脉宽调制(PWM)实现对LED亮度的调节,从而实现对照明系统的远程控制。该系统能够实现城市照明的智能控制,具有一定的适用性。56576
毕业论文关键词:照明控制,单片机,无线通信,远程控制
Abstract: With LED street lamp remote control system in a lighting system, not only the lighting time can be reduced and electrical energy can be saved, but also management costs can be reduced. The remote control system of LED lighting is designed based on single chip microcomputer technology and the analysis of LED lighting technology is this thesis, and finally remote control to LED lights can be realized by the computer. The system is made of host module and slave module which ATmega16 controller chip and nRF905 wireless communication module is adopt. Firstly environment brightness is detected by the phototransistor, and the brightness signal processed by the slave module is uploaded to the host module by a wireless communication module (nRF905). Secondly, the data is transferred to the control computer, and control commands according to the need are assigned by the computer monitor program. The LED brightness can be adjusted by the slave module using pulse width modulation (PWM), and the remote control of the lighting system is enabled. The intelligent control of city lighting can be realized by the system which has certain applicability.
Key words: lighting control, single chip, wireless communication, remote control
目 录
1 前言 4
2 方案设计的选择 4
2.1 整体方案选择 4
2.1.1 用调驱动电流来调节LED的亮度 4
2.1.2 采用可控硅对LED调光 5
2.1.3 采用PWM对LED调光 6
2.2 主控芯片的选择 7
2.2.1 51系列单片机概述 7
2.2.2 PIC系列单片机概述 8
2.2.3 AVR系列单片机概述 8
3 硬件电路设计 10
3.1 系统设计框图 10
3.2 单片机最小系统 10
3.2.1 主控芯片ATmega16 11
3.2.2 复位电路 11
3.2.3 晶振电路 12
3.3 液晶显示电路 12
3.4 无线通信模块(nRF905) 14
3.4.1 芯片介绍 14
3.4.2 nRF905 工作模式 15
3.4.3 ShockBurstTM模式 15
3.4.4 单片机与nRF905的硬件连接原理图 16
4 软件设计 16