The basic function of Smart Home is in a sub-district, to set up a communication network.For the transmission of various information datas provides necessary path,, realize all household electrical appliances and equipment are controlled and monitored through relevant hardware and topworks.The Smart Home terminal is the important component part of sub-district intelligent domestic system. not only control the operation conditions of various electrical equipment in the family and the security monitoring in the family. can focus on a management or control center through network again; The center provides public information resource, perhaps to each resident family concentrated security monitoring is provided.The Smart Home terminal plays a part a hinge in whole intelligent domestic system.A critical function module at Smart Home terminal is exactly a communication module.
The present invention adopts the ST series monolithic original fixed mechanical formula switch to be changed the switch of wireless remote control type.Utilize wireless remote control technology to send signal.Such Digiplex combines the unlatching of the light fixture of a controller in just can the pulpit, so not only attractive in appearance and practical can the use very easily again.
Control system is made up of wireless sending module, wireless reception module and Switching Power Supply control module 3 parts. and its system constitutes shown in accompanying drawing 1.
Wireless sending module be responsible for sending to a certain road load circuit open and close instruction, receiver module is responsible for receiving the instruction from sending module, then instruction is transferred to the processor of Switching Power Supply control module.Processor is resolved the disconnection and the closure of the relay of back control switching module to instruction, thereby reaches the purpose to the control of electric power supply smart.
The wireless sending module design: sending module mainly is made up of the wireless signaling chip of HS1527, SAW filter, pilot lamp and filtering circuit etc., and sending module is operated as telepilot, and circuit diagram is shown in accompanying drawing 2.When pressing different keys K, the signaling chip will send different coding through antenna, and coding is transferred to control module dissection process by receiver module with coding to receiver module through antenna transmission, and sending module supply voltage 12V is battery-powered.
The wireless receiving module design: wireless receiving module is made up of two parts; Power pack is made up of LNK304DN and peripheral circuit; This circuit can convert the 220V alternating voltage to direct current 5V voltage, gives the processor power supply of receiver module and control module respectively, and circuit diagram is shown in accompanying drawing 3.
The wireless receiving part is mainly formed the superheterodyne reception module by decoding chip SYN500R, crystal oscillator and peripheral circuit; Receiver module is responsible for receiving the coding from sending module; Then coding is transferred to processor processes; Through amplifier signal is amplified after the processor processes, the opening and closing of pilot relay then, the receiving unit circuit diagram is shown in accompanying drawing 4.
The control module design: control module is mainly formed Switching Power Supply by processor single-chip microcomputer, relay and peripheral cell, and the con termination goes into to exchange power for illumination, and AC-L and AC-N be incoming transport electricity live wire and zero line respectively.OUT end connects load, and this system can control multichannel loading, and this control module has connected a relay and controls one tunnel load in the experiment, and the control module circuit diagram is shown in accompanying drawing 5.
The software modular construction, ST VisualDevelop development environment is adopted in master routine workflow software exploitation, uses the programming of C language module. bring great convenience as system debug.
After single-chip microcomputer powered on, each module initialization comprised clock initialization, port initialization and initialization of variable.Program got into major cycle after initialization was accomplished. and carry out remote control decoding program and button determining program, when not having button to press and not having remote-control data, remote control decoding program and button determining program are carried out in circulation.After operation, program entering pattern is judged state.Single-chip microcomputer is deposited the remote keying data in the EEPROM of inside, reaches the not purpose of obliterated data of power down, and when the remote keying that meets was pressed, corresponding light fixture was opened or extinguished, after operation is accomplished.Program gets into major cycle once more, carries out remote control decoding program and button determining program. and its process flow diagram is shown in accompanying drawing 6.