1、 编号: 毕业设计说明书 题 目: 定时通断电源转换器定时通断电源转换器 院 (系) : 电子信息工程系 专 业: 电子信息工程 学生姓名: xx 学 号: xxxxxx 指导教师: xxx 职 称: 助教 题目类型:题目类型: 理论研究 实验研究 工程设计 工程技术研究 软件开发 2014 年 x 月 x 日 摘 要 由于人们节能意识淡薄, 人员离开的时候或者外在光线充足的情况下仍开启使用灯 具,造成大量电能浪费。为解决上述能源浪费和灯具及配套设施损坏快,以及儿童对电 脑的沉迷等问题,本文提出了一种智能开关的设计方法,该设计的定时控制主要是以单 片机 STC89C52RC 作为主控单元,利用
2、其 I/O 接口,定时器,中断系统等资源,通过以 继电器为核心的外围电路控制受控线路,达到定时通断线路的目的。此外,可通过按键 自行设定当前时间及通断时间,并及时显示在 LCD1602 液晶显示器上。软件部分以 C 语 言进行编程, 主要包括 LCD1602 的实时显示以及定时设置和继电器控制等几部分。 最后, 通过用 Dxp99SE 绘制印刷电路板,制作出实物并调试通过。 关键词:STC89C52 单片机;5V 继电器;LCD1602 液晶显示 桂林电子科技大学毕业设计(论文)报告用纸 第 2 页 共 3 页 Abstract Because peoples energy-saving aw
3、areness is weak, is still open, use lamps when staff leave or external light enough, not only will cause a lot of energy waste .In order to solve the energy waste and lamps and ancillary facilities damaged quickly, and the children of computer addiction and other problems, this paper intelligent swi
4、tch, timing control of the design is mainly based on the MCU STC89C52RC as the main control unit, the use of its I/O interface, timer, interrupt system resources, control circuit controlled line through the relay as the core, to achieve the purpose of timing on-off circuit. In addition, by pressing
5、a button to set the current time and the on-off time, and timely display on LCD1602 lcd. Part of the software are programmed by C language, including real-time display LCD1602 and timing setting and relay control circuit.Finally,by using the Dxp99SEprinted circuit board drawing,making the physical and debugging through. Keywords: AT89C52;SCM;5VRelay;LCD1602 桂林电子科技大学毕业设计(论文)报告用纸 第 3 页 共 3 页 目 录 1 绪论 . 1 1.1 课题研究的背景及意义 1 1.2 课题研究的现状及发展趋势 1 2 方案的提出与论证 . 2 2.1 方案的比较.2 2.2 方案的对比.3 2.3 方案的确定.3 3 硬件电路的设计与实现 3