- 1、本文档共46页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
陕西理工学院毕业设计
第 PAGE I页
路灯控制器
[摘要]:本文介绍的是一种基于AT89C51单片机为基础的路灯控制 \* MERGEFORMAT 系统设计,实现了通信、信号采集、控制与显示等功能。文中详细地描述了控制电路的设计过程,包括:光信号取样电路、LCD显示电路、照明灯控制电路等。对于软件设计主要有路灯逻辑判断与LED显示等程序设计。工作时,光信号取样电路采集光照强弱将信号送到单片机,单片机根据这些信息通过控制电路对照明设备进行开关操作,并实现自动纠错功能,从而实现照明控制,以达到节能的目的。
[关键字]:单片机;检测电路;控制系统
Street lamp controller
Wang *****
(Grade 10,Class 4,Major electronics and information engineering,School of Physics and Telecommunication Engineering,Shaanxi University of Technology,Hanzhong 723000,Shaanxi)
Tutor: Zhu ****
[Abstract]: This paper are introduced the basis of street lamp control system designing based on AT89C51. It realized the communication and signal acquisition, control and display functions. This paper describes the design process of the control circuit in detail, including: light signal sampling circuit, LCD display circuit, lighting control circuit, etc.The software design are include programming of the street lamp logic and LED display.When it worked ,optical signal sampling circuits collected light strength and sent signals to single chip microcomputer,According to these informations,Microcontroller did switch operations through the control circuits of lighting equipment, and realize the function of automatic error correction, So as to realized the lighting control, and achieve the goal of energy saving.
[Key words]: chip microcomputer; detection circuit; control system
目 录 TOC \o 1-3 \h \z \u
);
delay(1000);
while(1)
{
if(strong_weak == 0)
{
power_OnOff = 0;
delay(100);
WriteCommand(0x82);
ShowString();
if ( (power_OnOff == 1) (detection_light == 0) )//自动检错
{
alarm = 1;
WriteCommand(0x01);
delay(100);
ShowString(system error !);
delay (1000);
alarm = 0;
}
}
else
power_OnOff = 1;
delay (100);
}
}
LCD头文件
#ifndef __LCD1602_H__
#define __LCD1602_H__
// LCD1602引脚连接
sbit LCD_RS = P2^0;
sbit LCD_RW = P2^1;
sbit LCD_E = P2^2;
#define LCD_Data P0
void delay(unsigned int t);
void WriteCommand(unsig
文档评论(0)