单片机光敏电阻的照明灯控制系统设计+PWM程序
LIGHTING CONTROL SYSTEM DESIGN BASED ON PHOTORESISTOR ABSTRACT
With the rapid development of information technology and social progress as well as the rapid development of urban life, new applications of semiconductor materials are popular LED lighting products. Efficient LED lighting and functional diversification of the requirements is also rising. Lighting not only have lighting effect, but also have extensive function of industry. This paper introduces a set of small smart lights, the lighting system which is based on photosensitive resistance, to solve LED light source for general spectrum insufficiency problem. Its main function is to automatically select the light color. Photoresistor receives different illumination of the light outside to control the three RGY-LED work or not. In other words, a lamp can automatically transform several colors light. It will save the energy sources make our life more modern . The SCM ( Single Chip Micyoco) module is the core of this design. Photoresistor generated different signals by different external illumination. The design first turn analog signals into digital signals.Accroding the digital signals, SCM will release the orders to control RGY-LED work or not.In this way, the purpose is able to choose colors of the light intellectuality.At the same time it can read the light intensity On the LCD panel to regulat the intensity of Lighting system . Such equipment Have extensive application on Greenhouse, birdhouse, bask in phase, circuit board production.
Key words: LED(Light Emitting Diode) Photoresistor SCM LCD
目 录原文请加辣'文'论"文'网QQ324.9114
摘要 I
ABSTRACT II
1前言 1
1.1选题的目的意义 1
1.2国内外研究综述 1
1.3研究目标 1
1.4研究内容 2
1.5关键问题 2
1.6基本思路 2论文网http://www.751com.cn/
1.7研究方法 2
2基于光敏电阻的照明灯控制系统的设计和论证 3
2.1设计要求 3
2.2设计方案 3
2.3方案选取 6
3基于光敏电阻的照明灯控制系统的设计 7
3.1基于光敏电阻的照明灯控制系统的整体电路原理方框 7
3.2电源设计 7
3.3控制电路 7
3.3.1STC12C5A60S2 8
3.3.2信号采集电路 10
3.3.3LCD显示电路 11
3.3.4驱动调光电路 12
4单片机编程 15
4.1程序流程框图 15
4.2信号采集程序 15
4.2.1AD初始化程序 15
4.2.2AD转换程序 16
4.3显示屏程序 16
4.3.1写指令函数 16
4.3.2写数据函数 16
4.3.3显示函数 17
4.3.4对1602液晶的模式进行设置 18
4.4主程序(选择红、绿、黄指示灯的程序) 18
4.5PWM程序 19
5焊接与调试 21
5.1焊接 21
5.1.1制作注意事项 21
5.1.2 实物展示 21
5.2 软件调试 22
5.3 PWM波形测量图 25
6元件清单与性能参数 26
7结论 27
参考文献 29
附录 30
1整体电路设计图 30
2单片机全部程序 31
谢辞 37,2219
[1] [2] [3] [4] [5] [6] [7] 下一页