ÈÈËÑÒªº¦´Ê£º µçÉÌÒ»¼þ´ú·¢ ÀäÁ´ÅäËÍ ÉçÇøÍŹº²ÖÅä ʳƷ²Ö´¢´ú·¢»õ ÔöֵЧÀÍ
¹ûÊß¼°ÈâÀàºÍË®²úÆ·ÎïÁ÷ÒµµÄ²»¾øÉú³¤, ´Ùʹ×ÅÎïÁ÷²Ö´¢Çé¿ö²ÎÊýÔ¶³Ì¼à²âϵͳÐÔÄÜÖð½¥Ìá¸ß
Ìá³öÒ»ÖÖ»ùÓÚZig BeeµÄATÖ¸ÁîÏ´óÐÍÎïÁ÷²Ö´¢Çé¿ö²ÎÊýÔ¶³Ì¼à²âϵͳÉè¼ÆÒªÁì, ¿ÉÓÐЧ½â¾öÉÏÊöÎÊÌâ¡£
»ùÓÚZig BeeµÄATÖ¸ÁîÏÂ, ´óÐÍÎïÁ÷²Ö´¢Çé¿ö²ÎÊýÔ¶³Ì¼à²âϵͳµÄ×é³É²¿·ÖΪ:е÷Æ÷, ·ÓÉÆ÷ºÍÖÕ¶ËÉ豸¡¢ÎÞÏßͨѶ, ¸÷¸¨Öúµç·µÈ
ͼ1 ¼à²âϵͳÕûÌåÉè¼ÆFig.1 Overall design of monitoring system
ϵͳ¸÷½ÚµãÄ£¿éͨ¹ýÍⲿ5 V¹©µç, µ«CC2530оƬÔòÒªÇóÔÚ3.3 VµÄµçѹ֮ÏÂÊÂÇé¡£¸ÃÄ£¿éʹÓÃHT7533оƬÍê³Éµçѹת»»¡£HT7533Óй¦ºÄµÍ, µçѹµøÂäµÍºÍÊä³öµÄÎÈѹÈݲîÖµÔÚ¡À3%µÄÌصã, Æäµç·ÔÀíÈçͼ2Ëùʾ:
±¾ÎÄÉè¼ÆµÄÎïÁ÷²Ö´¢Çé¿ö²ÎÊýÔ¶³Ì¼à²âϵͳ, ½ÓÄɸ߾«¶ÈµÄÎÂʪ¶È´«¸ÐÆ÷SHT11¡£ÆäÄÚ²¿¼¯³Éζȴ«¸ÐÆ÷ºÍʪ¶È´«¸ÐÆ÷, ÒÔ¼°Ðźŵ÷ÀíºÍ×ÜÏ߽ӿڵȲ¿·Ö¡£Óë´«¸ÐÆ÷¼¼Êõ½øÐиßЧµÄ½áºÏ, ¿É¼õÉÙ´«¸ÐÆ÷µÄÌå»ý, ÌáÉýÆäÐÔÄÜ, Ò²±ãµ±ºÍ´¦ÀíÆ÷½Ó¿Ú¡£ÄÚ²¿µÄ½á¹¹Èçͼ3Ëùʾ:
ͼ2 ¼à²âϵͳµçÔ´µç·Fig.2 Power circuit of monitoring system
ͼ3 SHT11½á¹¹Fig.3 SHT1 1 structure
ÎïÁ÷²Ö´¢Çé¿ö²ÎÊýÔ¶³Ì¼à²âϵͳµÄÆøÃô´«¸ÐÆ÷, ½ÓÄɵÄÊÇMQ-2ÆøÃô´«¸ÐÆ÷
MQ-2ÆøÃô´«¸ÐÆ÷µÄÆøÃôÔª¼þ, Õë¶Ô²»²î±ðµÄÖÖÀàºÍ²î±ðŨ¶ÈÆøÌå, ÓÐ×Ųî±ðµç×èÖµ¡£ÓÉ´Ë, ÔÚÀûÓøÃÀàÆøÃôÔª¼þʱ, ÆäÁéÃô¶Èµ÷½âÌرðÖØÒª¡£Éè¼Æ¸Ãµç·, ÐèÒªÔÚµçѹ±È½ÏÆ÷Ò»¶Ë, ½ÓMQ-2ÐźÅÊä³ö½Å, Æä´Î, ÁíÒ»¶Ë½Ó¿Éµ÷µçλÆ÷, Äܹ»µ÷ÀíÁéÃô¶È¡£¸Ã´«¸ÐÆ÷µç·Èçͼ4Ëùʾ:
ϵͳµÄʱÖÓÄ£¿éΪCC2530оƬµÄÊÂÇé»ù´¡, ¸ÃÄ£¿éµÄÎȶ¨ÐÔÒÔ¼°¾«È·ÐÔ, ÊÇÖ±½Ó¿ÉÒÔ¾ö¶¨¼à²âϵͳ¿É¿¿ÐÔµÄÖØÒªÒòËØ¡£CC2530Öб£´æ4¸öʱÖÓÔ´Äܹ»Ñ¡Ôñ, ÆäÖÐÁ½¸öÄÚ²¿µÄRCÕñµ´Æ÷, ÁíÓÐÁ½¸öÍⲿµÄ¾§ÌåÕñµ´Æ÷¡£ÒòΪCC2530ÖеÄÊÕ·¢Æ÷Ðè32MHzʱÖÓÔ´, ½ö¿Éͨ¹ý32 MHzµÄ¾§ÌåÕñµ´Æ÷Éú³É¡£Í¨¹ýÍⲿ32.KHz¾§ÌåÕñµ´½øÐзÖƵ֮ºó, Äܹ»±¬·¢1 HzÃëÐźÅ, Äܹ»ÓÃÀ´½øÐо«È·µÄ׼ʱ¡£Í¼5ΪʱÖӵĵç·:
ͼ4 MQ-2´«¸ÐÆ÷µç·Fig.4 MQ-2 sensor circuit
ͼ5 ¼à²âϵͳʱÖÓµç·Fig.5 Clock circuit of monitoring system
ÔÚÎïÁ÷²Ö´¢Çé¿ö²ÎÊýÔ¶³Ì¼à²âϵͳÖÐ, Æä°´¼üÓëLEDδ¼¸, ÓÉ´ËÄܹ»Ö±½ÓºÍCC2530I/O¿Ú½øÐÐÁ¬½Ó, Æäµç·ͼ6¡¢7Ëùʾ:
ͼ6 ¼à²âϵͳLEDµç·Fig.6 LED circuit of monitoring system
ÎïÁ÷²Ö´¢Çé¿ö²ÎÊýÔ¶³Ì¼à²âϵͳµÄ½Úµã³ÌÐò, ÊÇÀûÓÃCC-Debugger¹Ù·½µÄ±à³Éµ÷ÊÔÆ÷, ʵÏÖ³ÌÐòµÄÏÂÔØÒÔ¼°µ÷ÊÔ¡£ÆäÖÐÊý¾ÝÏÂÔØÒÔ¼°µ÷ÊԽӿڵĵç·Èçͼ8Ëùʾ:
ͼ8 ÏÂÔØÒÔ¼°µ÷ÊÔ½Ó¿Úµç·Fig.8 Download and debug interface circuits
Êý¾ÝµÄͨѶµ¥Î», ÊÇÊý¾ÝÉÏ´«½¹µãµ¥Î», ÐÅÏ¢µÄÀ´Ô´ÊÇе÷Æ÷´®¿Ú, ÆäÖ÷ÒªµÄ×é³É²¿·ÖΪ:STM32F103CBT6¿ØÖÆÆ÷¡¢SIM¿¨½Ó¿Ú¼°GSM/GPRSоƬ¡¢RS232´®¿ÚºÍµçÔ´µÈµ¥Î»¡£ÆäÖÐ, Ö÷¿ØоƬSTM32F103CBT6´®¿Ú1, ÊÇÓÃÀ´½ÓÊÕÔ´ÓÚе÷Æ÷µÄÎïÁ÷²Ö´¢Çé¿ö²ÎÊý, ´®¿Ú2ÊÇÓÃÀ´¶ÔGSM/GPRSµ¥Î»½øÐÐÖ¸Áî¿ØÖÆ
ÔÚÎïÁ÷²Ö´¢Çé¿ö²ÎÊýÔ¶³Ì¼à²âϵͳÖÐ, µ±Ðµ÷Æ÷Æô¶¯Ö®ºó, Ôò³õʼӲ¼þÓëÈí¼þ, ´Ëºóе÷Æ÷»áÓÚĬÈÏÐŵÀÉϹ¹½¨Ò»¸öÍøÂç, ÇÒÖ¸¶¨ÍøÂç±êºÅPANID, µ±Ðµ÷Æ÷½¨ÍøÀÖ³ÉÖ®ºóÔÙ½øÈë¼à²âµÄģʽ, ÓзÓÉ»òÖն˵ĽڵãÒªÇó¼ÓÈëʱ, ΪÆäÌṩ16λ¶ÌµØµã, ÓÐÊý¾ÝÉêÇëʱ, е÷Æ÷½«½ÓÊÕÊý¾Ý, ²¢½«¸ÃÊý¾Ý´«Ë͸ø¼à²âÖÐÐÄ
ÎïÁ÷²Ö´¢Çé¿ö²ÎÊý¼à²âϵͳÖеÄGSM/GPRSͨÐŵ¥Î»µÄ³ÌÐò, Ö÷ÒªÓÉÖ÷³ÌÐòÄ£¿éºÍÊý¾Ý½ÓÊÕ´®¿ÚµÄÖжϳÌÐò¡£ÆäÖÐÖ÷³ÌÐòÊÇÓÃÓÚ¶ÌÐŲÎÊýÅÌÎʺ;¯¸æ֪ͨ, ÄÚ²¿°üÀ¨Í¨Ðŵ¥Î»µÄ³õʼ»¯, ½øÈëWhile (1) Ñ»·, µ¥¶Ë¶ÌÐŵĽÓÊÕ±êʶ, ͬʱ×öϲ½ÅжÏ, ½«ËùÓгÌÐòÍê³ÉÖ®ºó, Ôٻص½Åжϰ취¼ÌÐø½øÐÐÅжϡ£Ö÷³ÌÐòÁ÷³ÌͼÈçͼ9:
ͼ9 ¼à²âϵͳͨÐŵ¥Î»Ö÷³ÌÐòÊÂÇéÁ÷³ÌFig.9 The work flow of the main program of the communication unit of the monitoring system
±¾ÎĽ«ÊµÑéƽ̨´î½¨ÔÚMATLAB2016 aÉÏ, ÀûÓñ¾ÎÄËùÉè¼ÆµÄÎïÁ÷²Ö´¢Çé¿ö²ÎÊýÔ¶³Ì¼à²âϵͳ, ¶Ôij´óÐÍÎïÁ÷²Ö´¢µÄÇé¿ö²ÎÊý½øÐÐÔ¶³Ì¼à²â, ÊÓ²ìËùÌáÒªÁì¼à²âµÄÊý¾ÝºÍʵ¼Ê²ÎÊýµÄÌùºÏˮƽ¡¢ÏµÍ³¹¦ºÄÇé¿ö, ²¢¶Ô²î±ðÒªÁìϵļà²âϵͳÉè¼Æ±¾Ç®½øÐбȽϡ£ÒÔ´ËÑéÖ¤ËùÌáÒªÁìµÄÕûÌåÐÔÄÜ, ʵÑé¼¾½ÚΪÏļ¾¡£
(1) ÒÔ8am~2 pm×÷ΪʵÑéʱ¼ä, ÒÔζȺÍʪ¶ÈΪÀý, ²î±ðÒªÁìÏÂÎïÁ÷²Ö´¢Çé¿ö²ÎÊýºÍʵ¼ÊÇé¿ö²ÎÊýÌùºÏˮƽÈçͼ10Ëùʾ:
(2) ±í1ºÍ±í2Ϊ²î±ðÒªÁìÉè¼Æ¸ÃϵͳËùÓõı¾Ç®±ÈÕÕ:
(3) ͼ11ΪÎïÁ÷²Ö´¢Çé¿ö²ÎÊýÔ¶³Ì¼à²âϵͳµÄÔËÐй¦ºÄ±ÈÕÕ, ͼ11 (A) ÊǼà²âϵͳÔËÐÐʱ, ¸÷ÌõÏß·µÄ×ܹ¦ºÄ, ÊôÓÚÒ»ÖֱȽϱ¥ÂúµÄ״̬¡£
±í1 ±¾ÎÄÒªÁìÉè¼Æ±¾Ç®Table 1 Design cost of the wethod in this paper ÏÂÔØÔͼ
ͼ1 0 ²î±ðÒªÁìÎÂʪ¶È¼à²âÖµÓëʵ¼ÊÖµÌùºÏ¶È±ÈÕÕFig.10 Comparison of temperature and humidity monitoring values with actual values of different methods ÏÂÔØÔͼ
±í2 Ä¿½ñÒªÁìϵͳÉè¼Æ±¾Ç®Table 2 Design cost of the current method ÏÂÔØÔͼ
ͨ¹ýÉÏÊöʵÑé¿ÉÒÔÖ¤Ã÷, ÓÉÓÚ±¾ÎÄÒªÁì¹ØÓÚ²ÎÊýµÄ¼à²â½á¹ûÓëʵ¼ÊÖµÌùºÏˮƽ½Ï¸ß, ËùÒÔ±¾ÎÄÒªÁì¶ÔÎïÁ÷²Ö´¢Çé¿ö²ÎÊýµÄ¼à²â¾«¶È, Òª±ÈÄ¿½ñÒªÁì¸ß¡£Æ¾¾ÝÊмÛ, ±¾Îĸ÷¸öÄ£¿éÑ¡ÔñµÄоƬ±¾Ç®¶¼±È½ÏµÍ¡£¹ØÓÚ¹¦ºÄµÄ¿ØÖÆ·½Ãæ, ±¾ÎÄÍ»ÆÆÁËÔʼÄܺı¥ÂúµÄ״̬, ËäȻĿ½ñÒªÁì¶ÔÄܺĵĿØÖÆÒ²ÂÔÓÐЧ¹û, µ«±¾ÎÄÒªÁì¸üΪÓÅÔ½, ¶ÔÄܺĿØÖƵÄЧ¹û¸ü¼Ñ¡£
±¾ÎĽ«Äܺĵ͵ÄCC2530×÷ΪÖ÷¿ØоƬ, ²¢ÀûÓÃÊý¾ÝÊÕÂÞ¾«¶È½Ï¸ßÇÒ±¾Ç®½ÏµÍµÄ´«¸ÐÆ÷SHT11, ºÍ´«¸ÐÆ÷MQ-2¶Ô²Ö´¢Çé¿ö²ÎÊý½øÐÐÊÕÂÞ¡£´ÓÕûÌåÉÏÌá¸ßÁ˼à²â¾«¶È, ½µµÍÁËϵͳ¹¦ºÄºÍ±¾Ç®¡£
ͼ1 1 ²î±ðÒªÁ칦ºÄ¿ØÖÆÇé¿öFig.11 Power control of different methods
¡¾±¾ÎıêÇ©¡¿
¡¾ÔðÈα༡¿yd2333Ôƶ¥µç×ÓÓÎÏ·ÔƲÖ