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 discloses a kind of telephone remote control and warning device; Data access-in management chip realizes that ring detects in this technical scheme, the automatic picking off and hanging machine, and telephone line is communicated with double-tone frequency transceiving chip, speech chip and single-chip microcomputer.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, receives the user key-press instruction, and issues gateway through serial ports; Realize tame electric control and status poll, when gateway was sent alerting signal, single-chip microcomputer received the code that condenses from webmaster through serial ports; Read this corresponding outer dialling the number of code of condensing among the EEPROM, dialing automatically promptly realizes reporting to the police and control through telephone line; Control mode is single relatively, is inappropriate for extensive popularization.This is the existing in prior technology weak point.
Summary of the invention
The object of the invention is exactly not enough to existing in prior technology; And the technical scheme of a kind of household intelligent control and safety-protection system is provided; 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 through 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, and the emitter of described the 2nd NPN triode is connected the minus earth of bridge rectifier circuit through first resistance with the negative pole 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, and the positive pole of the light emitting diode of described photoelectrical coupler is connected with supply voltage VCC through second resistance, and 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, also parallelly connected the 3rd resistance 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 through 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 through 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, gives the single-chip microcomputer ringdown, is used for counting.
Described GSM SMS module adopts SIM300D, and SIM300D receives SMS (SMS), is transferred to first single-chip microcomputer through serial mode, supplies single-chip microcomputer to handle.Described radio receiving transmitting module adopts PT2272/PT2262; Described voice module adopts WT558D; Described LCD MODULE adopts liquid crystal display LCD1602, and the DTMF decoder module adopts MT8870, and 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 through wireless mode, and described slave comprises wireless receiving module, and said wireless receiving module is connected with the 3rd single-chip microcomputer through 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 if control the electrical appliance in the family, can send note for design, carry out control corresponding, and operate and to receive that successfully one is sent " OK " note from system with mobile phone.If occur situation in the family, system will differentiate whether belong to dangerous automatically, if, will be through 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, and 3 is the GSM SMS module, and 4 are the simulation circuit for answering; 5 is voice module, and 6 is the DTMF decoder module, and 7 is the dtmf code module, and 8 is fixed telephone network, and 9 is external memory storage; 10 is radio receiving transmitting module, and 11 is security alarm equipment, and 12 is the key-press matrix module, and 13 is LCD MODULE; 14 is wireless receiving module, and 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, below through an embodiment, and combine its accompanying drawing, this programme is set forth.
Can find out through accompanying drawing; 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 are simulated 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, and the emitter of described the 2nd NPN triode Q2 is connected the minus earth of bridge rectifier circuit through first resistance R 1 with the negative pole 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, and the positive pole of the light emitting diode of described photoelectrical coupler U1 is connected with supply voltage VCC through second resistance R 2, and 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, also parallelly connected the 3rd resistance R 3 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 through 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 through the 5th resistance R 5 with the 4th resistance R 4 parallel connection backs; 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, gives the single-chip microcomputer ringdown, is used for counting.
Described GSM SMS module 3 adopts SIM300D, and SIM300D receives SMS (SMS), is transferred to first single-chip microcomputer through serial mode, supplies single-chip microcomputer to handle.Described radio receiving transmitting module 10 adopts PT2272/PT2262; Described voice module 5 adopts WT558D; Described LCD MODULE 13 adopts liquid crystal display LCD1602, and DTMF decoder module 6 adopts MT8870, and 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 through wireless mode; Described slave comprises wireless receiving module 14; Said wireless receiving module 14 is connected with the 3rd single-chip microcomputer 16 through 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 gets into, 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; Through 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 through GSM SMS module 3.
If be the input of landline telephone voice control mode, at first detect ringing number through 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 through voice module 5 simultaneously through 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 through radio receiving transmitting module 10.
If be the security alarm input, control chip receives, handles the data that security alarm equipment sends over, and through calling mode, alert among the verbal announcement host.
If be the button input, through 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 through 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.