µ±Ç°Î»ÖãºÊ×Ò³ > »ùÓÚµ¥Æ¬»úµÄ»ðÔÖ·ÀµÁ¼à¿ØÏµÍ³µÄÉè¼ÆÓë·ÂÕæ
»ùÓÚµ¥Æ¬»úµÄ»ðÔÖ·ÀµÁ±¨¾¯ÏµÍ³µÄÉè¼Æ
Õª Òª
Ëæ×ÅÉç»áµÄ·¢Õ¹£¬µ¥¸ö¼ÒÍ¥µÄ¾¼Ã»ýÀÛÔ½À´Ô½¶à£¬ÈËÃǶÔÓÚ¼ÒÍ¥ÔÖÇéµÄ·À¿ØÒ²¸øÓèÁËÔ½À´Ô½¶àµÄÖØÊÓ¡£Ä¿Ç°£¬¼ÒÍ¥ÔÖÇéÖ÷ÒªÌåÏÖÔÚ»ðÔֺ͵ÁÇÔÁ½¸ö·½Ã棬Òò´Ë£¬¶ÔÓÚÕâÁ½ÖÖ×´¿öµÄÔ¤·ÀºÍ¼à¿Ø³ÉΪÁ˼ÒÍ¥·ÀÔÖµÄÖØµã¡£±¾ÎľÍÊÇ»ùÓÚÕâÒ»Éç»áÏÖÏóÉè¼ÆÁËÒ»ÖÖ¼òµ¥µÄ·À»ð·ÀµÁϵͳ¡£
±¾ÎÄ·ÖÁ½²¿·ÖÀ´Éè¼Æ£¬Ò»²¿·ÖΪ»ùÓÚAT89S52µ¥Æ¬»úµÄ»ðÔÖ¼à¿ØÏµÍ³£¬Äܹ»¼°Ê±¼à²âµ½ÏµÍ³¹ÊÕϺͻ·¾³ÖÐÓÐÎÞ»ðÔÖ£¬»ðÔÖÒ»µ©·¢Éú½«ÊµÏÖÉù¹â±¨¾¯£¬²¢²ÉÈ¡ÓÐЧ´ëÊ©¿ØÖÆ»ðÇéµÄ·¢Õ¹£¬½«»ðÔÖÏûÃðÔÚÃÈѿ״̬£¬ÒÔÈ·±£ÈËÉí²Æ²ú°²È«²¢×î´óÏ޶ȵؼõÉÙËðʧ¡£ÁíÒ»²¿·ÖΪ»ùÓÚAT89C51µ¥Æ¬»úµÄ£¬¼¯´«¸ÐÆ÷¼ì²â¼¼Êõ¡¢ÖÇÄÜ¿ØÖƺÍÎÞÏߵ缼ÊõÓÚÒ»ÌåµÄ·ÀµÁ±¨¾¯ÏµÍ³¡£±¾ÎĶÔÕâÁ½²¿·Ö·Ö±ðÐнøÓ²¼þµç·´î½¨£¬Èí¼þ³ÌÐòÉè¼Æ£¬×îºó¶ÔÈí¼þ½øÐвâÊÔ£¬ÔËÓÃProtuesÈí¼þ¶ÔÖ÷Ҫģ¿é½øÐзÂÕæ¡£
¹Ø¼ü´Ê£ºµ¥Æ¬»ú£¬´«¸ÐÆ÷£¬»ðÔÖ£¬Ãſأ¬Protues
Design Of Fire Alarm System Based On SCM
Abstract
With the social development, single-family economic has been accumulating,and more and more people pays attention to the family disaster prevention and control .Currently, the family disaster mainly reflected in two aspects of fire and theft.Therefore, the prevention and control for these two conditions has become the focus of family disaster.This article has designed a simple fire alarm systems based on this social phenomenon.
This article is designed in two parts,.One is fire monitoring system based on the AT89S52 SCM.It was able to monitor the failures of system and the environment timely.Once fires, it would achieve the sound and light alarm, and take effective measures to control the development of the fire, the fire will be nipped in the bud ,to ensure personal and property safety and minimize losses.The other is the anti-theft alarm system based on the AT89C51 SCM,which combines sensor technology, intelligent control and radio technology and integration.This paper make the hardware circuit structures and design the software programming respectively. Finally, made a test for the software and simulated the main module by Protues.
Keyword:SCM, sensors, fire, gated, Protues
Ŀ ¼
1 Ð÷ÂÛ ........................................................................................................................... 1 1.1 ÒýÑÔ ........................................................................................................................ 1 1.2 ¿ÎÌâÑо¿±³¾°¼°ÒâÒå ............................................................................................ 2 1.3 ±¾ÎÄÖ÷ÒªÄÚÈݰ²ÅÅ ................................................................................................ 4 2 ϵͳ×ÜÌåÉè¼Æ·½°¸ ................................................................................................... 6 2.1 »ðÔÖ¼à¿ØÏµÍ³ÕûÌåÉè¼Æ ........................................................................................ 6 2.2 »ðÔÖ±¨¾¯ÏµÍ³ÀàÐͼ°»ðÔÖ̽²âÆ÷Ñ¡ÐÍ ................................................................ 6 2.2.1 »ðÔÖ±¨¾¯ÏµÍ³ÀàÐÍ ............................................................................................. 6 2.2.2 »ðÔÖ̽²âÆ÷ÔÀí ................................................................................................. 7 2.3 ·ÀµÁϵͳÕûÌåÉè¼Æ ................................................................................................ 8 2.4 ·ÀµÁϵͳÖ÷Òª¹¦ÄÜÄ£¿éÉè¼Æ ................................................................................ 9 3 ϵͳӲ¼þÉè¼Æ ......................................................................................................... 10 3.1 Ö÷ÒªÆ÷¼þÑ¡ÐÍ ...................................................................................................... 10 3.1.1 ºËÐÄ´¦ÀíÆ÷µ¥Æ¬»úµÄÑ¡Ôñ ............................................................................... 10 3.1.2 ÆøÌå´«¸ÐÆ÷µÄÑ¡Ôñ ........................................................................................... 11 3.1.3 ζȴ«¸ÐÆ÷µÄÑ¡Ôñ ........................................................................................... 12 3.1.4 ÎÞÏßͨÐÅÄ£¿éоƬµÄÑ¡Ôñ ............................................................................... 13 3.1.5 A/Dת»»Ð¾Æ¬µÄÑ¡Ôñ ....................................................................................... 14 3.1.6 ¼üÅÌÊäÈëÄ£¿éоƬѡÔñ ................................................................................... 14 3.2 ϵͳ¸÷¹¦ÄÜ×ÓÄ£¿éÉè¼Æ ...................................................................................... 15 3.2.1 µçÔ´Ä£¿é ........................................................................................................... 15 3.2.2 µ¥Æ¬»úÄÚ²¿½á¹¹¼°×îСϵͳ ........................................................................... 16 3.2.3 »ðÔÖ̽²âÆ÷µÄÉè¼Æ ........................................................................................... 18 3.2.4 RS232´®¿ÚÉè¼Æ ............................................................................................... 18 3.2.5 A/DÄ£¿éÉè¼Æ ................................................................................................... 19 3.2.6 ÎÞÏßͨÐÅÄ£¿é ................................................................................................... 20 3.2.7 µç»úÇý¶¯Ä£¿é ................................................................................................... 20
µÚ ¢ñ Ò³ ¹² ¢ò Ò³
3.2.8 ¼üÅ̵ç·Éè¼Æ ................................................................................................... 21 3.2.9 EEPROMÄ£¿é .................................................................................................. 22 4 ϵͳÈí¼þÉè¼Æ ......................................................................................................... 23 4.1 »ðÔÖ¼à¿Ø²¿·ÖÖ÷Òª³ÌÐò ...................................................................................... 23 4.1.1 »ðÔÖ¼à¿ØÖ÷³ÌÐò ............................................................................................... 23 4.1.2 »ðÔÖ¼à¿Ø¸÷²¿·Ö×Ó³ÌÐò ................................................................................... 24 4.2 ·ÀµÁ¼à¿ØÄ£¿éÖ÷Òª³ÌÐò ...................................................................................... 28 4.2.1 ·ÀµÁÃÅ¿ØÖ÷³ÌÐò ............................................................................................... 29 4.2.2 ÃÅ¿ØÄ£¿é×Ó³ÌÐò ............................................................................................... 29 5 ϵͳµ÷ÊÔ ................................................................................................................. 36 5.1 µ÷ÊÔ¹¤¾ß .............................................................................................................. 36 5.2 µ÷ÊÔ¹ý³Ì .............................................................................................................. 39 5.3 Protues·ÂÕæ ......................................................................................................... 40 6 ×ܽá ......................................................................................................................... 44 ¸½Â¼ ............................................................................................................................... 45 ²Î¿¼ÎÄÏ× ....................................................................................................................... 60 ÖÂл ............................................................................................... ´íÎó£¡Î´¶¨ÒåÊéÇ©¡£
µÚ ¢ò Ò³ ¹² ¢ò Ò³
¹²·ÖÏí92ƪÏà¹ØÎĵµ