毕业论文

打赏
当前位置: 毕业论文 > 自动化 >

AT89S52单片机智能LED照明系统设计+电路图+源程序

时间:2018-07-29 16:07来源:毕业论文
通过对LCD1602显示芯片编程来显示所采集到的实际光强值,再通过光强值控制单片机的计数器,得到不同的PWM信号,然后通过相关电路驱动LED光源发光。最后在AVR fighter环境下将自动生成

摘要基于对LED以及光纤测径技术背景的广泛研究,本文主要从硬件设计,软件设计以及系统调试三个方面对智能LED照明系统进行了阐述。硬件设计基于Protel99se开发环境,由中央处理模块、环境光传感及AD采集模块、LCD显示模块、LED驱动模块以及单片机程序串口下载模块等组成。软件开发基于Keil uv 4开发平台,模块功能通过C语言编程实现:通过设置AD 转换芯片TLC0834的控制寄存器对光敏三极管获取的光强信号进行模-数转换,通过对LCD1602显示芯片编程来显示所采集到的实际光强值,再通过光强值控制单片机的计数器,得到不同的PWM信号,然后通过相关电路驱动LED光源发光。最后在AVR fighter环境下将自动生成的HEX文件下载到AT89S52单片机的FLASH程序存储器。基于上述过程,制作了硬件电路,进行程序编写。实验证明,本电路能够实现稳定光强输出。26421
关键词  AT89S52单片机  LED  PWM  AD采集
毕业论文设计说明书外文摘要
Title    Design of The Intelligent LED Lighting System   
Abstract
Based on the research of LED and Optical fiber diameter measurement technology, We discussed the hardware and software design, system debugging of the intelligent LED lighting in this paper. The hardware of the system consists of the central processing module, AD sampling module, display module, driver module and serial download module whose designs are implemented in Protel199se.The software design is carried out in the environment of the Keil uv4 in C programming language. Through setting the control registers of TLC0834,the intensity of the light which is getting from the photosensitive triode is converted into digital signals. The display of the real intensity of the light is realized through programming of LCD1602.Through controlling the counter of the AT89S52 by the real intensity, we can get different PWM signals to drive the LED. Then the HEX file generated in uv4 can be loaded into the FLASH memory of AT89S52 under AVR fighter. The circuits are made and program is designed based on the above. The experiments showed that LED can change with its lighting as predicted.
Keywords  AT89S52 Single Chip   LED  PWM  AD Sampling 
1  绪论    1
1.1  LED技术的发展现状    1
1.2  光纤直径测量的研究背景及方法    2
1.3  设计内容及要求    2
1.4  系统方案设计    2
2  硬件系统    4
2.1  硬件设计    4
2.2  硬件制作    10
3  软件系统    13
3.1  软件设计    13
3.2  AD采集模块    14
3.3  显示模块    14
3.4  驱动模块    14
4  系统调试    16
结  论    18
致  谢    19
参考文献20
附录A  系统程序    22
1  绪论
1.1  LED技术的发展现状
LED(Light Emitting Diode)即发光二极管,以固体半导体芯片为发光材料,在正向偏压作用下会发生载流子符合释出多余能量,引起光子发射,产生可见光。
目前LED在全彩显示屏,以手机为代表的小尺寸背光源,室内装修灯饰,景观照明以及汽车车灯方面均有一定应用,其中在背光源方面,逐步取代了过去的冷阴极荧光灯[1],得到了大规模的广泛应用[2],白光LED更是在新一代灯具中被给予了很大期待[3]。
目前市场上的照明系统,多采用人工控制的模式,没有从根本上实现智能节能的目的[4]。因此调光技术也需要应用于照明控制中[5]。有些场合需要实现能源的节约,那么就需要LED的亮度能够根据环境实现合适的调节,例如教室中的照明系统,不仅需要根据环境光强实现亮度调整,还需要根据红外检测来实现“人走灯灭”的效果。而有些场合需要实现照明的稳定,例如在进行光纤预制棒的纤芯直径测量时,为了保证成像质量并满足CCD的峰值响应区间,要求LED光源能够根据自身的光强实现亮度的调节,以保证照明的稳定性。 AT89S52单片机智能LED照明系统设计+电路图+源程序:http://www.751com.cn/zidonghua/lunwen_20606.html
------分隔线----------------------------
推荐内容