1、 毕 业 设 计毕 业 设 计 智能定时电源开关设计智能定时电源开关设计 学生姓名学生姓名: 学号学号: 系系 部:部: 专专 业:业: 指导教师:指导教师: 二零一三年六月 自动化 自动化 刘志成 I 智能定时电源开关设计智能定时电源开关设计 摘要摘要 随着家用电器的越来越普及和人们生活节奏的加快,人们对电器的依赖性进一步 提高,对电器的定时需求也进一步加大。智能定时电源开关可以实现人为地设置电源 的开通关断时间,这样就可以实现用电设备的通电开启与关闭的人为控制,在方便人 们的同时又节省了大量电能 本文介绍了一种基于 STC89C52RC 单片机的智能定时电源开关设计方案,该系统 是通过 S
2、TC89C52RC 的定时器与中断设计一段时间的倒计时,当倒计时到了预设的时 间继电器就会接通,相应的电器就会开始工作,时间结束继电器关闭,电器也停止工 作。本设计通过程序的循环设计可以实现倒计时的无限重复,即第一次倒计时结束后 会自动复位,继续下一轮的倒计时,所以一旦开始工作,无需人为的其他任何操作就 可以实现时间无限制的循环工作,真正实现智能、定时。 关键词: STC89C52RC,定时器,数码管,继电器 II A Design Of Smart Timing Power Switch Abstract With the increasingly popularity of the hou
3、sehold appliances and people life rhythm speeding up, people for the dependence of the electrical appliances to further improve, further intensify the timing requirements for appliances. Smart timing power switch can be achieved artificially set the opening of the power turn off time, so that it can
4、 be opened and closed electricity of electrical equipment of artificial control, at the people at the same time convenient and saves a lot of energy. In this paper, a intelligent timing power switch design scheme based on STC89C52RC single-chip microcomputer, the system is through the STC89C52RC cou
5、ntdown timer and interrupt design for a period of time, when the countdown to the appropriate relay will switch on and the corresponding electrical appliance will start to work, time relay closed the end of the electric and stop working. This design can be achieved through the program loop design in
6、finite repetition, the countdown will automatically reset after the end of the countdown for the first time, continue to the next round of the countdown, so once you start working, without any other operation can be achieved artificially time unlimited cycle work, truly realize intelligent, timing. Key Words:Key Words: STC89C52RC, Timer,Nixie,Tube,Relay III 目录目录 第1章 绪论 .1 1.1 智能定时电