Вы находитесь на странице: 1из 3

Intelligent Residential Security Alarm and Remote Control System Based On Single Chip Computer

LIU Zhen-ya, WANG Zhen-dong, CHEN Rong,


Science school, Jiangxi Institute of Education,

Jiangxi 330029, China

WU Xiao-feng
Nanchang Hangkong University ,Jiangxi 330031,China
AbstractThis paper presents intelligent residential burglar alarm, emergency alarm, fire alarm, toxic gas leakage remote automatic sound alarm and remote control system, which is based on 89C51 single chip computer. The system can be automatic alarm, automatic calling the police hotline number. It can be used voice alarm and show alarm occurred address. It can set up and modify user password. It can be recordable and voice suggestion. It can be used telephone remote control electrical power. The alarm system has design innovation, multiply function, low cost, high reliability and so on.

dial-up telephone[2]. It directly parallels on the telephone lines, then may be used. Before used, user will be required to install the detection device in place where being watched by people. It must be set up alarm telephone number, recorded voice alarm. The alarm system has design innovation, multiply function, low cost, high reliability and so on.
SYSTEM COMPONENT II. Intelligent residential security alarm and remote control system constitutes as shown in figure 1. The system is through telephone interface circuit and telephone network to link up. 89C51 single chip computer dominates by MT8880 Dual Tone Multi-frequency (DTMF) codec with the telephone network to exchange information[3]. When the detection of dangerous situations, the dangerous situation coded signal transfer from the corresponding detection module through the antenna to master chip. The master chip brings the corresponding alarm information according to received signal. This part is to complete by the voice interface circuit, which uses ISD1420. After users call the number of system, users can control appliances according to sound by the voice interface circuit. The system components are made up of detecting circuit, wireless transmitter-receiver circuit, telephone interface, voice circuit, DTMF codec circuit, telephone signal detection circuit and the main control circuit. Each module is described as follows:

I.

INTRODUCTION

With the computer technology and control technology and communicational technologys development, peoples living standard has improved increasingly. People's living conditions have changed, Such as the living environments security and how comfortable they feel. So the intelligent residential buildings automatic emerge as the times require. Intelligent residential must have safety precautions, anti-theft alarm, fire alarm, toxic gas leakage automatic alarm and emergency call. It is able to implement remote control for the key equipment power. In recent years, with the progress of technology and economy, the electronic anti-theft alarm system has rapid development and a very wide application. Now it does not only apply in many important government departments, but also apply in the family. In-depth study on various alarm device, we have designed intelligent residential security alarm and remote control system on the basis of single chip computer. The system is based on 89C51 single chip computer, has intelligent residential burglar alarm, emergency call alarm, fire alarm, toxic gas leakage automatic alarm and remote control[1]. It is able to call the police hotline number. It is able to use voice alarm and show alarm occurred address. Users can set up and modify password for it. It can be recordable and voice suggestion and make use of the telephone to remote control. Calling when is not at home, it can use password to enter remote deployment and remote control the power of electronic appliance. The system makes use of communication equipment to realize multi-channel detection, scene alarm, emergency alarm, fire alarm and toxic gas leakage automatic alarm. It realizes remote voice alarm function through the automatic

fig.1 system architecture chart A. Detecting Circuit The part circuit is as the detection part of the whole system, used to detect theft case, fire, toxic gas leakage and emergency call signals. Theftproof detection is to complete through pyroelectric infrared sensor. Sensors are installed on

978-1-4244-1718-6/08/$25.00 2008 IEEE

Pg 159

the balcony, windows and other place where thieves are easy to enter. The part circuit is at the ready state under normal circumstance. Sensors catch theft information when someone enters the scope of the surveillance. Then, wireless module will send the information to the 89C51 single chip computer. The detection of fire and toxic gas is to complete by the corresponding detection sensors, emergency call signal is sent from user hand-hold remote control. B. Wireless Transmitter-receiver Circuit[4] The transmitting and receiving circuit of the part makes use of CMOS manufacturing process produced by a low cost PT2262/PT2272 wireless remote control module. The operating frequency of it is 2 MHz and the communication distance of it is 100 meters above. Under normal circumstances, transmitting and receiving modules are in dormant status. The module is in non-dormant status when be in danger, then coded signal is transmitted. The receiving module has received high-frequency signal decode, generating interrupt signal at the same time. C. Telephone Interface Figure 2 shows telephone interface circuit. The phone lines normal is above 48V DC voltage and optocoupler is not conducting. When the phone lines are ringing signal which is 253V sine wave, Optocoupler is conducting, generating interrupted signal to the mainframe. The relay will be connected to J1,after mainframe detected ringing signal many times, then load resistor connected to a telephone line, that computer to simulate the extraction process. Since then, the system access DTMF signals from the TONE of coupled transformer, transmits voice signals from VOICE of coupled transformer. To disconnect the system, the system rings off.

The telephone signal detection circuit uses pulse reshaping circuit design. The signal must be amplified by the signal amplifier circuit, then, to generate square wave signals to main control chip by comparator. Phone signals including dial tone, busy tone, call waiting tone, ring back tong, network busy tone relies on software to identify. G. The Main Control Circuit The system adopt 89C51 chip as main control chip, the main controller call by detecting ring tone. Tone control circuits broadcast voice tone, to coordinate the competence of users who have complete remote control electrical appliances. On the other hand, Mainframe controls dial-up circuit given the preset number according to receiving alarm information. According to the alarm type of telephone sound, determine to call police or tell user the information. User may preset passwords, telephone number and record, and so on. III. SYSTEM SOFTWARE DESIGN System software is composed of main program, remote control subroutine, warning subroutine. In order for the system in his idle time to enter a dormant mode, all the tasks are completed in interrupted service routine. A. Main program design Figure 2 shows main program flow chart. It mainly accomplishes initialize work, then the system enters a dormant mode. Whether there is password input or imported alarm. The results are processed accordingly. A method of determining whether to provide a user with access to the security system, enter a user password for verification by a program in a computing device. When valid user leaves, the main program waits for some time, automatically enters the maximum security state. The main program regular calls watchdog handling procedure, in order that the system is not normal reset.

fig. 2 Telephone interface circuit D. Voice Circuit The voice circuit of system is used to generate alarm information and hint information. Using specialized voice integrated chip ISD1420, which provides 20 seconds recording time. Using subsection record, master audio recorder provides the starting address. E. DTMF Codec Circuit Using MT8880 codec chips, to complete dial up function and decode passwords and control commands which are sent by users. F. Telephone Signal Detection Circuit

fig.3 main program flow chart

Pg 160

B.

Remote Control Modules When there is a ringing signal, remote control modules generate external interrupt. The number of the ring counts in interruption procedure, if the number is more than six times, the system hangs off, broadcasts hint tone to the telephone network. Then checking user passwords, if passwords are valid, user may control the work of electronic appliances. And the times of password input are limit. Check whether connection is overtime or not, hang up if it is overtime. Its flowchart is shown in figure 4.

must know the characteristic of signal tone.


IV. THE SYSTEM TESTING SHOULD MEET THE FOLLOWING REQUIREMENT

a. Guard against theft and alarm system Be able to dial preset telephone number and alarm telephone number, tell people by phone tone where the accident has happened. b. Emergency alarm Be able to dial preset telephone number and emergency telephone number, tell people by phone tone where the accident has happened. c. Fire alarm and record hint Be able to dial preset telephone number and fire alarm telephone number, tell people by phone tone where the accident has happened. And there is toxic gas leakage automatic alarm and emergency call. d. Be able to set up password and alarm telephone number, then modify them e. Remote control the power of appliances
CONCLUSION

fig.4 remote control flowchart C. Remote Alarm Module An interrupt handler of remote alarm, also known as an interrupt service routine (ISR), is a callback subroutine in an operating system or device driver whose execution is triggered by the reception of an interrupt. When receiving module receives signals, main controller generates interruption, is out of dormant. Proceedings interrupted in this way shall continue from the point where they were interrupted, if making the interrupt trigger. For example, when the system withdraws from a defend position, the system ignores the security which has received alarm signals. Kinds of signals coding is shown in table 1[5]. table 1 signals coding

This paper presents intelligent residential burglar alarm, emergency alarm, fire alarm, toxic gas leakage remote automatic sound alarm and remote control system, which is based on 89C51 single chip computer. The system communicates with terminal through public telephone network and mobile network, is able to dial preset telephone number and alarm telephone number automatically. We know what has happened according to tone dialer and where has happened. We can set up and modify passwords, be able to record and tone hints. We can use telephone or mobile phone to lay guards, withdraw guards, remote control the power of appliances. The alarm system has design innovation, multiply function, low cost, high reliability and so on. The system enhances the level of intelligent alarm system. REFERENCES
[1] Dusa, A, Deconinck, G, Belmans, R.Communication system for intelligent residential electrical installations.2004 IEEE pes power systems conference&exposition.2004,vols 1-3:269-274 [2] Li, GH, Zhao, J, Wang, Z.Research on forest fire detection based on wireless sensor networkWCICA 2006: sixth world congress on intelligent control and automation.conference proceedings.2006,vols 1-12:275-279 [3] Vazquez, D, Huertas, G, Avedillo, MJ, et al.A LP-LV high performance monolitic DTMF receiver with on-chip test facilities.P SOC PHOTO-OPT INS,2003,5117: 298-309 [4] CRC Press LLC. Handbook of Antennas in Wireless Communications,2002 [5] SusopA.R.Garrod, RobortJ.Borns. Digital Logic-Analysis, Application& Design. HoltRinehart and Winston,Inc,199114

After dialing has finished, we must judge by phone tone whether the call has been put through. If not, we want to repeat the dialing. We just hang up the telephone then repeat, otherwise, play alarm information to the other. The function is to complete by signal tone detection routine. System must identify signal tone, in order to identify the signal tone, we

Pg 161