ºþÄϹ¤Òµ´óѧ±¾¿Æ±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©
ABSTRACT
For the efficient and effective prediction fires, reducing people's lives and property losses; solve the \conventional fire alarm only for a single physical or chemical signal detection and alarm system is easy to make false positives or false negatives\in order to design this system.
The system uses a master-slave structure, with a responsive, stable, and security features. The master node and slave nodes are using AT89C52 microcontroller chip to control. In order to achieve the primary node for real-time monitoring from the node, the master node and slave nodes are designed with CAN communication circuit module, the controller and transceiver 82C200 composition SJAl040 CAN communication interface. Peripheral circuits from the node by the SS-168 smoke sensors, ST-178 photoelectric sensors and temperature sensors DS18B20 sound and light alarm device component. Microcontroller circuit detection temperature, infrared radiation, smoke and other sensors, when the temperature acquisition, infrared detector, smoke detection module detects any two abnormal audible alarm when the system until the system at any one time only exception rule out sound and light alarm automatically stops.
The system at each node from the node with the main feature sound and light alarm devices, which facilitate staff can quickly find the location from the node which there is fire, but also to remind the presence of the staff here there is fire, which allows employees to work quickly arrive at the fire scene with live fire quickly, improve the degree of implementation of the department.
Keywords: Sensor,Fire Alarm System,CAN Bus
II
ºþÄϹ¤Òµ´óѧ±¾¿Æ±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©
Ŀ ¼
µÚÒ»Õ ¸ÅÊö¼°×ÜÌåÉè¼ÆÒªÇó ........................................... 1
1.1 ¿ÎÌâµÄÑо¿±³¾°¼°ÒâÒå ................................................ 1 1.2 »ðÔÖ±¨¾¯ÏµÍ³µÄÖÖÀà .................................................. 2 1.3 ±¾ÏµÍ³µÄÐèÇó·ÖÎö¼°×ÜÌå·½°¸Éè¼Æ ...................................... 2 1.4 ±¾ÂÛÎĵÄÖ÷Òª¹¤×÷ .................................................... 5
µÚ2Õ ¥Óî»ðÔÖ±¨¾¯ÏµÍ³Ö÷½ÚµãÓ²¼þÉè¼Æ ............................. 6
2.1 ÏÖ³¡CAN×ÜÏß¼ò½é .................................................... 6 2.2 AT89C52΢¿ØÖÆÆ÷µç· ................................................. 7 2.3 CAN×Ü¿ØÖÆÆ÷ ......................................................... 9 2.3.1 TJA1040µÄÌØµã .................................................. 10 2.3.2 TJA1040µÄ²Î¿¼Êý¾Ý .............................................. 10 2.3.3 TJA1040µÄ¹¦ÄÜÃèÊö .............................................. 11 2.4 CANͨѶÊÕ·¢Æ÷ ...................................................... 11 2.5 ±¾ÕÂС½á ........................................................... 12
µÚ3Õ ¥Óî»ðÔÖ±¨¾¯ÏµÍ³´Ó½ÚµãÓ²¼þÉè¼Æ ............................ 15
3.1 ΢¿ØÖÆÆ÷ÓëCANͨÐŵç·Éè¼Æ ......................................... 15 3.2 ζȴ«¸ÐÆ÷Ä£¿é ..................................................... 15 3.3 ÑÌÎí£¬ºìÍâ¼ì²âÄ£¿é ................................................. 16 3.3.1 ¼ò½éLM339µÄÓ÷¨ ............................................... 17 3.3.2 ¹âµç´«¸ÐÆ÷ ..................................................... 17 3.3.3 ÑÌÎí´«¸ÐÆ÷ ..................................................... 17 3.4 Éù¹â±¨¾¯Ä£¿é ....................................................... 18 3.5 ±¾ÕÂС½á ........................................................... 19
µÚ4Õ ¥Óî»ðÔÖϵͳµÄÈí¼þÉè¼Æ ...................................... 21
4.1 ϵͳÕûÌåÈí¼þÉè¼Æ ................................................... 21 4.2 Ö÷½ÚµãÈí¼þÉè¼Æ ..................................................... 22 4.2.1 CAN¿ØÖÆÆ÷µÄ³õʼ»¯ .............................................. 22 4.2.2 Ðźŷ¢ËÍÄ£¿é ................................................... 23 4.2.3 ÐźŽÓÊÕÄ£¿é ................................................... 24
III
ºþÄϹ¤Òµ´óѧ±¾¿Æ±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©
4.2.4 Ö÷½ÚµãѲ¼ì´Ó½Úµã ............................................... 24 4.3 ´Ó½ÚµãÈí¼þÉè¼Æ ..................................................... 25 4.4 ±¾ÕÂС½á ........................................................... 26
²Î¿¼ÎÄÏ× ............................................................... 27 Ö л ................................................................. 28 ¸½ ¼ ................................................................. 29
IV
ºþÄϹ¤Òµ´óѧ±¾¿Æ±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©
µÚÒ»Õ ¸ÅÊö¼°×ÜÌåÉè¼ÆÒªÇó
1.1 ¿ÎÌâµÄÑо¿±³¾°¼°ÒâÒå
»ðÔÖÊÇĿǰ×î³£¼û¡¢×îÆÕ±éµÄÍþв¹«¹²³¡Ëù°²È«ºÍ½¨ÉèºÍгÉç»áµÄÖØÒªÔÖº¦Ö®Ò»¡£µ«ÊÇ¡°»ð¡±±»ÈËÀà¿ØÖÆÓëÀûÓÃÒ²ÊÇÈËÀàÂõ½øÎÄÃ÷Éç»áµÄÒ»¸öÖØÒª±êÖ¾£¬ËùÒÔ˵¡°»ð¡±£¬Ëü¼ÈÄܸøÈËÃÇ´øÀ´ÁËÎÄÃ÷µÄ½ø²½£¬¹âÃ÷ºÍÎÂů£¬µ«Êǵ±ÆäÒ»µ©Ê§È¥¿ØÖÆ£¬¾Í»áΪÈËÀà´øÀ´»ÙÃðÐÔµØÔÖÄÑ¡£Ê¹Ó᰻𡱵Ĺý³ÌÖУ¬ÈËÃÇ×ÜÊÇÔÚ²»¶ÏµØ×ܽᷢÉú»ðÔֵĹæÂÉ£¬¾¡¿ÉÄܵؾ¡×î´ó¿ÉÄܼõÉÙ»ðÔÖ¶ÔÈËÉí²Æ²úÔì³ÉµÄÉ˺¦»òËðʧ¡£ÔÚ100Äêǰ£¬ÄÇʱµÄ¿Æ¼¼»¹²»·¢´ï£¬ÎÒÃÇΰ´óµÄÏÈ׿·¢»ÓËûÃǵĴÏÃ÷Óë²ÅÖÇ×ܽá³ö¡°·ÀΪÉÏ£¬¾È´ÎÖ®£¬½äΪÏ¡±µÄ¾ÑéÀ´·ÀÖλðÔÖ¡£Ëæ×ſƼ¼²»¶ÏµÄ·¢ÕÅÓë½ø²½£¬ÈËÃǾÓסµÄ³¡ËùÔ½À´Ô½¼¯ÖУ¬¶øÔÚÏÖÈç½ñÈËÃǵIJƸ»ÈÕÒæÔö¼Ó£¬ÓÕʹ·¢Éú»ðÔֵĻú»áÒ²Ô½À´Ô½¶à£¬±ÈÈçÎ¥¹æµÄʹÓõçÆ÷µÈ¡£ÏÖ´ú½¨Öþ·¢Éú»ðÔÖΣÏÕÐÔÔ½À´Ô½Ç¿£¬Ò»µ©·¢ÉúijµØÆð»ð£¬Èç¹û²»Äܼ°Ê±µÄÆËÃð¾Í»áÕÕ³ÉһϵÁеÄÁ¬Ëø·´Ó¦£¬»ð»áԽȼԽ´óÓеÄÉõÖÁȼÉÕÁËÕûÌõ½Ö¡£ÕâÑùµÄ±¨µÀʱ³£»á³öÏÖÔÚµçÊÓ¡¢ÔÓÖ¾ÉÏ£¬ÈÃÈËÃǿ಻¿°ÑÔ¡£Òò´Ë£¬Ïû·ÀÉèÊ©ÒѾ³ÉΪÿһ¸ö³¡ËùµÄ±ØÐèÉèÊ©£¬Í»ÏÔÆä¶ÔÏÖ´úÈËÃÇÉç»á»î¶¯µÄÖØÒªÐÔ¡£
¡°Ô¤·À»ðÔֺͼõÉÙ»ðÔÖΣº¦¡±ÊÇÒ»¸ö×ܽáÐÔ·ÀÖλðÔֵķ½·¨£¬×ܵÄÀ´ËµËü°üÀ¨Á½¸ö²¿·Ö£ºÒ»ÊÇ×ö·À»ð¹¤×÷£¬·ÀÖ¹»ðÔֵķ¢Éú£»¶þÊÇÒ»µ©·¢Éú»ðÔÖ£¬Ó¦¼°Ê±ºÍÓÐЧµØ½øÐÐÆË¾È£¬¼õÉÙ»ðÔÖËðʧ¡£»ðÔÖ²»½ö»Ù»µÎïÖʲƲú£¬Ôì³ÉÉç»áÖÈÐòµÄ»ìÂÒ£¬Ö±½Ó»ò¼ä½ÓµÄΣº¦ÉúÃü£¬¸øÈËÃǵÄÐÄÁéÔì³É¼«´óµÄÉ˺¦¡£³£ÑÔµÀ£º¡°Ë®»ðÎÞÇ顱£¬¡°Ôô͵°ëÈ«¹â»ð¡±ÊÇ»ðÔÖµÄÃèÊö×îÕæÊµµÄдÕÕ¡£Òò´Ë£¬ÔÚ¹¤Òµ½¨ÖþÓëÃñÓý¨Öþ£¬¹«Ë¾´óÂ¥£¬Í¼Êé¹Ý£¬±ö¹Ý£¬¿ÆÑкÍÒµÎñ²¿ÃÅºÍÆäËûµØ·½£¬»ðÔÖ×Ô¶¯±¨¾¯ÏµÍ³ÒѳÉΪһ¸ö±ØÐèµÄÉ豸¡£
ÔÚÏÖ´úÖÇÄܽ¨ÖþÖУ¬»ùÓÚCAN×ÜÏßµÄÂ¥Óî»ðÔÖ×Ô¶¯±¨¾¯ÏµÍ³ÊÇÖÇÄܽ¨ÖþϵͳÖеÄÒ»¸ö×Óϵͳ¡£ÔÚÕâ¸öϵͳÖУ¬´«Í³µÄAT89C52µ¥Æ¬»úÔÚ×Ô¶¯»ðÔÖ±¨¾¯ÖÐÆð׏ؼü¿ØÖƵÄ×÷Ó᣶ÔÓÚʵʱ¿ìËÙ´¦Àí´óÁ¿µÄÊý¾ÝµÄ¼ì²âÆ÷ºÍ¿ØÖÆÆ÷Ö®¼äµÄÓ¦¸ÃÊǸüѸËٵظĽø£¬µÍ´íÎóÂʵÄͨÐÅÐÒéºÍÍøÂçÖеÄÊÜ¿ØÉ豸ÔÚÒ»¸öÌØÊâµÄ»·¾³ÖУ¬ºÜ¶àµÄÐźŵĸÉÈÅÓ¦ÓèÒÔ¿¼ÂÇ£¬Í¬Ê±Ëü×ÔÉíÒ²¿ÉÒÔ¶ÀÁ¢ÔËÐкͲÙ×÷Íê³É±¾ÉíÓë»ðÔÖ×Ô¶¯±¨¾¯Ïû·À¹¦ÄÜ¡£»ùÓÚCAN×ÜÏß¼¼ÊõµÄÂ¥Óî»ðÔÖ±¨¾¯´«¸ÐÆ÷¼¼Êõ£¬Í¨Ñ¶¼¼ÊõµÈ×ÛºÏÏû·À±¨¾¯ÓÚÒ»ÌåµÄ×ۺϼ¼Êõ£¬Ëü¾ßÓо«¶È¸ß£¬Ëٶȿ죬ʵʱµÈÓÅÊÆ£¬Òò´Ë£¬ÔÚ»ðÔÖ±¨¾¯¿ØÖÆÊ¹ÓÃÏÖ³¡CAN×ÜÏß¼¼Êõ·¢Õ¹µÄ±ØÈ»Ç÷ÊÆ[1]¡£
»ùÓÚCAN×ÜÏßµÄÂ¥Óî»ðÔÖ±¨¾¯¼¼ÊõµÄѸËÙ·¢Õ¹£¬ÕâЩÄêÀ´£¬¼¼Êõ¸üеı仯Ҳ·Ç³£Ã÷ÏÔ¡£×ÜÌå¶øÑÔ£¬Ö÷Òª·¢Õ¹ÊÇ£ºÊý×Ö¼¼ÊõºÍй¤ÒÕ£¬Ð²ÄÁϵÄʹÓã¬ÒÔÌá¸ßϵͳÈÝÁ¿£¬½µµÍά»¤ÒªÇó£¬Ïò¸ß¿É¿¿ÐÔ£¬µÍÎ󱨺ÍÍøÂ绯£¬ÖÇÄÜ»¯·½Ïò·¢Õ¹¡£Ëæ×ųÇÊÐÏÖ´ú»¯½¨Éè
[1] Õ»¶.»ùÓÚCAN×ÜÏߵĻðÔÖ±¨¾¯ÏµÍ³µÄÉè¼ÆÓëʵÏÖ[D].Î人£ºÎ人´óѧ£¬2008.
1