A kind of household intelligent control and safety-protection system
Technical field
What the present invention relates to is a kind of household electrical appliance, especially a kind of household intelligent control and safety-protection system.
Background technology
In the prior art, technique known is No. 200810113783.9 patents that State Intellectual Property Office authorizes, this patent disclosure control of a kind of telephone remote and warning device, data access-in management chip realizes that ring detects in this technical scheme, the automatic picking off and hanging machine, and with telephone line and double-tone transceiving chip, speech chip and single-chip microcomputer are communicated with frequently.Single-chip Controlling Ring-down count, dislodging machine and double-tone be transceiving chip, speech chip frequently, utilizes built-in EEPROM storage and revises password and dial the number outward.Password check is confirmed after the user identity, the instruction of reception user key-press, and issue gateway by serial ports, realize tame electric control and status poll, when gateway is sent alerting signal, single-chip microcomputer is by the condense code of serial ports reception from webmaster, read among the EEPROM this outer of code correspondence that condense and dial the number, dialing automatically promptly realizes reporting to the police and control by telephone line, control mode is single relatively, is unsuitable for extensive popularization.This is the existing in prior technology weak point.
Summary of the invention
Purpose of the present invention is exactly at the existing in prior technology deficiency, and provide the technical scheme of a kind of household intelligent control and safety-protection system, the system of this scheme has had the function of user keystroke control and alert automatic alarm, and can realize remote wireless short message control.
This programme is realized by following technical measures: a kind of household intelligent control and safety-protection system, include main control chip, the GSM SMS module that is connected with main control chip, radio receiving transmitting module, voice module, LCD MODULE, DTMF decoder module, dtmf code module, external memory storage, security alarm equipment and key-press matrix module, the characteristics of this programme: also have a simulation off-hook module to be connected with main control chip, described voice module is connected with simulation off-hook module;
Described main control chip adopts two single-chip microcomputer STC89C52, the built-in house dog of STC89C52 single-chip microcomputer, carries the outer RAM of 512bit sheet and conveniently carries out mass data and handle and store, and support serial ports online programming, also the FLASH program storage of built-in 8K; First single-chip microcomputer STC89C52 is used to receive the household appliance control instruction of handling GSM SMS module and radio receiving transmitting module, the data of access external memory storage, and control simulation off-hook is controlled the broadcast of voice module, and keeps communicating by letter with single-chip microcomputer two; Second single-chip microcomputer STC89C52 is used to receive the alerting signal of security alarm equipment, receives the key value that the key-press matrix module is returned, and the encoding and decoding of DTMF are controlled, handled in the demonstration of control LCD MODULE, and keep communicating by letter with first single-chip microcomputer.
Described simulation off-hook module comprises the bridge rectifier circuit that is connected with the landline telephone interface, the positive pole of bridge rectifier circuit is connected with the collector of a NPN triode, the emitter of the one NPN triode is connected with the collector of the 2nd NPN triode, the emitter of described the 2nd NPN triode is connected with the negative pole of bridge rectifier circuit by first resistance, the minus earth of bridge rectifier circuit, the collector of a described NPN triode is connected with the collector of the photodiode of photoelectrical coupler, the base stage of the one NPN triode is connected with the emitter of the photodiode of photoelectrical coupler, the positive pole of the light emitting diode of described photoelectrical coupler is connected with supply voltage VCC by second resistance, the negative pole of the light emitting diode of photoelectrical coupler is connected with first single-chip microcomputer, when this pin output low level of single-chip microcomputer, promptly simulate off-hook, the 3rd resistance also in parallel between the collector of described the 2nd NPN triode and the base stage, the base stage of described the 2nd NPN triode is connected with voice module by an electric capacity, voice signal is transported on the telephone wire after amplifying through the 2nd NPN triode; The positive pole of bridge rectifier circuit is connected with the positive pole of first stabilivolt, be connected by the negative pole of the 5th resistance after second stabilivolt and the 4th resistance parallel connection with first stabilivolt, the minus earth of described second stabilivolt, the positive pole of second stabilivolt is connected with first single-chip microcomputer, give the single-chip microcomputer ringdown, be used for counting.
Described GSM SMS module adopts SIM300D, and SIM300D receives SMS (SMS), is transferred to first single-chip microcomputer by serial mode, handles for single-chip microcomputer.Described radio receiving transmitting module adopts PT2272/PT2262, described voice module adopts WT558D, described LCD MODULE adopts liquid crystal display LCD1602, the DTMF decoder module adopts MT8870, the dtmf code module adopts HT9200, external memory storage uses ATM24C02, and security alarm equipment contains smoke alarm, gas leak detector, gate inhibition's device, infrared correlation, infrared eye etc.
Described radio receiving transmitting module is connected with a slave by wireless mode, and described slave comprises wireless receiving module, and described wireless receiving module is connected with the 3rd single-chip microcomputer by decoder module, and the 3rd single-chip microcomputer is connected with relay driving module.After wireless receiving module receives household appliance control instruction, deliver to the 3rd shell fragment machine, the 3rd single-chip microcomputer is controlled corresponding relays again, realizes the switch of household electrical appliances.Described the 3rd single-chip microcomputer adopts STC12C2052.
The beneficial effect of this programme can be learnt according to the narration to such scheme, because this programme is based on mobile communications network and fixed communication network, can realize that the operator is not limited in the particular environment control to the electrical appliance in the family, and to the acquisition of security alarm information in the family.The operation of wired home control section is very simple.And consider that the residing environment of user is (in family; Same city; Out on tours, go on business etc.) design economic and practical mode of operation respectively.As be in, can be convenient to use Digiplex and operate; Same city can use mobile phone or landline telephone to dial the landline telephone that the design connects, and can operate accordingly according to voice suggestion; Go out to send note for design with mobile phone if control electrical appliance in the family, carry out control corresponding, and operate and to receive that successfully one is sent " OK " note from system.If occur situation in the family, system will differentiate whether belong to dangerous automatically, if, will be by sound and light alarm, and dial the telephone number that prestores automatically, which kind of dangerous situation appears in voice suggestion.Accomplish accurately not miss.This shows that the present invention compared with prior art has outstanding substantive distinguishing features and obvious improvement, the beneficial effect of its enforcement also is conspicuous.
Description of drawings
Fig. 1 is the structural representation of the specific embodiment of the invention.
Fig. 2 is the structural representation of slave.
Fig. 3 is the circuit diagram of simulation circuit for answering.
Among the figure, 1 is first single-chip microcomputer, and 2 is second singlechip, 3 is the GSM SMS module, and 4 are the simulation circuit for answering, and 5 is voice module, 6 is the DTMF decoder module, and 7 is the dtmf code module, and 8 is fixed telephone network, 9 is external memory storage, and 10 is radio receiving transmitting module, and 11 is security alarm equipment, 12 is the key-press matrix module, and 13 is LCD MODULE, and 14 is wireless receiving module, 15 is decoder module, and 16 is the 3rd single-chip microcomputer, and 17 is relay driving module.
Embodiment
For clearly demonstrating the technical characterstic of this programme,, and, this programme is set forth in conjunction with its accompanying drawing below by an embodiment.
By accompanying drawing as can be seen, household intelligent control of this programme and safety-protection system, include main control chip, the GSM SMS module 3 that is connected with main control chip, radio receiving transmitting module 10, voice module 5, LCD MODULE 13, DTMF decoder module 6, dtmf code module 7, external memory storage 9, security alarm equipment 11 and key-press matrix module 12, simulate off-hook module 4 in addition, be connected with main control chip, described voice module 5 is connected with simulation off-hook module 4;
Described main control chip adopts two single-chip microcomputers, single-chip microcomputer adopts STC89C52, the built-in house dog of STC89C52 single-chip microcomputer, carry the outer RAM of 512bit sheet and conveniently carry out mass data and handle and store, and support serial ports online programming, also the FLASH program storage of built-in 8K; First single-chip microcomputer 1 is used to receive the household appliance control instruction of handling GSM SMS module 3 and radio receiving transmitting module 10, the data of access external memory storage 9, the simulation off-hook of control simulation off-hook module 4 is controlled the broadcast of voice module 5, and keeps communicating by letter with second singlechip 2; Second single-chip microcomputer 2 is used to receive the alerting signal of security alarm equipment 11, receives the key value that key-press matrix module 12 is returned, and the encoding and decoding of DTMF are controlled, handled in the demonstration of control LCD MODULE 13, and keeps communicating by letter with first single-chip microcomputer 1.
Simulation off-hook module 4 comprises the bridge rectifier circuit that is connected with fixed-line telephone network 8 interfaces, the positive pole of bridge rectifier circuit is connected with the collector of a NPN triode Q1, the emitter of the one NPN triode Q1 is connected with the collector of the 2nd NPN triode Q2, the emitter of described the 2nd NPN triode Q2 is connected with the negative pole of bridge rectifier circuit by first resistance R 1, the minus earth of bridge rectifier circuit, the collector of a described NPN triode Q1 is connected with the collector of the photodiode of photoelectrical coupler U1, the base stage of the one NPN triode Q1 is connected with the emitter of the photodiode of photoelectrical coupler U1, the positive pole of the light emitting diode of described photoelectrical coupler U1 is connected with supply voltage VCC by second resistance R 2, the negative pole of the light emitting diode of photoelectrical coupler is connected with first single-chip microcomputer, when this pin output low level of single-chip microcomputer, promptly simulate off-hook, the 3rd resistance R 3 also in parallel between the collector of described the 2nd NPN triode Q2 and the base stage, the base stage of described the 2nd NPN triode Q2 is connected with voice module 5 by a capacitor C 1, voice signal is transported on the telephone wire after amplifying through the 2nd NPN triode Q2; The positive pole of bridge rectifier circuit is connected with the positive pole of the first stabilivolt VD1, the second stabilivolt VD2 is connected with the negative pole of the first stabilivolt VD1 by the 5th resistance R 5 with the 4th resistance R 4 backs in parallel, the minus earth of the described second stabilivolt VD2, the positive pole of the second stabilivolt VD2 is connected with first single-chip microcomputer 1, give the single-chip microcomputer ringdown, be used for counting.
Described GSM SMS module 3 adopts SIM300D, and SIM300D receives SMS (SMS), is transferred to first single-chip microcomputer by serial mode, handles for single-chip microcomputer.Described radio receiving transmitting module 10 adopts PT2272/PT2262, described voice module 5 adopts WT558D, described LCD MODULE 13 adopts liquid crystal display LCD1602, DTMF decoder module 6 adopts MT8870, dtmf code module 7 adopts HT9200, external memory storage 9 uses ATM24C02, and security alarm equipment 11 contains smoke alarm, gas leak detector, gate inhibition's device, infrared correlation, infrared eye etc.
Described radio receiving transmitting module 10 is connected with a slave by wireless mode, described slave comprises wireless receiving module 14, described wireless receiving module 14 is connected with the 3rd single-chip microcomputer 16 by decoder module 15, and the 3rd single-chip microcomputer 16 is connected with relay driving module 17.After wireless receiving module 14 receives household appliance control instruction, deliver to the 3rd single-chip microcomputer 16, the three single-chip microcomputers 16 and control corresponding relays again, realize the switch of household electrical appliances.Described the 3rd single-chip microcomputer 16 adopts STC12C2052.
During native system work, main control chip detects and has or not steering order input, the input of security alarm signal, button input.If any the command signal input, check which kind of control mode input, if for the SMS control mode enters, promptly GSM SMS module 3 is received the control note, checks at first whether the password in the note is correct, if mistake is not carried out.Correctly then carry out corresponding action, by radio receiving transmitting module 10, transmit control signal to slave, after the wireless receiving module 14 of slave receives control signal, after the processing through the 3rd single-chip microcomputer 16, the control corresponding relays realizes the switch of a certain road household electrical appliances, operates successfully and then returns " OK " note by GSM SMS module 3.
If be the input of landline telephone voice control mode, at first detect ringing number by simulation off-hook module 4.Ringing number does not reach pre-determined number, and called subscriber's on-hook or owner's received call are described, promptly returns original state.If ringing number reaches pre-determined number, first single-chip microcomputer 1 sends voice reminder by voice module 5 simultaneously by control simulation off-hook module 4 simulation off-hooks.The user operates according to voice reminder.When operation overtime or called subscriber's on-hook, i.e. automatic hand-up.
If be the Digiplex control mode, control chip receives, handles the instruction of radio receiving transmitting module 10 inputs, and sends the corresponding household electrical appliance of instruction control by radio receiving transmitting module 10.
If be the security alarm input, control chip receives, handles the data that security alarm equipment sends over, and by calling mode, alert among the verbal announcement host.
If be the button input, by key-press matrix module 12 this secret of input sign indicating numbers.After password is correct, can carry out next step setting.Control chip receives the input signal of key-press matrix module 12, dials relevant telephone number by fixed-line telephone network 8.
The present invention is not limited in above-mentioned embodiment, and the variation that those of ordinary skills make in essential scope of the present invention, remodeling, interpolation or replacement also should belong to protection scope of the present invention.