基于IntB4TJ楼宇控制工具箱,开发一套手动/自动2种模式可选的智能家居照度控制系统,用于“绿色照明”演示实验.系统设计:①综合集成了IntB4TJ平台的可编程控制器、照度传感器及IO端口资源;②在Menta图形化界面下编制控制程序;③应用光耦(PC817)改造遥控器线路,将IntB4TJ输出的10 V/5 V/0 V模拟信号,转化为增亮/保持/减亮指令,实现无线遥控调节LED灯带亮度;④应用H桥驱动(MC33886)实现直流减速电机正/反转,拖动窗帘升/降;应用D触发器(74 HC74)实现电机在停车时刻的反向待命;应用红外对管,并配合调制(NE555)-解调(LM567)电路,实现准确的窗帘限位检测.该系统融合PLC编程、数字电子、无线通信、电机拖动、传感器等多学科知识,并形象演示于迷你住宅模型,教学效果良好.
Based on the IntB4TJ building control toolbox, this paper develops the illuminance manual/automatic control system for the demonstration of the " Green Lighting" application in smart home. In the system design, the programmable controller (PLC) , light transmitter and IO ports of IntB4TJ platform are integrated ; the control programs are developed in Menta graphical environment; the remote controller is modified by employing the optocoupler (PC817) , the IntB4TJ output 10 V/5 V/0 V analog voltage signals are respectively transferred to lux increase/hold/ decrease commands, so that the LED lighting is remotely controlled; H-bridge driver (MC33886) is applied for bidirectional rotation of the DC motor, i. e. , ascending/descending of the curtain; D flip-flop (74HC74) is utilized to ensure the motor reversion once it stops; and the infrared coupler cooperated with the modulation (NE555) - demodulation (LM567) circuit is utilized to detect the lower limit position of the curtain. The proposed system comprehensively employs the knowledge of PLC programming, digital electronics, wireless communication, motor traction, sensor, etc. It could be demonstrated on the mini-house model and plays an active role in the class teaching.