¹ùÇì˧ÖÇÄÜÒ©ºÐ·¢±í×îÖÕ°æ ÏÂÔØ±¾ÎÄ

±ÏÒµÉè¼Æ(ÂÛÎÄ)

ÂÛÎÄÌâÄ¿ ½¡¿µÎÀÊ¿

ѧÉúÐÕÃû£º ¹ùÇì˧ ѧÉúѧºÅ£º 2014101001503 Ôº£¨Ïµ£©£º µçÆø¼°×Ô¶¯»¯Ïµ

Ä꼶רҵ£º D14-׿ԽµçÆøÒ»°à Ö¸µ¼½Ìʦ£º Ëï³£»ª

ÕªÒª

¡°°¥Ñ½£¬ÍüÁË¡±£¡Ëæ×ÅÉú»î½Ú×àµÄ¼Ó¿ì£¬ÄêÁäµÄÔö³¤£¬ÈËÃǵÄ×ÜÈÝÒ×Íü¼ÇÊÂÇ飬±ÈÈçÍü¼Ç³ÔÒ©¡£ÓÈÆäÊǼÒÖеÄÀÏÈË£¬ÓÉÓÚÉíÌåÎÊÌ⣬¿ÉÄÜÐèÒª³¤ÆÚ·þÒ©ÖÎÁÆ£¬µ«ÄêËê´óÁË×ÜÈÝÒ×ÍüÕâÍüÄǵÄ,ÒÔ¼°¶Ô·þҩʱ¼ä±È½Ï¿Á¿ÌµÄÈËȺ.µ«ÔڿƼ¼¿ìËÙ·¢Õ¹µÄ½ñÌ죬ÕâЩ¶¼²»ÊÇÎÊÌ⣬ÎÒÃÇÉè¼Æ²¢¿ª·¢ÁËÒ»¿îÃûΪ¡°½¡¿µÎÀÊ¿¡±µÄÖÇÄÜÒ©ºÐ£¬¿ÉÒÔÁªÍø¼à²âÓû§µÄ·þÒ©Çé¿ö£¬ÌáʾÓû§·þÒ©£¬²¢ÇÒ¸ù¾ÝÓû§É趨ҩƷºÍ¸öÊý×Ô¶¯ÌáÈ¡ËùÐèÒ©Îï¡£

±¾×÷Æ·ÃûΪ½¡¿µÎÀÊ¿£¬¹¹¼Ü°üÀ¨Ò©ºÐ¡¢µ¥Æ¬»úÖÐÑë¿ØÖÆ£¨MCU£©ÏµÍ³¡¢»úÖÇÔÆ·þÎñÆ÷ºÍÖÇÄÜÒ©ºÐ(Ô¶¶Ë)¹ÜÀíAPP£»ÖÇÄÜÒ©ºÐͨ¹ýÖÐÑë¿ØÖÆÏµÍ³Óë»úÖÇÔÆ·þÎñÆ÷,ͨ¹ýappºÍ»úÖÇÔÆÔÆ·þÎñÆ÷²¢ÇÒÈ«²¿ÊµÏÖʵʱÊý¾Ý´«Ê䣨ָÁî¡¢ÉÏ´«¡¢·´À¡£©£»ËùÊöµÄÖÇÄÜÒ©ºÐÄÚÉèÖÃÓÐÈô¸É¹¦ÄÜÄ£¿é£»¸÷¸ö¹¦ÄÜÄ£¿éͨ¹ýµ¥Æ¬»úÖÐÑë¿ØÖÆÏµÍ³ÊµÏ֯书ÄÜ£¬Óû§Í¨¹ýAPP½øÐйÜÀí¡£

¹Ø¼ü´Ê£ºÎïÁ¬Íø ¡¢ ×Ô¶¯ÌáȡҩÎï ¡¢»úÖÇÔÆ ¡¢app ¡¢ ʵʱÊý¾Ý

Abstract

\take medicine. Especially in the home of the elderly, due to physical problems, may require long-term medication. As well as the time of medication is relatively harsh crowd. But now in the rapid development of science and technology, these are not problems.We have designed and developed a smart box,named \It can be used for monitoring the user's taking medicine by the network, prompting the user to take medicine, and automatically extracting the required medicine according to the user's setting of the medicine and the number.The name of work isHealth-guard,includes box,MCU system,intelligent-cloud server and intelligent-box-management APP.The intelligent box using central control system and intelligent-cloud server achieve real-time data transmission (instruction, upload, feedback).The intelligent medicine box is arranged in several function modules; each module through the central microcontroller the control system to achieve its function, user management by APP.

Keywords: Internet of things, automatic extraction of drugs, intelligent-cloud, app, real-time data

Ŀ¼

1 Ð÷ÂÛ ............................................................................................................................................ 1

1.1 Éè¼Æ±³¾° ............................................................................................................................ 1 1.2 Éè¼ÆÒâÒå ............................................................................................................................ 1 1.3 ϵͳÉè¼ÆÄ¿±ê .................................................................................................................... 2 2 ×ÜÌåÉè¼Æ¼°¿ò¼Ü¼°·½°¸±È½Ï..................................................................................................... 3

2.1 ·½°¸±È½Ï ............................................................................................................................ 4

2.1.1 Ô¶³Ì·þÎñÆ÷µÄ´î½¨ ................................................................................................. 4 2.1.2 ¶¨Ê±¹¦Äܼ°¶¨Ê±³ÔÒ©¹¦ÄÜ ..................................................................................... 5 2.1.3 ×Ô¶¯ÌáȡҩƷ ......................................................................................................... 5 2.1.4 ÖÇÄÜÓïÒô ................................................................................................................. 6

3 ·þÎñÆ÷µÄÉèÖà ............................................................................................................................ 7 4 ϵͳӲ¼þÉè¼Æ .......................................................................................................................... 10

4. 1 STM32F103c8tbµ¥Æ¬»ú¸ÅÊö ...................................................................................... 10

4.1.1 STC32f103c8tbµ¥Æ¬»úÄÚ²¿½á¹¹ ...................................................................... 10 4.1.2 ´®¿Ú ....................................................................................................................... 13 4. 2 ÍøÂç ............................................................................................................................... 14

4. 2.1 ESP8266µÄ»ù±¾½éÉÜ ........................................................................................... 14 4. 2.2 ESP8266WIFIÄ£¿é14

4. 2.3 ESP8266WIFIÄ£¿éÒý½Å¹¦ÄÜ16 4. 3 ҩƬ¼ì²âÄ£¿éÉè¼Æ ......................................................................................................... 18

4.3.1 LM393¼ò½é ........................................................................................................ 18 4.3.2 ÌØÐÔ ....................................................................................................................... 18 4.3.3 ·â×° ....................................................................................................................... 19 4.3.4²½½øÊ½µç¶¯»ú ........................................................................................................ 20 4. 4 ʱÖÓÄ£¿éÉè¼Æ ................................................................................................................. 22

4.4.1 ¸ÅÊö ....................................................................................... ´íÎó£¡Î´¶¨ÒåÊéÇ©¡£ 4.4.2 ÌØÐÔ ....................................................................................................................... 22 4.4.3 ¹Ü½Å˵Ã÷ ............................................................................................................... 23 4.4.4 ¹¦ÄÜÃèÊö ............................................................................................................... 23

µÚ 4 Ò³