I基于 PLC 控制的自动断电插排摘 要 家电长期的待机不仅引起巨大的能源浪费,而且使得排插的负荷越来越大,带来了非常严重的安全隐患。同时,电器的使用寿命大大缩短。本设计制作了具有定时及智能感应功能的插座。其不仅你不了现实生活中普通插座功能的不足,还为人们的生活带来了极大的便捷。本系统由单片机最小系统、QC12864B 液晶屏、HC-SR501 及继电器等几个模块组成。通过外设键盘对与继电器相连的排插进行定时、延时设置,使其可以按照我们的意愿在相应的时间通断。或由 HC-SR501 热释电红外传感器模块,当感应到生物发出的红外线而输出电信号进而触发 SCT89C51 单片机的外部中断引脚,自动控制排插的通断。由 LED 指示灯指示工作模式并将工作数据通过 LCD液晶屏显示。软件设计使用 keil uvision4,各个功能的选择菜单界面通过 QC12864B 液晶屏显示,配合按键实现多各个功能之间的选择与切换,使该系统能够有个友好的界面。根据需要实现的功能用 C 语言完成底层驱动和各子系统程序的编写和调试。使外接继电器可以按照一定的规律工作,即可以达到智能控制的目的,又在很大程度上起到节能的作用。 关键词:STC89C52;排插;SH-RF501;DS1302II湖南工业大学本科毕业设计(论文)ABSTRACTElectrical appliances on standby for a long time not only cause huge waste of energy, and make the strip load more and more big, has brought the serious security hidden danger.At the same time, greatly reduces the service life of the appliance.This design which has the function of timing and intelligent induction socket.Its not only you are not the real life of ordinary socket function is insufficient, also brought great convenience for people's life.This system by single chip microcomputer minimum system, QC12864B LCD screen, HC - SR501 and relay of several modules.By a peripheral keyboard connected to the relay platooninsert timing, delay set, can make it according to our wishes in the corresponding time on and off.Or by the HC - SR501 pyroelectric infrared sensor module, when sensing infrared and output electric signal ...